‎2009 Nov 16 1:47 PM
Hello,
I want to submit transaction CJI3 from my report.
I need to pass parameters to the selection screen.
In CJI3 there is further selection criteria, where I can add some fields.
I'm using function : CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = 'RKPEP003'
IMPORTING
SP =
TABLES
selection_table = rspar_lt
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3
.
i load values to rspar_lt and then use submit to CJI3 using the rspar_lt.
My problem is that the fields in further selection criteria are not filled.
I would like to know if its possible.
Regards
Yifat
‎2009 Nov 16 2:01 PM
Hello,
Use SUBMIT USING SELECTION-SCREEN scr .
When you execute the report, the system uses the selection screen number that you specify in the scr field. This must be a selection screen defined using the SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statements.If you omit the addition, the system uses the standard selection screen 1000.
This addition allows you to start the same report in different situations, using a different selection screen each time.
Anil.
‎2009 Nov 16 2:24 PM
Hi,
try this way...
1 .
Submit report in background and creating spool
SUBMIT RKPEP003 USING SELECTION-SET p_var "P_var is the variant of the CJI3 program....
EXPORTING LIST TO MEMORY AND RETURN.
COMMIT WORK AND WAIT.
2.
DATA: fcode TYPE sy-tcode VALUE 'CJI3', "Transaction u r using
w_disvar TYPE disvariant-variant VALUE '/BPC_ALL'. "Layout Varint
SUBMIT RKPEP003
WITH r_budat IN s_budat " r_budat are the sameple variable like screen variables..
WITH kostl IN s_kostl
WITH kstar IN s_kstar
WITH p_disvar = w_disvar
WITH p_tcode = fcode
WITH p_kokrs = 'LSI1'
WITH p_maxsel = '99999999'
EXPORTING LIST TO MEMORY AND RETURN.
Regards,
Prabhudas
‎2015 May 29 6:29 PM
‎2015 May 29 6:51 PM