Application Development 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: 

Can I execute a report and skip the first screen in CJE0

former_member498918
Participant
0 Kudos

I'm trying to call transaction CJE0 and skip the first screen. The report name I'm assigning to the PID REI appears in the screen field, but you have to click execute to continue to the report.

Is there something I'm missing.

Thanks

Karen

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Karen,

I presume, you want to skip the dialog that requests for the controlling area.

That is easy:

Place (before you do the call to transaction CJE0) the following commands:

DATA: v_carea TYPE kokrs VALUE 'IN01'.

SET PARAMETER ID 'CAC' FIELD v_carea.

You can of course change the value 'IN01' to your own value (or maybe determine it dynamically).

This will set the parameter for controlling area to a fixed value and therefore NO dialog will be diplayed.

Regards,

Rob.

10 REPLIES 10

Former Member
0 Kudos

Hi Karen,

I presume, you want to skip the dialog that requests for the controlling area.

That is easy:

Place (before you do the call to transaction CJE0) the following commands:

DATA: v_carea TYPE kokrs VALUE 'IN01'.

SET PARAMETER ID 'CAC' FIELD v_carea.

You can of course change the value 'IN01' to your own value (or maybe determine it dynamically).

This will set the parameter for controlling area to a fixed value and therefore NO dialog will be diplayed.

Regards,

Rob.

0 Kudos

The controlling area is set in the user defaults, so it doesn't ask for it. I tried adding it as a PID anyway, but it still shows the first screen with the report name in it.

I've just run the transaction CJE0 directly from the transaction box and notice that it comes up with a dialogue box asking for type of report. Is it possible to skip this dialogue box and then the report selection screen and run the report automatically.

Thank-you

Karen

Message was edited by: Karen Dean

0 Kudos

You can also try 'CALL TRANSACTION tcod USING itab', where, itab contains one or more screens in batch input format.

See details in the F1 help of call transaction.

Peter

0 Kudos

I've tried using the following code to run project reports without having to select the report name and exectue, but it is still leaving the user on the screen for CJE0 with the correct report name, but it's not skipping the screen and executing the report. Can you see what I'm doing wrong.

Thank-you for your help

Karen

-


Code -


data begin of bdcdata occurs 100.

include structure bdcdata.

data end of bdcdata.

data begin of itab occurs 10.

include structure bdcmsgcoll.

data end of itab.

data program like sy-repid.

program = '11ERL1A'.

bdcdata-program = 'SAPMKCEE'.

bdcdata-dynpro = '0500'.

bdcdata-dynbegin = 'X'.

append bdcdata. clear bdcdata.

bdcdata-fnam = 'RKB1D-REPID'.

bdcdata-fval = program.

append bdcdata. clear bdcdata.

call transaction 'CJE0' using bdcdata mode 'N'

messages into itab.

0 Kudos

Hi Karen,

Since this transaction is a tree-list execution, it is not feasible to do a call transaction using BDC. An alternative to call a specific report is another transaction CJEB which takes in a report name and a variant name as inputs and executes the report in the background.

If this doesn't satisfy your requirement, then you need to call the function module 'RKD_REPORT_START' as follows


CALL FUNCTION 'RKD_REPORT_START'
  EXPORTING
    applclass         = 'KP' ( From table TKEB1)
*   FUNCTION          = 'EXEC'
    repid             = '11ERL1A'
*   I_VARIANT         =
*   RSTI_CALL         = ' '
*   SMODUS            = 'N'
    subclass          = '01' ( From table TKEB1)
    tabname           = 'RPSCO_X'( From table TKEB1)
*   I_INFOMODE        = ' '
* TABLES
*   P_VARTAB          =
*   E_TECHTAB         =
* CHANGING
*   C_TS_VRANGE       =
          .

Please let me know if this works for you.

Regards,

Srinivas

0 Kudos

That works now. Thank-you very much for your help.

Karen

0 Kudos

Hi Karen,

You liked the answer, but did you forget to give points?

See: /people/mark.finnern/blog/2004/08/10/spread-the-love for directions.

Click on the Yellow Star icon in each reply.

You can give:

1 - 10 pointer (solves problem, marks as answered)

2 - 6 pointers (very helpful)

Lots of 2 pointers (helpful)

This time I did it for you, but you can add or change points.

Cheers,

Linda (and Mark Finnern)

0 Kudos

Hi Srinivas,

I have more or less the same problem. I want to submit the report 'rvv50r10c' (trnasction VL10C) but the control always stops at the first screen. How can get away with the first screen ?

TIA,

ZAM

0 Kudos

Hi ZAM,

I am not sure why you want to submit the report RVV50R10C. This is meant for collective processing of deliveries, and if your intention is to just schedule a job for it, then use transaction VL10BATCH. In the initial screen of this transaction, you can create a variant for the report RVV50R10C and then schedule a job using the variant.

Please let me know if this helps or if you have to do a submit, let me know why so that I can give you alternatives.

Srinivas

0 Kudos

Hi ZAMUser,

You can try this code:

perform bdc_dynpro using 'RVV50R10C' '1000'.

perform bdc_field using 'BDC_CURSOR'

'ST_VSTEL-LOW'.

perform bdc_field using 'BDC_OKCODE'

'=ONLI'.

perform bdc_field using 'ST_VSTEL-LOW'

'0001'.

perform bdc_dynpro using 'SAPMSSY0' '0120'.

REFRESH MESSTAB.

CALL TRANSACTION 'VL10C' USING BDCDATA

MODE 'E'.

The thing is, I think Karen did not put the next screen in the BDCDATA. Like in your case, you need to put in SAPMSSY0 0120 in the BDCDATA. Hope this will work.