SAP WRMA_BUFFER_IDOC_OR_SEND Function Module for Buffer IDoc and/or Send Entire Buffer
WRMA_BUFFER_IDOC_OR_SEND is a standard wrma buffer idoc or 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 Buffer IDoc and/or Send Entire Buffer 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 wrma buffer idoc or send FM, simply by entering the name WRMA_BUFFER_IDOC_OR_SEND into the relevant SAP transaction such as SE37 or SE38.
Function Group: WRMA_RE_OUT1
Program Name: SAPLWRMA_RE_OUT1
Main Program: SAPLWRMA_RE_OUT1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function WRMA_BUFFER_IDOC_OR_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 'WRMA_BUFFER_IDOC_OR_SEND'"Buffer IDoc and/or Send Entire Buffer.
EXPORTING
I_IDOC_HEADER = "Control Record (IDoc)
I_SEND_WHOLE_BUFFER = "
IT_IDOC_DATA = "Table Type for EDIDC (IDoc Control Record)
IT_IDOC_CONTROL = "Table Type for EDIDD (IDoc Data Records)
IMPORTING
E_MULTIPLE = "
E_DOC_NUMBER = "IDoc Number
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for WRMA_BUFFER_IDOC_OR_SEND
I_IDOC_HEADER - Control Record (IDoc)
Data type: EDIDCOptional: No
Call by Reference: Yes
I_SEND_WHOLE_BUFFER -
Data type: COptional: No
Call by Reference: Yes
IT_IDOC_DATA - Table Type for EDIDC (IDoc Control Record)
Data type: EDIDD_TTOptional: No
Call by Reference: Yes
IT_IDOC_CONTROL - Table Type for EDIDD (IDoc Data Records)
Data type: EDIDC_TTOptional: No
Call by Reference: Yes
EXPORTING Parameters details for WRMA_BUFFER_IDOC_OR_SEND
E_MULTIPLE -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_DOC_NUMBER - IDoc Number
Data type: EDI_DOCNUMOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR - At Least One IDoc Could Not Be Sent
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for WRMA_BUFFER_IDOC_OR_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_error | TYPE STRING, " | |||
| lv_e_multiple | TYPE C, " | |||
| lv_i_idoc_header | TYPE EDIDC, " | |||
| lv_e_doc_number | TYPE EDI_DOCNUM, " | |||
| lv_i_send_whole_buffer | TYPE C, " | |||
| lv_it_idoc_data | TYPE EDIDD_TT, " | |||
| lv_it_idoc_control | TYPE EDIDC_TT. " |
|   CALL FUNCTION 'WRMA_BUFFER_IDOC_OR_SEND' "Buffer IDoc and/or Send Entire Buffer |
| EXPORTING | ||
| I_IDOC_HEADER | = lv_i_idoc_header | |
| I_SEND_WHOLE_BUFFER | = lv_i_send_whole_buffer | |
| IT_IDOC_DATA | = lv_it_idoc_data | |
| IT_IDOC_CONTROL | = lv_it_idoc_control | |
| IMPORTING | ||
| E_MULTIPLE | = lv_e_multiple | |
| E_DOC_NUMBER | = lv_e_doc_number | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " WRMA_BUFFER_IDOC_OR_SEND | ||
ABAP code using 7.40 inline data declarations to call FM WRMA_BUFFER_IDOC_OR_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