‎2008 Jul 25 7:37 AM
Hi All..
Is there any BAPI available for uploading source list for a material??
Transaction involved - ME01.
Thanks & Regards,
Nidhi
‎2008 Jul 25 7:41 AM
Hi,
Please try to use these FM-
'ME_MAINTAIN_SOURCE_LIST'. or
BAPI_SOURCEDETERMIN_GETSOS
Thanks & Regards,
Chandralekha.
‎2008 Jul 25 7:42 AM
‎2008 Jul 25 7:48 AM
Hi,
Try the below function module ME_UPDATE_SOURCES_OF_SUPPLY which is being used by standard transaction ME01.
sample code
REPORT ZTEST.
DATA: BEGIN OF XORD OCCURS 50.
INCLUDE STRUCTURE EORD.
DATA: UPDKZ,
END OF XORD,
YORD type table of EORD with header line.
clear xord.
clear yord.
xord-MATNR = '100-100'.
xord-WERKS = '3000'.
xord-ZEORD = '00001'.
xord-ERDAT = '20080403'.
xord-ERNAM = 'SAPDEV02'.
xord-VDATU = '20080403'.
xord-BDATU = '20100510'.
xord-LIFNR = '0000001000'.
xord-FLIFN = 'X'.
xord-EKORG = '1000'.
xord-UPDKZ = 'U'.
append xord.
move-corresponding xord to yord.
append yord.
CALL FUNCTION 'ME_UPDATE_SOURCES_OF_SUPPLY' IN UPDATE TASK
EXPORTING
I_CHANGEDOCUMENT = 'X'
TABLES
XEORD = XORD
YEORD = YORD.
COMMIT WORK.
Cheers,
vasavi.v
‎2008 Jul 25 8:57 AM
Thanks All for your replies...
I have already tried ME_MAINTAIN_SOURCE_LIST function module - It will just maintain the source list, there is no updation even through COMMIT WORK.
BAPI_SOURCEDETERMIN_GETSOS will give you the the list of Source of Supplies , my requirement is to upload entries ( similar to ME01 )
I have already tried ME_UPDATE_SOURCES_OF_SUPPLY function module , but it will just upload the data we provide ; in that case we will not be able to track all the errors which occurs due to invalid entries.
I need to track errors as well ; the way we get errors in BDC .
So, Please let me know if there is a BAPI available for this purpose...or is there any other way ( other than BDC ) to do the same !!!
Regards,
Nidhi
‎2023 Sep 27 7:12 PM
Hello,
I know it's several years too late but for the ones like me who are seeking to use ME_UPDATE_SOURCES_OF_SUPPLY while having a log : you can use the class cl_mmpur_source_list.
Sample code :
DATA :