‎2009 May 23 9:57 AM
hi all,
i made a table control control in screen number '1001'. and i made a push button for coming back on same transaction but problem is that when i m writing the code in PAI of screen '1001' then its making no effect, can anyone please tell me how it'll work? can i enable the tool bar icon's like 'Back' , 'Cancel'....etc.
regards saurabh.
‎2009 May 23 10:06 AM
Have you maintained a Function code for the pushbutton ?
Regards
Karthik D
‎2009 May 23 10:06 AM
Have you maintained a Function code for the pushbutton ?
Regards
Karthik D
‎2009 May 23 10:09 AM
yeah i have maintained... and that is 'BACK'.
i m writing code in PAI of screen '1001' as :
case ok_code.
when 'BACK'.
call transaction 'MM01'.
endcase.
then in output its making no effect.
regards..
‎2009 May 23 10:17 AM
Did you check whether OK_CODE is passed to the proggram?
Otherwise use as ;
OK_CODE = SY-UCOMM.
CASE OK_CODE.
........
................Regards
Karthik D
‎2009 May 23 10:19 AM
yes karthik i have defined it in as :
data : ok_code like sy-ucomm.
regards.
‎2009 May 23 10:23 AM
Hi,
Its okay man, are you assigning the sy-ucomm value to ok_code in PAI? Have u debugged the program and check if the function code is passed to ok_code.
Also give ok_code in the element list of your screen in the screen painter. It will be on the last row of the element list with type OK. Enter OK_code there.
Check all the above and revert back,
Regards
Karthik D
‎2009 May 23 11:06 AM
hey karthik i had also defined the same in element list....but it still not working...
regards...
‎2009 May 23 11:16 AM
Hi,
Still you have not answered my question;
Have you debugged whether the value of Function code is passed to the OK_CODE variable?
Write a Break-Point statement above the CASE OK_CODE. and in the debugger check the value of OK_CODE.
Regards
Karthik D
‎2009 May 23 11:27 AM
Hi,
Hope you have assinged OK_CODE inside the 1001 screen Element Screen.
And, the above OK_CODE is declared in your program. (Data: OK_CODE type sy-ucomm.)
If the above are done, your program should be working.
Then, check the value of OK_CODE in PAI:
IF OK_CODE = 'BACK', then write 'LEAVE TO SCREEN 0'. This will take you back to the called screen.
Rgds,
Ramani N