2005 Nov 22 3:42 PM
We have created an implementation named ZGL_STP_PO_CUST_ENH for definition ME_PROCESS_PO_CUST. In PROCESS_HEADER we call a method to validate fields.
Validate/update foreign trade field values.
call method me->validate_fortrad_fields_header
exporting
im_header = im_header
importing
e_set_data = l_set_data
changing
cs_mepoheader = ls_mepoheader.
In VALIDATE_FORTRAD_FIELDS_HEADER we call the following function to get the partners in the PO.
DATA: l_xekpa TYPE ekpa.
DATA: li_xekpa TYPE TABLE OF ekpa.
CALL FUNCTION 'MM_READ_PARTNERS'
TABLES
x_ekpa = li_xekpa.
The problem is, when we call the MM_READ_PARTNERS function it causes partners to be dropped off the PO during PO create. I have commented out the call and the partners are not dropped.
2005 Nov 22 3:59 PM
Hi
Try passing export parameter APPLICATION = 'P' ,
this should return partner in x_ekpa.
Regards
Kalpana
We have created an implementation named ZGL_STP_PO_CUST_ENH for definition ME_PROCESS_PO_CUST. In PROCESS_HEADER we call a method to validate fields.
Validate/update foreign trade field values.
call method me->validate_fortrad_fields_header
exporting
im_header = im_header
importing
e_set_data = l_set_data
changing
cs_mepoheader = ls_mepoheader.
In VALIDATE_FORTRAD_FIELDS_HEADER we call the following function to get the partners in the PO.
DATA: l_xekpa TYPE ekpa.
DATA: li_xekpa TYPE TABLE OF ekpa.
CALL FUNCTION 'MM_READ_PARTNERS'
TABLES
x_ekpa = li_xekpa.
The problem is, when we call the MM_READ_PARTNERS function it causes partners to be dropped off the PO during PO create. I have commented out the call and the partners are not dropped.
2005 Nov 22 3:59 PM
Hi
Try passing export parameter APPLICATION = 'P' ,
this should return partner in x_ekpa.
Regards
Kalpana
2005 Nov 22 4:09 PM
2010 Nov 10 12:11 PM
Hi,
I'm having The same problem with the MF MM_READ_PARTNERS.
Can you help me plz ??
2013 Mar 27 1:31 PM
Just had the same problem.
You have to pass parameter PARGR . Then it worked without dropping the partners.
CALL FUNCTION 'MM_READ_PARTNERS'
EXPORTING
application = 'P'
PARGR = ls_t161-pargr
TABLES
x_ekpa = lt_xekpa.
2016 Feb 23 12:48 PM
Thank you so much Paul. That worked perfectly in my case. May I ask you how you found this out?
2016 Feb 24 3:02 PM
Well I think this was just a look into the where-used list. 3 years ago...
2022 Sep 26 3:59 PM
You can use FM "MM_DISPLAY_PARTNERS" instead of "MM_READ_PARTNERS" to avoid partner deletion problem.