J_3RFCNT_SAVE_RECORD 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 J_3RFCNT_SAVE_RECORD into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
J3RFCNT
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'J_3RFCNT_SAVE_RECORD' "Inserts or updates single record in contracts
EXPORTING
i_j3rfcnt = " j_3rfcnt Maintain Internal Contract Numbers
i_force = " abap_bool Force overwrite
i_test = " abap_bool
* i_up_cnttype = " abap_bool Update contract type, too
IMPORTING
e_j3rfcnt = " j_3rfcnt Maintain Internal Contract Numbers
e_res = " j_3rf_dboper Operation type: I for insert, U for update
EXCEPTIONS
SRC_CONFLICT = 1 " Source types are different on update (MM/SD/DMS)
DB_ERROR = 2 " Cannot update database
INVALID_KEY = 3 " Cannot read database: invalid key
NOT_IDENTICAL = 4 " Data are not identical in DB and record
. " J_3RFCNT_SAVE_RECORD
The ABAP code below is a full code listing to execute function module J_3RFCNT_SAVE_RECORD 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).
| ld_e_j3rfcnt | TYPE J_3RFCNT , |
| ld_e_res | TYPE J_3RF_DBOPER . |
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_e_j3rfcnt | TYPE J_3RFCNT , |
| ld_i_j3rfcnt | TYPE J_3RFCNT , |
| ld_e_res | TYPE J_3RF_DBOPER , |
| ld_i_force | TYPE ABAP_BOOL , |
| ld_i_test | TYPE ABAP_BOOL , |
| ld_i_up_cnttype | TYPE ABAP_BOOL . |
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 J_3RFCNT_SAVE_RECORD or its description.
J_3RFCNT_SAVE_RECORD - Inserts or updates single record in contracts J_3RFCNT_POPULATE_BY_SD - Populates J_3rfcnt structure by SD data J_3RFCNT_POPULATE_BY_MM - Populates j_3rfcnt structure by MM data J_3RFCNT_POPULATE_BY_DMS - Populates j_3rfcnt structure by DMS data J_3RFCNT_FILL_RECORDS - For Russia: Filling in J_3RFCNT and ZUONR J_3RFBTE_00001130 - Process Module for BTE 00001120