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

Screens

former_member227596
Participant
0 Likes
438

Below is the module to display list from Internal table.

My problem is , HOW to get vnumber, kunnr values selected from List to Screen Fields. Pl. help.

regards

Vikas

MODULE create_dropdown_box INPUT.

SELECT vnumber kunnr dofeature

FROM zfeature1

INTO CORRESPONDING FIELDS OF TABLE itab2 WHERE vnumber < 200000.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'VNUMBER'

value_org = 'S'

display = 'F'

DYNPROFIELD = 'ZFEATURE21-VNUMBER'

  • IMPORTING

  • USER_RESET = ''

TABLES

value_tab = itab2

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

IF sy-subrc <> 0.

...

ENDIF.

2 REPLIES 2
Read only

former_member196299
Active Contributor
0 Likes
414

hi Vikas ,

Its very simple , when you select any value from the dropdown list , then the screen field already is assigned with the value . i mean the screen field has the value selected , now you can use this field value directly in the PAI .

for example :

If 'ZFEATURE21-VNUMBER' is your screen field .and you have selected '1234' from the dropdown list .Now 'ZFEATURE21-VNUMBER contains the value 1234 and if you want to keep this value into a local variable ( L_VNUMBER )then use it like :

L_VNUMBER = ZFEATURE21-VNUMBER .

Hence l_VNUMBER is with value 1234 .

You should remember to play with the screen field values mostly in the PAI of the screen flow logic .

Revert if further help needed !

Regards,

Ranjita

Read only

Former Member
0 Likes
414

Hi,

You can use this FM dynp_values_read to read from the screen fields and FM dynp_values_update to update the screen fields.

Regards,

Vinodh