SAP ISHMED_PATREG_N1PRPAT_SAVE Function Module for









ISHMED_PATREG_N1PRPAT_SAVE is a standard ishmed patreg n1prpat save SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for ishmed patreg n1prpat save FM, simply by entering the name ISHMED_PATREG_N1PRPAT_SAVE into the relevant SAP transaction such as SE37 or SE38.

Function Group: N1PR_VB
Program Name: SAPLN1PR_VB
Main Program: SAPLN1PR_VB
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function ISHMED_PATREG_N1PRPAT_SAVE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'ISHMED_PATREG_N1PRPAT_SAVE'"
EXPORTING
I_TRFC_ID = "
I_N1PRPAT = "
* I_PZIFF = ' ' "
I_UP_DATE = "
I_UP_UNAME = "
I_VCODE_N1PRPAT = "
* I_PATID = ' ' "

TABLES
T_TLNR = "
.



IMPORTING Parameters details for ISHMED_PATREG_N1PRPAT_SAVE

I_TRFC_ID -

Data type: ARFCTID
Optional: No
Call by Reference: No ( called with pass by value option)

I_N1PRPAT -

Data type: N1PRPAT
Optional: No
Call by Reference: No ( called with pass by value option)

I_PZIFF -

Data type: NPAT-PZIFF
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_UP_DATE -

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

I_UP_UNAME -

Data type: SY-UNAME
Optional: No
Call by Reference: No ( called with pass by value option)

I_VCODE_N1PRPAT -

Data type: RNPA1-VCODE
Optional: No
Call by Reference: No ( called with pass by value option)

I_PATID -

Data type: N1PRPAT-PATID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ISHMED_PATREG_N1PRPAT_SAVE

T_TLNR -

Data type: N1PRTLNR
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISHMED_PATREG_N1PRPAT_SAVE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lt_t_tlnr  TYPE STANDARD TABLE OF N1PRTLNR, "   
lv_i_trfc_id  TYPE ARFCTID, "   
lv_i_n1prpat  TYPE N1PRPAT, "   
lv_i_pziff  TYPE NPAT-PZIFF, "   SPACE
lv_i_up_date  TYPE SY-DATUM, "   
lv_i_up_uname  TYPE SY-UNAME, "   
lv_i_vcode_n1prpat  TYPE RNPA1-VCODE, "   
lv_i_patid  TYPE N1PRPAT-PATID. "   SPACE

  CALL FUNCTION 'ISHMED_PATREG_N1PRPAT_SAVE'  "
    EXPORTING
         I_TRFC_ID = lv_i_trfc_id
         I_N1PRPAT = lv_i_n1prpat
         I_PZIFF = lv_i_pziff
         I_UP_DATE = lv_i_up_date
         I_UP_UNAME = lv_i_up_uname
         I_VCODE_N1PRPAT = lv_i_vcode_n1prpat
         I_PATID = lv_i_patid
    TABLES
         T_TLNR = lt_t_tlnr
. " ISHMED_PATREG_N1PRPAT_SAVE




ABAP code using 7.40 inline data declarations to call FM ISHMED_PATREG_N1PRPAT_SAVE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
"SELECT single PZIFF FROM NPAT INTO @DATA(ld_i_pziff).
DATA(ld_i_pziff) = ' '.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_up_date).
 
"SELECT single UNAME FROM SY INTO @DATA(ld_i_up_uname).
 
"SELECT single VCODE FROM RNPA1 INTO @DATA(ld_i_vcode_n1prpat).
 
"SELECT single PATID FROM N1PRPAT INTO @DATA(ld_i_patid).
DATA(ld_i_patid) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!