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-LOGDES
Optional: No
Call by Reference: No ( called with pass by value option)

CUSTOMER_SITE - Customer Number 1

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

PLANT - Plant

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

PLANT_NAME1 - Name 1 of a Plant

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

PLANT_NAME2 - Name 2 of a Plant

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

OUTBOUND_DATE - Data Transfer Date

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

OUTBOUND_TIME - Data Transfer Time

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

FILE_NAME - File Name for PDC Data Record

Data type: SRS_PDC_DOWNLOAD_NAME
Optional: 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-SUBRC
Optional: No
Call by Reference: No ( called with pass by value option)

PE_MSG_TEXT - Text Length 80

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

PE_RFC_DEST - RFC Destination

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

PE_KUNNR - Customer Number 1

Data type: KUNNR
Optional: 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_NAME
Optional: 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_HEAD
Optional: Yes
Call by Reference: Yes

GROUP - Assortment List Groups with Texts for Sorting Parameters

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

SBCHEADER - Table to Transfer Parameters for SBC

Data type: SBCCALLENV
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 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



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!