WRF_POHF_CHECK_MENGE 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 WRF_POHF_CHECK_MENGE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
WRF_POHF_DATA_CHANGES
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'WRF_POHF_CHECK_MENGE' "Obsolete
EXPORTING
i_actype = " char1 Aktivitätstyp (H=Anlegen, V=Ändern)
is_ekko_pers = " wrf_pohf_data_ekko_sty Purchasing Document Header Data
it_ekpo_pers = " wrf_pohf_data_ekpo_tty Purchase Order Document Item Data
it_eket_pers = " wrf_pohf_data_eket_tty Purchase Order Document Schedule Lines
CHANGING
cs_ekko_data = " wrf_pohf_data_ekko_sty Purchasing Document Header Data
cs_ekko_datax = " wrf_pohf_datax_ekko_sty Change Parameter for EKKO Data
ct_ekpo_data = " wrf_pohf_data_ekpo_tty Purchase Order Document Item Data
ct_ekpo_datax = " wrf_pohf_datax_ekpo_tty Change Parameter Item Data
ct_eket_data = " wrf_pohf_data_eket_tty Purchase Order Document Schedule Lines
ct_eket_datax = " wrf_pohf_datax_eket_tty Change Parameter Schedule Lines
EXCEPTIONS
WRONG_ACTYPE = 1 " Falscher Aktivitätentyp übergeben
. " WRF_POHF_CHECK_MENGE
The ABAP code below is a full code listing to execute function module WRF_POHF_CHECK_MENGE 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).
DATA(ld_cs_ekko_data) = 'Check type of data required'.
DATA(ld_cs_ekko_datax) = 'Check type of data required'.
DATA(ld_ct_ekpo_data) = 'Check type of data required'.
DATA(ld_ct_ekpo_datax) = 'Check type of data required'.
DATA(ld_ct_eket_data) = 'Check type of data required'.
DATA(ld_ct_eket_datax) = 'Check type of data required'.
DATA(ld_i_actype) = 'Check type of data required'.
DATA(ld_is_ekko_pers) = 'Check type of data required'.
DATA(ld_it_ekpo_pers) = 'Check type of data required'.
DATA(ld_it_eket_pers) = 'Check type of data required'. . CALL FUNCTION 'WRF_POHF_CHECK_MENGE' EXPORTING i_actype = ld_i_actype is_ekko_pers = ld_is_ekko_pers it_ekpo_pers = ld_it_ekpo_pers it_eket_pers = ld_it_eket_pers CHANGING cs_ekko_data = ld_cs_ekko_data cs_ekko_datax = ld_cs_ekko_datax ct_ekpo_data = ld_ct_ekpo_data ct_ekpo_datax = ld_ct_ekpo_datax ct_eket_data = ld_ct_eket_data ct_eket_datax = ld_ct_eket_datax EXCEPTIONS WRONG_ACTYPE = 1 . " WRF_POHF_CHECK_MENGE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.
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_cs_ekko_data | TYPE WRF_POHF_DATA_EKKO_STY , |
| ld_i_actype | TYPE CHAR1 , |
| ld_cs_ekko_datax | TYPE WRF_POHF_DATAX_EKKO_STY , |
| ld_is_ekko_pers | TYPE WRF_POHF_DATA_EKKO_STY , |
| ld_ct_ekpo_data | TYPE WRF_POHF_DATA_EKPO_TTY , |
| ld_it_ekpo_pers | TYPE WRF_POHF_DATA_EKPO_TTY , |
| ld_ct_ekpo_datax | TYPE WRF_POHF_DATAX_EKPO_TTY , |
| ld_it_eket_pers | TYPE WRF_POHF_DATA_EKET_TTY , |
| ld_ct_eket_data | TYPE WRF_POHF_DATA_EKET_TTY , |
| ld_ct_eket_datax | TYPE WRF_POHF_DATAX_EKET_TTY . |
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 WRF_POHF_CHECK_MENGE or its description.
WRF_POHF_CHECK_MENGE - Obsolete WRF_POHF_CHECK_LOEKZ - Logic for Passing On Deletion Indicator for Generic Articles WRF_POHF_CHECK_FOLLOWUP_ART - WRF_POHF_CHECK_FIELD_SELECTION - Check Field Selection for a Purchase Order WRF_POHF_CHECK_EKGRP_EXISTENCE - Check Existence of a Purchasing Group WRF_POHF_CHECK_EKGRP - Check Purchasing Group