SAP BAPI_PDSSRVAPS_SAVEMULTI Function Module for Creation or Changing of Production Data Structures
BAPI_PDSSRVAPS_SAVEMULTI is a standard bapi pdssrvaps savemulti SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Creation or Changing of Production Data Structures 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 bapi pdssrvaps savemulti FM, simply by entering the name BAPI_PDSSRVAPS_SAVEMULTI into the relevant SAP transaction such as SE37 or SE38.
Function Group: 10014
Program Name: SAPL10014
Main Program: SAPL10014
Appliation area:
Release date: 21-Mar-2005
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BAPI_PDSSRVAPS_SAVEMULTI 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 'BAPI_PDSSRVAPS_SAVEMULTI'"Creation or Changing of Production Data Structures.
EXPORTING
LOGICAL_SYSTEM = "Logical System from Which Message Originates
* BUSINESS_SYSTEM_GROUP = "Business System Group
* COMMIT_CONTROL = "Update Control
* SAVE_OPTIONS = "Save Options
TABLES
PDS_HEAD = "PDS: Header Data
* PDS_MODE_TDPP = "PDS: Mode, Time-Dependent Data
* PDS_CAPACITY_REQUIREMENT = "PDS: Capacity Requirements
* PDS_CAPACITY_REQUIREMENT_TDPP = "PDS: Capacity Requirements, Time-Dependent Data
* PDS_CLASSIFICATION = "PDS: Classifications
* PDS_CONDITION = "PDS: Selection Conditions
* PDS_CONDITION_DETAIL = "PDS: Selection Conditions, Detailed Information
* PDS_PROCEDURE = "PDS: Procedures
* PDS_PROCEDURE_DETAIL = "PDS: Procedures, Detailed Information
* RETURN = "Return Parameters
* EXTENSION_IN = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* PDS_TEXT = "PDS: Descriptive Texts
* PDS_COMPONENT = "PDS: Components
* PDS_COMPONENT_TDPP = "PDS: Components, Time-Dependent Data
* PDS_OPERATION = "PDS: Operations
* PDS_ACTIVITY = "PDS: Activities
* PDS_ACTIVITY_TDPP = "PDS: Activities, Time-Dependent Data
* PDS_ACTIVITY_RELATIONSHIP = "PDS: Activity Relationships
* PDS_MODE = "PDS: Mode
IMPORTING Parameters details for BAPI_PDSSRVAPS_SAVEMULTI
LOGICAL_SYSTEM - Logical System from Which Message Originates
Data type: BAPIGENFIELDS-LOGSYSTEMOptional: No
Call by Reference: No ( called with pass by value option)
BUSINESS_SYSTEM_GROUP - Business System Group
Data type: BAPIGENFIELDS-BUSGROUPOptional: Yes
Call by Reference: No ( called with pass by value option)
COMMIT_CONTROL - Update Control
Data type: BAPI10014GENFIELDS-COMMIT_CONTROLOptional: Yes
Call by Reference: No ( called with pass by value option)
SAVE_OPTIONS - Save Options
Data type: BAPI10014SAVEOPTIONSOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_PDSSRVAPS_SAVEMULTI
PDS_HEAD - PDS: Header Data
Data type: BAPI10014PDSHEADOptional: No
Call by Reference: Yes
PDS_MODE_TDPP - PDS: Mode, Time-Dependent Data
Data type: BAPI10014PDSMODETDPPOptional: Yes
Call by Reference: Yes
PDS_CAPACITY_REQUIREMENT - PDS: Capacity Requirements
Data type: BAPI10014PDSCAPREQOptional: Yes
Call by Reference: Yes
PDS_CAPACITY_REQUIREMENT_TDPP - PDS: Capacity Requirements, Time-Dependent Data
Data type: BAPI10014PDSCAPREQTDPPOptional: Yes
Call by Reference: Yes
PDS_CLASSIFICATION - PDS: Classifications
Data type: BAPI10014PDSCLASSOptional: Yes
Call by Reference: Yes
PDS_CONDITION - PDS: Selection Conditions
Data type: BAPI10014PDSCONDITIONOptional: Yes
Call by Reference: Yes
PDS_CONDITION_DETAIL - PDS: Selection Conditions, Detailed Information
Data type: BAPI10014PDSCONDITIONDETOptional: Yes
Call by Reference: Yes
PDS_PROCEDURE - PDS: Procedures
Data type: BAPI10014PDSPROCOptional: Yes
Call by Reference: Yes
PDS_PROCEDURE_DETAIL - PDS: Procedures, Detailed Information
Data type: BAPI10014PDSPROCDETOptional: Yes
Call by Reference: Yes
RETURN - Return Parameters
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
EXTENSION_IN - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
PDS_TEXT - PDS: Descriptive Texts
Data type: BAPI10014PDSTEXTOptional: Yes
Call by Reference: Yes
PDS_COMPONENT - PDS: Components
Data type: BAPI10014PDSCOMPOptional: Yes
Call by Reference: Yes
PDS_COMPONENT_TDPP - PDS: Components, Time-Dependent Data
Data type: BAPI10014PDSCOMPTDPPOptional: Yes
Call by Reference: Yes
PDS_OPERATION - PDS: Operations
Data type: BAPI10014PDSOPROptional: Yes
Call by Reference: Yes
PDS_ACTIVITY - PDS: Activities
Data type: BAPI10014PDSACTOptional: Yes
Call by Reference: Yes
PDS_ACTIVITY_TDPP - PDS: Activities, Time-Dependent Data
Data type: BAPI10014PDSACTTDPPOptional: Yes
Call by Reference: Yes
PDS_ACTIVITY_RELATIONSHIP - PDS: Activity Relationships
Data type: BAPI10014PDSACTRELOptional: Yes
Call by Reference: Yes
PDS_MODE - PDS: Mode
Data type: BAPI10014PDSMODEOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_PDSSRVAPS_SAVEMULTI 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_pds_head | TYPE STANDARD TABLE OF BAPI10014PDSHEAD, " | |||
| lv_logical_system | TYPE BAPIGENFIELDS-LOGSYSTEM, " | |||
| lt_pds_mode_tdpp | TYPE STANDARD TABLE OF BAPI10014PDSMODETDPP, " | |||
| lt_pds_capacity_requirement | TYPE STANDARD TABLE OF BAPI10014PDSCAPREQ, " | |||
| lt_pds_capacity_requirement_tdpp | TYPE STANDARD TABLE OF BAPI10014PDSCAPREQTDPP, " | |||
| lt_pds_classification | TYPE STANDARD TABLE OF BAPI10014PDSCLASS, " | |||
| lt_pds_condition | TYPE STANDARD TABLE OF BAPI10014PDSCONDITION, " | |||
| lt_pds_condition_detail | TYPE STANDARD TABLE OF BAPI10014PDSCONDITIONDET, " | |||
| lt_pds_procedure | TYPE STANDARD TABLE OF BAPI10014PDSPROC, " | |||
| lt_pds_procedure_detail | TYPE STANDARD TABLE OF BAPI10014PDSPROCDET, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_extension_in | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lt_pds_text | TYPE STANDARD TABLE OF BAPI10014PDSTEXT, " | |||
| lv_business_system_group | TYPE BAPIGENFIELDS-BUSGROUP, " | |||
| lt_pds_component | TYPE STANDARD TABLE OF BAPI10014PDSCOMP, " | |||
| lv_commit_control | TYPE BAPI10014GENFIELDS-COMMIT_CONTROL, " | |||
| lv_save_options | TYPE BAPI10014SAVEOPTIONS, " | |||
| lt_pds_component_tdpp | TYPE STANDARD TABLE OF BAPI10014PDSCOMPTDPP, " | |||
| lt_pds_operation | TYPE STANDARD TABLE OF BAPI10014PDSOPR, " | |||
| lt_pds_activity | TYPE STANDARD TABLE OF BAPI10014PDSACT, " | |||
| lt_pds_activity_tdpp | TYPE STANDARD TABLE OF BAPI10014PDSACTTDPP, " | |||
| lt_pds_activity_relationship | TYPE STANDARD TABLE OF BAPI10014PDSACTREL, " | |||
| lt_pds_mode | TYPE STANDARD TABLE OF BAPI10014PDSMODE. " |
|   CALL FUNCTION 'BAPI_PDSSRVAPS_SAVEMULTI' "Creation or Changing of Production Data Structures |
| EXPORTING | ||
| LOGICAL_SYSTEM | = lv_logical_system | |
| BUSINESS_SYSTEM_GROUP | = lv_business_system_group | |
| COMMIT_CONTROL | = lv_commit_control | |
| SAVE_OPTIONS | = lv_save_options | |
| TABLES | ||
| PDS_HEAD | = lt_pds_head | |
| PDS_MODE_TDPP | = lt_pds_mode_tdpp | |
| PDS_CAPACITY_REQUIREMENT | = lt_pds_capacity_requirement | |
| PDS_CAPACITY_REQUIREMENT_TDPP | = lt_pds_capacity_requirement_tdpp | |
| PDS_CLASSIFICATION | = lt_pds_classification | |
| PDS_CONDITION | = lt_pds_condition | |
| PDS_CONDITION_DETAIL | = lt_pds_condition_detail | |
| PDS_PROCEDURE | = lt_pds_procedure | |
| PDS_PROCEDURE_DETAIL | = lt_pds_procedure_detail | |
| RETURN | = lt_return | |
| EXTENSION_IN | = lt_extension_in | |
| PDS_TEXT | = lt_pds_text | |
| PDS_COMPONENT | = lt_pds_component | |
| PDS_COMPONENT_TDPP | = lt_pds_component_tdpp | |
| PDS_OPERATION | = lt_pds_operation | |
| PDS_ACTIVITY | = lt_pds_activity | |
| PDS_ACTIVITY_TDPP | = lt_pds_activity_tdpp | |
| PDS_ACTIVITY_RELATIONSHIP | = lt_pds_activity_relationship | |
| PDS_MODE | = lt_pds_mode | |
| . " BAPI_PDSSRVAPS_SAVEMULTI | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_PDSSRVAPS_SAVEMULTI
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 LOGSYSTEM FROM BAPIGENFIELDS INTO @DATA(ld_logical_system). | ||||
| "SELECT single BUSGROUP FROM BAPIGENFIELDS INTO @DATA(ld_business_system_group). | ||||
| "SELECT single COMMIT_CONTROL FROM BAPI10014GENFIELDS INTO @DATA(ld_commit_control). | ||||
Search for further information about these or an SAP related objects