SAP Function Modules

EXIT_SAPMNPA3_001 SAP Function module - IS-H: Transfer Enhancement







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

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


Pattern for FM EXIT_SAPMNPA3_001 - EXIT SAPMNPA3 001





CALL FUNCTION 'EXIT_SAPMNPA3_001' "IS-H: Transfer Enhancement
  EXPORTING
    ss_npat =                   " npat          Patient Data
    ss_npae =                   " npae          Institution-Specific Patient Data
    ss_nfal =                   " nfal          Case Data
    ss_nfal_old =               " nfal          Old Case Data
    ss_nbew =                   " nbew          Transfer Data
    ss_nbew_old =               " nbew          Old Transfer Data
    ss_vcode =                  " tndym-vcode   Processing Mode -> F2
    ss_tcode =                  " sy-tcode      Transaction Code -> F2
  TABLES
    ss_nbewtab =                " vnbew         Table of Movements
    ss_nfpztab =                " nfpz          Table of Persons Assigned
  CHANGING
    ss_okcode =                 " sy-ucomm      Function -> F2
    .  "  EXIT_SAPMNPA3_001

ABAP code example for Function Module EXIT_SAPMNPA3_001





The ABAP code below is a full code listing to execute function module EXIT_SAPMNPA3_001 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:
it_ss_nbewtab  TYPE STANDARD TABLE OF VNBEW,"TABLES PARAM
wa_ss_nbewtab  LIKE LINE OF it_ss_nbewtab ,
it_ss_nfpztab  TYPE STANDARD TABLE OF NFPZ,"TABLES PARAM
wa_ss_nfpztab  LIKE LINE OF it_ss_nfpztab .

DATA(ld_ss_okcode) = 'some text here'.
DATA(ld_ss_npat) = 'some text here'.
DATA(ld_ss_npae) = 'some text here'.
DATA(ld_ss_nfal) = 'some text here'.
DATA(ld_ss_nfal_old) = 'some text here'.
DATA(ld_ss_nbew) = 'some text here'.
DATA(ld_ss_nbew_old) = 'some text here'.

SELECT single VCODE
FROM TNDYM
INTO @DATA(ld_ss_vcode).

DATA(ld_ss_tcode) = 'some text here'.

"populate fields of struture and append to itab
append wa_ss_nbewtab to it_ss_nbewtab.

"populate fields of struture and append to itab
append wa_ss_nfpztab to it_ss_nfpztab. . CALL FUNCTION 'EXIT_SAPMNPA3_001' EXPORTING ss_npat = ld_ss_npat ss_npae = ld_ss_npae ss_nfal = ld_ss_nfal ss_nfal_old = ld_ss_nfal_old ss_nbew = ld_ss_nbew ss_nbew_old = ld_ss_nbew_old ss_vcode = ld_ss_vcode ss_tcode = ld_ss_tcode TABLES ss_nbewtab = it_ss_nbewtab ss_nfpztab = it_ss_nfpztab CHANGING ss_okcode = ld_ss_okcode . " EXIT_SAPMNPA3_001
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_ss_okcode  TYPE SY-UCOMM ,
ld_ss_npat  TYPE NPAT ,
it_ss_nbewtab  TYPE STANDARD TABLE OF VNBEW ,
wa_ss_nbewtab  LIKE LINE OF it_ss_nbewtab,
ld_ss_npae  TYPE NPAE ,
it_ss_nfpztab  TYPE STANDARD TABLE OF NFPZ ,
wa_ss_nfpztab  LIKE LINE OF it_ss_nfpztab,
ld_ss_nfal  TYPE NFAL ,
ld_ss_nfal_old  TYPE NFAL ,
ld_ss_nbew  TYPE NBEW ,
ld_ss_nbew_old  TYPE NBEW ,
ld_ss_vcode  TYPE TNDYM-VCODE ,
ld_ss_tcode  TYPE SY-TCODE .

ld_ss_okcode = 'some text here'.
ld_ss_npat = 'some text here'.

"populate fields of struture and append to itab
append wa_ss_nbewtab to it_ss_nbewtab.
ld_ss_npae = 'some text here'.

"populate fields of struture and append to itab
append wa_ss_nfpztab to it_ss_nfpztab.
ld_ss_nfal = 'some text here'.
ld_ss_nfal_old = 'some text here'.
ld_ss_nbew = 'some text here'.
ld_ss_nbew_old = 'some text here'.

SELECT single VCODE
FROM TNDYM
INTO ld_ss_vcode.

ld_ss_tcode = 'some text here'.

SAP Documentation for FM EXIT_SAPMNPA3_001


This function module lets you intervene in the processing of the transfer function (transactions NV11, NV12, NV13). ...See here for full SAP fm documentation

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