Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Search Help Problem

Dear Friends,

I have create a search help for SELECT-OPTIONS with

AT SELECTION-SCREEN ON VALUE-REQUEST SO_RMSZE-LOW.
PERFORM F4HELP_SO_RMSZE.
FORM F4HELP_SO_RMSZE .
*
  BREAK ITNR.
*  SELECT  DISTINCT RMSZE
*    FROM  ZPP025_SPEC
*    INTO  TABLE IT_RMSZE
*    FOR ALL ENTRIES IN it_TSIZE
*    WHERE TSIZE eq it_TSIZE-TSIZE.
  SELECT  DISTINCT RMSZE
    FROM  ZPP025_SPEC
    INTO  TABLE IT_RMSZE
    WHERE TSIZE IN SO_TSIZE.

*
  V_RETFLD    = 'SO_RMSZE-LOW'.
  V_DYNPROFLD = 'SO_RMSZE'.
*
  PERFORM  F4VALUES_DISPLAY USING IT_RMSZE V_RETFLD V_DYNPROFLD.
*
ENDFORM.                    " F4HELP_SO_RMSZE

FORM F4VALUES_DISPLAY  USING    IT_TABLE2 TYPE STANDARD  TABLE
                                P_V_RETFLD
                                P_V_DYNPROFLD.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      RETFIELD    = P_V_RETFLD
      DYNPROFIELD = P_V_DYNPROFLD
      DYNPPROG    = SY-CPROG
      DYNPNR      = SY-DYNNR
      VALUE_ORG   = 'S'
    TABLES
      VALUE_TAB   = IT_TABLE2.

ENDFORM.                    " F4VALUES_DISPLAY

data populating properly

so my problem is, that itab (SO_RMSZE) not filled in selected data. but after select if i press ENTER button then that itab(SO_RMSZE) filled.

in this case i want to use this itab data for my next Search help that's why i looking for this data.

what should i do for this?

can you understand my problem?

Thanks in Advance

Tags:
Former Member
Former Member replied

Hi Nelson,

You have to change your FM. You have not used RETURN_TAB table in your function module.. that is the problem..check the below code

  DATA: lt_returntab LIKE ddshretval OCCURS 1 WITH HEADER LINE,
        lv_dynprofield LIKE help_info-dynprofld.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = 'USR01'
      dynprofield = lv_dynprofield
      dynpprog    = sy-repid
      dynpnr      = sy-dynnr
      value_org   = 'S'
    TABLES
      value_tab   = lt_usr01
      return_tab  = lt_returntab.

Now the return_tab will contain the selected value which you can use for next search help

Cheers,

Kothand

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question