‎2008 Jun 18 5:47 AM
Hi,
I am using the FM F4IF_START_VALUE_REQUEST to get the F4 help for the field S_TXTID. I am using the search help H_TXTID. I am getting the popup with the correct values but at the sametime whin select the vale from the popup it is getting transferred to dynnpro field. My field name is S_TXTID-LOW.
Here is my code .
DATA: ta_shlp TYPE shlp_descr_t,
Types : ta_flds_out1 type ddshretval.
Data : ta_flds_out type standard table of
ta_flds_out1
with header line.
data : tp_shlpname LIKE ddshdescr-shlpname VALUE 'H_TTXID',
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = tp_shlpname
IMPORTING
shlp = ta_shlp
EXCEPTIONS
OTHERS = 0.
CHECK sy-subrc = 0.
CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
SHLP = ta_shlp
DISPONLY = ' '
MAXRECORDS = 500
MULTISEL = 'X'
CUCOL = SY-CUCOL
CUROW = SY-CUROW
IMPORTING
RC = l_rc
TABLES
RETURN_VALUES = ta_flds_out
.
CHECK l_rc = 0.
if not ta_flds_out[] is initial.
s_txtid-sign = 'I'.
s_txtid-option = 'EQ'.
loop at ta_flds_out.
s_txtid-low = ta_flds_out-fieldval.
append s_txtid.
endloop.
endif.
Please suggest me a solution with the piece of code.
Thanks in advance.
Regards,
Srinivas.
‎2008 Jun 18 9:05 AM
Hi Srinivas,
After calling the function module, just write this piece of code.
Regards,
Venkat.O
Read table ta_flds_out index 1.
if sy-subrc = 0.
s_txtid-low = ta_flds_out-fieldval.
endif.
‎2008 Jun 18 6:48 AM
Hi,
Instead of that u can try with
FM "F4IF_INT_TABLE_VALUE_REQUEST".
Regards
Srimanta
‎2008 Jun 18 7:26 AM
Hi,
Thanks for the reply but i want to restrict the values depending on the other field selection.
Regards,
Srinivas.
‎2008 Jun 18 9:05 AM
Hi Srinivas,
After calling the function module, just write this piece of code.
Regards,
Venkat.O
Read table ta_flds_out index 1.
if sy-subrc = 0.
s_txtid-low = ta_flds_out-fieldval.
endif.