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: 

Screens. Exiting from screen

Former Member
0 Kudos

How I can "catch" exiting from Screen (I need to make some actions with inputed data)

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

data : gv_bukrs like bsis-bukrs.

parameter : p_bukrs like bsis-bukrs.

gv_bukrs = p_bukrs.

write : gv_bukrs.

Use the FM DYNP_VALUES_READ, pass program name, dynpro number and request as A from your program.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

DYNAME = SY-REPID

DYNUMB = SY-DYNNR

TABLES

DYNPFIELDS = DYNP_VALUE_TAB.

DYNP_VALUE_TAB-FIELDNAME --> screen field name

DYNP_VALUE_TAB-FIELDVALUE --> coresponding screen field value

6 REPLIES 6

former_member755502
Participant
0 Kudos

Hi,

You can capture data in the screen elements in PAI as all entered data gets stored in one the table SCREEN. And whenever a user wants to come out of any screen, the user has to perform some action e.g. clicking on some button etc, this action can easily be captured through the function code of the respective button in PAI module.

Thank you.

0 Kudos

when press Back(F3)

0 Kudos

Hi

Use AT EXIT-COMMAND event.

This event is triggered when user performs an exit action, e.g. Back(F3).

Regards

Vijai

0 Kudos

no, it is no working

Former Member
0 Kudos

You can use system field: SY-UCOMM.

Regards

Eswar

Former Member
0 Kudos

hi

data : gv_bukrs like bsis-bukrs.

parameter : p_bukrs like bsis-bukrs.

gv_bukrs = p_bukrs.

write : gv_bukrs.

Use the FM DYNP_VALUES_READ, pass program name, dynpro number and request as A from your program.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

DYNAME = SY-REPID

DYNUMB = SY-DYNNR

TABLES

DYNPFIELDS = DYNP_VALUE_TAB.

DYNP_VALUE_TAB-FIELDNAME --> screen field name

DYNP_VALUE_TAB-FIELDVALUE --> coresponding screen field value