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

Data transport at PAI for EXIT-COMMAND

Former Member
0 Likes
689

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

3 REPLIES 3
Read only

MarcinPciak
Active Contributor
0 Likes
524

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

Read only

0 Likes
524

Hi,

thanks a lot, this works together with FM CAT_GET_DYNPRO_FIELDLIST to get the actual fields of the screen.

Regards,

Tomas

Read only

Former Member
0 Likes
524

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