03-04-2008 5:23 AM
Hi
Is there any funtion module to read the field labels from modulepool for country specific screens.
Thanks in advance
03-04-2008 6:02 AM
03-04-2008 9:24 AM
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
03-04-2008 9:55 AM
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
03-04-2008 1:02 PM
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