Application Development 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: 

Hi everyone, does anyone know what is the OK-code for TAB

Former Member
0 Kudos

Hi

As the question above, anyone know what is the okcode for TAB ( the tab on the keyboard ).

Like ENTER is /00 and ENTR.

so what is the code for TAB

Thanks

Guanwei

1 ACCEPTED SOLUTION

gopi_narendra
Active Contributor
0 Kudos

Put /H in the command prompt and click the TAB.

Now in the debug check what is there in SY-UCOMM.

TAB OK-Code is not unique like ENTER OK-Code, so check it the above way.

Regards

Gopi

9 REPLIES 9

gopi_narendra
Active Contributor
0 Kudos

Put /H in the command prompt and click the TAB.

Now in the debug check what is there in SY-UCOMM.

TAB OK-Code is not unique like ENTER OK-Code, so check it the above way.

Regards

Gopi

0 Kudos

hi thanks for reply,

i have enter /h and he debugging check is on , but when i click on the TAB. it didnt appear anything the TAB just move to the next textfield, and i cant see any SY-UCOMM. pls guide me more

thanks

guanwei

0 Kudos

I jst tried it that way, i could find the SY-UCOMM

Ok, another way to find out is..

Go to the Screen Painter of the screen..

Now go to the Layout and now in this layout editor you can see the OK-Code of the tab .

By double clicking the TAB, you will get the TAB properties where in the OK-Code is given.

Regards

Gopi

0 Kudos

hi,

I am not sure if TAB invokes a function code. I think Enter is just a special case.

0 Kudos

hi

i need to confirm 1 thing, hmm the TAB i talk about is the one on the keyboard not the one in the FB60(payment tab, tax tab).

Thanks

guanwei

0 Kudos

Oooh i am sorry, i over looked into it.

TAB(keyboard) does not have any function code.

Regards

Gopi

0 Kudos

hi thanks for reply,

T_T this is a sad news

thanks

guanwei

Former Member
0 Kudos

HI,

pressing tab will not trigger any okcode.if u press the tab it will simply go to the next field of button. that means cursor position is getting changed. u can handle it by using the code like this


  perform bdc_field       using 'BDC_CURSOR'
                                'MR21HEAD-XBLNR'."this is the next field

FORM BDC_FIELD USING FNAM FVAL.
  CLEAR bdctab.
  bdctab-FNAM = FNAM.
  bdctab-FVAL = FVAL.
  APPEND bdctab.
ENDFORM.

rgds,

bharat.

0 Kudos

hi,

i know about this but it cannot put cursor on a button right?

for my problem because there are too many button with the same function code. so i have to use tab to select the next button.

thanks

guanwei