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: 

How to submit a report withour showing the ALV?

Former Member
0 Kudos

Hi all,

I need to make a submit (or any other suggestion is acepted) to the report rkeb0601 (trx KE24), get the result from that execution in an internal table or something, to create a diferent ALV output. I don't want to see the ALV that rkeb0601 is showing when I make the submit.

Any idea how I can make this?

Thanks a lot!

Regards.

7 REPLIES 7

Former Member
0 Kudos

Hi,

In your z-program use SUBMIT program EXPORTING LIST TO MEMORY and return.

then you can use FM LIST_FROM_MEMORY to get the list in an internal table.

Regards,

Himanshu

0 Kudos

Yes, but the submit report EXPORTING LIST TO MEMORY AND RETURN will show me the ALV of the report, and i didn´t want to see it.

Any idea?

0 Kudos

Hi,

Dun submit the report. Just use EXPORT statement in your program and pass the required values to that report.

In that report u can read those vales by creating a enhancement spot and using IMPORT statement. Once the required internal table gets populated again use EXPORT statement there in a enhancement spot and IMPORT it in your program.

Thanks,

Harini

0 Kudos

Hi,

Unfortunatelly I'm working with 4.6c version, so enhacement is not an option. I already search for an user-exit but i didn´t find one.

The other thing that cames to my mind is to copy rkeb0601 but doing this I also have to copy the report rk2c11000 because it's being called dynamically from rkeb0601. It seems a lot of work.

Regards,

Roxana.

0 Kudos

Unfortunatelly I'm working with 4.6c version, so enhacement is not an option. I already search for an user-exit but i didn´t find one.

The other thing that cames to my mind is to copy rkeb0601 but doing this I also have to copy the report rk2c11000 because it's being called dynamically from rkeb0601. It seems a lot of work.

Yes, it seems to be a lot of work but copy is the best option.

Former Member
0 Kudos

Hi,

A time consuming solution, clone the standard program and remove the part of the code that populates teh ALV.

Then use SUBMIT stmt to return the values from that report.

Regards,

Subramanian

oguzhans
Explorer
0 Kudos

Hi,

You can use the sample code below:

  cl_salv_bs_runtime_info=>set( display  = abap_false
metadata = abap_false
data = abap_true ).

SUBMIT rcs15001 WITH pm_idnrk = iv_idnrk
WITH pm_werks = iv_werks
WITH pm_mehrs = 'X' "Multilevel
AND RETURN .
TRY.
cl_salv_bs_runtime_info=>get_data_ref( IMPORTING r_data = DATA(lobj_data) ).
ASSIGN lobj_data->* TO FIELD-SYMBOL(<lfs_data>).
CATCH cx_salv_bs_sc_runtime_info.
ENDTRY.

IF <lfs_data> IS ASSIGNED.
DATA: lt_stpov_alv TYPE TABLE OF stpov_alv.
lt_stpov_alv = CORRESPONDING #( <lfs_data> ).
ENDIF.