‎2007 Aug 29 7:48 PM
Friends,
I have a selection - screen , on execution of report I call a screen with ALV- first report display.
From that screen I again call another screen for ALV log -2nd report.
The Problem is like the when the user goes to 2nd report screen & then come back to 1st report screen & then from 1st screen to selection screen.
The values which were used on selection are disappeared .
The reason is I am calling submit report using selection screen as I can not use call
call screen 1000 (default-selection screen).
If I use set screen 0 .leave screen . It also doesn't work 1st time.
I need to press back button from 1st report to come to selection screen as many times as I visited to 2nd report.
It will work fine If I don't go to 2nd report at all.
How I can maintain the values retained on selection screen ?
Regards
Prashant
‎2007 Aug 30 8:33 AM
*******************************
REPORT ZTRIP_TEST.
parameters:
p_date like sy-datum,
P_TIME LIKE SY-UZEIT.
*******************************
NOW I CALL THIS REPORT FROM SECOND REPORT
**************************************************************
REPORT ZTRIP_TEST2 .
submit ZTRIP_TEST VIA SELECTION-SCREEN
WITH P_DATE = SY-DATUM
WITH P_TIME = SY-UZEIT.
**************************************************************
i hope it fulfills your requirement.
Reward points if useful, get back in case of query...
Cheers!!!
‎2007 Aug 30 10:01 AM
Hey i have written another piece of code for ur requirement.
U first run report ZTRIP_TEST. entering value into DATE and TIME field on selection-screen.
when you press F8 you are taken to another report ZTRIP_TEST2, there if u enter ur user-name correctly then you are taken back to the first program with selection-screen filled with previous date and time values entered.
**************************************************************
REPORT ZTRIP_TEST.
parameters:
p_date like sy-datum obligatory,
P_TIME LIKE SY-UZEIT obligatory.
SET PARAMETER ID 'TDT' FIELD P_DATE.
SET PARAMETER ID 'TUZ' FIELD P_TIME.
SUBMIT ZTRIP_TEST2 VIA SELECTION-SCREEN.
**************************************************************
################################################################
REPORT ZTRIP_TEST2 .
DATA:
P_TDT LIKE SY-DATUM,
P_TUZ LIKE SY-UZEIT.
PARAMETERS:
P_UNAME LIKE SY-UNAME OBLIGATORY.
IF P_UNAME EQ SY-UNAME.
GET PARAMETER ID 'TDT' FIELD P_TDT.
GET PARAMETER ID 'TUZ' FIELD P_TUZ.
submit ZTRIP_TEST VIA SELECTION-SCREEN
WITH P_DATE = P_TDT
WITH P_TIME = P_TUZ.
else.
MESSAGE ID '0' type 'I' number '0' with P_UNAME ' is not your username. Enter correct username...'.
ENDIF.
################################################################
Reward points if useful, get back in case of query...
Cheers!!!