2007 Oct 02 4:40 PM
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?
2007 Oct 02 4:47 PM
Well, I guess you will still be able to use the EXPORT LIST TO MEMORY AND RETURN option of SUBMIT.
Rob
Hi,
You can use EXPORT and IMPORT statements for moving the data from the Report to the BAPI.
Regards,
Abhishek Jolly
2007 Oct 02 4:47 PM
Well, I guess you will still be able to use the EXPORT LIST TO MEMORY AND RETURN option of SUBMIT.
Rob
2007 Oct 02 5:06 PM
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
2007 Oct 02 5:09 PM
Sorry - i misread it. Pass the file back as a table from the BAPI.
rob
2007 Oct 02 5:36 PM
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?
2007 Oct 02 5:38 PM
Hi,
You can use EXPORT and IMPORT statements for moving the data from the Report to the BAPI.
Regards,
Abhishek Jolly
2007 Oct 02 5:39 PM
The submitted program can simply export the table to memory and the FM can then import it after the submit.
Rob
2007 Oct 02 6:10 PM
2007 Oct 02 6:19 PM
2007 Oct 02 6:25 PM
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.
2007 Oct 02 6:55 PM
Thanks Srinivas. Your second options works. Did award the points
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |