SAP ABI_IDOC_SEND Function Module for Send IDocs to auto-ID infrastructure
ABI_IDOC_SEND is a standard abi idoc send SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Send IDocs to auto-ID infrastructure 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 abi idoc send FM, simply by entering the name ABI_IDOC_SEND into the relevant SAP transaction such as SE37 or SE38.
Function Group: ABI_MSG_HANDLER
Program Name: SAPLABI_MSG_HANDLER
Main Program: SAPLABI_MSG_HANDLER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ABI_IDOC_SEND 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 'ABI_IDOC_SEND'"Send IDocs to auto-ID infrastructure.
EXPORTING
* IV_MESTYP = "Message type
* IV_IDOCTP = "Basic type
* IV_RCVPRN = "Partner Number of Recipient
* IS_NRRANGE = "EPC number range maintain
* IS_OBJECT = "Message Status
TABLES
* ET_IDOC_CONTROL = "Control record (IDoc)
* IT_MARA = "General Material Data
EXCEPTIONS
IDOC_CREATION_FAILED = 1 IDOC_SEND_FAILED = 2
IMPORTING Parameters details for ABI_IDOC_SEND
IV_MESTYP - Message type
Data type: EDI_MESTYPOptional: Yes
Call by Reference: Yes
IV_IDOCTP - Basic type
Data type: EDI_IDOCTPOptional: Yes
Call by Reference: Yes
IV_RCVPRN - Partner Number of Recipient
Data type: EDI_RCVPRNOptional: Yes
Call by Reference: Yes
IS_NRRANGE - EPC number range maintain
Data type: E1NRP01Optional: Yes
Call by Reference: Yes
IS_OBJECT - Message Status
Data type: NASTOptional: Yes
Call by Reference: Yes
TABLES Parameters details for ABI_IDOC_SEND
ET_IDOC_CONTROL - Control record (IDoc)
Data type: EDIDCOptional: Yes
Call by Reference: Yes
IT_MARA - General Material Data
Data type: MARAOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
IDOC_CREATION_FAILED - Failed to create the Idoc
Data type:Optional: No
Call by Reference: Yes
IDOC_SEND_FAILED - Failed to send the Idoc
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ABI_IDOC_SEND 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_iv_mestyp | TYPE EDI_MESTYP, " | |||
lt_et_idoc_control | TYPE STANDARD TABLE OF EDIDC, " | |||
lv_idoc_creation_failed | TYPE EDIDC, " | |||
lt_it_mara | TYPE STANDARD TABLE OF MARA, " | |||
lv_iv_idoctp | TYPE EDI_IDOCTP, " | |||
lv_idoc_send_failed | TYPE EDI_IDOCTP, " | |||
lv_iv_rcvprn | TYPE EDI_RCVPRN, " | |||
lv_is_nrrange | TYPE E1NRP01, " | |||
lv_is_object | TYPE NAST. " |
  CALL FUNCTION 'ABI_IDOC_SEND' "Send IDocs to auto-ID infrastructure |
EXPORTING | ||
IV_MESTYP | = lv_iv_mestyp | |
IV_IDOCTP | = lv_iv_idoctp | |
IV_RCVPRN | = lv_iv_rcvprn | |
IS_NRRANGE | = lv_is_nrrange | |
IS_OBJECT | = lv_is_object | |
TABLES | ||
ET_IDOC_CONTROL | = lt_et_idoc_control | |
IT_MARA | = lt_it_mara | |
EXCEPTIONS | ||
IDOC_CREATION_FAILED = 1 | ||
IDOC_SEND_FAILED = 2 | ||
. " ABI_IDOC_SEND |
ABAP code using 7.40 inline data declarations to call FM ABI_IDOC_SEND
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.Search for further information about these or an SAP related objects