Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9164

Re: Search help for a particular value

$
0
0

Hi Sumit

 

You need this:

 

data: itab with werks and matnr field.

 

parameters: p_plant type mard-werks,

                  p_matnr type mard-matnr.

 

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_plant.

 

 

 

SELECT *

    FROM mard

    INTO CORRESPONDING FIELDS OF TABLE t_tab

    where werks = p_plant.

 

 

 

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

      retfield        = 'MATNR'         

      dynpprog        = sy-repid        

      dynpnr          = sy-dynnr        "

      dynprofield     = 'P_MATNR'       

      value_org       = 'S'             

    TABLES

      value_tab       = t_tab.     

  IF sy-subrc <> 0.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

  ENDIF.

 

regards,

Archer


Viewing all articles
Browse latest Browse all 9164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>