10-19-2006 7:54 PM
BAPI_GOODSMVT_CREATE
Posted: Oct 18, 2006 10:57 AM Reply E-mail this post
Hi, All I am new to BAPI can one suggest me how to do this,
i need to create a function module Z_BAPI_GOODSMVT_CREATE in which i should call BAPI_GOODSMVT_CREATE .
the reason for this is,
Whenever a file is received, SAP XI will call the new function module Z_BAPI_GOODSMVT_CREATE to accomplish a goods movement and equipment record creation. this function will, in large part, consist of simply passing parameters to and from BAPI_GOODSMVT_CREATE. In addition, this process will need to derive the plant and storage location prior to calling the BAPI, and Z_BAPI_GOODSMVT_CREATE need to send an email alert to a distribution list should the BAPI fail for any reason.
The program should process every item on the file, when there is an error in processing any of the items, an email (subject and email content) should send out according to the alias in the email table. Then the program should continue to process the items in the file until the end of the program.
MY FILE FORMAT WILL BE
GOODSMVT_HEADER
Parameters Sample data Data from File/Default
PSTNG_DATE Current Date
DOC_DATE File Date
REF_DOC_NO Message ID
Parameters Sample data Data from File/Default
SENDER_ID sender ID
GOODSMVT_ITEM
Parameters Sample data Data from File/Default
MATERIAL 1000-CABINET Data from File
PLANT 1200 Get from PO line item in SAP
STGE W810 Get from PO line item in SAP
MOVE_TYPE 101 Default
ENTRY_QNT 1 Quantity data from File
PO_NUMBER 450983457 Purchase Order Number
PO_IT 00001 PO line item number data from File
MVT_IND B Default
GOODSMVT_SERIALNUMBER
Parameters Sample data Data from File/Default
MATD 0001 Data from File
SERIALNO TEST2 Serial Number Data from File
AND TELL ME HOW TO GET THE PLANT AND STORAGE DETAILS FROM THE POLINE ITEM BEFORE CALLING THE BAPI. AFTER GETTING THE PLANT AND STORAGE LOCATION HOW DO I STORE ALL THE DATA IN THE INT TABLE AND PASS THE DATA TO BAPI.
thank you
10-19-2006 8:02 PM
10-19-2006 8:02 PM
10-19-2006 8:15 PM
thanks for the reply
and could u tell me the logic after selecting the plant and stg location how will i store the data in a single internal table so that i can pass it to bapi. i mean the same internal table should have all the item details including plant and stg location.
10-19-2006 8:22 PM