Application Development 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: 

get internal table from submitted program.

ronaldo_aparecido
Contributor
0 Kudos
499

hello community

Is it possible to run a submit command to the fbl3n program RFITEMGL and then get the final internal table that displays the report (but I don't want to display the report) and exit the submit and continue my normal program? Or is it better to create a copy of the program?

but I don't want to display the report

4 REPLIES 4

matt
Active Contributor
458

Rule one It is never better to copy a standard program.

If you can't use the standard SUBMIT options with appropriate function modules, then enhance the standard program, so that the internal table is persisted in a DB table. Then in your calling program, read the data from there.

Or find if there's a nice class/method or FM that gives you the same data.

VXLozano
Active Contributor
0 Kudos
458

Rule one is to never touch SAP standard tables manually, but rule two is to not clone standard programs. But you are basically right, as usual.

FredericGirod
Active Contributor
458

I thought rule one was Never talk about standard object copy

Sandra_Rossi
Active Contributor
458

The output is ALV, so you can get the ALV data using CL_SALV_BS_RUNTIME_INFO (among other possibilities). Already explained in the forum, blog posts and so on.