VBWS_UOM_MAINTAIN_DARK is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name VBWS_UOM_MAINTAIN_DARK into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
MWSD
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'VBWS_UOM_MAINTAIN_DARK' "
EXPORTING
i_matnr = " mara-matnr
* i_kzwsm = " mara-kzwsm
* i_kzwsmx = SPACE " bapiupdate
* i_type_of_block = 'E' " tvgvi-spera
* i_exit_by_first_error = 'X' " am07m-xselk
* i_list_errors_only = SPACE " am07m-xselk
* i_user = SY-UNAME " sy-uname
* i_buffer_refresh = 'X' " mtcom-kzrfb
* i_update_buffer_only = SPACE " am07m-xselk
* i_no_update = 'X' " am07m-xselk
* i_rfc_sender = " bdbapidest
* i_calling_method = " swo_method
IMPORTING
e_kzwsm = " mara-kzwsm
e_kzwsm_old = " mara-kzwsm
* TABLES
* i_meinh_ws_upd = " smeinh_wsupd
* i_meinh_ws_updx = " smeinh_wsupdx
* i_meinh_ws_sfn = " smeinh_wssfn
* i_meinh_ws_sfnx = " smeinh_wssfnx
* e_meinh_ws = " smeinh_ws
* e_meinh = " smeinh
* e_meinh_old = " smeinh
* e_message = " matmess
* e_return = " bapireturn1
EXCEPTIONS
ERROR = 1 "
. " VBWS_UOM_MAINTAIN_DARK
The ABAP code below is a full code listing to execute function module VBWS_UOM_MAINTAIN_DARK including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_e_kzwsm | TYPE MARA-KZWSM , |
| ld_e_kzwsm_old | TYPE MARA-KZWSM , |
| it_i_meinh_ws_upd | TYPE STANDARD TABLE OF SMEINH_WSUPD,"TABLES PARAM |
| wa_i_meinh_ws_upd | LIKE LINE OF it_i_meinh_ws_upd , |
| it_i_meinh_ws_updx | TYPE STANDARD TABLE OF SMEINH_WSUPDX,"TABLES PARAM |
| wa_i_meinh_ws_updx | LIKE LINE OF it_i_meinh_ws_updx , |
| it_i_meinh_ws_sfn | TYPE STANDARD TABLE OF SMEINH_WSSFN,"TABLES PARAM |
| wa_i_meinh_ws_sfn | LIKE LINE OF it_i_meinh_ws_sfn , |
| it_i_meinh_ws_sfnx | TYPE STANDARD TABLE OF SMEINH_WSSFNX,"TABLES PARAM |
| wa_i_meinh_ws_sfnx | LIKE LINE OF it_i_meinh_ws_sfnx , |
| it_e_meinh_ws | TYPE STANDARD TABLE OF SMEINH_WS,"TABLES PARAM |
| wa_e_meinh_ws | LIKE LINE OF it_e_meinh_ws , |
| it_e_meinh | TYPE STANDARD TABLE OF SMEINH,"TABLES PARAM |
| wa_e_meinh | LIKE LINE OF it_e_meinh , |
| it_e_meinh_old | TYPE STANDARD TABLE OF SMEINH,"TABLES PARAM |
| wa_e_meinh_old | LIKE LINE OF it_e_meinh_old , |
| it_e_message | TYPE STANDARD TABLE OF MATMESS,"TABLES PARAM |
| wa_e_message | LIKE LINE OF it_e_message , |
| it_e_return | TYPE STANDARD TABLE OF BAPIRETURN1,"TABLES PARAM |
| wa_e_return | LIKE LINE OF it_e_return . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_e_kzwsm | TYPE MARA-KZWSM , |
| ld_i_matnr | TYPE MARA-MATNR , |
| it_i_meinh_ws_upd | TYPE STANDARD TABLE OF SMEINH_WSUPD , |
| wa_i_meinh_ws_upd | LIKE LINE OF it_i_meinh_ws_upd, |
| ld_e_kzwsm_old | TYPE MARA-KZWSM , |
| ld_i_kzwsm | TYPE MARA-KZWSM , |
| it_i_meinh_ws_updx | TYPE STANDARD TABLE OF SMEINH_WSUPDX , |
| wa_i_meinh_ws_updx | LIKE LINE OF it_i_meinh_ws_updx, |
| ld_i_kzwsmx | TYPE BAPIUPDATE , |
| it_i_meinh_ws_sfn | TYPE STANDARD TABLE OF SMEINH_WSSFN , |
| wa_i_meinh_ws_sfn | LIKE LINE OF it_i_meinh_ws_sfn, |
| ld_i_type_of_block | TYPE TVGVI-SPERA , |
| it_i_meinh_ws_sfnx | TYPE STANDARD TABLE OF SMEINH_WSSFNX , |
| wa_i_meinh_ws_sfnx | LIKE LINE OF it_i_meinh_ws_sfnx, |
| ld_i_exit_by_first_error | TYPE AM07M-XSELK , |
| it_e_meinh_ws | TYPE STANDARD TABLE OF SMEINH_WS , |
| wa_e_meinh_ws | LIKE LINE OF it_e_meinh_ws, |
| ld_i_list_errors_only | TYPE AM07M-XSELK , |
| it_e_meinh | TYPE STANDARD TABLE OF SMEINH , |
| wa_e_meinh | LIKE LINE OF it_e_meinh, |
| ld_i_user | TYPE SY-UNAME , |
| it_e_meinh_old | TYPE STANDARD TABLE OF SMEINH , |
| wa_e_meinh_old | LIKE LINE OF it_e_meinh_old, |
| ld_i_buffer_refresh | TYPE MTCOM-KZRFB , |
| it_e_message | TYPE STANDARD TABLE OF MATMESS , |
| wa_e_message | LIKE LINE OF it_e_message, |
| ld_i_update_buffer_only | TYPE AM07M-XSELK , |
| it_e_return | TYPE STANDARD TABLE OF BAPIRETURN1 , |
| wa_e_return | LIKE LINE OF it_e_return, |
| ld_i_no_update | TYPE AM07M-XSELK , |
| ld_i_rfc_sender | TYPE BDBAPIDEST , |
| ld_i_calling_method | TYPE SWO_METHOD . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name VBWS_UOM_MAINTAIN_DARK or its description.