cancel
Showing results for 
Search instead for 
Did you mean: 

total value missing

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Good to see that your problem is resolved

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Have you passed the quantity and price in the item table for all the items?

BR,

Disha.

Former Member
0 Kudos

yes I did.

The problem is still existing.

Reagards

sas

Former Member
0 Kudos

Hi,

See this thread:

BR,

Disha.

Former Member
0 Kudos

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