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: 

SUBMIT rkaep000 for KOB1 - in Background

Former Member
0 Kudos
1,724

Hello,

We have a Z report program which submits the report RKAEP000 and gets the table output using the cl_salv_bs_runtime_info / get_data_ref. The issue is this program works fine in foreground across all systems ( DEV, QA and PROD ) but in background mode works only in DEV all for the same user.

Any inputs regarding what could be the reason the background option not working in QA or PROD? Below is the code snipet for this submit and data retrivel part.

CALL FUNCTION 'K_KOKRS_SET'
EXPORTING
i_kokrs = lv_kokrs
popup = '0'
IMPORTING
e_kokrs = lv_kokrs.

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

SUBMIT rkaep000
WITH p_tcode = 'KOB1'
WITH aufgr = p_aufgr
WITH kstar IN s_kstar
WITH r_budat BETWEEN s_erdat-low AND s_erdat-high
WITH p_usedb = 'X'
WITH p_usear = ' '
AND RETURN.

cl_salv_bs_runtime_info=>get_data_ref( IMPORTING r_data = lr_bill_data ).

2 REPLIES 2

Former Member
0 Kudos
703

HI ,

I have got same requirement like need to display T.code-KOB1 output to display ALV format, if you don't mind please share me the code for this program to My mail.Id- chinnanagaseshu@gmail.com. if you share it is very useful for me .

Thanks,

Seshu.

0 Kudos
534

Hi Nagaseshu. Did you received the code for this KOB1 to display alv?