SAP Function Modules

SALES_PRICING_WORKLIST_FILL SAP Function module







SALES_PRICING_WORKLIST_FILL 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 SALES_PRICING_WORKLIST_FILL into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: WVK3
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SALES_PRICING_WORKLIST_FILL - SALES PRICING WORKLIST FILL





CALL FUNCTION 'SALES_PRICING_WORKLIST_FILL' "
* EXPORTING
*   pi_calc_type = 'A'          " komv-ksteu
*   pi_sapgui_message = SPACE   " c
  TABLES
    pi_t_wkbk =                 " wkbk
    pi_t_wkbp =                 " wkbp
*   pi_t_wkbp_to_vvake =        " wind_docu_data_tab
*   pi_t_wkbp_to_evake =        " wind_docu_data_tab
*   pi_t_wkbp_to_valp =         " wind_twkbp_to_valp
*   pe_t_wkbk =                 " bwkbk
*   pe_t_wkbp =                 " bwkbp
*   pe_t_konv =                 " konv
*   pe_t_mckonaib =             " mckonaib
*   pe_t_s111 =                 " s111
*   pe_t_knumh =                " cond_knumh
*   px_orig_new_pric_doc =      " reference_new_original_pricdoc
    .  "  SALES_PRICING_WORKLIST_FILL

ABAP code example for Function Module SALES_PRICING_WORKLIST_FILL





The ABAP code below is a full code listing to execute function module SALES_PRICING_WORKLIST_FILL 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:
it_pi_t_wkbk  TYPE STANDARD TABLE OF WKBK,"TABLES PARAM
wa_pi_t_wkbk  LIKE LINE OF it_pi_t_wkbk ,
it_pi_t_wkbp  TYPE STANDARD TABLE OF WKBP,"TABLES PARAM
wa_pi_t_wkbp  LIKE LINE OF it_pi_t_wkbp ,
it_pi_t_wkbp_to_vvake  TYPE STANDARD TABLE OF WIND_DOCU_DATA_TAB,"TABLES PARAM
wa_pi_t_wkbp_to_vvake  LIKE LINE OF it_pi_t_wkbp_to_vvake ,
it_pi_t_wkbp_to_evake  TYPE STANDARD TABLE OF WIND_DOCU_DATA_TAB,"TABLES PARAM
wa_pi_t_wkbp_to_evake  LIKE LINE OF it_pi_t_wkbp_to_evake ,
it_pi_t_wkbp_to_valp  TYPE STANDARD TABLE OF WIND_TWKBP_TO_VALP,"TABLES PARAM
wa_pi_t_wkbp_to_valp  LIKE LINE OF it_pi_t_wkbp_to_valp ,
it_pe_t_wkbk  TYPE STANDARD TABLE OF BWKBK,"TABLES PARAM
wa_pe_t_wkbk  LIKE LINE OF it_pe_t_wkbk ,
it_pe_t_wkbp  TYPE STANDARD TABLE OF BWKBP,"TABLES PARAM
wa_pe_t_wkbp  LIKE LINE OF it_pe_t_wkbp ,
it_pe_t_konv  TYPE STANDARD TABLE OF KONV,"TABLES PARAM
wa_pe_t_konv  LIKE LINE OF it_pe_t_konv ,
it_pe_t_mckonaib  TYPE STANDARD TABLE OF MCKONAIB,"TABLES PARAM
wa_pe_t_mckonaib  LIKE LINE OF it_pe_t_mckonaib ,
it_pe_t_s111  TYPE STANDARD TABLE OF S111,"TABLES PARAM
wa_pe_t_s111  LIKE LINE OF it_pe_t_s111 ,
it_pe_t_knumh  TYPE STANDARD TABLE OF COND_KNUMH,"TABLES PARAM
wa_pe_t_knumh  LIKE LINE OF it_pe_t_knumh ,
it_px_orig_new_pric_doc  TYPE STANDARD TABLE OF REFERENCE_NEW_ORIGINAL_PRICDOC,"TABLES PARAM
wa_px_orig_new_pric_doc  LIKE LINE OF it_px_orig_new_pric_doc .


DATA(ld_pi_calc_type) = some text here
DATA(ld_pi_sapgui_message) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_pi_t_wkbk to it_pi_t_wkbk.

"populate fields of struture and append to itab
append wa_pi_t_wkbp to it_pi_t_wkbp.

"populate fields of struture and append to itab
append wa_pi_t_wkbp_to_vvake to it_pi_t_wkbp_to_vvake.

"populate fields of struture and append to itab
append wa_pi_t_wkbp_to_evake to it_pi_t_wkbp_to_evake.

"populate fields of struture and append to itab
append wa_pi_t_wkbp_to_valp to it_pi_t_wkbp_to_valp.

"populate fields of struture and append to itab
append wa_pe_t_wkbk to it_pe_t_wkbk.

"populate fields of struture and append to itab
append wa_pe_t_wkbp to it_pe_t_wkbp.

"populate fields of struture and append to itab
append wa_pe_t_konv to it_pe_t_konv.

"populate fields of struture and append to itab
append wa_pe_t_mckonaib to it_pe_t_mckonaib.

"populate fields of struture and append to itab
append wa_pe_t_s111 to it_pe_t_s111.

"populate fields of struture and append to itab
append wa_pe_t_knumh to it_pe_t_knumh.

"populate fields of struture and append to itab
append wa_px_orig_new_pric_doc to it_px_orig_new_pric_doc. . CALL FUNCTION 'SALES_PRICING_WORKLIST_FILL' * EXPORTING * pi_calc_type = ld_pi_calc_type * pi_sapgui_message = ld_pi_sapgui_message TABLES pi_t_wkbk = it_pi_t_wkbk pi_t_wkbp = it_pi_t_wkbp * pi_t_wkbp_to_vvake = it_pi_t_wkbp_to_vvake * pi_t_wkbp_to_evake = it_pi_t_wkbp_to_evake * pi_t_wkbp_to_valp = it_pi_t_wkbp_to_valp * pe_t_wkbk = it_pe_t_wkbk * pe_t_wkbp = it_pe_t_wkbp * pe_t_konv = it_pe_t_konv * pe_t_mckonaib = it_pe_t_mckonaib * pe_t_s111 = it_pe_t_s111 * pe_t_knumh = it_pe_t_knumh * px_orig_new_pric_doc = it_px_orig_new_pric_doc . " SALES_PRICING_WORKLIST_FILL
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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_pi_calc_type  TYPE KOMV-KSTEU ,
it_pi_t_wkbk  TYPE STANDARD TABLE OF WKBK ,
wa_pi_t_wkbk  LIKE LINE OF it_pi_t_wkbk,
ld_pi_sapgui_message  TYPE C ,
it_pi_t_wkbp  TYPE STANDARD TABLE OF WKBP ,
wa_pi_t_wkbp  LIKE LINE OF it_pi_t_wkbp,
it_pi_t_wkbp_to_vvake  TYPE STANDARD TABLE OF WIND_DOCU_DATA_TAB ,
wa_pi_t_wkbp_to_vvake  LIKE LINE OF it_pi_t_wkbp_to_vvake,
it_pi_t_wkbp_to_evake  TYPE STANDARD TABLE OF WIND_DOCU_DATA_TAB ,
wa_pi_t_wkbp_to_evake  LIKE LINE OF it_pi_t_wkbp_to_evake,
it_pi_t_wkbp_to_valp  TYPE STANDARD TABLE OF WIND_TWKBP_TO_VALP ,
wa_pi_t_wkbp_to_valp  LIKE LINE OF it_pi_t_wkbp_to_valp,
it_pe_t_wkbk  TYPE STANDARD TABLE OF BWKBK ,
wa_pe_t_wkbk  LIKE LINE OF it_pe_t_wkbk,
it_pe_t_wkbp  TYPE STANDARD TABLE OF BWKBP ,
wa_pe_t_wkbp  LIKE LINE OF it_pe_t_wkbp,
it_pe_t_konv  TYPE STANDARD TABLE OF KONV ,
wa_pe_t_konv  LIKE LINE OF it_pe_t_konv,
it_pe_t_mckonaib  TYPE STANDARD TABLE OF MCKONAIB ,
wa_pe_t_mckonaib  LIKE LINE OF it_pe_t_mckonaib,
it_pe_t_s111  TYPE STANDARD TABLE OF S111 ,
wa_pe_t_s111  LIKE LINE OF it_pe_t_s111,
it_pe_t_knumh  TYPE STANDARD TABLE OF COND_KNUMH ,
wa_pe_t_knumh  LIKE LINE OF it_pe_t_knumh,
it_px_orig_new_pric_doc  TYPE STANDARD TABLE OF REFERENCE_NEW_ORIGINAL_PRICDOC ,
wa_px_orig_new_pric_doc  LIKE LINE OF it_px_orig_new_pric_doc.


ld_pi_calc_type = some text here

"populate fields of struture and append to itab
append wa_pi_t_wkbk to it_pi_t_wkbk.
ld_pi_sapgui_message = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_pi_t_wkbp to it_pi_t_wkbp.

"populate fields of struture and append to itab
append wa_pi_t_wkbp_to_vvake to it_pi_t_wkbp_to_vvake.

"populate fields of struture and append to itab
append wa_pi_t_wkbp_to_evake to it_pi_t_wkbp_to_evake.

"populate fields of struture and append to itab
append wa_pi_t_wkbp_to_valp to it_pi_t_wkbp_to_valp.

"populate fields of struture and append to itab
append wa_pe_t_wkbk to it_pe_t_wkbk.

"populate fields of struture and append to itab
append wa_pe_t_wkbp to it_pe_t_wkbp.

"populate fields of struture and append to itab
append wa_pe_t_konv to it_pe_t_konv.

"populate fields of struture and append to itab
append wa_pe_t_mckonaib to it_pe_t_mckonaib.

"populate fields of struture and append to itab
append wa_pe_t_s111 to it_pe_t_s111.

"populate fields of struture and append to itab
append wa_pe_t_knumh to it_pe_t_knumh.

"populate fields of struture and append to itab
append wa_px_orig_new_pric_doc to it_px_orig_new_pric_doc.

Contribute (Add Comments)

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 SALES_PRICING_WORKLIST_FILL or its description.