SAP LSOF_ESIGNATURE_CREATE Function Module for









LSOF_ESIGNATURE_CREATE is a standard lsof esignature create 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 lsof esignature create FM, simply by entering the name LSOF_ESIGNATURE_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: LSO_FRONTEND
Program Name: SAPLLSO_FRONTEND
Main Program: SAPLLSO_FRONTEND
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function LSOF_ESIGNATURE_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 'LSOF_ESIGNATURE_CREATE'"
EXPORTING
* SSFAPPLICATION = 'ELEARN' "SSF Application
TRAININGTYPE_TYPE = "
TRAININGTYPE_ID = "Object ID
BEGDA = "Start date
ENDDA = "End of Validity Period
SEQNR = "Number of Infotype Record With Same Key
* SIGREASON = "
LEARNERNAME = "
* TPARTDOCNO = "
SIGNER = "User name of signatory
PASSWORD = "SSF Password
* SIGNMETHOD = 'R' "
PLVAR = "Plan Version
LEARNER_TYPE = "
LEARNER_ID = "ID of Related Object
TRAINING_TYPE = "
TRAINING_ID = "Object ID

IMPORTING
SIGN_TZONE_GLOBAL = "
TIMEST_GLOBAL = "UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
SIGN_TZONE_LOCAL = "
TIMEST_LOCAL = "UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
SIGN_DRULE = "
SIGN_SIGNED_DOC = "
SIGNATURE = "

EXCEPTIONS
PASSWORD_INVALID = 1 INCOMPLETE_VALUES = 10 OTHERS = 11 PASSWORD_EXPIRED = 2 PROFILE_LOCKED = 3 SYSTEM_ERROR = 4 RFC_ERROR = 5 SECTK_ERROR = 6 PROFILE_ERROR = 7 SIGNATURE_ERROR = 8 SIGNER_DETAIL_ERROR = 9
.



IMPORTING Parameters details for LSOF_ESIGNATURE_CREATE

SSFAPPLICATION - SSF Application

Data type: SSFARGS-APPLIC
Default: 'ELEARN'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TRAININGTYPE_TYPE -

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

TRAININGTYPE_ID - Object ID

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

BEGDA - Start date

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

ENDDA - End of Validity Period

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

SEQNR - Number of Infotype Record With Same Key

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

SIGREASON -

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

LEARNERNAME -

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

TPARTDOCNO -

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

SIGNER - User name of signatory

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

PASSWORD - SSF Password

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

SIGNMETHOD -

Data type: SIGNMETHOD
Default: 'R'
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLVAR - Plan Version

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

LEARNER_TYPE -

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

LEARNER_ID - ID of Related Object

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

TRAINING_TYPE -

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

TRAINING_ID - Object ID

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

EXPORTING Parameters details for LSOF_ESIGNATURE_CREATE

SIGN_TZONE_GLOBAL -

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

TIMEST_GLOBAL - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)

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

SIGN_TZONE_LOCAL -

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

TIMEST_LOCAL - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)

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

SIGN_DRULE -

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

SIGN_SIGNED_DOC -

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

SIGNATURE -

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

EXCEPTIONS details

PASSWORD_INVALID -

Data type:
Optional: No
Call by Reference: Yes

INCOMPLETE_VALUES -

Data type:
Optional: No
Call by Reference: Yes

OTHERS - Other

Data type:
Optional: No
Call by Reference: Yes

PASSWORD_EXPIRED -

Data type:
Optional: No
Call by Reference: Yes

PROFILE_LOCKED -

Data type:
Optional: No
Call by Reference: Yes

SYSTEM_ERROR - System Error

Data type:
Optional: No
Call by Reference: Yes

RFC_ERROR -

Data type:
Optional: No
Call by Reference: Yes

SECTK_ERROR -

Data type:
Optional: No
Call by Reference: Yes

PROFILE_ERROR -

Data type:
Optional: No
Call by Reference: Yes

SIGNATURE_ERROR -

Data type:
Optional: No
Call by Reference: Yes

SIGNER_DETAIL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for LSOF_ESIGNATURE_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_ssfapplication  TYPE SSFARGS-APPLIC, "   'ELEARN'
lv_password_invalid  TYPE SSFARGS, "   
lv_sign_tzone_global  TYPE TIMEZONE, "   
lv_incomplete_values  TYPE TIMEZONE, "   
lv_trainingtype_type  TYPE OTYPE, "   
lv_others  TYPE OTYPE, "   
lv_trainingtype_id  TYPE HROBJID, "   
lv_begda  TYPE BEGDA, "   
lv_endda  TYPE ENDDA, "   
lv_seqnr  TYPE SEQNR, "   
lv_sigreason  TYPE LSREASON, "   
lv_learnername  TYPE CHAR80, "   
lv_tpartdocno  TYPE LSTPARTDOC, "   
lv_signer  TYPE SSFPARMS-SIGNER, "   
lv_timest_global  TYPE TIMESTAMP, "   
lv_password_expired  TYPE TIMESTAMP, "   
lv_password  TYPE SSFINFO-PASSWORD, "   
lv_profile_locked  TYPE SSFINFO, "   
lv_sign_tzone_local  TYPE TIMEZONE, "   
lv_signmethod  TYPE SIGNMETHOD, "   'R'
lv_system_error  TYPE SIGNMETHOD, "   
lv_timest_local  TYPE TIMESTAMP, "   
lv_plvar  TYPE PLVAR, "   
lv_rfc_error  TYPE PLVAR, "   
lv_sign_drule  TYPE LSDRULE, "   
lv_sectk_error  TYPE LSDRULE, "   
lv_learner_type  TYPE OTYPE, "   
lv_sign_signed_doc  TYPE LSSIGN_SDOC, "   
lv_signature  TYPE LSSIGNATURE, "   
lv_learner_id  TYPE SOBID, "   
lv_profile_error  TYPE SOBID, "   
lv_training_type  TYPE OTYPE, "   
lv_signature_error  TYPE OTYPE, "   
lv_training_id  TYPE HROBJID, "   
lv_signer_detail_error  TYPE HROBJID. "   

  CALL FUNCTION 'LSOF_ESIGNATURE_CREATE'  "
    EXPORTING
         SSFAPPLICATION = lv_ssfapplication
         TRAININGTYPE_TYPE = lv_trainingtype_type
         TRAININGTYPE_ID = lv_trainingtype_id
         BEGDA = lv_begda
         ENDDA = lv_endda
         SEQNR = lv_seqnr
         SIGREASON = lv_sigreason
         LEARNERNAME = lv_learnername
         TPARTDOCNO = lv_tpartdocno
         SIGNER = lv_signer
         PASSWORD = lv_password
         SIGNMETHOD = lv_signmethod
         PLVAR = lv_plvar
         LEARNER_TYPE = lv_learner_type
         LEARNER_ID = lv_learner_id
         TRAINING_TYPE = lv_training_type
         TRAINING_ID = lv_training_id
    IMPORTING
         SIGN_TZONE_GLOBAL = lv_sign_tzone_global
         TIMEST_GLOBAL = lv_timest_global
         SIGN_TZONE_LOCAL = lv_sign_tzone_local
         TIMEST_LOCAL = lv_timest_local
         SIGN_DRULE = lv_sign_drule
         SIGN_SIGNED_DOC = lv_sign_signed_doc
         SIGNATURE = lv_signature
    EXCEPTIONS
        PASSWORD_INVALID = 1
        INCOMPLETE_VALUES = 10
        OTHERS = 11
        PASSWORD_EXPIRED = 2
        PROFILE_LOCKED = 3
        SYSTEM_ERROR = 4
        RFC_ERROR = 5
        SECTK_ERROR = 6
        PROFILE_ERROR = 7
        SIGNATURE_ERROR = 8
        SIGNER_DETAIL_ERROR = 9
. " LSOF_ESIGNATURE_CREATE




ABAP code using 7.40 inline data declarations to call FM LSOF_ESIGNATURE_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 APPLIC FROM SSFARGS INTO @DATA(ld_ssfapplication).
DATA(ld_ssfapplication) = 'ELEARN'.
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single SIGNER FROM SSFPARMS INTO @DATA(ld_signer).
 
 
 
"SELECT single PASSWORD FROM SSFINFO INTO @DATA(ld_password).
 
 
 
DATA(ld_signmethod) = 'R'.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!