Application Development and Automation 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: 
Read only

Function Module 'F4IF_START_VALUE_REQUEST' Not Returning values.

Former Member
4,660

Hi Experts,

I am using function module F4IF_START_VALUE_REQUEST in my report. I am getting the correct POP-UP as per the Reqiurement.

Now the problem is after getting the popup I am selecting the particular value that values is not returned from Function Module.

I tried using Function module F4IF_GET_SHLP_DESCR but its not helping me out.

Kindly Help me out, Here is the sample code.

  Data: SHLP TYPE SHLP_DESCR,
      ls_selopt  TYPE ddshselopt,

      RC LIKE Sy-subrc,
RETURN LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE,

  l_shlp TYPE shlp_descr.

   CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = 'AEN1'

       "shlptype = 'SH

    IMPORTING

       shlp     = l_shlp.

   CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
   EXPORTING
     SHLP = l_shlp
   IMPORTING
     RC = RC
   TABLES
     RETURN_VALUES = RETURN .

Here my Internal table 'Return' is not returning any value.

Thanx in Advance

Regards,

Viraj.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
2,240

You don't set a field in interface to be returned. Between the two FM call insert a code like:

FIELD-SYMBOLS: <interface> TYPE ddshiface.

LOOP AT l_shlp-interface ASSIGNING <interface>.

  IF <interface>-shlpfield = 'AENNR'.

    <interface>-valfield = 'X'.

  ENDIF.

ENDLOOP.

Regards,

Raymond

2 REPLIES 2
Read only

sandeep_katoch
Contributor
0 Likes
2,240

Hi VR,

Kindly check the following thread.

http://scn.sap.com/message/2690238

Hope it helps.

Rgds,

Sandeep katoch

Read only

RaymondGiuseppi
Active Contributor
2,241

You don't set a field in interface to be returned. Between the two FM call insert a code like:

FIELD-SYMBOLS: <interface> TYPE ddshiface.

LOOP AT l_shlp-interface ASSIGNING <interface>.

  IF <interface>-shlpfield = 'AENNR'.

    <interface>-valfield = 'X'.

  ENDIF.

ENDLOOP.

Regards,

Raymond