SAP BAPI_PDOTYPE_Q_GETDETAIL Function Module for Attributes of a qualification type
BAPI_PDOTYPE_Q_GETDETAIL is a standard bapi pdotype q getdetail SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Attributes of a qualification type 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 pdotype q getdetail FM, simply by entering the name BAPI_PDOTYPE_Q_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHPE_PDOTYPE_Q_BAPI
Program Name: SAPLRHPE_PDOTYPE_Q_BAPI
Main Program: SAPLRHPE_PDOTYPE_Q_BAPI
Appliation area: H
Release date: 19-May-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_PDOTYPE_Q_GETDETAIL 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_PDOTYPE_Q_GETDETAIL'"Attributes of a qualification type.
EXPORTING
PLVAR = "Plan version
OBJID = "Object ID of qualification type
* KEYDAY = SY-DATUM "Reporting key date
IMPORTING
STEXT = "Name of qualification type
BEGDA = "Valid from date
ENDDA = "Valid to date
SCALE_ID = "ID of scale
SCALETXT = "Scale name
QGROUP_ID = "ID of superior group
QGROUPTXT = "Name of superior group
DEPRECIATIONVALIDITY = "Deprec. Meter/Validity
RETURN = "Return
TABLES
* DESCRIPTION = "Description
* ALTERNATIVES = "Alternative qualification types
* PROFICENCIES = "Allowed proficiencies
* PROFCYDESCRIPTIONS = "Description of allowed proficiencies
IMPORTING Parameters details for BAPI_PDOTYPE_Q_GETDETAIL
PLVAR - Plan version
Data type: BAPIQUALIFIC-PLVAROptional: No
Call by Reference: No ( called with pass by value option)
OBJID - Object ID of qualification type
Data type: BAPIPDOTYPE_Q_TAB-OBJ_IDOptional: No
Call by Reference: No ( called with pass by value option)
KEYDAY - Reporting key date
Data type: BAPIPDOTYPEQ-KEYDAYDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_PDOTYPE_Q_GETDETAIL
STEXT - Name of qualification type
Data type: BAPIPDOTYPE_Q_TAB-STEXTOptional: No
Call by Reference: No ( called with pass by value option)
BEGDA - Valid from date
Data type: BAPIPDOTYPE_Q_TAB-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
ENDDA - Valid to date
Data type: BAPIPDOTYPE_Q_TAB-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
SCALE_ID - ID of scale
Data type: BAPIQUALIFIC_TAB-SCALE_IDOptional: No
Call by Reference: No ( called with pass by value option)
SCALETXT - Scale name
Data type: BAPIQUALIFIC_TAB-SCALETXTOptional: No
Call by Reference: No ( called with pass by value option)
QGROUP_ID - ID of superior group
Data type: BAPIQUALIFIC_TAB-QGROUP_IDOptional: No
Call by Reference: No ( called with pass by value option)
QGROUPTXT - Name of superior group
Data type: BAPIQUALIFIC_TAB-QGROUPTXTOptional: No
Call by Reference: No ( called with pass by value option)
DEPRECIATIONVALIDITY - Deprec. Meter/Validity
Data type: BAPIPDOTYPE_Q_1025Optional: No
Call by Reference: No ( called with pass by value option)
RETURN - Return
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_PDOTYPE_Q_GETDETAIL
DESCRIPTION - Description
Data type: BAPIPDOTYPE_1002Optional: Yes
Call by Reference: No ( called with pass by value option)
ALTERNATIVES - Alternative qualification types
Data type: BAPIPDOTYPEQ_ALTQOptional: Yes
Call by Reference: No ( called with pass by value option)
PROFICENCIES - Allowed proficiencies
Data type: BAPIPDOTYPEQ_PROFCIESOptional: Yes
Call by Reference: No ( called with pass by value option)
PROFCYDESCRIPTIONS - Description of allowed proficiencies
Data type: BAPIPDOTYPE_1048Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_PDOTYPE_Q_GETDETAIL 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_plvar | TYPE BAPIQUALIFIC-PLVAR, " | |||
| lv_stext | TYPE BAPIPDOTYPE_Q_TAB-STEXT, " | |||
| lt_description | TYPE STANDARD TABLE OF BAPIPDOTYPE_1002, " | |||
| lv_begda | TYPE BAPIPDOTYPE_Q_TAB-BEGDA, " | |||
| lv_objid | TYPE BAPIPDOTYPE_Q_TAB-OBJ_ID, " | |||
| lt_alternatives | TYPE STANDARD TABLE OF BAPIPDOTYPEQ_ALTQ, " | |||
| lv_endda | TYPE BAPIPDOTYPE_Q_TAB-ENDDA, " | |||
| lv_keyday | TYPE BAPIPDOTYPEQ-KEYDAY, " SY-DATUM | |||
| lt_proficencies | TYPE STANDARD TABLE OF BAPIPDOTYPEQ_PROFCIES, " | |||
| lv_scale_id | TYPE BAPIQUALIFIC_TAB-SCALE_ID, " | |||
| lt_profcydescriptions | TYPE STANDARD TABLE OF BAPIPDOTYPE_1048, " | |||
| lv_scaletxt | TYPE BAPIQUALIFIC_TAB-SCALETXT, " | |||
| lv_qgroup_id | TYPE BAPIQUALIFIC_TAB-QGROUP_ID, " | |||
| lv_qgrouptxt | TYPE BAPIQUALIFIC_TAB-QGROUPTXT, " | |||
| lv_depreciationvalidity | TYPE BAPIPDOTYPE_Q_1025, " | |||
| lv_return | TYPE BAPIRETURN1. " |
|   CALL FUNCTION 'BAPI_PDOTYPE_Q_GETDETAIL' "Attributes of a qualification type |
| EXPORTING | ||
| PLVAR | = lv_plvar | |
| OBJID | = lv_objid | |
| KEYDAY | = lv_keyday | |
| IMPORTING | ||
| STEXT | = lv_stext | |
| BEGDA | = lv_begda | |
| ENDDA | = lv_endda | |
| SCALE_ID | = lv_scale_id | |
| SCALETXT | = lv_scaletxt | |
| QGROUP_ID | = lv_qgroup_id | |
| QGROUPTXT | = lv_qgrouptxt | |
| DEPRECIATIONVALIDITY | = lv_depreciationvalidity | |
| RETURN | = lv_return | |
| TABLES | ||
| DESCRIPTION | = lt_description | |
| ALTERNATIVES | = lt_alternatives | |
| PROFICENCIES | = lt_proficencies | |
| PROFCYDESCRIPTIONS | = lt_profcydescriptions | |
| . " BAPI_PDOTYPE_Q_GETDETAIL | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_PDOTYPE_Q_GETDETAIL
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 PLVAR FROM BAPIQUALIFIC INTO @DATA(ld_plvar). | ||||
| "SELECT single STEXT FROM BAPIPDOTYPE_Q_TAB INTO @DATA(ld_stext). | ||||
| "SELECT single BEGDA FROM BAPIPDOTYPE_Q_TAB INTO @DATA(ld_begda). | ||||
| "SELECT single OBJ_ID FROM BAPIPDOTYPE_Q_TAB INTO @DATA(ld_objid). | ||||
| "SELECT single ENDDA FROM BAPIPDOTYPE_Q_TAB INTO @DATA(ld_endda). | ||||
| "SELECT single KEYDAY FROM BAPIPDOTYPEQ INTO @DATA(ld_keyday). | ||||
| DATA(ld_keyday) | = SY-DATUM. | |||
| "SELECT single SCALE_ID FROM BAPIQUALIFIC_TAB INTO @DATA(ld_scale_id). | ||||
| "SELECT single SCALETXT FROM BAPIQUALIFIC_TAB INTO @DATA(ld_scaletxt). | ||||
| "SELECT single QGROUP_ID FROM BAPIQUALIFIC_TAB INTO @DATA(ld_qgroup_id). | ||||
| "SELECT single QGROUPTXT FROM BAPIQUALIFIC_TAB INTO @DATA(ld_qgrouptxt). | ||||
Search for further information about these or an SAP related objects