SAP BAPI_PDSSRVAPS_GETLIST Function Module for Reading of Production Data Structures
BAPI_PDSSRVAPS_GETLIST is a standard bapi pdssrvaps getlist SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reading 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 getlist FM, simply by entering the name BAPI_PDSSRVAPS_GETLIST 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): Remote-Enabled
Update:

Function BAPI_PDSSRVAPS_GETLIST 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_GETLIST'"Reading of Production Data Structures.
EXPORTING
LOGICAL_SYSTEM = "Logical System from Which Message Originates
* BUSINESS_SYSTEM_GROUP = "Business System Group
* GENERATION_DATE_FROM = "Generation Date (From)
* GENERATION_DATE_TO = "Generation Date (To)
* EXCLUDE_EXPORT_FLAGS = "Restriction of Return Tables to be Populated
* MAX_NUMBER_OF_PDS = "Maximum Number of Objects
IMPORTING
NUMBER_OF_PDS = "Number of Objects
TABLES
* PDS_KEY = "PDS: Key
* 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
* 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_SELECTION = "RANGE Table for Product Data Structures
* PDS_CONDITION = "PDS: Selection Conditions
* PDS_CONDITION_DETAIL = "PDS: Selection Conditions, Detailed Information
* PDS_PROCEDURE = "PDS: Procedures
* PDS_PROCEDURE_DETAIL = "PDS: Procedure Details
* PDS_LINE_ASSIGNMENT = "PDS: Line Assignments
* PDS_REPPOINT = "PDS: Reporting Points
* PDS_REPPOINT_RELATIONSHIP = "PDS: Reporting Point Relationships
* RETURN = "Return Parameters
* EXTENSION_IN = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* EXTENSION_OUT = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* PRODUCT_SELECTION = "RANGE Table for Products
* LOCATION_SELECTION = "RANGE Table for Locations
* PLANNING_VERSION_SELECTION = "RANGE Table for Planning Versions
* PDS_USAGE = "PDS: Usage
* PDS_HEAD = "PDS: Header Data
* PDS_TEXT = "PDS: Descriptive Texts
* PDS_COMPONENT = "PDS: Components
IMPORTING Parameters details for BAPI_PDSSRVAPS_GETLIST
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)
GENERATION_DATE_FROM - Generation Date (From)
Data type: BAPI10014GENFIELDS-GENERATION_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
GENERATION_DATE_TO - Generation Date (To)
Data type: BAPI10014GENFIELDS-GENERATION_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCLUDE_EXPORT_FLAGS - Restriction of Return Tables to be Populated
Data type: BAPI10014SELRETFLAGSOptional: Yes
Call by Reference: No ( called with pass by value option)
MAX_NUMBER_OF_PDS - Maximum Number of Objects
Data type: BAPI10014GENFIELDS-MAX_PDSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_PDSSRVAPS_GETLIST
NUMBER_OF_PDS - Number of Objects
Data type: BAPI10014GENFIELDS-NO_OF_PDSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_PDSSRVAPS_GETLIST
PDS_KEY - PDS: Key
Data type: BAPI10014PDSKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_COMPONENT_TDPP - PDS: Components, Time-Dependent Data
Data type: BAPI10014PDSCOMPTDPPOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_OPERATION - PDS: Operations
Data type: BAPI10014PDSOPROOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_ACTIVITY - PDS: Activities
Data type: BAPI10014PDSACTOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_ACTIVITY_TDPP - PDS: Activities, Time-Dependent Data
Data type: BAPI10014PDSACTTDPPOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_ACTIVITY_RELATIONSHIP - PDS: Activity Relationships
Data type: BAPI10014PDSACTRELOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_MODE - PDS: Mode
Data type: BAPI10014PDSMODEOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_MODE_TDPP - PDS: Mode, Time-Dependent Data
Data type: BAPI10014PDSMODETDPPOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_CAPACITY_REQUIREMENT - PDS: Capacity Requirements
Data type: BAPI10014PDSCAPREQOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_CAPACITY_REQUIREMENT_TDPP - PDS: Capacity Requirements, Time-Dependent Data
Data type: BAPI10014PDSCAPREQTDPPOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_CLASSIFICATION - PDS: Classifications
Data type: BAPI10014PDSCLASSOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_SELECTION - RANGE Table for Product Data Structures
Data type: BAPIPDSRANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_CONDITION - PDS: Selection Conditions
Data type: BAPI10014PDSCONDITIONOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_CONDITION_DETAIL - PDS: Selection Conditions, Detailed Information
Data type: BAPI10014PDSCONDITIONDETOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_PROCEDURE - PDS: Procedures
Data type: BAPI10014PDSPROCOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_PROCEDURE_DETAIL - PDS: Procedure Details
Data type: BAPI10014PDSPROCDETOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_LINE_ASSIGNMENT - PDS: Line Assignments
Data type: BAPI10014PDSLINEASSGMTOOptional: Yes
Call by Reference: Yes
PDS_REPPOINT - PDS: Reporting Points
Data type: BAPI10014PDSRPOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_REPPOINT_RELATIONSHIP - PDS: Reporting Point Relationships
Data type: BAPI10014PDSRPRELOOptional: Yes
Call by Reference: No ( called with pass by value option)
RETURN - Return Parameters
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
EXTENSION_IN - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: No ( called with pass by value option)
EXTENSION_OUT - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: No ( called with pass by value option)
PRODUCT_SELECTION - RANGE Table for Products
Data type: BAPIPRODUCTRANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
LOCATION_SELECTION - RANGE Table for Locations
Data type: BAPILOCRANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
PLANNING_VERSION_SELECTION - RANGE Table for Planning Versions
Data type: BAPIVERSRANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_USAGE - PDS: Usage
Data type: BAPI10014PDSUSAGEOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_HEAD - PDS: Header Data
Data type: BAPI10014PDSHEADOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_TEXT - PDS: Descriptive Texts
Data type: BAPI10014PDSTEXTOOptional: Yes
Call by Reference: No ( called with pass by value option)
PDS_COMPONENT - PDS: Components
Data type: BAPI10014PDSCOMPOOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_PDSSRVAPS_GETLIST 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_key | TYPE STANDARD TABLE OF BAPI10014PDSKEY, " | |||
| lv_number_of_pds | TYPE BAPI10014GENFIELDS-NO_OF_PDS, " | |||
| lv_logical_system | TYPE BAPIGENFIELDS-LOGSYSTEM, " | |||
| lt_pds_component_tdpp | TYPE STANDARD TABLE OF BAPI10014PDSCOMPTDPPO, " | |||
| lt_pds_operation | TYPE STANDARD TABLE OF BAPI10014PDSOPRO, " | |||
| lt_pds_activity | TYPE STANDARD TABLE OF BAPI10014PDSACTO, " | |||
| lt_pds_activity_tdpp | TYPE STANDARD TABLE OF BAPI10014PDSACTTDPPO, " | |||
| lt_pds_activity_relationship | TYPE STANDARD TABLE OF BAPI10014PDSACTRELO, " | |||
| lt_pds_mode | TYPE STANDARD TABLE OF BAPI10014PDSMODEO, " | |||
| lt_pds_mode_tdpp | TYPE STANDARD TABLE OF BAPI10014PDSMODETDPPO, " | |||
| lt_pds_capacity_requirement | TYPE STANDARD TABLE OF BAPI10014PDSCAPREQO, " | |||
| lt_pds_capacity_requirement_tdpp | TYPE STANDARD TABLE OF BAPI10014PDSCAPREQTDPPO, " | |||
| lt_pds_classification | TYPE STANDARD TABLE OF BAPI10014PDSCLASSO, " | |||
| lt_pds_selection | TYPE STANDARD TABLE OF BAPIPDSRANGE, " | |||
| lv_business_system_group | TYPE BAPIGENFIELDS-BUSGROUP, " | |||
| lt_pds_condition | TYPE STANDARD TABLE OF BAPI10014PDSCONDITIONO, " | |||
| lt_pds_condition_detail | TYPE STANDARD TABLE OF BAPI10014PDSCONDITIONDETO, " | |||
| lt_pds_procedure | TYPE STANDARD TABLE OF BAPI10014PDSPROCO, " | |||
| lt_pds_procedure_detail | TYPE STANDARD TABLE OF BAPI10014PDSPROCDETO, " | |||
| lt_pds_line_assignment | TYPE STANDARD TABLE OF BAPI10014PDSLINEASSGMTO, " | |||
| lt_pds_reppoint | TYPE STANDARD TABLE OF BAPI10014PDSRPO, " | |||
| lt_pds_reppoint_relationship | TYPE STANDARD TABLE OF BAPI10014PDSRPRELO, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_extension_in | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lt_extension_out | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lt_product_selection | TYPE STANDARD TABLE OF BAPIPRODUCTRANGE, " | |||
| lv_generation_date_from | TYPE BAPI10014GENFIELDS-GENERATION_DATE, " | |||
| lv_generation_date_to | TYPE BAPI10014GENFIELDS-GENERATION_DATE, " | |||
| lt_location_selection | TYPE STANDARD TABLE OF BAPILOCRANGE, " | |||
| lv_exclude_export_flags | TYPE BAPI10014SELRETFLAGS, " | |||
| lt_planning_version_selection | TYPE STANDARD TABLE OF BAPIVERSRANGE, " | |||
| lt_pds_usage | TYPE STANDARD TABLE OF BAPI10014PDSUSAGE, " | |||
| lv_max_number_of_pds | TYPE BAPI10014GENFIELDS-MAX_PDS, " | |||
| lt_pds_head | TYPE STANDARD TABLE OF BAPI10014PDSHEADO, " | |||
| lt_pds_text | TYPE STANDARD TABLE OF BAPI10014PDSTEXTO, " | |||
| lt_pds_component | TYPE STANDARD TABLE OF BAPI10014PDSCOMPO. " |
|   CALL FUNCTION 'BAPI_PDSSRVAPS_GETLIST' "Reading of Production Data Structures |
| EXPORTING | ||
| LOGICAL_SYSTEM | = lv_logical_system | |
| BUSINESS_SYSTEM_GROUP | = lv_business_system_group | |
| GENERATION_DATE_FROM | = lv_generation_date_from | |
| GENERATION_DATE_TO | = lv_generation_date_to | |
| EXCLUDE_EXPORT_FLAGS | = lv_exclude_export_flags | |
| MAX_NUMBER_OF_PDS | = lv_max_number_of_pds | |
| IMPORTING | ||
| NUMBER_OF_PDS | = lv_number_of_pds | |
| TABLES | ||
| PDS_KEY | = lt_pds_key | |
| 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 | |
| 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_SELECTION | = lt_pds_selection | |
| PDS_CONDITION | = lt_pds_condition | |
| PDS_CONDITION_DETAIL | = lt_pds_condition_detail | |
| PDS_PROCEDURE | = lt_pds_procedure | |
| PDS_PROCEDURE_DETAIL | = lt_pds_procedure_detail | |
| PDS_LINE_ASSIGNMENT | = lt_pds_line_assignment | |
| PDS_REPPOINT | = lt_pds_reppoint | |
| PDS_REPPOINT_RELATIONSHIP | = lt_pds_reppoint_relationship | |
| RETURN | = lt_return | |
| EXTENSION_IN | = lt_extension_in | |
| EXTENSION_OUT | = lt_extension_out | |
| PRODUCT_SELECTION | = lt_product_selection | |
| LOCATION_SELECTION | = lt_location_selection | |
| PLANNING_VERSION_SELECTION | = lt_planning_version_selection | |
| PDS_USAGE | = lt_pds_usage | |
| PDS_HEAD | = lt_pds_head | |
| PDS_TEXT | = lt_pds_text | |
| PDS_COMPONENT | = lt_pds_component | |
| . " BAPI_PDSSRVAPS_GETLIST | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_PDSSRVAPS_GETLIST
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 NO_OF_PDS FROM BAPI10014GENFIELDS INTO @DATA(ld_number_of_pds). | ||||
| "SELECT single LOGSYSTEM FROM BAPIGENFIELDS INTO @DATA(ld_logical_system). | ||||
| "SELECT single BUSGROUP FROM BAPIGENFIELDS INTO @DATA(ld_business_system_group). | ||||
| "SELECT single GENERATION_DATE FROM BAPI10014GENFIELDS INTO @DATA(ld_generation_date_from). | ||||
| "SELECT single GENERATION_DATE FROM BAPI10014GENFIELDS INTO @DATA(ld_generation_date_to). | ||||
| "SELECT single MAX_PDS FROM BAPI10014GENFIELDS INTO @DATA(ld_max_number_of_pds). | ||||
Search for further information about these or an SAP related objects