mustafayalcin.com

Tag: system field

ABAP System Field SY-DATAR

by on Eyl.03, 2010, under SAP

The ABAP System Field SY-DATAR is used in processing the input of a classical dynpro screen. Is set to ‘X’ (at PAI) if one or more input field were modified by the user, otherwise empty.

Ideal to check if a screen needs saving before an exit!

Implementation:

– In the PBO (right at the beginning) place the following code

IF sy-datar EQ ‘X’.

save = sy-datar.

ENDIF.

– then when it comes to exiting the screen

IF save EQ ‘X’. (…)

– now you can ask the user if he desires to save etc, just remember to “CLEAR save” whenever there is a reinitialization

should you have a screen that requires a lot of performance when saving, simply integrate sy-datar! Should the user already have saved the screen and then click save again (some users do so to be sure they have saved), you can simply exit the user-command if the global save variable is initial (as long as you also clear it when actually saving).

ABAP System Field SY-DATAR için yorumlar kapalı :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...