WRF_PPW_CALCITEMS_SAVE 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_PPW_CALCITEMS_SAVE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
WRF_PPW01
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'WRF_PPW_CALCITEMS_SAVE' "Save Pricing Items in Database
EXPORTING
* i_state_admin = 'A' " wrf_ppw_state_admin Status Administration
is_calchead = " wrf_ppw_ppdcalchead_sty PPW: Structure for Pricing Header
* i_foreign_docnr = " wrf_ppw_ppdnr Ext. Doc. No. of Application Calling Up Sales Price Calc.
i_no_conditions = " w_rpc_no_conditions Keine Konditionen erzeugen
* is_wakhd = " wakhd Screen Field String for Promotion Header Data
* it_wagud = " wagud_tab Table Type for WAGUD
* it_wapld = " wrf_rpr_wapld_tty Table Type for WRF_RPR_WAPLD
* it_calcitem = " wrf_ppw_ppdcalcitem_tty
IMPORTING
et_calcitem = " wrf_ppw_ppdcalcitem_tty Tabelle der Kalkulationspositionen
et_calcerro = " wrf_ppw_ppdcalcerro_tty PPW: Table for Error Handling
* CHANGING
* xt_calcitem_control = " wrf_ppw_ppdcalcitemctrl_tty Management of Pricing Items
EXCEPTIONS
NO_CALCULATION_HEADER_GUID = 1 " GUID des Kalkulationskopfs fehlt
CALCULATION_HEADER_NOT_FOUND = 2 " Kalkulationskopf ist nicht vorhanden
WRONG_CALCULATION_HEADER = 3 " Falscher Kalkulationskopf
INTERNAL_ERROR = 4 " Internal Error
. " WRF_PPW_CALCITEMS_SAVE
The ABAP code below is a full code listing to execute function module WRF_PPW_CALCITEMS_SAVE 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_et_calcitem | TYPE WRF_PPW_PPDCALCITEM_TTY , |
| ld_et_calcerro | TYPE WRF_PPW_PPDCALCERRO_TTY . |
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_xt_calcitem_control | TYPE WRF_PPW_PPDCALCITEMCTRL_TTY , |
| ld_et_calcitem | TYPE WRF_PPW_PPDCALCITEM_TTY , |
| ld_i_state_admin | TYPE WRF_PPW_STATE_ADMIN , |
| ld_et_calcerro | TYPE WRF_PPW_PPDCALCERRO_TTY , |
| ld_is_calchead | TYPE WRF_PPW_PPDCALCHEAD_STY , |
| ld_i_foreign_docnr | TYPE WRF_PPW_PPDNR , |
| ld_i_no_conditions | TYPE W_RPC_NO_CONDITIONS , |
| ld_is_wakhd | TYPE WAKHD , |
| ld_it_wagud | TYPE WAGUD_TAB , |
| ld_it_wapld | TYPE WRF_RPR_WAPLD_TTY , |
| ld_it_calcitem | TYPE WRF_PPW_PPDCALCITEM_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_PPW_CALCITEMS_SAVE or its description.
WRF_PPW_CALCITEMS_SAVE - Save Pricing Items in Database WRF_PPW_CALCITEMS_RECALCULATE - Update Pricing Items WRF_PPW_CALCITEMS_MODIFY - Change Pricing Items WRF_PPW_CALCITEMS_LOAD - Read Pricing Items from Database WRF_PPW_CALCITEMS_INIT - Initialize Pricing Items WRF_PPW_CALCITEMS_DELETE - Delete Pricing Items