SAP OIUHS_GET_PS_BS_QY Function Module for Get pressure base quality
OIUHS_GET_PS_BS_QY is a standard oiuhs get ps bs qy SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get pressure base quality 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 oiuhs get ps bs qy FM, simply by entering the name OIUHS_GET_PS_BS_QY into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIUHS_INTEGRATION_EPRZ
Program Name: SAPLOIUHS_INTEGRATION_EPRZ
Main Program: SAPLOIUHS_INTEGRATION_EPRZ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIUHS_GET_PS_BS_QY 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 'OIUHS_GET_PS_BS_QY'"Get pressure base quality.
EXPORTING
I_SEVWC_NO = "Severance tax well completion number
I_SEVMP_NO = "Severance tax measurement point
I_SALE_DT = "Effective From Date
I_DN_NO = "Delivery network number
I_MAJPD_CD = "Major product code
* I_MATNR = "Material Number
IMPORTING
E_PS_BASE_QY = "Natural gas standard/base pressure: combustion (heat. value)
EXCEPTIONS
DNNOTFOUND = 1 MGNOTFOUND = 2 UOMNOTFOUND = 3 NOUOMGROUP = 4 NOUOM = 5
IMPORTING Parameters details for OIUHS_GET_PS_BS_QY
I_SEVWC_NO - Severance tax well completion number
Data type: OIUVL_SEVWC-SEVWC_NOOptional: No
Call by Reference: Yes
I_SEVMP_NO - Severance tax measurement point
Data type: OIUVL_SEVMP-SEVMP_NOOptional: No
Call by Reference: Yes
I_SALE_DT - Effective From Date
Data type: OIU_PR_DNVD-EFF_FROM_DTOptional: No
Call by Reference: Yes
I_DN_NO - Delivery network number
Data type: OIUVL_SEVWC-DN_NOOptional: No
Call by Reference: Yes
I_MAJPD_CD - Major product code
Data type: OIUVL_SEVWC-MAJPD_CDOptional: No
Call by Reference: Yes
I_MATNR - Material Number
Data type: OIUVL_SEVWC-MATNROptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for OIUHS_GET_PS_BS_QY
E_PS_BASE_QY - Natural gas standard/base pressure: combustion (heat. value)
Data type: OIUH_RV_SEV-SEV_ST_PS_BS_QYOptional: No
Call by Reference: Yes
EXCEPTIONS details
DNNOTFOUND - DN number Not Found in either oiuvl_sevwc or oiuvl_sevmp
Data type:Optional: No
Call by Reference: Yes
MGNOTFOUND - Measure group ID Not Found in oiu_pr_dnvd
Data type:Optional: No
Call by Reference: Yes
UOMNOTFOUND - Conversion group Not Found in oiu_pr_dn_uomg
Data type:Optional: No
Call by Reference: Yes
NOUOMGROUP - NO UOM group found in table oiu_pr_dn_uomg
Data type:Optional: No
Call by Reference: Yes
NOUOM - No UOM found in table oiu_me_uom_Gr_as
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for OIUHS_GET_PS_BS_QY 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_dnnotfound | TYPE STRING, " | |||
| lv_i_sevwc_no | TYPE OIUVL_SEVWC-SEVWC_NO, " | |||
| lv_e_ps_base_qy | TYPE OIUH_RV_SEV-SEV_ST_PS_BS_QY, " | |||
| lv_i_sevmp_no | TYPE OIUVL_SEVMP-SEVMP_NO, " | |||
| lv_mgnotfound | TYPE OIUVL_SEVMP, " | |||
| lv_i_sale_dt | TYPE OIU_PR_DNVD-EFF_FROM_DT, " | |||
| lv_uomnotfound | TYPE OIU_PR_DNVD, " | |||
| lv_i_dn_no | TYPE OIUVL_SEVWC-DN_NO, " | |||
| lv_nouomgroup | TYPE OIUVL_SEVWC, " | |||
| lv_nouom | TYPE OIUVL_SEVWC, " | |||
| lv_i_majpd_cd | TYPE OIUVL_SEVWC-MAJPD_CD, " | |||
| lv_i_matnr | TYPE OIUVL_SEVWC-MATNR. " |
|   CALL FUNCTION 'OIUHS_GET_PS_BS_QY' "Get pressure base quality |
| EXPORTING | ||
| I_SEVWC_NO | = lv_i_sevwc_no | |
| I_SEVMP_NO | = lv_i_sevmp_no | |
| I_SALE_DT | = lv_i_sale_dt | |
| I_DN_NO | = lv_i_dn_no | |
| I_MAJPD_CD | = lv_i_majpd_cd | |
| I_MATNR | = lv_i_matnr | |
| IMPORTING | ||
| E_PS_BASE_QY | = lv_e_ps_base_qy | |
| EXCEPTIONS | ||
| DNNOTFOUND = 1 | ||
| MGNOTFOUND = 2 | ||
| UOMNOTFOUND = 3 | ||
| NOUOMGROUP = 4 | ||
| NOUOM = 5 | ||
| . " OIUHS_GET_PS_BS_QY | ||
ABAP code using 7.40 inline data declarations to call FM OIUHS_GET_PS_BS_QY
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 SEVWC_NO FROM OIUVL_SEVWC INTO @DATA(ld_i_sevwc_no). | ||||
| "SELECT single SEV_ST_PS_BS_QY FROM OIUH_RV_SEV INTO @DATA(ld_e_ps_base_qy). | ||||
| "SELECT single SEVMP_NO FROM OIUVL_SEVMP INTO @DATA(ld_i_sevmp_no). | ||||
| "SELECT single EFF_FROM_DT FROM OIU_PR_DNVD INTO @DATA(ld_i_sale_dt). | ||||
| "SELECT single DN_NO FROM OIUVL_SEVWC INTO @DATA(ld_i_dn_no). | ||||
| "SELECT single MAJPD_CD FROM OIUVL_SEVWC INTO @DATA(ld_i_majpd_cd). | ||||
| "SELECT single MATNR FROM OIUVL_SEVWC INTO @DATA(ld_i_matnr). | ||||
Search for further information about these or an SAP related objects