case statement

 case statement.

    case statement like switch statement   

     REPORT ZCASE_PROGRAM.

        data var type string value 'save'.
        case var.
          when 'save'.
            write'save'.
          when 'cancel'.
            write 'cancel'.
        endcase.

explanation:
            if the variable var is type string and assign                 value is save .case var means case save that                 means goto when save. 

Comments

Popular posts from this blog

bapi introduction

amdp

ABAP for all