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

Former Member
0 Likes
440

Hi ,

I have requirement to collect the data(Production Schedule) in SAP and should send this data out of SAP(Outbound).

In this case I am using BAPI to collect the data and this data should be send to middle layer in a file format.

How can we do this.Please help me.

Thanks

KCR

3 REPLIES 3
Read only

Manohar2u
Active Contributor
0 Likes
407

KCR,

If you have a BAPI which will list out the data in internal table format, you can directly download the same into application server, where middleware will be polling for this file.

then middleware will pickup and send across to the target system.

We should have common understandable conventions for your file between SAP and middleware.

Regds

Manohar

Message was edited by: Manohar Reddy

Message was edited by: Manohar Reddy

Read only

Former Member
0 Likes
407

Normally for any outbound files(files has to go from SAP) we place the file in the application server. then thru some shell programs/manually the file will be sent to that legacy system.

so use OPEN DATASET & TRANSFER & CLOSE DATASET commands to transfer your internal table contents to application server.

& inform your onsite people about this & get it confirmed from them.

regards

srikanth

Read only

Former Member
0 Likes
407

hi

once you have the internal table returned from the BAPI, you can post the file with internal table contents in the application server.

use OPEN_DATASET open a file

loop at the internal table

use TRANSFER to transfer the contents to the file

endloop.

CLOSE DATASET to close the file.

This is post a file in your application server.

Regards,

Richa