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

Update values on the screen

Former Member
0 Likes
1,271

H

I am developing a Module Pool Programming.

I have a requirement where when i select any Value from F4, i need to update the respective Description of the value beside to the field.

As per requirement i have developed the program and wrote the below code to update the value

CALL FUNCTION 'DYNP_VALUES_UPDATE'
           EXPORTING
             dyname     = sy-repid
             dynumb     = sy-dynnr
           TABLES
             dynpfields = t_dynfields.


SET SCREEN 600.


But in Runtime i am getting error as i cannot write code SET SCREEN 600 for Subscreens.

Please suggest how to update the data in the subscreens.

Thank You,

Shashikanth

H

I am developing a Module Pool Programming.

I have a requirement where when i select any Value from F4, i need to update the respective Description of the value beside to the field.

As per requirement i have developed the program and wrote the below code to update the value

CALL FUNCTION 'DYNP_VALUES_UPDATE'
           EXPORTING
             dyname     = sy-repid
             dynumb     = sy-dynnr
           TABLES
             dynpfields = t_dynfields.


SET SCREEN 600.


But in Runtime i am getting error as i cannot write code SET SCREEN 600 for Subscreens.

Please suggest how to update the data in the subscreens.

Thank You,

Shashikanth

3 REPLIES 3
Read only

Former Member
0 Likes
1,089

Hi shashikanth,

  Instead of using DYNP_VALUES_UPDATE function module, you can create an elementary search help and there u can add a text field in it and assign the same to properties of that field. when the value is fetched, you can directly assign the data to the field.

Read only

Former Member
0 Likes
1,089

Hi Shashikanth,

Kindly provide the Run time error you aree receiving and instead of using this function Module, you can create an elementry serach help and assign that Search help to the filed as below :

Hope this is helpful.

Best Regards,

Krishna Chaitanya

Read only

Former Member
0 Likes
1,089

Hi Shashikanth,

Why are you using SET SCREEN ?

You should use CALL SUBSCREEN in the PAI and PBO of your main screen.

CALL SUBSCREEN 600.  " This should be callled in PBO and PAI of your main screen

Also when you call 'DYNP_VALUES_UPDATE' pass 600 instead of sy-dynnr.

Thanks,

Ajay Bose