2024 Oct 30 6:52 PM - edited 2024 Nov 01 8:34 AM
Good day Experts
I am attempting to update custom fields in Pricing Document Item table WKBP from extension structure for BAPI_RPC_CALCULATE_PRICES. I have added append structures to both BAPI_TE_CALP_IN and BAPI_TE_CALP_INX. I have implemented coding to fill extension structure however on execution of BAPI there is no update on WKBP.
data(ls_bapi_te_calp_in) = value bapi_te_calp_in(
sales_org = ls_calcitemx_mx-sales_org
distr_chan = ls_calcitemx_mx-distr_chan
price_list = ls_calcitemx_mx-price_list
material = ls_calcitemx_mx-material
sales_unit = ls_calcitemx_mx-sales_unit
sales_unit_iso = ls_calcitemx_mx-sales_unit
material_long = ls_calcitemx_mx-material
pvgrd = lcv_external_system
zzcustom_field = |{ lv_custom_field alpha = in }| ).
data(ls_bapi_te_calp_inx) = value bapi_te_calp_inx(
sales_org = ls_calcitemx_mx-sales_org
distr_chan = ls_calcitemx_mx-distr_chan
price_list = ls_calcitemx_mx-price_list
material = ls_calcitemx_mx-material
sales_unit = ls_calcitemx_mx-sales_unit
sales_unit_iso = ls_calcitemx_mx-sales_unit
material_long = ls_calcitemx_mx-material
pvgrd_inx = gcv_true
zzcustom_field = gcv_true ).
clear ls_extensionin.
ls_extensionin-structure = 'BAPI_TE_CALP_IN'.
ls_extensionin-valuepart1 = ls_bapi_te_calp_in.
move ls_bapi_te_calp_in to ls_extensionin+offset.
append ls_extensionin to lt_extensionin.
clear ls_extensionin.
ls_extensionin-structure = 'BAPI_TE_CALP_INX'.
ls_extensionin-valuepart1 = ls_bapi_te_calp_inx.
move ls_bapi_te_calp_inx to ls_extensionin+offset.
append ls_extensionin to lt_extensionin.
is there something missing for the update to go through?
regards
Request clarification before answering.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.