Skip to Content

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

a doubt on the internal table

hi guys,

i'm having a issue where not able to get the data from selected_items below with

zero_count NE 'X'.

fact is we have data in the table, however for some unknown reason it doesn't pick up during the looping.

pleaase kindly advise. thanks.

IF NOT selected_items[] IS INITIAL.

  • LOOP AT selected_items INTO w_selected_items_temp

LOOP AT selected_items INTO w_selected_items_temp

WHERE material = wa_picount_items-material

AND batch = wa_picount_items-batch

AND zero_count = 'X'.

*

IF sy-subrc EQ 0.

wa_picount_items-zero_count = 'X'.

qty = 0.

v_flag = 'X'.

ENDIF.

ENDLOOP.

IF v_flag NE 'X'.

LOOP AT selected_items INTO w_selected_items_temp

WHERE material = wa_picount_items-material

AND batch = wa_picount_items-batch

AND zero_count NE 'X'.

*

IF sy-subrc EQ 0.

wa_picount_items-zero_count = ''.

v_flag = 'Y'.

ENDIF.

ENDLOOP.

ENDIF.

ENDIF.

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question