cancel
Showing results for 
Search instead for 
Did you mean: 

MBLNR and MENGE in include ZXAPCU05 (Exit MM -> AA)

Former Member
0 Kudos

Dear friends,

In T-CODE MIRO, when I have more of one asset for a single item purchase order, I have to make a specific calculation based on the amount of the item that was received in MIGO. This calculation is performed in ZXAPCU05 Exit.

I found the document in MIGO and the amounts received in the table MSEG (MBLNR and MENGE).

I can not find in this Exit the field "quantity received" and / or "MIGO document" at runtime.

How can I do the Exit ZXAPCU05 check the field of MBLNR and MENGE at runtime?

Thanks

GLippmann

Accepted Solutions (0)

Answers (1)

Answers (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Check in EXIT_SAPLAPCF_005, the value for I_RLAMBU-EBELN and I_RLAMBU-EBELP. After, search in table EKBE and get the data from MSEG.

I hope this helps you

Regards

Eduardo

Former Member
0 Kudos

Thank you, Eduardo!

E se eu tiver mais uma MIGO sem o recebimento da fatura (MIRO)? Como saber qual EKBE-BELNR devo utilizar?

If I have one more MIGO without the receipt of the invoice (MIRO), how to know which EKBE BELNR should I use?

Gabriel

eduardo_hinojosa
Active Contributor
0 Kudos

Hi Gabriel,

Surely you have one PO. If you have more than one entry, you have various entries in table EKBE. So, do the select on EKBE to a internal table. Instead to select one record from MSEG you will select more than one record from MSEG. After, do the sum for the values of MENGE and MBLNR. Do the process with tcodes SE16 or SE16N. Do a break-point on the exit, get the values por EBELN and EBELP. Search it in SE16N for table EKBE, and after, search again in SE16N for table MSEG.

I hope this helps you

Regards

Eduardo