SAP OIUH_DURVTOSTAFORBAWRAP Function Module for
OIUH_DURVTOSTAFORBAWRAP is a standard oiuh durvtostaforbawrap SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 oiuh durvtostaforbawrap FM, simply by entering the name OIUH_DURVTOSTAFORBAWRAP into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIUH_DURVTOSTAFORBAWRAP
Program Name: SAPLOIUH_DURVTOSTAFORBAWRAP
Main Program: SAPLOIUH_DURVTOSTAFORBAWRAP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIUH_DURVTOSTAFORBAWRAP 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 'OIUH_DURVTOSTAFORBAWRAP'".
CHANGING
* SQLCODE = "
* C_OSTA_WH_AM = "
* C_OSTA_ST_TAX_AM = "
* C_OSTA_VALTAX_AM = "
* C_OSTA_INT_PAID_AM = "
* C_OSTA_OTH_DED_7_AM = "
* C_OSTA_OTH_DED_8_AM = "
* C_OSTA_OTH_DED_11_AM = "
* C_OSTA_OTH_DED_12_AM = "
* C_OSTA_OTH_DED_13_AM = "
* C_OSTA_OTH_DED_14_AM = "
* CMESSAGE = "
* C_OSTA_OTH_DED_15_AM = "
* C_OSTA_OTH_DED_16_AM = "
* C_OSTA_OTH_DED_17_AM = "
* C_OSTA_OTH_DED_18_AM = "
* C_OSTA_NEMCMP_AM = "
* W_OSTA_OR_LVL_1_NO = "
* W_OSTA_BA_NO = "
* W_OSTA_BA_SEQ_NO = "
* W_OSTA_OI_TYPE_CD = "
* W_OSTA_TAX_DT = "
* ROWS = "
* W_OSTA_ST_CD = "
* TABLE = "
* C_OSTA_NVAL_AM = "
* C_OSTA_SEVT_AM = "
* C_OSTA_GR_VAL_AM = "
* C_OSTA_MKD_AM = "
* C_OSTA_NRA_WH_AM = "
EXCEPTIONS
WARNING = 1 GOBACK = 2 FAILED = 3
CHANGING Parameters details for OIUH_DURVTOSTAFORBAWRAP
SQLCODE -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_WH_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_ST_TAX_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_VALTAX_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_INT_PAID_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_OTH_DED_7_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_OTH_DED_8_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_OTH_DED_11_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_OTH_DED_12_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_OTH_DED_13_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_OTH_DED_14_AM -
Data type:Optional: Yes
Call by Reference: Yes
CMESSAGE -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_OTH_DED_15_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_OTH_DED_16_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_OTH_DED_17_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_OTH_DED_18_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_NEMCMP_AM -
Data type:Optional: Yes
Call by Reference: Yes
W_OSTA_OR_LVL_1_NO -
Data type:Optional: Yes
Call by Reference: Yes
W_OSTA_BA_NO -
Data type:Optional: Yes
Call by Reference: Yes
W_OSTA_BA_SEQ_NO -
Data type:Optional: Yes
Call by Reference: Yes
W_OSTA_OI_TYPE_CD -
Data type:Optional: Yes
Call by Reference: Yes
W_OSTA_TAX_DT -
Data type:Optional: Yes
Call by Reference: Yes
ROWS -
Data type:Optional: Yes
Call by Reference: Yes
W_OSTA_ST_CD -
Data type:Optional: Yes
Call by Reference: Yes
TABLE -
Data type: OIUH_DURVTOSTAFORBAXXOptional: Yes
Call by Reference: Yes
C_OSTA_NVAL_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_SEVT_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_GR_VAL_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_MKD_AM -
Data type:Optional: Yes
Call by Reference: Yes
C_OSTA_NRA_WH_AM -
Data type:Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
WARNING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
GOBACK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for OIUH_DURVTOSTAFORBAWRAP 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_sqlcode | TYPE STRING, " | |||
| lv_warning | TYPE STRING, " | |||
| lv_c_osta_wh_am | TYPE STRING, " | |||
| lv_c_osta_st_tax_am | TYPE STRING, " | |||
| lv_c_osta_valtax_am | TYPE STRING, " | |||
| lv_c_osta_int_paid_am | TYPE STRING, " | |||
| lv_c_osta_oth_ded_7_am | TYPE STRING, " | |||
| lv_c_osta_oth_ded_8_am | TYPE STRING, " | |||
| lv_c_osta_oth_ded_11_am | TYPE STRING, " | |||
| lv_c_osta_oth_ded_12_am | TYPE STRING, " | |||
| lv_c_osta_oth_ded_13_am | TYPE STRING, " | |||
| lv_c_osta_oth_ded_14_am | TYPE STRING, " | |||
| lv_goback | TYPE STRING, " | |||
| lv_cmessage | TYPE STRING, " | |||
| lv_c_osta_oth_ded_15_am | TYPE STRING, " | |||
| lv_c_osta_oth_ded_16_am | TYPE STRING, " | |||
| lv_c_osta_oth_ded_17_am | TYPE STRING, " | |||
| lv_c_osta_oth_ded_18_am | TYPE STRING, " | |||
| lv_c_osta_nemcmp_am | TYPE STRING, " | |||
| lv_w_osta_or_lvl_1_no | TYPE STRING, " | |||
| lv_w_osta_ba_no | TYPE STRING, " | |||
| lv_w_osta_ba_seq_no | TYPE STRING, " | |||
| lv_w_osta_oi_type_cd | TYPE STRING, " | |||
| lv_w_osta_tax_dt | TYPE STRING, " | |||
| lv_rows | TYPE STRING, " | |||
| lv_failed | TYPE STRING, " | |||
| lv_w_osta_st_cd | TYPE STRING, " | |||
| lv_table | TYPE OIUH_DURVTOSTAFORBAXX, " | |||
| lv_c_osta_nval_am | TYPE OIUH_DURVTOSTAFORBAXX, " | |||
| lv_c_osta_sevt_am | TYPE OIUH_DURVTOSTAFORBAXX, " | |||
| lv_c_osta_gr_val_am | TYPE OIUH_DURVTOSTAFORBAXX, " | |||
| lv_c_osta_mkd_am | TYPE OIUH_DURVTOSTAFORBAXX, " | |||
| lv_c_osta_nra_wh_am | TYPE OIUH_DURVTOSTAFORBAXX. " |
|   CALL FUNCTION 'OIUH_DURVTOSTAFORBAWRAP' " |
| CHANGING | ||
| SQLCODE | = lv_sqlcode | |
| C_OSTA_WH_AM | = lv_c_osta_wh_am | |
| C_OSTA_ST_TAX_AM | = lv_c_osta_st_tax_am | |
| C_OSTA_VALTAX_AM | = lv_c_osta_valtax_am | |
| C_OSTA_INT_PAID_AM | = lv_c_osta_int_paid_am | |
| C_OSTA_OTH_DED_7_AM | = lv_c_osta_oth_ded_7_am | |
| C_OSTA_OTH_DED_8_AM | = lv_c_osta_oth_ded_8_am | |
| C_OSTA_OTH_DED_11_AM | = lv_c_osta_oth_ded_11_am | |
| C_OSTA_OTH_DED_12_AM | = lv_c_osta_oth_ded_12_am | |
| C_OSTA_OTH_DED_13_AM | = lv_c_osta_oth_ded_13_am | |
| C_OSTA_OTH_DED_14_AM | = lv_c_osta_oth_ded_14_am | |
| CMESSAGE | = lv_cmessage | |
| C_OSTA_OTH_DED_15_AM | = lv_c_osta_oth_ded_15_am | |
| C_OSTA_OTH_DED_16_AM | = lv_c_osta_oth_ded_16_am | |
| C_OSTA_OTH_DED_17_AM | = lv_c_osta_oth_ded_17_am | |
| C_OSTA_OTH_DED_18_AM | = lv_c_osta_oth_ded_18_am | |
| C_OSTA_NEMCMP_AM | = lv_c_osta_nemcmp_am | |
| W_OSTA_OR_LVL_1_NO | = lv_w_osta_or_lvl_1_no | |
| W_OSTA_BA_NO | = lv_w_osta_ba_no | |
| W_OSTA_BA_SEQ_NO | = lv_w_osta_ba_seq_no | |
| W_OSTA_OI_TYPE_CD | = lv_w_osta_oi_type_cd | |
| W_OSTA_TAX_DT | = lv_w_osta_tax_dt | |
| ROWS | = lv_rows | |
| W_OSTA_ST_CD | = lv_w_osta_st_cd | |
| TABLE | = lv_table | |
| C_OSTA_NVAL_AM | = lv_c_osta_nval_am | |
| C_OSTA_SEVT_AM | = lv_c_osta_sevt_am | |
| C_OSTA_GR_VAL_AM | = lv_c_osta_gr_val_am | |
| C_OSTA_MKD_AM | = lv_c_osta_mkd_am | |
| C_OSTA_NRA_WH_AM | = lv_c_osta_nra_wh_am | |
| EXCEPTIONS | ||
| WARNING = 1 | ||
| GOBACK = 2 | ||
| FAILED = 3 | ||
| . " OIUH_DURVTOSTAFORBAWRAP | ||
ABAP code using 7.40 inline data declarations to call FM OIUH_DURVTOSTAFORBAWRAP
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.Search for further information about these or an SAP related objects