SAP Function Modules

SIGN_DOCUMENT_CREATE SAP Function module







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

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


Pattern for FM SIGN_DOCUMENT_CREATE - SIGN DOCUMENT CREATE





CALL FUNCTION 'SIGN_DOCUMENT_CREATE' "
  EXPORTING
    object_imp =                " rc72-sign_obj
    sign_reason_imp =           " rc71-reason
*   sign_reason_ktxt_imp =      " rc71-reason_ktxt
*   key_chord_imp =             " rc72
*   key_lot_imp =               " rc73
*   key_sheet_imp =             " rc74
*   key_ebr_imp =               " rc75
*   key_chobj_imp =             " rc76
*   key_dms_imp =               " rc77
*   key_pnnr_imp =              " rc78
  IMPORTING
    e_document_exp =            " rc70d-document
    e_rule_exp =                " rc71d-doc_rule
    .  "  SIGN_DOCUMENT_CREATE

ABAP code example for Function Module SIGN_DOCUMENT_CREATE





The ABAP code below is a full code listing to execute function module SIGN_DOCUMENT_CREATE 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:
ld_e_document_exp  TYPE RC70D-DOCUMENT ,
ld_e_rule_exp  TYPE RC71D-DOC_RULE .


DATA(ld_object_imp) = some text here

DATA(ld_sign_reason_imp) = some text here

DATA(ld_sign_reason_ktxt_imp) = some text here
DATA(ld_key_chord_imp) = 'Check type of data required'.
DATA(ld_key_lot_imp) = 'Check type of data required'.
DATA(ld_key_sheet_imp) = 'Check type of data required'.
DATA(ld_key_ebr_imp) = 'Check type of data required'.
DATA(ld_key_chobj_imp) = 'Check type of data required'.
DATA(ld_key_dms_imp) = 'Check type of data required'.
DATA(ld_key_pnnr_imp) = 'Check type of data required'. . CALL FUNCTION 'SIGN_DOCUMENT_CREATE' EXPORTING object_imp = ld_object_imp sign_reason_imp = ld_sign_reason_imp * sign_reason_ktxt_imp = ld_sign_reason_ktxt_imp * key_chord_imp = ld_key_chord_imp * key_lot_imp = ld_key_lot_imp * key_sheet_imp = ld_key_sheet_imp * key_ebr_imp = ld_key_ebr_imp * key_chobj_imp = ld_key_chobj_imp * key_dms_imp = ld_key_dms_imp * key_pnnr_imp = ld_key_pnnr_imp IMPORTING e_document_exp = ld_e_document_exp e_rule_exp = ld_e_rule_exp . " SIGN_DOCUMENT_CREATE
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_e_document_exp  TYPE RC70D-DOCUMENT ,
ld_object_imp  TYPE RC72-SIGN_OBJ ,
ld_e_rule_exp  TYPE RC71D-DOC_RULE ,
ld_sign_reason_imp  TYPE RC71-REASON ,
ld_sign_reason_ktxt_imp  TYPE RC71-REASON_KTXT ,
ld_key_chord_imp  TYPE RC72 ,
ld_key_lot_imp  TYPE RC73 ,
ld_key_sheet_imp  TYPE RC74 ,
ld_key_ebr_imp  TYPE RC75 ,
ld_key_chobj_imp  TYPE RC76 ,
ld_key_dms_imp  TYPE RC77 ,
ld_key_pnnr_imp  TYPE RC78 .


ld_object_imp = some text here

ld_sign_reason_imp = some text here

ld_sign_reason_ktxt_imp = some text here
ld_key_chord_imp = 'Check type of data required'.
ld_key_lot_imp = 'Check type of data required'.
ld_key_sheet_imp = 'Check type of data required'.
ld_key_ebr_imp = 'Check type of data required'.
ld_key_chobj_imp = 'Check type of data required'.
ld_key_dms_imp = 'Check type of data required'.
ld_key_pnnr_imp = 'Check type of data required'.

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