2009 Apr 06 10:59 AM
Hi,
I'm using module AT EXIT-COMMAND in my dynpro flow logic. As far as I know, data transport doesn't occur when function code of type 'E' is triggered,except for OK code. But I need all the dynpro fields to be transported even for 'E' type function, since I have implemented buttons 'Back', 'Exit', and 'Cancel' as 'E' type function, and I need to propose the save data to the user before exit. Thus, I need the dynpro fields to populate ABAP fields so I can save them. Is there any way how to do this?
Thanks in advance.
Best regards,
Tomas
Hi,
I'm using module AT EXIT-COMMAND in my dynpro flow logic. As far as I know, data transport doesn't occur when function code of type 'E' is triggered,except for OK code. But I need all the dynpro fields to be transported even for 'E' type function, since I have implemented buttons 'Back', 'Exit', and 'Cancel' as 'E' type function, and I need to propose the save data to the user before exit. Thus, I need the dynpro fields to populate ABAP fields so I can save them. Is there any way how to do this?
Thanks in advance.
Best regards,
Tomas
2009 Apr 06 12:47 PM
Hi,
Try using fm DYNP_VALUES_READ . It is usually used in POV where data are not transported too, most likely it will work here too.
Regards
Marcin
2009 Apr 06 1:46 PM
Hi,
thanks a lot, this works together with FM CAT_GET_DYNPRO_FIELDLIST to get the actual fields of the screen.
Regards,
Tomas
2009 Apr 06 1:18 PM
Hi Tomas,
even you can write your own logic Field validation ...
process after input.
Chain.
* << write your Own logic
endchain.
you can write your own logic at at AT EXIT-COMMAND ...
module user_command_0200 input.
* << write your Own logic
case ok.
*------Leave screen
when 'BACK'.
leave to screen 100.
*------Leave transaction
when 'EXIT'.
leave program.
*------Select sales item details
When Others.
endcase.
or you can write own logic at ..
process after input.
module user_command_0200.
module user_command_0200 input.
case ok.
*------Leave screen
when 'BACK'.
leave to screen 100.
*------Leave transaction
when 'EXIT'.
leave program.
*------Select sales item details
when 'OTHERS'.
* << "Write your own logic
endcase.
ENDmodule.
Regards,
Prabhudas