2012 Oct 05 12:29 PM
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.
2012 Oct 05 1:24 PM
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
2012 Oct 05 1:13 PM
Hi VR,
Kindly check the following thread.
http://scn.sap.com/message/2690238
Hope it helps.
Rgds,
Sandeep katoch
2012 Oct 05 1:24 PM
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