Application Development 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: 

Get material number in MM_SELECT_PARTNER.

former_member202771
Contributor
0 Kudos

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

5 REPLIES 5

karun_prabhu
Active Contributor
0 Kudos

Hello Anil.

     For what requirement, you are using this FM?

Regards.

0 Kudos

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

0 Kudos

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>[].

0 Kudos

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

0 Kudos

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