on 04-25-2006 12:07 PM
hi frnd's,
I had a selection-screen 9000.
When i press execute button in that screen it will display the alv-list.
I had given my own pf-status in the alv list.
when 'back'.
call selection-screen 9000.
I had given for back button.It goes to screen 9000.
but when i click the back in screen 9000 it should leave the program,but it is again back to alvlist.
hlp me pls.
Hi,
Why do u want to write different code if your work is getting solved by this??
Anyways,
For going back from ALV, you have written your code in PAI of screen.
For going back from selection-screen, write your code in event
At User-Command.
Again over here, use Leave to screen 0.
Regards,
Tanveer.
If ur satisfied with the answer, please close the thread and please reward points.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Leave to Screen 0 will do the same job for you.
Declare this in the PAI event of the screen.
Regards,
Tanveer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
<b> I_CALLBACK_USER_COMMAND = 'USER_COMMAND'</b>
I_GRID_TITLE = ' GE-IS LIBRARY'
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = IT_FIELDCAT_RAMS_SCREEN
IT_EVENTS = IT_EVENTS
TABLES
T_OUTTAB = IT_RAMS_SCR_FLDS
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
P_SELFLD TYPE SLIS_SELFIELD.
case p_ucomm.
when 'BACK'.
leave to screen 0.
endcase.
ENDFORM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Check for the sy-ucomm in PAI event of the screen.
At user-command.
case sy-ucomm.
when 'BACK'.
leave to screen 0.
endcase.
Regards,
Tanveer.
mark helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi suganya ,
case sy-ucomm.
when 'BACK'.
leave to screen 0.
endcase.
Regards,
Tanveer.
Mark helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suganya,
In the processing of the back button , you can use the 'leave program' statement. This will do the job.
Regards,
Aniket
Please mark useful answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Suganya,
Use LEAVE TO SCREEN 0.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suganya ,
Set pf-status is always set in the PBO.
After you define pf-status, in the menu painter click on function keys .
There you write BACK against the icon back ( arrow pointing left) . Activate it. Go back to the main program.
When you run,You should get the desired output.
Thanks and Regards,
Kunal.
Message was edited by: Kunal Kumar
Hi,
Dont call selection-screen 9000.
That will call selection-screen 9000 from ALV which is already a screen back of ALV.
As a result you will just pile up the screens .
Use Leave to screen 0.
It will take u to previous screen.
That shall solve your problem
Regards,
Tanveer.
Message was edited by: Tanveer Shaikh
tr ythis
when 'BACK'.
Leave to screen 0.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.