Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Could u tell me how to write if...endif statement inside the case.... endcase statement?

$
0
0

Dear Guru ,

 

Hope you are doing well.

 

I have an requirement like this ...

 

I need to check almost 40 fields inside the loop . I wrote the code like this but my if ... else statement is not working . So could you please guide me and suggest me to how to write this code ....

 

for your information please check the below code......

 

LOOP AT  QAMKTAB.

 

CASE QAMKTAB-KURZTEXT.


WHEN 'Uneven Cut'.
      IF QAMKTAB-ORIGINAL_INPUT GT'100'.
        MOVE QAMKTAB-KURZTEXT to IT_REFNO-txt22.
        MOVE QAMKTAB-ORIGINAL_INPUT TO IT_REFNO-zucut.
      ENDIF.

...


...


..



ENDCASE.
ENDLOOP.



Thanks & regards

Ranjit


Viewing all articles
Browse latest Browse all 9091

Trending Articles