SAP Function Modules

ISH_MAT_PROPOSAL_GETLIST SAP Function module - IS-H MM: *Read Material Proposal for OU







ISH_MAT_PROPOSAL_GETLIST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name ISH_MAT_PROPOSAL_GETLIST into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: NMM0
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ISH_MAT_PROPOSAL_GETLIST - ISH MAT PROPOSAL GETLIST





CALL FUNCTION 'ISH_MAT_PROPOSAL_GETLIST' "IS-H MM: *Read Material Proposal for OU
  EXPORTING
    ss_einri =                  " rnmmd1-einri  Institution
*   ss_anfoe =                  " rnmmd1-anfoe  Dept. OU
    ss_anpoe =                  " rnmmd1-anpoe  Nrs. OU
*   ss_read_careunit_mat = 'X'  " npdok-xfeld   True/Flase: Display Materials from Care Unit Storage Location
*   ss_read_central_mat = 'X'   " npdok-xfeld   True/False: Display Materials from Non-Care Unit Storage Location
*   ss_use_extract = 'X'        " ish_on_off    Use Extract
  IMPORTING
    o_valid_date =              " sy-datum      Valid to
    o_valid_time =              " sy-uzeit      Valid to
* TABLES
*   ss_keys =                   " nmat_bapi_proposal_getlist_t  Result
*   ss_rnmm03 =                 " rnmm03        Obsolete: Old Structure
*   ss_nmhit =                  " nmhit
    .  "  ISH_MAT_PROPOSAL_GETLIST

ABAP code example for Function Module ISH_MAT_PROPOSAL_GETLIST





The ABAP code below is a full code listing to execute function module ISH_MAT_PROPOSAL_GETLIST including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_o_valid_date  TYPE SY-DATUM ,
ld_o_valid_time  TYPE SY-UZEIT ,
it_ss_keys  TYPE STANDARD TABLE OF NMAT_BAPI_PROPOSAL_GETLIST_T,"TABLES PARAM
wa_ss_keys  LIKE LINE OF it_ss_keys ,
it_ss_rnmm03  TYPE STANDARD TABLE OF RNMM03,"TABLES PARAM
wa_ss_rnmm03  LIKE LINE OF it_ss_rnmm03 ,
it_ss_nmhit  TYPE STANDARD TABLE OF NMHIT,"TABLES PARAM
wa_ss_nmhit  LIKE LINE OF it_ss_nmhit .


DATA(ld_ss_einri) = some text here

DATA(ld_ss_anfoe) = some text here

DATA(ld_ss_anpoe) = some text here

DATA(ld_ss_read_careunit_mat) = some text here

DATA(ld_ss_read_central_mat) = some text here
DATA(ld_ss_use_extract) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ss_keys to it_ss_keys.

"populate fields of struture and append to itab
append wa_ss_rnmm03 to it_ss_rnmm03.

"populate fields of struture and append to itab
append wa_ss_nmhit to it_ss_nmhit. . CALL FUNCTION 'ISH_MAT_PROPOSAL_GETLIST' EXPORTING ss_einri = ld_ss_einri * ss_anfoe = ld_ss_anfoe ss_anpoe = ld_ss_anpoe * ss_read_careunit_mat = ld_ss_read_careunit_mat * ss_read_central_mat = ld_ss_read_central_mat * ss_use_extract = ld_ss_use_extract IMPORTING o_valid_date = ld_o_valid_date o_valid_time = ld_o_valid_time * TABLES * ss_keys = it_ss_keys * ss_rnmm03 = it_ss_rnmm03 * ss_nmhit = it_ss_nmhit . " ISH_MAT_PROPOSAL_GETLIST
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_o_valid_date  TYPE SY-DATUM ,
ld_ss_einri  TYPE RNMMD1-EINRI ,
it_ss_keys  TYPE STANDARD TABLE OF NMAT_BAPI_PROPOSAL_GETLIST_T ,
wa_ss_keys  LIKE LINE OF it_ss_keys,
ld_o_valid_time  TYPE SY-UZEIT ,
ld_ss_anfoe  TYPE RNMMD1-ANFOE ,
it_ss_rnmm03  TYPE STANDARD TABLE OF RNMM03 ,
wa_ss_rnmm03  LIKE LINE OF it_ss_rnmm03,
ld_ss_anpoe  TYPE RNMMD1-ANPOE ,
it_ss_nmhit  TYPE STANDARD TABLE OF NMHIT ,
wa_ss_nmhit  LIKE LINE OF it_ss_nmhit,
ld_ss_read_careunit_mat  TYPE NPDOK-XFELD ,
ld_ss_read_central_mat  TYPE NPDOK-XFELD ,
ld_ss_use_extract  TYPE ISH_ON_OFF .


ld_ss_einri = some text here

"populate fields of struture and append to itab
append wa_ss_keys to it_ss_keys.

ld_ss_anfoe = some text here

"populate fields of struture and append to itab
append wa_ss_rnmm03 to it_ss_rnmm03.

ld_ss_anpoe = some text here

"populate fields of struture and append to itab
append wa_ss_nmhit to it_ss_nmhit.

ld_ss_read_careunit_mat = some text here

ld_ss_read_central_mat = some text here
ld_ss_use_extract = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ISH_MAT_PROPOSAL_GETLIST or its description.