SAP SLDS_DOCU_IMPORT_SINGLE Function Module for









SLDS_DOCU_IMPORT_SINGLE is a standard slds docu import single 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 slds docu import single FM, simply by entering the name SLDS_DOCU_IMPORT_SINGLE into the relevant SAP transaction such as SE37 or SE38.

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



Function SLDS_DOCU_IMPORT_SINGLE 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 'SLDS_DOCU_IMPORT_SINGLE'"
EXPORTING
ID = "Documentation class
* IGNORE_WARNINGS = 'X' "
* SUPPRESS_ROLLBACK = ' ' "
OBJECT = "Documentation module name
LANGU = "Language
* VERSION = 0001 "
* DELETE_OLD_VERSIONS = ' ' "
DOKSTATE = "Documentation module status
* DOKFORM = ' ' "Documentation module status
* DOKSTYLE = ' ' "
* TIME_STAMP = "

TABLES
LINE = "Text lines
MESSAGES = "

EXCEPTIONS
IMPORT_FAILED = 1 INVALID_INPUT = 2 OTHER_ERROR = 3
.



IMPORTING Parameters details for SLDS_DOCU_IMPORT_SINGLE

ID - Documentation class

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

IGNORE_WARNINGS -

Data type: TTOBJECTS-TLOGO
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SUPPRESS_ROLLBACK -

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

OBJECT - Documentation module name

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

LANGU - Language

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

VERSION -

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

DELETE_OLD_VERSIONS -

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

DOKSTATE - Documentation module status

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

DOKFORM - Documentation module status

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

DOKSTYLE -

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

TIME_STAMP -

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

TABLES Parameters details for SLDS_DOCU_IMPORT_SINGLE

LINE - Text lines

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

MESSAGES -

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

EXCEPTIONS details

IMPORT_FAILED - Return code

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

INVALID_INPUT - Entry incorrect

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

OTHER_ERROR -

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

Copy and paste ABAP code example for SLDS_DOCU_IMPORT_SINGLE 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_id  TYPE DOKHL-ID, "   
lt_line  TYPE STANDARD TABLE OF DOC_LINE, "   
lv_import_failed  TYPE DOC_LINE, "   
lv_ignore_warnings  TYPE TTOBJECTS-TLOGO, "   'X'
lv_suppress_rollback  TYPE TTOBJECTS-TLOGO, "   SPACE
lv_object  TYPE DOKHL-OBJECT, "   
lt_messages  TYPE STANDARD TABLE OF MSAGLIST, "   
lv_invalid_input  TYPE MSAGLIST, "   
lv_langu  TYPE SY-LANGU, "   
lv_other_error  TYPE SY, "   
lv_version  TYPE DOKIL-VERSION, "   0001
lv_delete_old_versions  TYPE TTOBJECTS-TLOGO, "   SPACE
lv_dokstate  TYPE DOKHL-DOKSTATE, "   
lv_dokform  TYPE DOKHL-DOKFORM, "   SPACE
lv_dokstyle  TYPE DOKHL-DOKSTYLE, "   SPACE
lv_time_stamp  TYPE STRP0_TIME_STAMP. "   

  CALL FUNCTION 'SLDS_DOCU_IMPORT_SINGLE'  "
    EXPORTING
         ID = lv_id
         IGNORE_WARNINGS = lv_ignore_warnings
         SUPPRESS_ROLLBACK = lv_suppress_rollback
         OBJECT = lv_object
         LANGU = lv_langu
         VERSION = lv_version
         DELETE_OLD_VERSIONS = lv_delete_old_versions
         DOKSTATE = lv_dokstate
         DOKFORM = lv_dokform
         DOKSTYLE = lv_dokstyle
         TIME_STAMP = lv_time_stamp
    TABLES
         LINE = lt_line
         MESSAGES = lt_messages
    EXCEPTIONS
        IMPORT_FAILED = 1
        INVALID_INPUT = 2
        OTHER_ERROR = 3
. " SLDS_DOCU_IMPORT_SINGLE




ABAP code using 7.40 inline data declarations to call FM SLDS_DOCU_IMPORT_SINGLE

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 ID FROM DOKHL INTO @DATA(ld_id).
 
 
 
"SELECT single TLOGO FROM TTOBJECTS INTO @DATA(ld_ignore_warnings).
DATA(ld_ignore_warnings) = 'X'.
 
"SELECT single TLOGO FROM TTOBJECTS INTO @DATA(ld_suppress_rollback).
DATA(ld_suppress_rollback) = ' '.
 
"SELECT single OBJECT FROM DOKHL INTO @DATA(ld_object).
 
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_langu).
 
 
"SELECT single VERSION FROM DOKIL INTO @DATA(ld_version).
DATA(ld_version) = 0001.
 
"SELECT single TLOGO FROM TTOBJECTS INTO @DATA(ld_delete_old_versions).
DATA(ld_delete_old_versions) = ' '.
 
"SELECT single DOKSTATE FROM DOKHL INTO @DATA(ld_dokstate).
 
"SELECT single DOKFORM FROM DOKHL INTO @DATA(ld_dokform).
DATA(ld_dokform) = ' '.
 
"SELECT single DOKSTYLE FROM DOKHL INTO @DATA(ld_dokstyle).
DATA(ld_dokstyle) = ' '.
 
 


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!