Skip to Content
author's profile photo Former Member
Former Member

Problem while using the FM F4IF_START_VALUE_REQUEST

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 08:05 AM

    Hi Srinivas, After calling the function module, just write this piece of code.

    Read table ta_flds_out index 1.
    if sy-subrc = 0.
      s_txtid-low = ta_flds_out-fieldval.
    endif.
    Regards, Venkat.O

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 05:48 AM

    Hi,

    Instead of that u can try with

    FM "F4IF_INT_TABLE_VALUE_REQUEST".

    Regards

    Srimanta

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.