Hello Experts,
How can I get the line items in the screen to CHECK_ITEM method ?
I tried like this:
READ TABLE gt_goitem TRANSPORTING NO FIELDS WITH KEY zeile = i_line_id.
IF sy-subrc NE 0.
APPEND cs_goitem TO gt_goitem.
ELSE.
MODIFY gt_goitem FROM cs_goitem INDEX i_line_id.
ENDIF.
I feel this logic is not right.
In CHECK_ITEM method also, I read with respect to line id.
But when I distribute, this i_line_id value increases and gt_goitem will be filled with distributed materials and quantities. gt_goitem will have previous details of the materials distributed which is wrong.
I need to get the current details as seen in MIGO screen.
How can this be done ? Please help.
Regards,
Kiran