Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

create a Puchase order using Bapi

Former Member
0 Likes
444

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.

3 REPLIES 3
Read only

Former Member
0 Likes
408

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

Read only

Former Member
0 Likes
408

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

Read only

Former Member
0 Likes
408

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