SAP DOCU_PUT_WORKAREA_LSDOC Function Module for









DOCU_PUT_WORKAREA_LSDOC is a standard docu put workarea lsdoc 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 docu put workarea lsdoc FM, simply by entering the name DOCU_PUT_WORKAREA_LSDOC into the relevant SAP transaction such as SE37 or SE38.

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



Function DOCU_PUT_WORKAREA_LSDOC 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 'DOCU_PUT_WORKAREA_LSDOC'"
EXPORTING
* W_ACTCLASS = ' ' "
* W_DOKIL = ' ' "
* W_ENQ = ' ' "
* W_SDOC = ' ' "
* W_VERSION = ' ' "
* W_DEVCLASS = ' ' "
* W_KORRNUM = ' ' "
* W_NO_EDIT = ' ' "
.



IMPORTING Parameters details for DOCU_PUT_WORKAREA_LSDOC

W_ACTCLASS -

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

W_DOKIL -

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

W_ENQ -

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

W_SDOC -

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

W_VERSION -

Data type: DOKIL-VERSION
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

W_DEVCLASS -

Data type: TADIR-DEVCLASS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

W_KORRNUM -

Data type: E070-TRKORR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

W_NO_EDIT -

Data type: SY-BATCH
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for DOCU_PUT_WORKAREA_LSDOC 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_w_actclass  TYPE STRING, "   SPACE
lv_w_dokil  TYPE DOKIL, "   SPACE
lv_w_enq  TYPE DOKIL, "   SPACE
lv_w_sdoc  TYPE TSDOC, "   SPACE
lv_w_version  TYPE DOKIL-VERSION, "   SPACE
lv_w_devclass  TYPE TADIR-DEVCLASS, "   SPACE
lv_w_korrnum  TYPE E070-TRKORR, "   SPACE
lv_w_no_edit  TYPE SY-BATCH. "   SPACE

  CALL FUNCTION 'DOCU_PUT_WORKAREA_LSDOC'  "
    EXPORTING
         W_ACTCLASS = lv_w_actclass
         W_DOKIL = lv_w_dokil
         W_ENQ = lv_w_enq
         W_SDOC = lv_w_sdoc
         W_VERSION = lv_w_version
         W_DEVCLASS = lv_w_devclass
         W_KORRNUM = lv_w_korrnum
         W_NO_EDIT = lv_w_no_edit
. " DOCU_PUT_WORKAREA_LSDOC




ABAP code using 7.40 inline data declarations to call FM DOCU_PUT_WORKAREA_LSDOC

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.

DATA(ld_w_actclass) = ' '.
 
DATA(ld_w_dokil) = ' '.
 
DATA(ld_w_enq) = ' '.
 
DATA(ld_w_sdoc) = ' '.
 
"SELECT single VERSION FROM DOKIL INTO @DATA(ld_w_version).
DATA(ld_w_version) = ' '.
 
"SELECT single DEVCLASS FROM TADIR INTO @DATA(ld_w_devclass).
DATA(ld_w_devclass) = ' '.
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_w_korrnum).
DATA(ld_w_korrnum) = ' '.
 
"SELECT single BATCH FROM SY INTO @DATA(ld_w_no_edit).
DATA(ld_w_no_edit) = ' '.
 


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!