‎2007 Jul 06 1:58 PM
I want to create a PO using BAPI...
Can nebdy give me a sample program as to how to do it...
How to use BAPI_PO_CREATE1 ??? What are the basic parameters needed to create a PO using it .
Please help !!!
‎2007 Jul 06 2:01 PM
Hi,
plz check the following thread........
/people/sap.user72/blog/2005/03/22/sample-code-to-create-purchase-order-using-bapi-in-r3
***do reward if usefull
vijay
‎2007 Jul 06 2:03 PM
Hi!
The followings are required (in most cases)
- POHEADER
- POITEM
- POSCHEDULE
With these you are able to create a new PO.
Just fill all those field, you fill manually in ME21N.
Regards
Tamá
‎2007 Jul 06 2:06 PM
Look at excellent weblog to create PO
/people/sap.user72/blog/2005/03/22/sample-code-to-create-purchase-order-using-bapi-in-r3
Thanks
Seshu
‎2007 Jul 06 2:09 PM
You can use the following :
CALL FUNCTION 'BAPI_PO_CREATE'
EXPORTING
PO_HEADER = PO_HEAD
IMPORTING
PURCHASEORDER = H_EBELN
TABLES
PO_ITEMS = PO_ITEM
PO_ITEM_SCHEDULES = PO_SCHED
PO_ITEM_ACCOUNT_ASSIGNMENT = PO_ACCT
PO_ITEM_TEXT = PO_TEXT
EXPORTING
PO_HEADER = PO_HEAD
IMPORTING
PURCHASEORDER = H_EBELN
TABLES
PO_ITEMS = PO_ITEM
PO_ITEM_SCHEDULES = PO_SCHED
PO_ITEM_ACCOUNT_ASSIGNMENT = PO_ACCT
PO_ITEM_TEXT = PO_TEXT
After this u can use 'BAPI_TRANSACTION_COMMIT'
Thanks,
Rakesh.