2020 May 17 6:11 PM
Venkat,
I want delivery number for invoice receipt while creating MIRO invoice receipt. Please help me. in some cases LIPS having 10 records. How to find correct record which is used in Miro.
2020 May 17 6:29 PM
Hi,
Use Same BADI mentioned in your previous question and in Method SAVE - try with below code.
for this Delivery based GR / IV to defined.in system.
DATA : rsegdata TYPE mrmrseg.
READ TABLE ti_rseg_new INTO rsegdata INDEX 1.
IF sy-subrc EQ 0.
* rsegdata-lfbnr this will be having the reference document number of line item through this can read EKBE or LIKP respectively for delivery number.
2020 May 17 6:29 PM
Hi,
Use Same BADI mentioned in your previous question and in Method SAVE - try with below code.
for this Delivery based GR / IV to defined.in system.
DATA : rsegdata TYPE mrmrseg.
READ TABLE ti_rseg_new INTO rsegdata INDEX 1.
IF sy-subrc EQ 0.
* rsegdata-lfbnr this will be having the reference document number of line item through this can read EKBE or LIKP respectively for delivery number.
2020 May 24 8:23 AM
Pass PO and item to EKBE, get material document i.e GR number, year..pass into MSEG table get delivery and it's item.