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

BAPI to create PO and GR

Former Member
0 Likes
561

Hi,

Can anybody send me some sample code to handle multiple files in application server. My requirement is to create an interface to create PO and GR from the file residing in Application server. Multiple files will be in application server. No selection screens are there. BAPI used are BAPI_PO_CREATE1 and BAPI_GOODSMVT_CREATE. And If anyone has already created this interface, please give me some idea of how to read multiple files and if possible send some sample code.

Any help will be greatly appreciated.

Regards,

Naveen

Hi,

Can anybody send me some sample code to handle multiple files in application server. My requirement is to create an interface to create PO and GR from the file residing in Application server. Multiple files will be in application server. No selection screens are there. BAPI used are BAPI_PO_CREATE1 and BAPI_GOODSMVT_CREATE. And If anyone has already created this interface, please give me some idea of how to read multiple files and if possible send some sample code.

Any help will be greatly appreciated.

Regards,

Naveen

2 REPLIES 2
Read only

amit_khare
Active Contributor
0 Likes
486

Use FM RZL_DIR_READ to read all the files from the given directory on Application server and then pick the one youy required and call OPEN DATAset accordingly.

You cannot load all files at one, you need to call them one after another.

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
486

Hi Naveen,

Go through this link.

BAPI_PO_CREATE1

BAPI_GOODSMVT_CREATE

http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm

http://www.4ap.de/abap/bapi_goodsmvt_create.php

Reward Points For the Helpful.

Regards,

Harini.S