Application Development 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: 

Updating I/O field in PBO

0 Kudos

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?

7 REPLIES 7

mateuszadamus
Active Contributor

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,
Mateusz

0 Kudos

In the global definitios like this?

DATA: T_MATNR TYPE CHAR30.

0 Kudos

Yes.

Kind regards,

Mateusz

0 Kudos

Thanks, and now, how can i update this value when PAI function is reached?

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.

Prashant_Patil
Participant
0 Kudos

Hi,

Yes else just rename T_MATNR to S_MATNR.

Thanks,

Prashant

raymond_giuseppi
Active Contributor

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)