SAP SRS_PDC_SO_STRUCTURE_NEWTASK Function Module for MDE: Interface for Parallel Transfer of Structure Data to BC
SRS_PDC_SO_STRUCTURE_NEWTASK is a standard srs pdc so structure newtask SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for MDE: Interface for Parallel Transfer of Structure Data to BC 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 srs pdc so structure newtask FM, simply by entering the name SRS_PDC_SO_STRUCTURE_NEWTASK into the relevant SAP transaction such as SE37 or SE38.
Function Group: WSAO_PDC_OUT
Program Name: SAPLWSAO_PDC_OUT
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SRS_PDC_SO_STRUCTURE_NEWTASK 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 'SRS_PDC_SO_STRUCTURE_NEWTASK'"MDE: Interface for Parallel Transfer of Structure Data to BC.
EXPORTING
RFC_DESTINATION = "RFC Destination
CUSTOMER_SITE = "Customer Number 1
* PLANT = "Plant
* PLANT_NAME1 = "Name 1 of a Plant
* PLANT_NAME2 = "Name 2 of a Plant
* OUTBOUND_DATE = "Data Transfer Date
* OUTBOUND_TIME = "Data Transfer Time
* FILE_NAME = "File Name for PDC Data Record
IMPORTING
PE_SUBRC = "Return Value, Return Value after ABAP Statements
PE_MSG_TEXT = "Text Length 80
PE_RFC_DEST = "RFC Destination
PE_KUNNR = "Customer Number 1
PE_DLD_NAME = "File Name for PDC Data Record
TABLES
* HEAD = "Assortment List Type with Associated Description
* GROUP = "Assortment List Groups with Texts for Sorting Parameters
* SBCHEADER = "Table to Transfer Parameters for SBC
* EXTENSIONOUT = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
IMPORTING Parameters details for SRS_PDC_SO_STRUCTURE_NEWTASK
RFC_DESTINATION - RFC Destination
Data type: EDIPOA-LOGDESOptional: No
Call by Reference: No ( called with pass by value option)
CUSTOMER_SITE - Customer Number 1
Data type: KUNNROptional: No
Call by Reference: No ( called with pass by value option)
PLANT - Plant
Data type: WERKS_DOptional: Yes
Call by Reference: No ( called with pass by value option)
PLANT_NAME1 - Name 1 of a Plant
Data type: SRS_PDC_PLANT_NAME_1Optional: Yes
Call by Reference: No ( called with pass by value option)
PLANT_NAME2 - Name 2 of a Plant
Data type: SRS_PDC_PLANT_NAME_2Optional: Yes
Call by Reference: No ( called with pass by value option)
OUTBOUND_DATE - Data Transfer Date
Data type: SRS_PDC_DOWNLOAD_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
OUTBOUND_TIME - Data Transfer Time
Data type: SRS_PDC_DOWNLOAD_TIMEOptional: Yes
Call by Reference: No ( called with pass by value option)
FILE_NAME - File Name for PDC Data Record
Data type: SRS_PDC_DOWNLOAD_NAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SRS_PDC_SO_STRUCTURE_NEWTASK
PE_SUBRC - Return Value, Return Value after ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
PE_MSG_TEXT - Text Length 80
Data type: TEXT80Optional: No
Call by Reference: No ( called with pass by value option)
PE_RFC_DEST - RFC Destination
Data type: EDIPOA-LOGDESOptional: No
Call by Reference: No ( called with pass by value option)
PE_KUNNR - Customer Number 1
Data type: KUNNROptional: No
Call by Reference: No ( called with pass by value option)
PE_DLD_NAME - File Name for PDC Data Record
Data type: SRS_PDC_DOWNLOAD_NAMEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SRS_PDC_SO_STRUCTURE_NEWTASK
HEAD - Assortment List Type with Associated Description
Data type: SRS_PDC_SO_OUT_HEADOptional: Yes
Call by Reference: Yes
GROUP - Assortment List Groups with Texts for Sorting Parameters
Data type: SRS_PDC_SO_OUT_GROUPOptional: Yes
Call by Reference: Yes
SBCHEADER - Table to Transfer Parameters for SBC
Data type: SBCCALLENVOptional: Yes
Call by Reference: Yes
EXTENSIONOUT - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for SRS_PDC_SO_STRUCTURE_NEWTASK 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_head | TYPE STANDARD TABLE OF SRS_PDC_SO_OUT_HEAD, " | |||
| lv_pe_subrc | TYPE SY-SUBRC, " | |||
| lv_rfc_destination | TYPE EDIPOA-LOGDES, " | |||
| lt_group | TYPE STANDARD TABLE OF SRS_PDC_SO_OUT_GROUP, " | |||
| lv_pe_msg_text | TYPE TEXT80, " | |||
| lv_customer_site | TYPE KUNNR, " | |||
| lv_plant | TYPE WERKS_D, " | |||
| lt_sbcheader | TYPE STANDARD TABLE OF SBCCALLENV, " | |||
| lv_pe_rfc_dest | TYPE EDIPOA-LOGDES, " | |||
| lv_pe_kunnr | TYPE KUNNR, " | |||
| lv_plant_name1 | TYPE SRS_PDC_PLANT_NAME_1, " | |||
| lt_extensionout | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lv_pe_dld_name | TYPE SRS_PDC_DOWNLOAD_NAME, " | |||
| lv_plant_name2 | TYPE SRS_PDC_PLANT_NAME_2, " | |||
| lv_outbound_date | TYPE SRS_PDC_DOWNLOAD_DATE, " | |||
| lv_outbound_time | TYPE SRS_PDC_DOWNLOAD_TIME, " | |||
| lv_file_name | TYPE SRS_PDC_DOWNLOAD_NAME. " |
|   CALL FUNCTION 'SRS_PDC_SO_STRUCTURE_NEWTASK' "MDE: Interface for Parallel Transfer of Structure Data to BC |
| EXPORTING | ||
| RFC_DESTINATION | = lv_rfc_destination | |
| CUSTOMER_SITE | = lv_customer_site | |
| PLANT | = lv_plant | |
| PLANT_NAME1 | = lv_plant_name1 | |
| PLANT_NAME2 | = lv_plant_name2 | |
| OUTBOUND_DATE | = lv_outbound_date | |
| OUTBOUND_TIME | = lv_outbound_time | |
| FILE_NAME | = lv_file_name | |
| IMPORTING | ||
| PE_SUBRC | = lv_pe_subrc | |
| PE_MSG_TEXT | = lv_pe_msg_text | |
| PE_RFC_DEST | = lv_pe_rfc_dest | |
| PE_KUNNR | = lv_pe_kunnr | |
| PE_DLD_NAME | = lv_pe_dld_name | |
| TABLES | ||
| HEAD | = lt_head | |
| GROUP | = lt_group | |
| SBCHEADER | = lt_sbcheader | |
| EXTENSIONOUT | = lt_extensionout | |
| . " SRS_PDC_SO_STRUCTURE_NEWTASK | ||
ABAP code using 7.40 inline data declarations to call FM SRS_PDC_SO_STRUCTURE_NEWTASK
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 SUBRC FROM SY INTO @DATA(ld_pe_subrc). | ||||
| "SELECT single LOGDES FROM EDIPOA INTO @DATA(ld_rfc_destination). | ||||
| "SELECT single LOGDES FROM EDIPOA INTO @DATA(ld_pe_rfc_dest). | ||||
Search for further information about these or an SAP related objects