Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Delivery number for invoice recipt

sri6666
Active Participant
0 Kudos
597

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.

1 ACCEPTED SOLUTION
Read only

Abinathsiva
Active Contributor
492

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.

2 REPLIES 2
Read only

Abinathsiva
Active Contributor
493

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.

Read only

sri6666
Active Participant
0 Kudos
492

Pass PO and item to EKBE, get material document i.e GR number, year..pass into MSEG table get delivery and it's item.