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: 

Fm to read screen labels for country specific screens

Former Member
0 Kudos

Hi

Is there any funtion module to read the field labels from modulepool for country specific screens.

Thanks in advance

4 REPLIES 4

Former Member
0 Kudos

hi,

chk out this,

DYNP_VALUES_READ

Regards,'

Arunsri

0 Kudos

Hi arunsri

Can u please tell me what r the values that i have to pass.i tried this y'day but not able to understand.

Thanks in advance

Former Member
0 Kudos

hi,

chk out this sample code:,

data: li_dynpfields type table of dynpread,

lw_temp like line of li_dynpfields.

data: lv_molga like dynpread-fieldvalue,

lv_para like dynpread-fieldvalue,

lv_subty like dynpread-fieldvalue.

move 'P_MOLGA' to lw_temp-fieldname.

append lw_temp to li_dynpfields.

move 'P_PARA' to lw_temp-fieldname.

append lw_temp to li_dynpfields.

move 'P_SUBTY' to lw_temp-fieldname.

append lw_temp to li_dynpfields.

call function 'DYNP_VALUES_READ'

exporting

dyname = sy-cprog

dynumb = sy-dynnr

translate_to_upper = ' '

tables

dynpfields = li_dynpfields

exceptions

invalid_abapworkarea = 1

invalid_dynprofield = 2

invalid_dynproname = 3

invalid_dynpronummer = 4

invalid_request = 5

no_fielddescription = 6

invalid_parameter = 7

undefind_error = 8

double_conversion = 9

stepl_not_found = 10

others = 11.

if sy-subrc <> 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

endif.

clear lw_temp.

do 3 times.

read table li_dynpfields index sy-index into lw_temp.

if sy-index = 1.

lv_molga = lw_temp-fieldvalue.

elseif sy-index = 2.

lv_para = lw_temp-fieldvalue.

else.

lv_subty = lw_temp-fieldvalue.

endif.

enddo.

Regards,

Arunsri

0 Kudos

Hi Arunsri

I tried that programme.iam not getting any result.

do i have to enter any values in dynpfields.

sorry to bother you.

Thanks in advance