on 12-04-2008 2:15 PM
Hello Experts,
Function Module bbp_pd_sc_create has a field named E_HEADER-TOTAL_VALUE
as export parameter which stores the total value of SC.
In my case I have always 0.00 after a SC has been created.
TOTAL_VALUE 0.00What can cause that ?
Please help I need a solution.
FUNCTION bbp_pd_sc_create.
IMPORTING
...
EXPORTING
VALUE(E_HEADER) LIKE BBP_PDS_SC_HEADER_D STRUCTURE
BBP_PDS_SC_HEADER_D
......
ENDFUNCTION.
Hello,
for all who wants to know it. I have determined the error.
I haven't populated the currenceny field but it is needed !
calculate total_value for ShoppingCart, PO, SUSPO
IF ( ( e_header-object_type EQ c_shop OR
e_header-object_type EQ c_po OR
e_header-object_type EQ c_suspo OR
e_header-object_type EQ c_suspco OR
e_header-object_type EQ c_suscf OR
e_header-object_type EQ c_susinv
)
AND
e_header-currency IS NOT INITIAL AND
e_item[] IS NOT INITIAL
)
OR
( e_header-object_type EQ c_quotation AND
e_header-ctr_ind EQ c_off
).
PERFORM total_value_calculate TABLES e_item
e_limit
USING e_header-currency
e_header-object_id
e_header-guid
e_header-object_type
CHANGING e_header-total_value
lv_item_deduct_reset.
ENDIF.
reagards
sas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have you passed the quantity and price in the item table for all the items?
BR,
Disha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Disha I thank you very much.
I have created already a SC successfully but the problem is
the return header structure doesn't compute the total value of entire
items from the SC. Especially this field is a very important for the user
in order to get info about the current total amount. How can I influence
this return structure.
Regards
sas
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.