SAP SIGN_CREATE Function Module for NOTRANSL: Unterschrift erzeugen
SIGN_CREATE is a standard sign create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Unterschrift erzeugen processing and below is the pattern details for this FM, 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 sign create FM, simply by entering the name SIGN_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CJ00
Program Name: SAPLCJ00
Main Program: SAPLCJ00
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SIGN_CREATE 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 'SIGN_CREATE'"NOTRANSL: Unterschrift erzeugen.
EXPORTING
OBJECT_IMP = "Object
* SIGNSTRAT_IMP = "Signature Strategy
* FLG_COMMENT_REQ_IMP = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FLG_SIGNER_CHANGEABLE_IMP = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FLG_SYNC_IMP = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* SIGN_REASON_KTXT = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* KEY_CHORD_IMP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* KEY_LOT_IMP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* KEY_SHEET_IMP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* KEY_EBR_IMP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* KEY_CHOBJ_IMP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* KEY_DMS_IMP = "
* KEY_PNNR_IMP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* SIGNER_IMP = SY-UNAME "Signatory
IMPORTING
END_OF_SIGN_PROC = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
KEY_FOR_OBJECT_INCOMPLETE = 1 STRAT_INFO_ERROR = 10 SIGNING_PROCEDURE_CANCELLED = 11 SYNCH_PROC_ERROR = 12 SIGN_METHOD_NOT_FOUND = 13 NO_DOMVALUES = 14 USER_ADDRESS_NOT_FOUND = 15 TEXT_ERROR = 16 CANCELLED_BY_USER = 2 SIGNER_NOT_GIVEN = 3 PSE_INFO_NOT_FOUND = 4 PASSWORD_WRONG_3_TIMES = 5 NO_AUTHORITY = 6 NO_AUTHORITY_AUTH_GRP = 7 DUPLICATE_SIGNATURE = 8 STRAT_INFO_NOT_FOUND = 9
IMPORTING Parameters details for SIGN_CREATE
OBJECT_IMP - Object
Data type: RC72-SIGN_OBJOptional: No
Call by Reference: No ( called with pass by value option)
SIGNSTRAT_IMP - Signature Strategy
Data type: TC85-SIGNSTRATOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_COMMENT_REQ_IMP - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLG_SIGNER_CHANGEABLE_IMP - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLG_SYNC_IMP - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SIGN_REASON_KTXT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RC71-REASON_KTXTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY_CHORD_IMP - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RC72Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY_LOT_IMP - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RC73Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY_SHEET_IMP - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RC74Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY_EBR_IMP - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RC75Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY_CHOBJ_IMP - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RC76Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY_DMS_IMP -
Data type: RC77Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY_PNNR_IMP - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RC78Optional: Yes
Call by Reference: No ( called with pass by value option)
SIGNER_IMP - Signatory
Data type: TC70-SIGNERDefault: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SIGN_CREATE
END_OF_SIGN_PROC - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: BOOLE-BOOLEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
KEY_FOR_OBJECT_INCOMPLETE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STRAT_INFO_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SIGNING_PROCEDURE_CANCELLED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYNCH_PROC_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SIGN_METHOD_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
NO_DOMVALUES - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
USER_ADDRESS_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
TEXT_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
CANCELLED_BY_USER - Canceled by user
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SIGNER_NOT_GIVEN - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PSE_INFO_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PASSWORD_WRONG_3_TIMES - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_AUTH_GRP - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DUPLICATE_SIGNATURE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STRAT_INFO_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SIGN_CREATE 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_object_imp | TYPE RC72-SIGN_OBJ, " | |||
| lv_end_of_sign_proc | TYPE BOOLE-BOOLE, " | |||
| lv_key_for_object_incomplete | TYPE BOOLE, " | |||
| lv_signstrat_imp | TYPE TC85-SIGNSTRAT, " | |||
| lv_strat_info_error | TYPE TC85, " | |||
| lv_flg_comment_req_imp | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_signing_procedure_cancelled | TYPE BOOLE, " | |||
| lv_synch_proc_error | TYPE BOOLE, " | |||
| lv_flg_signer_changeable_imp | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_flg_sync_imp | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_sign_method_not_found | TYPE BOOLE, " | |||
| lv_no_domvalues | TYPE BOOLE, " | |||
| lv_sign_reason_ktxt | TYPE RC71-REASON_KTXT, " SPACE | |||
| lv_user_address_not_found | TYPE RC71, " | |||
| lv_text_error | TYPE RC71, " | |||
| lv_key_chord_imp | TYPE RC72, " | |||
| lv_cancelled_by_user | TYPE RC72, " | |||
| lv_key_lot_imp | TYPE RC73, " | |||
| lv_signer_not_given | TYPE RC73, " | |||
| lv_key_sheet_imp | TYPE RC74, " | |||
| lv_pse_info_not_found | TYPE RC74, " | |||
| lv_key_ebr_imp | TYPE RC75, " | |||
| lv_password_wrong_3_times | TYPE RC75, " | |||
| lv_no_authority | TYPE RC75, " | |||
| lv_key_chobj_imp | TYPE RC76, " | |||
| lv_key_dms_imp | TYPE RC77, " | |||
| lv_no_authority_auth_grp | TYPE RC77, " | |||
| lv_key_pnnr_imp | TYPE RC78, " | |||
| lv_duplicate_signature | TYPE RC78, " | |||
| lv_signer_imp | TYPE TC70-SIGNER, " SY-UNAME | |||
| lv_strat_info_not_found | TYPE TC70. " |
|   CALL FUNCTION 'SIGN_CREATE' "NOTRANSL: Unterschrift erzeugen |
| EXPORTING | ||
| OBJECT_IMP | = lv_object_imp | |
| SIGNSTRAT_IMP | = lv_signstrat_imp | |
| FLG_COMMENT_REQ_IMP | = lv_flg_comment_req_imp | |
| FLG_SIGNER_CHANGEABLE_IMP | = lv_flg_signer_changeable_imp | |
| FLG_SYNC_IMP | = lv_flg_sync_imp | |
| SIGN_REASON_KTXT | = lv_sign_reason_ktxt | |
| KEY_CHORD_IMP | = lv_key_chord_imp | |
| KEY_LOT_IMP | = lv_key_lot_imp | |
| KEY_SHEET_IMP | = lv_key_sheet_imp | |
| KEY_EBR_IMP | = lv_key_ebr_imp | |
| KEY_CHOBJ_IMP | = lv_key_chobj_imp | |
| KEY_DMS_IMP | = lv_key_dms_imp | |
| KEY_PNNR_IMP | = lv_key_pnnr_imp | |
| SIGNER_IMP | = lv_signer_imp | |
| IMPORTING | ||
| END_OF_SIGN_PROC | = lv_end_of_sign_proc | |
| EXCEPTIONS | ||
| KEY_FOR_OBJECT_INCOMPLETE = 1 | ||
| STRAT_INFO_ERROR = 10 | ||
| SIGNING_PROCEDURE_CANCELLED = 11 | ||
| SYNCH_PROC_ERROR = 12 | ||
| SIGN_METHOD_NOT_FOUND = 13 | ||
| NO_DOMVALUES = 14 | ||
| USER_ADDRESS_NOT_FOUND = 15 | ||
| TEXT_ERROR = 16 | ||
| CANCELLED_BY_USER = 2 | ||
| SIGNER_NOT_GIVEN = 3 | ||
| PSE_INFO_NOT_FOUND = 4 | ||
| PASSWORD_WRONG_3_TIMES = 5 | ||
| NO_AUTHORITY = 6 | ||
| NO_AUTHORITY_AUTH_GRP = 7 | ||
| DUPLICATE_SIGNATURE = 8 | ||
| STRAT_INFO_NOT_FOUND = 9 | ||
| . " SIGN_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM SIGN_CREATE
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 SIGN_OBJ FROM RC72 INTO @DATA(ld_object_imp). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_end_of_sign_proc). | ||||
| "SELECT single SIGNSTRAT FROM TC85 INTO @DATA(ld_signstrat_imp). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_flg_comment_req_imp). | ||||
| DATA(ld_flg_comment_req_imp) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_flg_signer_changeable_imp). | ||||
| DATA(ld_flg_signer_changeable_imp) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_flg_sync_imp). | ||||
| DATA(ld_flg_sync_imp) | = ' '. | |||
| "SELECT single REASON_KTXT FROM RC71 INTO @DATA(ld_sign_reason_ktxt). | ||||
| DATA(ld_sign_reason_ktxt) | = ' '. | |||
| "SELECT single SIGNER FROM TC70 INTO @DATA(ld_signer_imp). | ||||
| DATA(ld_signer_imp) | = SY-UNAME. | |||
Search for further information about these or an SAP related objects