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

MB_MIGO_BADI and Distribute Quantity

$
0
0

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


Viewing all articles
Browse latest Browse all 2878

Trending Articles



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