SAP IDOCTYPE_READ_DEFAULTS_DXWB Function Module for Defaults for IDocs in the WX workbench









IDOCTYPE_READ_DEFAULTS_DXWB is a standard idoctype read defaults dxwb SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Defaults for IDocs in the WX workbench 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 idoctype read defaults dxwb FM, simply by entering the name IDOCTYPE_READ_DEFAULTS_DXWB into the relevant SAP transaction such as SE37 or SE38.

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



Function IDOCTYPE_READ_DEFAULTS_DXWB 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 'IDOCTYPE_READ_DEFAULTS_DXWB'"Defaults for IDocs in the WX workbench
EXPORTING
MESSAGETYPE = "Message type
IDOCTYPE = "Basic type
* CIMTYPE = "Enhancement
* RELEASE = SY-SAPRL "R/3 System, system release
* VERSION = '3' "Version of IDoc record types
* SNDPOR = "Sender port (SAP System, external subsystem)
* SNDPRN = "Partner number of sender

TABLES
DEFAULTS = "Default values for technical fields of an IDoc
.



IMPORTING Parameters details for IDOCTYPE_READ_DEFAULTS_DXWB

MESSAGETYPE - Message type

Data type: EDI_IAPI00-MESTYP
Optional: No
Call by Reference: Yes

IDOCTYPE - Basic type

Data type: EDI_IAPI00-IDOCTYP
Optional: No
Call by Reference: Yes

CIMTYPE - Enhancement

Data type: EDI_IAPI00-CIMTYP
Optional: Yes
Call by Reference: Yes

RELEASE - R/3 System, system release

Data type: SY-SAPRL
Default: SY-SAPRL
Optional: Yes
Call by Reference: Yes

VERSION - Version of IDoc record types

Data type: EDI_VERREC-VERSION
Default: '3'
Optional: Yes
Call by Reference: Yes

SNDPOR - Sender port (SAP System, external subsystem)

Data type: EDI_DC40-SNDPOR
Optional: Yes
Call by Reference: Yes

SNDPRN - Partner number of sender

Data type: EDI_DC40-SNDPRN
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for IDOCTYPE_READ_DEFAULTS_DXWB

DEFAULTS - Default values for technical fields of an IDoc

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

Copy and paste ABAP code example for IDOCTYPE_READ_DEFAULTS_DXWB 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:
lt_defaults  TYPE STANDARD TABLE OF DMC_IDOCDF, "   
lv_messagetype  TYPE EDI_IAPI00-MESTYP, "   
lv_idoctype  TYPE EDI_IAPI00-IDOCTYP, "   
lv_cimtype  TYPE EDI_IAPI00-CIMTYP, "   
lv_release  TYPE SY-SAPRL, "   SY-SAPRL
lv_version  TYPE EDI_VERREC-VERSION, "   '3'
lv_sndpor  TYPE EDI_DC40-SNDPOR, "   
lv_sndprn  TYPE EDI_DC40-SNDPRN. "   

  CALL FUNCTION 'IDOCTYPE_READ_DEFAULTS_DXWB'  "Defaults for IDocs in the WX workbench
    EXPORTING
         MESSAGETYPE = lv_messagetype
         IDOCTYPE = lv_idoctype
         CIMTYPE = lv_cimtype
         RELEASE = lv_release
         VERSION = lv_version
         SNDPOR = lv_sndpor
         SNDPRN = lv_sndprn
    TABLES
         DEFAULTS = lt_defaults
. " IDOCTYPE_READ_DEFAULTS_DXWB




ABAP code using 7.40 inline data declarations to call FM IDOCTYPE_READ_DEFAULTS_DXWB

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 MESTYP FROM EDI_IAPI00 INTO @DATA(ld_messagetype).
 
"SELECT single IDOCTYP FROM EDI_IAPI00 INTO @DATA(ld_idoctype).
 
"SELECT single CIMTYP FROM EDI_IAPI00 INTO @DATA(ld_cimtype).
 
"SELECT single SAPRL FROM SY INTO @DATA(ld_release).
DATA(ld_release) = SY-SAPRL.
 
"SELECT single VERSION FROM EDI_VERREC INTO @DATA(ld_version).
DATA(ld_version) = '3'.
 
"SELECT single SNDPOR FROM EDI_DC40 INTO @DATA(ld_sndpor).
 
"SELECT single SNDPRN FROM EDI_DC40 INTO @DATA(ld_sndprn).
 


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!