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

ALV and Dynpro-Fields

Peter_Lintner
Participant
0 Likes
794

Hi!

I've created a dynpro with an ALV-Grid for Data-Overview and a lot of fields on the dynpro to change/insert additional data.

How can I read data back from the dynpro fields when changing the selected row at the ALV.

At the time of handling the event, the data entered on the dynpro isn't actual available in my coding.

Thanks for any hints!

Peter

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
724

Hi,

in your PAI put these code in the Very Beginning.

  CALL METHOD G_GRID->CHECK_CHANGED_DATA
    IMPORTING
      E_VALID = L_VALID.
  CALL METHOD CL_GUI_CFW=>FLUSH.
  CALL METHOD CL_GUI_CFW=>DISPATCH.

and this will update the changed data to your Itab.

Regards

vijay

Hi!

I've created a dynpro with an ALV-Grid for Data-Overview and a lot of fields on the dynpro to change/insert additional data.

How can I read data back from the dynpro fields when changing the selected row at the ALV.

At the time of handling the event, the data entered on the dynpro isn't actual available in my coding.

Thanks for any hints!

Peter

3 REPLIES 3
Read only

FredericGirod
Active Contributor
0 Likes
724

You need an event for SAP send you data into your program.

Could you send the peace of code of the PAI and PBO ?

Rgd

Frédéric

Read only

0 Likes
724

Hi!

This is the dynpro-logic:

process before output.

module status_9210.

module vorschlag_9210.

call subscreen g_buch_button

including sy-repid g_buch_button_subscreen.

process after input.

chain.

field: zhrtv_planzusatz-buch_status,

zhrtv_planzusatz-buchungscode.

endchain.

chain.

field: zhrtv_planzusatz-betrg,

zhrtv_planzusatz-waers.

endchain.

module save_data_9210.

The PBO-Coding is just do fill the ALV-Grid and switch some dynpo-fields.

In the module save_data_9210 the entered data is saved to the corresponding structures.

Thanks for help!

Peter

Read only

Former Member
0 Likes
725

Hi,

in your PAI put these code in the Very Beginning.

  CALL METHOD G_GRID->CHECK_CHANGED_DATA
    IMPORTING
      E_VALID = L_VALID.
  CALL METHOD CL_GUI_CFW=>FLUSH.
  CALL METHOD CL_GUI_CFW=>DISPATCH.

and this will update the changed data to your Itab.

Regards

vijay