SAP BAPI_ISUTASK_GETCOMMCONTROL Function Module for Read Communication Type for an IDoc









BAPI_ISUTASK_GETCOMMCONTROL is a standard bapi isutask getcommcontrol SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Communication Type for an IDoc 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 bapi isutask getcommcontrol FM, simply by entering the name BAPI_ISUTASK_GETCOMMCONTROL into the relevant SAP transaction such as SE37 or SE38.

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



Function BAPI_ISUTASK_GETCOMMCONTROL 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 'BAPI_ISUTASK_GETCOMMCONTROL'"Read Communication Type for an IDoc
EXPORTING
IDOCNUMBER = "IDoc Number

IMPORTING
COMMCONTROLHEADER = "BAPI: Communication Type for Header Data
INTERNET = "BAPI: Internet Data for Communication Type
RETURN = "Return Parameters
DEXFORMAT = "Data Exchange Format
COMMTYPE = "Transmission Type
COMMFORMAT = "Communication Format
COMMFORMATVERS = "Communication Format Version
XMLDIALEKT = "XML Dialect to Use to Send a Message
ALE = "BAPI: ALE Data for Communication Type
EMAIL = "BAPI: E-Mail Data for Communication Type
FTP = "BAPI: FTP Data for Communication Type

TABLES
* EMAIL_FROM = "BAPI: Communication Control Header Data
* EMAIL_TO = "BAPI: Communication Control Header Data
* EMAIL_CC = "BAPI: Communication Control Header Data
* EMAIL_BCC = "BAPI: Communication Control Header Data
* EXTENSIONIN = "Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
* EXTENSIONOUT = "Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
.



IMPORTING Parameters details for BAPI_ISUTASK_GETCOMMCONTROL

IDOCNUMBER - IDoc Number

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

EXPORTING Parameters details for BAPI_ISUTASK_GETCOMMCONTROL

COMMCONTROLHEADER - BAPI: Communication Type for Header Data

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

INTERNET - BAPI: Internet Data for Communication Type

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

RETURN - Return Parameters

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

DEXFORMAT - Data Exchange Format

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

COMMTYPE - Transmission Type

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

COMMFORMAT - Communication Format

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

COMMFORMATVERS - Communication Format Version

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

XMLDIALEKT - XML Dialect to Use to Send a Message

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

ALE - BAPI: ALE Data for Communication Type

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

EMAIL - BAPI: E-Mail Data for Communication Type

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

FTP - BAPI: FTP Data for Communication Type

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

TABLES Parameters details for BAPI_ISUTASK_GETCOMMCONTROL

EMAIL_FROM - BAPI: Communication Control Header Data

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

EMAIL_TO - BAPI: Communication Control Header Data

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

EMAIL_CC - BAPI: Communication Control Header Data

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

EMAIL_BCC - BAPI: Communication Control Header Data

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

EXTENSIONIN - Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT

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

EXTENSIONOUT - Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT

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

Copy and paste ABAP code example for BAPI_ISUTASK_GETCOMMCONTROL 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_email_from  TYPE STANDARD TABLE OF BAPIISUCOMMCONTROLADDR, "   
lv_idocnumber  TYPE BAPIISUCOMMCONTROLIN-IDOCNUMMER, "   
lv_commcontrolheader  TYPE BAPIISUCOMMCONTROL, "   
lv_internet  TYPE BAPIISUCOMMCONTROLINTERNET, "   
lv_return  TYPE BAPIRET2, "   
lt_email_to  TYPE STANDARD TABLE OF BAPIISUCOMMCONTROLADDR, "   
lv_dexformat  TYPE BAPIISUCOMMCONTROLOUT-DEXFORMAT, "   
lv_commtype  TYPE BAPIISUCOMMCONTROLOUT-COMMTYPE, "   
lt_email_cc  TYPE STANDARD TABLE OF BAPIISUCOMMCONTROLADDR, "   
lt_email_bcc  TYPE STANDARD TABLE OF BAPIISUCOMMCONTROLADDR, "   
lv_commformat  TYPE BAPIISUCOMMCONTROLOUT-COMMFORMAT, "   
lt_extensionin  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_commformatvers  TYPE BAPIISUCOMMCONTROLOUT-COMMFORMATVERS, "   
lv_xmldialekt  TYPE BAPIISUCOMMCONTROLOUT-XMLDIALEKT, "   
lt_extensionout  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_ale  TYPE BAPIISUCOMMCONTROLALE, "   
lv_email  TYPE BAPIISUCOMMCONTROLEMAIL, "   
lv_ftp  TYPE BAPIISUCOMMCONTROLFTP. "   

  CALL FUNCTION 'BAPI_ISUTASK_GETCOMMCONTROL'  "Read Communication Type for an IDoc
    EXPORTING
         IDOCNUMBER = lv_idocnumber
    IMPORTING
         COMMCONTROLHEADER = lv_commcontrolheader
         INTERNET = lv_internet
         RETURN = lv_return
         DEXFORMAT = lv_dexformat
         COMMTYPE = lv_commtype
         COMMFORMAT = lv_commformat
         COMMFORMATVERS = lv_commformatvers
         XMLDIALEKT = lv_xmldialekt
         ALE = lv_ale
         EMAIL = lv_email
         FTP = lv_ftp
    TABLES
         EMAIL_FROM = lt_email_from
         EMAIL_TO = lt_email_to
         EMAIL_CC = lt_email_cc
         EMAIL_BCC = lt_email_bcc
         EXTENSIONIN = lt_extensionin
         EXTENSIONOUT = lt_extensionout
. " BAPI_ISUTASK_GETCOMMCONTROL




ABAP code using 7.40 inline data declarations to call FM BAPI_ISUTASK_GETCOMMCONTROL

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 IDOCNUMMER FROM BAPIISUCOMMCONTROLIN INTO @DATA(ld_idocnumber).
 
 
 
 
 
"SELECT single DEXFORMAT FROM BAPIISUCOMMCONTROLOUT INTO @DATA(ld_dexformat).
 
"SELECT single COMMTYPE FROM BAPIISUCOMMCONTROLOUT INTO @DATA(ld_commtype).
 
 
 
"SELECT single COMMFORMAT FROM BAPIISUCOMMCONTROLOUT INTO @DATA(ld_commformat).
 
 
"SELECT single COMMFORMATVERS FROM BAPIISUCOMMCONTROLOUT INTO @DATA(ld_commformatvers).
 
"SELECT single XMLDIALEKT FROM BAPIISUCOMMCONTROLOUT INTO @DATA(ld_xmldialekt).
 
 
 
 
 


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!