06-17-2014 8:14 AM
Hi Experts,
I have a requirement where i need to get material number inside FM MM_SELECT_PARTNER.
(SAPMM06E)POT[] gives blank values.
Thanks,
Anil
06-17-2014 8:44 AM
06-17-2014 9:05 AM
Hi Arun,
This FM is for automatic selection of vendor while PO creation.
As per my req, PO are coming from APO.
And there is a Ztable created in SAP for mapping purpose.
So i need to get the material number in this FM.
Thanks,
Anil
06-17-2014 11:12 AM
Hi Anil,
can you try this way. since the Call stack is as below to read the partners.
DATA: WA_TABLE(100) TYPE C,
T_EKPO TYPE STANDARD TABLE OF BEKPO,
WA_EKPO TYPE BEKPO.
WA_TABLE = '(SAPLMEPO)EKPO[]'.
ASSIGN (WA_TABLE) TO <FS_EKPO>.
T_EKPO[] = <FS_EKPO>[].
06-17-2014 11:30 AM
Hi Kiran,
Thanks for your reply.
The flows goes through these stack if the PO is created in SAP itself.
In my case the flow is through SAPMM06E instead of SAPLMEPO.
and I am not getting any material value from SAPMM06E.
Thanks,
Anil
06-17-2014 11:44 AM
Hi Anil,
I guess the partners are related to header function of PO not at item level. So I assume that you can't get the material number at the Function Module.
by the way, you need only to modify the partners at the time of saving PO by comparing with the Z table. Have tried BADI lik : ME*PO*CUST* like that to modify the partners.
I understand that finally you want to modify the below fields only.
EKKO-LLIEF
EKKO-LIFRE