Skip to Content
0
Aug 02, 2016 at 12:31 PM

Reading Dynpro values after PAI and Buttons with Functioncode 'E'??

117 Views

Hi there,

this is my first question for the Community, so I hope this discussion pool is right and no one else asked this question before:

So here is my problem:

I have called a Dynpro and defined in PAI:

PROCESS AFTER INPUT.

MODULE DYNPRO_CANCEL AT EXIT-COMMAND.

and some field checks :

FIELD WA_VERARBEITUNG-KUNNR MODULE KUNNR_PRUEFEN.

In Module DYNPRO_CANCEL I process the CANCEL, BACK and EXIT Buttons with Functioncode 'E' !

Functioncode 'E' to override the Field checks.

Now I want to create a Message for this Cancel-Buttons like 'Data have change. Would you like to save?'.

For that I have to check the Dynpro values for changing.

So here is the Problem because at Functioncode 'E' the Dynpro gives only ok_code back and no values to check them against the original wa (workarea).

I have tried to work with CALL FUNCTION 'DYNP_VALUES_READ' to read all the data manually, but the return values are all Char255 and I can't convert all values back in original data. I can convert most of them but not for all :-(

So here is the question:

Are there any other option to realize such a scenario like reading Dynpro values after PAI and Buttons with Functioncode 'E' or comparing the Dynpro values with workarea at this time???

I hope I can explain this question correctly and you have an answer for this problem.

Thanks a lot for helping.


Oliver Schmidt