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: 
Read only

SUBMIT PROGRAM CJI3

ifat_bar
Participant
0 Likes
2,060

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,213

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.

Read only

Former Member
0 Likes
1,213

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

Read only

0 Likes
1,213

This message was moderated.

Read only

0 Likes
1,213

This message was moderated.