‎2008 Apr 08 8:47 AM
hi gurus,
i am using the F4IF_INT_TABLE_VALUE_REQUEST function module to populate an F4 help. I am getting a weird situation.
this is the code i am using:
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = f_name "field name to be populated
PVALKEY = ' '
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = lv_dynprofield
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = it_t77tp[]
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
.
the table it_t77tp has 2 colums [4 digit number and associated text]. the f4 help does show the 2colums, but on clicking on the right value, it always picks the last 4characters of the second column.
so if i make it text followed by number, it gives me number,
but i make it number followed by text (which is what the user wants), it selects the first 4 characters of the text.
could you please tell me where am i going wrong? is there some table that i am passing / providing?
thanks,
vivek
ps:rewards for useful answers
‎2008 Apr 08 8:49 AM
hi there....
u must be fetching the values into some variables, right?? then check the data type of the variables u are using and try modifying them....
i hope it works...
do reward if helpful or get bak for further assistance.
‎2008 Apr 08 8:53 AM
Hi,
Use the below logic.
parameters: p_abkrs(4) type c.
data: begin of it_abkrs occurs 0,
abkrs type abkrs,
atext type abktx,
end of it_abkrs.
at selection-screen on value-request for p_abkrs.
select abkrs atext from t549t into table it_abkrs
where sprsl = sy-langu.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'ABKRS'
DYNPPROG = sy-repid
DYNPNR = sy-dynnr
DYNPROFIELD = 'P_ABKRS'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = it_abkrs
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
‎2008 Apr 08 9:14 AM
i hv kept in mind the above 2 solution, but this doesnt seem to be working. is there something like using some more tables or some other parameters?
so i am still looking for answers...
cheers,
v
ps:points for answers...
‎2008 Apr 08 9:46 AM
wht is the value of lv_dynprofield tht ur passing to dynpro field?
u should always pass the parameter DYNPROFIELD the parameter on the screen this fm matches thes definitions and passes the value to the screen accordingly if it does not get proper value it will give some default in return...
Edited by: ashwinee mali on Apr 8, 2008 2:17 PM
‎2008 Apr 08 9:57 AM
i am sending the selection_option -high / low field in lv_dynprofield, depending on which value request is made.
is there some tables that i need to pass more, or some conversions etc to do once the FM is run?
cheers,
v
ps:points still up for grabs..