Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

Check Initial Condition Using Case.

$
0
0

Hi all,

 

In my req.....need to change the status field based on the updated values of other fields in the ALV.

 

          If  not gs_final-matnr is initial or not gs_final-erdat is initial or not gs_final-ernam is initial.

 

               gs_final-status = 'CLOSED'.

 

             Elseif not gs_final-org_id is initial or not gs_final-item is initial.

 

                gs_final-status = 'OPEN'.

 

          endif.

 

Is that possible to use CASE statement instead of IF or ELSEIF. Since the condition is carried out inside LOOP & ENDLOOP there is performce issue.

 

Regards,

Meenakshi.


Viewing all articles
Browse latest Browse all 3523

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>