Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Looping

Hi,

In my program i have written the code as

V_d= 'no data present'

loop at it_sak where mitkz NE space.

concatenate v_dit_sak-skb1 into v_d seperated by space.

v_a= 'x'.

endloop.

if v_a= 'x'.

message i001 with v_d.

end if.

as its coming under the loop if in the table if atleaset one value of internal table it_sak has some value in mitkz then only the error message is getting displayed.Now in my case by skipping that particular contents the other values should be displayed.How to do it?

Tags:
replied

Write condition in loop-endloop.

loop at it_sak.

if mitkz NE space.

concatenate v_dit_sak-skb1 into v_d seperated by space.

v_a= 'x'.

else.

"->> write ur logic here

endif.

endloop.

Regards,

Aparna

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question