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

interactive report

Former Member
0 Likes
963

hi all

i need to create an interactive report..so that after executing when i click at one record in the basic list...using that record i need to populate a selection screen (which belongs to another program ) and the output of the second program will come on the screen.

but the selection screen of the second program wont appear infront ....need to skip that....

i tried with call transaction but not working......

can anybody help me ?

it is very urgent

regards

ranjilla

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
945

Hai ranjilla

Try diz code..i used this once…first one is the main program…

Create another program named ZBOOK.

*don’t forget to create a transaction named ZBOOK (give the program name as zbook while creating transaction)

I think it will work

Main program

tables : SBOOK.

data: itab type standard table of sbook with header line.

START-OF-SELECTION.

WRITE: 'Select a booking',

/ '----


'.

SKIP.

select carrid connid from sbook into corresponding fields of table itab where carrid = 'LH'.

append itab.

loop at itab.

WRITE: /10 itab-CARRID, itab-CONNID.

HIDE: itab-CARRID, itab-CONNID.

clear itab-CARRID.

clear itab-CONNID.

endloop.

AT LINE-SELECTION.

IF ITAB-CARRID NE SPACE AND ITAB-CONNID NE SPACE.

SET PARAMETER ID: 'CAR' FIELD itab-CARRID,

'CON' FIELD itab-CONNID.

CALL TRANSACTION 'ZBOOK' AND SKIP FIRST SCREEN.

endif.

ENDIF.

Second program

REPORT ZBOOK .

tables : sbook.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-B01.

SELECTION-SCREEN SKIP.

PARAMETERS:p_carrid LIKE sbook-carrid memory id CAR,

P_connid LIKE sbook-connid memory id CON.

SELECTION-SCREEN END OF BLOCK B1.

write :' welcome to output'.

WRITE:/ p_carrid, p_connid.

If it is helpful,plz reward

6 REPLIES 6
Read only

Former Member
0 Likes
945

Hi,

Before using the call screen u have to st the parameter ids using the stmt

SET PARAMETER.....

Then use

CALL TRANSACTION..... SKIP FIRST SCREEN.

This will definitely help.

If second program is an excultable reprt then u can use SUBMIT stmt also.

Reward if useful

Thanks Arjun

Read only

Former Member
0 Likes
945

set the parametr ids' for that the screen.

and use call tranasction...... and skip first screen.

Thanks

Read only

Former Member
0 Likes
945

make use of the below syntax to call other report program.

SUBMIT <report program name>... AND RETURN

reward points if useful...................

Read only

Former Member
0 Likes
946

Hai ranjilla

Try diz code..i used this once…first one is the main program…

Create another program named ZBOOK.

*don’t forget to create a transaction named ZBOOK (give the program name as zbook while creating transaction)

I think it will work

Main program

tables : SBOOK.

data: itab type standard table of sbook with header line.

START-OF-SELECTION.

WRITE: 'Select a booking',

/ '----


'.

SKIP.

select carrid connid from sbook into corresponding fields of table itab where carrid = 'LH'.

append itab.

loop at itab.

WRITE: /10 itab-CARRID, itab-CONNID.

HIDE: itab-CARRID, itab-CONNID.

clear itab-CARRID.

clear itab-CONNID.

endloop.

AT LINE-SELECTION.

IF ITAB-CARRID NE SPACE AND ITAB-CONNID NE SPACE.

SET PARAMETER ID: 'CAR' FIELD itab-CARRID,

'CON' FIELD itab-CONNID.

CALL TRANSACTION 'ZBOOK' AND SKIP FIRST SCREEN.

endif.

ENDIF.

Second program

REPORT ZBOOK .

tables : sbook.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-B01.

SELECTION-SCREEN SKIP.

PARAMETERS:p_carrid LIKE sbook-carrid memory id CAR,

P_connid LIKE sbook-connid memory id CON.

SELECTION-SCREEN END OF BLOCK B1.

write :' welcome to output'.

WRITE:/ p_carrid, p_connid.

If it is helpful,plz reward

Read only

Former Member
0 Likes
945

hai

thanks 2 alllllll.....

Read only

Former Member
0 Likes
945

Hi ,

Use SKIP SCREEN extension in CALL TRANSACTION.

Reward if helpful.

Regards,

Ramya