SAP EASYDMS_CUSTTABS_INIT Function Module for Init Custom tabs









EASYDMS_CUSTTABS_INIT is a standard easydms custtabs init SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Init Custom tabs 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 easydms custtabs init FM, simply by entering the name EASYDMS_CUSTTABS_INIT into the relevant SAP transaction such as SE37 or SE38.

Function Group: EASYDMS
Program Name: SAPLEASYDMS
Main Program: SAPLEASYDMS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function EASYDMS_CUSTTABS_INIT 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 'EASYDMS_CUSTTABS_INIT'"Init Custom tabs
EXPORTING
* DOKNR = "Document number
* DOKAR = "Document Type
* DOKTL = "Document Part
* DOKVR = "Document Version
* FOLDERDOCUMENT = "BAPIS DMS: document key
* TAB_NUMBER = "File length of original

IMPORTING
TAB_DESCRIPTION = "Text Line
TAB_TITLE = "Text Line
TITLE_FIELDS = "Text Line
TITLE_TABLE = "Text Line

TABLES
* FIELDS = "Buffer Table for DMS Data with CAD Dialog RFC
* TABLEHEADER = "Buffer Table for DMS Data with CAD Dialog RFC
* TABLEFIELDS = "Buffer Table for DMS Data with CAD Dialog RFC
.



IMPORTING Parameters details for EASYDMS_CUSTTABS_INIT

DOKNR - Document number

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

DOKAR - Document Type

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

DOKTL - Document Part

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

DOKVR - Document Version

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

FOLDERDOCUMENT - BAPIS DMS: document key

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

TAB_NUMBER - File length of original

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

EXPORTING Parameters details for EASYDMS_CUSTTABS_INIT

TAB_DESCRIPTION - Text Line

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

TAB_TITLE - Text Line

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

TITLE_FIELDS - Text Line

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

TITLE_TABLE - Text Line

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

TABLES Parameters details for EASYDMS_CUSTTABS_INIT

FIELDS - Buffer Table for DMS Data with CAD Dialog RFC

Data type: RFCDMSDATA
Optional: Yes
Call by Reference: Yes

TABLEHEADER - Buffer Table for DMS Data with CAD Dialog RFC

Data type: RFCDMSDATA
Optional: Yes
Call by Reference: Yes

TABLEFIELDS - Buffer Table for DMS Data with CAD Dialog RFC

Data type: RFCDMSDATA
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for EASYDMS_CUSTTABS_INIT 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_doknr  TYPE DRAW-DOKNR, "   
lt_fields  TYPE STANDARD TABLE OF RFCDMSDATA, "   
lv_tab_description  TYPE BAPI_DOC_TEXT-TEXTLINE, "   
lv_dokar  TYPE DRAW-DOKAR, "   
lv_tab_title  TYPE BAPI_DOC_TEXT-TEXTLINE, "   
lt_tableheader  TYPE STANDARD TABLE OF RFCDMSDATA, "   
lv_doktl  TYPE DRAW-DOKTL, "   
lt_tablefields  TYPE STANDARD TABLE OF RFCDMSDATA, "   
lv_title_fields  TYPE BAPI_DOC_TEXT-TEXTLINE, "   
lv_dokvr  TYPE DRAW-DOKVR, "   
lv_title_table  TYPE BAPI_DOC_TEXT-TEXTLINE, "   
lv_folderdocument  TYPE BAPI_DOC_KEYS, "   
lv_tab_number  TYPE BAPI_DOC_DRAW2-FILESIZE1. "   

  CALL FUNCTION 'EASYDMS_CUSTTABS_INIT'  "Init Custom tabs
    EXPORTING
         DOKNR = lv_doknr
         DOKAR = lv_dokar
         DOKTL = lv_doktl
         DOKVR = lv_dokvr
         FOLDERDOCUMENT = lv_folderdocument
         TAB_NUMBER = lv_tab_number
    IMPORTING
         TAB_DESCRIPTION = lv_tab_description
         TAB_TITLE = lv_tab_title
         TITLE_FIELDS = lv_title_fields
         TITLE_TABLE = lv_title_table
    TABLES
         FIELDS = lt_fields
         TABLEHEADER = lt_tableheader
         TABLEFIELDS = lt_tablefields
. " EASYDMS_CUSTTABS_INIT




ABAP code using 7.40 inline data declarations to call FM EASYDMS_CUSTTABS_INIT

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 DOKNR FROM DRAW INTO @DATA(ld_doknr).
 
 
"SELECT single TEXTLINE FROM BAPI_DOC_TEXT INTO @DATA(ld_tab_description).
 
"SELECT single DOKAR FROM DRAW INTO @DATA(ld_dokar).
 
"SELECT single TEXTLINE FROM BAPI_DOC_TEXT INTO @DATA(ld_tab_title).
 
 
"SELECT single DOKTL FROM DRAW INTO @DATA(ld_doktl).
 
 
"SELECT single TEXTLINE FROM BAPI_DOC_TEXT INTO @DATA(ld_title_fields).
 
"SELECT single DOKVR FROM DRAW INTO @DATA(ld_dokvr).
 
"SELECT single TEXTLINE FROM BAPI_DOC_TEXT INTO @DATA(ld_title_table).
 
 
"SELECT single FILESIZE1 FROM BAPI_DOC_DRAW2 INTO @DATA(ld_tab_number).
 


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!