Skip to Content
avatar image
Former Member

total value missing

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 11, 2008 at 11:40 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 04, 2008 at 03:44 PM

    Hi,

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

    BR,

    Disha.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 04, 2008 at 02:23 PM

    Hi,

    See this thread:

    creating-shopping-cart-using-rfc-bbppdsccreate

    BR,

    Disha.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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