Skip to Content
avatar image
Former Member

SUBMIT rkaep000 for KOB1 - in Background

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 ).

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers