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

Table control problem

Former Member
0 Likes
806

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
774

Have you maintained a Function code for the pushbutton ?

Regards

Karthik D

8 REPLIES 8
Read only

Former Member
0 Likes
775

Have you maintained a Function code for the pushbutton ?

Regards

Karthik D

Read only

0 Likes
774

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..

Read only

0 Likes
774

Did you check whether OK_CODE is passed to the proggram?

Otherwise use as ;

OK_CODE = SY-UCOMM.
CASE OK_CODE.
........
................

Regards

Karthik D

Read only

0 Likes
774

yes karthik i have defined it in as :

data : ok_code like sy-ucomm.

regards.

Read only

0 Likes
774

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

Read only

0 Likes
774

hey karthik i had also defined the same in element list....but it still not working...

regards...

Read only

0 Likes
774

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

Read only

former_member229729
Active Participant
0 Likes
774

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