06-22-2021 10:17 AM
After the selection screen, I've got an ALV that shows the info + 2 icons:
I've got some actions for the 2 icons. The last one set values for TOP variables and call new dynpro (1300), I need to fill the 1300 dynpro fields with this info but when i try to refresh the values on the 1300 PBO selection data (for example set T_MATNR field 'EXAMPLE' value):
It shows this error:
But the fields exists:
What I'm doing wrong?
06-22-2021 11:50 AM
Hello marcss
What you're showing is the field on the screen, which has the T_MATNR name. You need to have a global variable with the same name. Then you will assign the value to the global variable and the field will take its value from the variable.
Kind regards,06-22-2021 11:55 AM
06-22-2021 12:10 PM
06-22-2021 1:57 PM
Thanks, and now, how can i update this value when PAI function is reached?
06-22-2021 3:29 PM
marcss T_MATNR is automatically transported from/to the global variable in the PAI (see Raymond answer) with for instance one of these three variants:
PROCESS AFTER INPUT.
FIELD t_matnr MODULE transport_t_matnr_only.
CHAIN.
FIELD: t_matnr, t_other.
MODULE transport_t_matnr_and_other.
ENDCHAIN.
MODULE transport_all_fields.
06-22-2021 12:05 PM
06-22-2021 12:51 PM
Fields are copied from global area of program to dynpro fields with the same name in PBO and in the opposite direction in the PAI.
So define your fields and structure reference in dynpro in the global area of main program, TOP include usually. For structure use the TABLES statement (this is the only correct use of this statement.)
Read online help on Dynpro Fields (are you working on your first classic Dynpro)