SAP OIO_RS_M_CREATE_DELIVERY Function Module for Returns: Create Outbound Delivery for material returns
OIO_RS_M_CREATE_DELIVERY is a standard oio rs m create delivery SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Returns: Create Outbound Delivery for material returns 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 oio rs m create delivery FM, simply by entering the name OIO_RS_M_CREATE_DELIVERY into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIO_RS
Program Name: SAPLOIO_RS
Main Program: SAPLOIO_RS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIO_RS_M_CREATE_DELIVERY 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 'OIO_RS_M_CREATE_DELIVERY'"Returns: Create Outbound Delivery for material returns.
EXPORTING
I_SBSDC_ID = "Returns document process
I_RTDOC = "RLM returns document - header
IT_RTDOC_MT = "RLM returns document - material items
IT_RTDOC_CT = "RLM returns document - container items
IMPORTING
ET_DOCFLOW = "Document flow records
ET_MSG = "Messages
EXCEPTIONS
DOCUMENT_CLASS_INVALID = 1 POSTING_ERROR = 2
IMPORTING Parameters details for OIO_RS_M_CREATE_DELIVERY
I_SBSDC_ID - Returns document process
Data type: OIO_RT_SBSDC_IDOptional: No
Call by Reference: Yes
I_RTDOC - RLM returns document - header
Data type: OIO_RT_RTDOCOptional: No
Call by Reference: Yes
IT_RTDOC_MT - RLM returns document - material items
Data type: ROIO_T_RT_RTDOC_MTOptional: No
Call by Reference: Yes
IT_RTDOC_CT - RLM returns document - container items
Data type: ROIO_T_RT_RTDOC_CTOptional: No
Call by Reference: Yes
EXPORTING Parameters details for OIO_RS_M_CREATE_DELIVERY
ET_DOCFLOW - Document flow records
Data type: ROIO_T_DOC_FLOWOptional: No
Call by Reference: Yes
ET_MSG - Messages
Data type: ROIO_T_MSGOptional: No
Call by Reference: Yes
EXCEPTIONS details
DOCUMENT_CLASS_INVALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
POSTING_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for OIO_RS_M_CREATE_DELIVERY 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_et_docflow | TYPE ROIO_T_DOC_FLOW, " | |||
| lv_i_sbsdc_id | TYPE OIO_RT_SBSDC_ID, " | |||
| lv_document_class_invalid | TYPE OIO_RT_SBSDC_ID, " | |||
| lv_et_msg | TYPE ROIO_T_MSG, " | |||
| lv_i_rtdoc | TYPE OIO_RT_RTDOC, " | |||
| lv_posting_error | TYPE OIO_RT_RTDOC, " | |||
| lv_it_rtdoc_mt | TYPE ROIO_T_RT_RTDOC_MT, " | |||
| lv_it_rtdoc_ct | TYPE ROIO_T_RT_RTDOC_CT. " |
|   CALL FUNCTION 'OIO_RS_M_CREATE_DELIVERY' "Returns: Create Outbound Delivery for material returns |
| EXPORTING | ||
| I_SBSDC_ID | = lv_i_sbsdc_id | |
| I_RTDOC | = lv_i_rtdoc | |
| IT_RTDOC_MT | = lv_it_rtdoc_mt | |
| IT_RTDOC_CT | = lv_it_rtdoc_ct | |
| IMPORTING | ||
| ET_DOCFLOW | = lv_et_docflow | |
| ET_MSG | = lv_et_msg | |
| EXCEPTIONS | ||
| DOCUMENT_CLASS_INVALID = 1 | ||
| POSTING_ERROR = 2 | ||
| . " OIO_RS_M_CREATE_DELIVERY | ||
ABAP code using 7.40 inline data declarations to call FM OIO_RS_M_CREATE_DELIVERY
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