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

Updating I/O field in PBO

0 Kudos
2,336

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
Read only

MateuszAdamus
Active Contributor
1,663

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
Read only

0 Kudos
1,663

In the global definitios like this?

DATA: T_MATNR TYPE CHAR30.
Read only

0 Kudos
1,663

Yes.

Kind regards,

Mateusz

Read only

0 Kudos
1,663

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

Read only

1,663

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.
Read only

Prashant_Patil1
Participant
0 Kudos
1,663

Hi,

Yes else just rename T_MATNR to S_MATNR.

Thanks,

Prashant

Read only

RaymondGiuseppi
Active Contributor
1,663

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)