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

Modify itab when Pernr is not found.

$
0
0

Hi guys,

 

I need to populate an ALV with a message even when my PERNR is not found and the main itab is therefore empty.

 

Why is this not working?

 

IF li_list IS INITIAL.  

 

LOOP AT li_list INTO wa_list.    

wa_addr_list-pernr = '9999999'.   

wa_addr_list-gbjhr = ' '.   

wa_addr_list-stat2 = ' '.    

wa_addr_list-ename = ' '.    

wa_addr_list-nachn = ' '.    

wa_addr_list-vorna = ' '.    

wa_addr_list-stras = ' '.    

wa_addr_list-pstlz = ' '.    

wa_addr_list-ort01 = ' '.    

wa_addr_list-state = ' '.    

wa_addr_list-bezei = ' '.    

wa_addr_list-land1 = ' '.

 

MODIFY li_list FROM wa_list.

ENDLOOP.

 

Thanks. Appreciate the help. Am working in 2 reports now and for some silly reason I cannot see the issue ....

 

Fafa


Viewing all articles
Browse latest Browse all 8937

Trending Articles



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