‎2008 Mar 13 6:49 AM
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
‎2008 Mar 13 7:04 AM
Hai ranjilla
Try diz code..i used this once first one is the main program
Create another program named ZBOOK.
*dont 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
‎2008 Mar 13 6:54 AM
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
‎2008 Mar 13 6:55 AM
set the parametr ids' for that the screen.
and use call tranasction...... and skip first screen.
Thanks
‎2008 Mar 13 6:55 AM
make use of the below syntax to call other report program.
SUBMIT <report program name>... AND RETURN
reward points if useful...................
‎2008 Mar 13 7:04 AM
Hai ranjilla
Try diz code..i used this once first one is the main program
Create another program named ZBOOK.
*dont 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
‎2008 Mar 13 7:11 AM
‎2008 Mar 13 8:08 AM
Hi ,
Use SKIP SCREEN extension in CALL TRANSACTION.
Reward if helpful.
Regards,
Ramya