SAP ISH_321_SET_NC301S_FEHL Function Module for
ISH_321_SET_NC301S_FEHL is a standard ish 321 set nc301s fehl 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 ish 321 set nc301s fehl FM, simply by entering the name ISH_321_SET_NC301S_FEHL into the relevant SAP transaction such as SE37 or SE38.
Function Group: N1C3
Program Name: SAPLN1C3
Main Program: SAPLN1C3
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ISH_321_SET_NC301S_FEHL 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 'ISH_321_SET_NC301S_FEHL'".
EXPORTING
EINRI = "
* I_MSGV1 = ' ' "
* I_MSGV2 = ' ' "
* I_MSGV3 = ' ' "
* I_MSGV4 = ' ' "
* I_CHECK_KANR = ' ' "
* VERSION = '1.0' "
DATE = "
TIME = "
* RECOVERY_FLAG = ' ' "
* PROT = ' ' "
* I_MSGTY = 'E' "
* I_ARBGB = 'NV' "
I_MSGNR = "
IMPORTING
IRNC4K = "
CHANGING
INC301S = "
TABLES
IRNC301ERR = "
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLN1C3_001
IMPORTING Parameters details for ISH_321_SET_NC301S_FEHL
EINRI -
Data type: TN01-EINRIOptional: No
Call by Reference: No ( called with pass by value option)
I_MSGV1 -
Data type: MSGV1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MSGV2 -
Data type: MSGV2Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MSGV3 -
Data type: MSGV3Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MSGV4 -
Data type: MSGV4Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_KANR -
Data type: ISH_ON_OFFDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
VERSION -
Data type: NC301-STVERDefault: '1.0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATE -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
TIME -
Data type: SY-UZEITOptional: No
Call by Reference: No ( called with pass by value option)
RECOVERY_FLAG -
Data type: RNCOM-XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PROT -
Data type: RNCOM-XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MSGTY -
Data type: MSGTY_CODefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ARBGB -
Data type: ARBGBDefault: 'NV'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MSGNR -
Data type: MSGNROptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_321_SET_NC301S_FEHL
IRNC4K -
Data type: RNC4KOptional: No
Call by Reference: Yes
CHANGING Parameters details for ISH_321_SET_NC301S_FEHL
INC301S -
Data type: NC301SOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISH_321_SET_NC301S_FEHL
IRNC301ERR -
Data type: RNC301ERROptional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISH_321_SET_NC301S_FEHL 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: | ||||
lv_einri | TYPE TN01-EINRI, " | |||
lv_irnc4k | TYPE RNC4K, " | |||
lv_inc301s | TYPE NC301S, " | |||
lt_irnc301err | TYPE STANDARD TABLE OF RNC301ERR, " | |||
lv_i_msgv1 | TYPE MSGV1, " SPACE | |||
lv_i_msgv2 | TYPE MSGV2, " SPACE | |||
lv_i_msgv3 | TYPE MSGV3, " SPACE | |||
lv_i_msgv4 | TYPE MSGV4, " SPACE | |||
lv_i_check_kanr | TYPE ISH_ON_OFF, " ' ' | |||
lv_version | TYPE NC301-STVER, " '1,0' | |||
lv_date | TYPE SY-DATUM, " | |||
lv_time | TYPE SY-UZEIT, " | |||
lv_recovery_flag | TYPE RNCOM-XFELD, " SPACE | |||
lv_prot | TYPE RNCOM-XFELD, " SPACE | |||
lv_i_msgty | TYPE MSGTY_CO, " 'E' | |||
lv_i_arbgb | TYPE ARBGB, " 'NV' | |||
lv_i_msgnr | TYPE MSGNR. " |
  CALL FUNCTION 'ISH_321_SET_NC301S_FEHL' " |
EXPORTING | ||
EINRI | = lv_einri | |
I_MSGV1 | = lv_i_msgv1 | |
I_MSGV2 | = lv_i_msgv2 | |
I_MSGV3 | = lv_i_msgv3 | |
I_MSGV4 | = lv_i_msgv4 | |
I_CHECK_KANR | = lv_i_check_kanr | |
VERSION | = lv_version | |
DATE | = lv_date | |
TIME | = lv_time | |
RECOVERY_FLAG | = lv_recovery_flag | |
PROT | = lv_prot | |
I_MSGTY | = lv_i_msgty | |
I_ARBGB | = lv_i_arbgb | |
I_MSGNR | = lv_i_msgnr | |
IMPORTING | ||
IRNC4K | = lv_irnc4k | |
CHANGING | ||
INC301S | = lv_inc301s | |
TABLES | ||
IRNC301ERR | = lt_irnc301err | |
. " ISH_321_SET_NC301S_FEHL |
ABAP code using 7.40 inline data declarations to call FM ISH_321_SET_NC301S_FEHL
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 EINRI FROM TN01 INTO @DATA(ld_einri). | ||||
DATA(ld_i_msgv1) | = ' '. | |||
DATA(ld_i_msgv2) | = ' '. | |||
DATA(ld_i_msgv3) | = ' '. | |||
DATA(ld_i_msgv4) | = ' '. | |||
DATA(ld_i_check_kanr) | = ' '. | |||
"SELECT single STVER FROM NC301 INTO @DATA(ld_version). | ||||
DATA(ld_version) | = '1.0'. | |||
"SELECT single DATUM FROM SY INTO @DATA(ld_date). | ||||
"SELECT single UZEIT FROM SY INTO @DATA(ld_time). | ||||
"SELECT single XFELD FROM RNCOM INTO @DATA(ld_recovery_flag). | ||||
DATA(ld_recovery_flag) | = ' '. | |||
"SELECT single XFELD FROM RNCOM INTO @DATA(ld_prot). | ||||
DATA(ld_prot) | = ' '. | |||
DATA(ld_i_msgty) | = 'E'. | |||
DATA(ld_i_arbgb) | = 'NV'. | |||
Search for further information about these or an SAP related objects