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: 

problem in PBO

Former Member
0 Kudos

Hi All,

I have one requirement in module pool pro ,

I have two i/o boxes,

In first i/o box is say for material number ( from say MARA ) for which i have attached search help ( In POV event)

As soon as I select any material ( from F4 help ) it's corresponding description ( from say MAKT ) should come in second i/o box. WITHOUT pressing any KEY....

Should I do this validation in PBO ? and How ?

Pls reply..

Points assured.....

7 REPLIES 7

Former Member
0 Kudos

Hi,

You need to write this in your PBO itself.

in your POV event once you get the material number. get the desc from MAKT and assign it to another screen variable.

Regards,

Pramod

Former Member
0 Kudos

hi,

You can write the code for this in POVR (Process on value Request).

Former Member
0 Kudos

Get the sy-ucomm value in debugging, when entering the material number and then in this user command retrieve and populate the material description for makt field.

Former Member
0 Kudos

Hi

in POV use dynp_values_read and give the field for which you want the output.

Former Member
0 Kudos

You must be writing code for search help of MATNR in PROCESS ON VALUE-REQUEST.

After POV, the conttrol does not go to PAI or PBO.

So you have to write the code in POV.

Use the FM DYNP_VALUES_READ to Read the values from a dynpro

Use FM DYNP_VALUES_UPDATE to update Material text.

Former Member
0 Kudos

Hi,

A small tip for you.

While using the FM to update your fields, remember to update even your mara field.

see the example code below.

CLEAR dynpro_values[].

field_value-fieldname = 'ST_NAME'.

field_value-fieldvalue = return-fieldval.

APPEND field_value TO dynpro_values .

field_value-fieldname = 'ST_CODE'.

field_value-fieldvalue = t_code.

APPEND field_value TO dynpro_values .

field_value-fieldname = 'CURRPR'.

field_value-fieldvalue = t_currpr.

APPEND field_value TO dynpro_values .

  • FM to Update the Fields

CALL FUNCTION 'DYNP_VALUES_UPDATE'

EXPORTING

dyname = sy-cprog

dynumb = sy-dynnr

TABLES

dynpfields = dynpro_values.

Former Member
0 Kudos

ok