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

fcode leaving Dynpro field

Former Member
0 Likes
871

Hello All

My search in the forums has brought me nothing. Maybe someone can help. How can I have the action of leaving an i/o defined dynpro field (using tab or clicking into a different dynpro field) create an event that will go through PAI / PBO?

Thanks for any ideas.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
802

u have to write in PAI

c some examples...

REPORT demo_dynpro_tabstrip_local.

REPORT demo_dynpro_tabstrip_server.

REPORT demo_custom_control .

Ramesh..

6 REPLIES 6
Read only

Former Member
0 Likes
803

u have to write in PAI

c some examples...

REPORT demo_dynpro_tabstrip_local.

REPORT demo_dynpro_tabstrip_server.

REPORT demo_custom_control .

Ramesh..

Read only

Former Member
0 Likes
802

you can create a new fcode at this point using this class :

CALL METHOD CL_GUI_CFW=>SET_NEW_OK_CODE

EXPORTING

NEW_CODE = NEW_CODE.

Now a fcode NEW_CODE will be created.You can do some coding for this fcode and after execution control will finally go back to PBO as usual.

Read only

Former Member
0 Likes
802

Thanks for the prompt responses. Sorry if I might have been unprecise in my question. What I would like to do is react to the key-press of the TAB key on the keyboard. This will set the cursor on the next line of a table-control and within this process values in other fields of the dynpro will be recalculated. Would it be possible for you to explain a bit in more detail how your answers can help?

Thanks

Read only

0 Likes
802

Dont you just then want to to set the cursor when your OK code changes to ..'XXXX'. just set cursor then. hope that helps. if so POINTS

Regards

Read only

Former Member
0 Likes
802

hi Harry Fumey ,

enter the /H command in the command box then just Press the TAB key and see the SY-UCOMM value(if not create a Fcode from SET PF-STATUS), what is getting, lets say if it getting 'TAB' then write a module in the PAI. just write as normal as we write for a function code

If SY-UCOMM = 'TAB'.

Calculate the fields here which you want to calculate.

Endif.

hope you get some idea from this one

Regads

Sudheer

Read only

0 Likes
802

Hello Sudheer

Yes, I would like to do this but if for example I start transaction xd02 and then use /H to start debugging mode..... using the TAB key on the keyboard does not trigger any event. No fcode at all is issued and only after klicking a button or pressing the ENTER key does the program go into debugging mode. Please let me know if you get a different result then I do.