SAP Function Modules

ISH_MM_OU_REQUEST_TA SAP Function module - IS-H MM: OU-Related Material Requisition







ISH_MM_OU_REQUEST_TA 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_MM_OU_REQUEST_TA into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM ISH_MM_OU_REQUEST_TA - ISH MM OU REQUEST TA





CALL FUNCTION 'ISH_MM_OU_REQUEST_TA' "IS-H MM: OU-Related Material Requisition
  EXPORTING
    ss_einri =                  " rnpa1-einri
    ss_anfoe =                  " rnmmd1-anfoe
    ss_anpoe =                  " rnmmd1-anpoe
*   ss_vcode = 'INS'            "
*   ss_repid = SY-REPID         " sy-repid
*   ss_tcode = 'NMM1'           " sy-tcode
*   ss_commit = ' '             "
*   ss_filter = ' '             " rnmmd1-stfil
*   ss_fildt =                  " rnmmd1-dtfil
  IMPORTING
    ss_ok_code =                "
  EXCEPTIONS
    NO_AUTHORITY = 1            "
    NO_HCO_RECEIVER = 2         "
    .  "  ISH_MM_OU_REQUEST_TA

ABAP code example for Function Module ISH_MM_OU_REQUEST_TA





The ABAP code below is a full code listing to execute function module ISH_MM_OU_REQUEST_TA 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_ss_ok_code  TYPE STRING .


DATA(ld_ss_einri) = some text here

DATA(ld_ss_anfoe) = some text here

DATA(ld_ss_anpoe) = some text here
DATA(ld_ss_vcode) = 'some text here'.
DATA(ld_ss_repid) = 'some text here'.
DATA(ld_ss_tcode) = 'some text here'.
DATA(ld_ss_commit) = 'some text here'.

DATA(ld_ss_filter) = some text here

DATA(ld_ss_fildt) = 20210129 . CALL FUNCTION 'ISH_MM_OU_REQUEST_TA' EXPORTING ss_einri = ld_ss_einri ss_anfoe = ld_ss_anfoe ss_anpoe = ld_ss_anpoe * ss_vcode = ld_ss_vcode * ss_repid = ld_ss_repid * ss_tcode = ld_ss_tcode * ss_commit = ld_ss_commit * ss_filter = ld_ss_filter * ss_fildt = ld_ss_fildt IMPORTING ss_ok_code = ld_ss_ok_code EXCEPTIONS NO_AUTHORITY = 1 NO_HCO_RECEIVER = 2 . " ISH_MM_OU_REQUEST_TA
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_ss_ok_code  TYPE STRING ,
ld_ss_einri  TYPE RNPA1-EINRI ,
ld_ss_anfoe  TYPE RNMMD1-ANFOE ,
ld_ss_anpoe  TYPE RNMMD1-ANPOE ,
ld_ss_vcode  TYPE STRING ,
ld_ss_repid  TYPE SY-REPID ,
ld_ss_tcode  TYPE SY-TCODE ,
ld_ss_commit  TYPE STRING ,
ld_ss_filter  TYPE RNMMD1-STFIL ,
ld_ss_fildt  TYPE RNMMD1-DTFIL .


ld_ss_einri = some text here

ld_ss_anfoe = some text here

ld_ss_anpoe = some text here
ld_ss_vcode = 'some text here'.
ld_ss_repid = 'some text here'.
ld_ss_tcode = 'some text here'.
ld_ss_commit = 'some text here'.

ld_ss_filter = some text here

ld_ss_fildt = 20210129

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_MM_OU_REQUEST_TA or its description.