‎2007 Mar 08 9:44 AM
Hi all,
I have requirent to create a PO by using Bapi based on text file sent from
interface system here with the file layout.
1.plant (ekko-werks)
2. material EKPO-MATNR
3. pur.group EKKO-EKGRP
4.vendor EKKO-LIFNR
5.shiping ins EKPO-EVERS
6.quantity EKPO-MENGE
please some one help me step setp coding using by bapi.
i know using BDC but no idea how to use BAPI.
‎2007 Mar 08 9:48 AM
Hi,
segregate the fields data from the flat file and
Use the BAPI
BAPI_PO_CREATE
and pass the values correctly.
Regards,
Anji
Message was edited by:
Anji Reddy Vangala
‎2007 Mar 08 9:50 AM
You can use BAPI_PO_CREATE. You can first play around with the BAPI in SE37, execute it with the values supplied to you and look for what the return table after each test call returns, till it gives you back a generated PO number.
Once you get to know which fields to use, then you can call the BAPI via normal CALL FUNCTION in your ABAP
‎2007 Mar 08 9:51 AM
Hello,
U can make use of the
BAPI_PO_CREATE1 Create purchase order
BAPI_PO_CREATE Create purchase order
BAPI_PO_GETDETAIL Display Purchase Order Details
BAPI_PO_GETITEMS List Purchase Order Items
BAPI_PO_GETITEMSREL List Purchase Orders for Release (Approval): New as of 4.0A
BAPI_PO_GETRELINFO Display Detailed Release (Approval) Information on Purchase Order
BAPI_PO_GET_LIST List Purchase Orders - Only up to 4.0A
Regards,
Vasanth