Skip to Content
0

SUBMIT rkaep000 for KOB1 - in Background

Feb 09, 2017 at 08:19 AM

160

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded

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
* Please Login or Register to Answer, Follow or Comment.

0 Answers