10-29-2009 1:45 PM
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.
10-29-2009 2:03 PM
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
10-29-2009 2:16 PM
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?
10-29-2009 2:22 PM
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
10-29-2009 2:43 PM
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.
10-29-2009 2:46 PM
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.
10-29-2009 2:32 PM
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
04-17-2022 8:46 PM
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.