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

Submit

Former Member
0 Likes
1,183

Hi,

I have a program which generates the output and the file.....I have included that program in my BAPI using submit statement.....

now i want only the file output to be passed to a stucture in my BAPI....any ideas?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,155

Well, I guess you will still be able to use the EXPORT LIST TO MEMORY AND RETURN option of SUBMIT.

Rob

10 REPLIES 10
Read only

Former Member
0 Likes
1,156

Well, I guess you will still be able to use the EXPORT LIST TO MEMORY AND RETURN option of SUBMIT.

Rob

Read only

0 Likes
1,155

actually my program output has different fields and the file has different fields.....i want only the file fields to be passed to a structure in my bapi

Read only

0 Likes
1,155

Sorry - i misread it. Pass the file back as a table from the BAPI.

rob

Read only

0 Likes
1,155

Rob:

I never worked with Submit statements....this is the first time.....

in my program, the file is in out_file internal table.....

now ,how do i include it in my submit statement?

Read only

0 Likes
1,155

Hi,

You can use EXPORT and IMPORT statements for moving the data from the Report to the BAPI.

Regards,

Abhishek Jolly

Read only

0 Likes
1,155

The submitted program can simply export the table to memory and the FM can then import it after the submit.

Rob

Read only

0 Likes
1,155

any sample code?

Read only

0 Likes
1,155

Lots - search the forum or use F1.

Rob

Read only

0 Likes
1,155

You have two options, either read the file that the submitted program created (don't forget to use AND RETURN with your SUBMIT statement) or EXPORT itab_file(internal table containing the data that is sent to the file) TO MEMORY ID file_itab and then in your BAPI, IMPORT itab_file FROM MEMORY ID file_itab.

Read only

0 Likes
1,155

Thanks Srinivas. Your second options works. Did award the points