Calculation formula userexit not working for multiple condition types

Hi,
we have a problem in the CRM ISA-B2B scenario where the custom user exit is only working for single condition type.
but we need it for multiple condition types .
the value of the subtotal is not being retrieved for multiple conditions. at a time only one condition value is being retrieved and shown in the webshop - shopping basket.
for ex:
we have scenario 1 where Y001 -Freight condition type is applicable for one customer.and Y002 is applicable for another customer.
when we are trying to show the subtotal condition value in the webshop by using a single custom user exit in the pricing procedure it is only working for either of the above 2 customers depending on the VMC cache status.
is there any problem if use the single user exit for both condition types?
and if it needs to be differentiated how exactly we can do that with the same logic in the java class.
Thanks in advance,
PSR.

Hi Arshi,
below is the code:
public class ZValFormula_ZZWI1 extends ValueFormulaAdapter {
     private static String zzwi = "ZZWI1";
     private static char  zzwiC = '@';
     private static UserexitLogger userexitlogger = new UserexitLogger(
     ZValFormula_ZZWI1.class);
     public BigDecimal overwriteConditionValue(IPricingItemUserExit item,
               IPricingConditionUserExit condition) {
          ICurrencyValue val = condition.getConditionValue();
          userexitlogger.writeLogDebug( "value saved for " + zzwi + " (" + zzwiC + ") = "
                    + val.getValueAsString());
          item.setSubtotal( zzwiC, val.getValue());
          return val.getValue();
hope this would give more idea to look at the problem.
Thanks,
PSR

Similar Messages

  • Key combination of Tax code / Vendor not working for JVRD condition Type.

    Dear All.
    I have maintain the pricing condition JVRD under key combination of Tax Code / Vendor . But the same is not reflecting in the Purchase Order. Have also  checked the validity periods  .
    Kndly advice
    AVS

    Hi
    Please check the following:
    1. whether you have maintained the cond.type in tax procedure in tcode OBQ3.
    2. whether you have maintained the cond.type in IMG activity: LogisticsGeneral>>Tax on goods mov.>>India>>Determination of excise duty>>Cond.based excise determination>> classification of condition type
    3. Also, check whether any other condition record is maintained for the vendor at any other level in FV13.
    Regards
    Prabhu

  • Formula is not working for key figures (  cumulative )

    hI
    I have  Qty A and qty B key figures  and changed property to cumulative in query designer . two key figures are working fine . I ahve another key figure which is formula ( Qty A + Qty B) .
    Issue is
    Formula ( Qty A + Qty B) is showing before cumulative values result . it is not showing cumulative total .
    Ex :  
                       Before cumulation prperty for Qty A and Qty B
                          Qty A       Qty B         Total ( formula ( Qty A+ Qty B)
                            10            20                  30
                             8              7                    15
        After changing propert cumulative in query designer for Qty A and Qty B
                         Qty A       Qty B           Total ( Formula 9Qty A + Qty B)
                           10            20                30
                            18           27                 15 ( still it is show 15 like above example means formula is not working on cumulative values)
    Formula is working on before cumulative value . it  is not taking cumulative values.
    Please helo to resolve this issue . I think I need to change some prperty in query designer.
    Appriciate your response.
    Thanks
    Rohan

    Hi
    Problem solved .
    Thanks
    Sree

  • Shipment cost for multiple condition type is not working

    Dear Experts
    I am doing inbound transportation,I have a freight condition, FRB1, and two fixed cost condition type ( ZX01 and ZX02).
    I maintained 3 condition type under T_06, and created condition record.
    Now when I am doing shipment costing system is taking the last assigned condition type relevant condition record value, however it is pulling the other two condition type in the pricing procedure and with information message.
    Could some body suggest how to bring all 3 condition type value effective for shipment cost.
    Thanks & Regards
    Sudhansu

    Hi Durga,
    Most importantly whenever we create a condition type with statistical check box it means that value will not be included in Net price calculation this is the only purpose of statistical check box.(Like any freight charges it will go to your stock a/c even though statistical check box is there in your Pricing procedure)
    When you create condition type for any charges with Cond.category B Delivery costs and Accrual check box in M/06 by default it will go to stock account, but you can restrict that by using a functionality
    Check this link for complete process
    http://wiki.sdn.sap.com/wiki/display/ERPLO/PostingplanneddeliverycosttoNon-inventoryaccount

  • Query level formula is not working for all the amounts

    Hi Friends,
    In my production system I found new thing that in my query level I done some calculation (as per my requirement I done amount devide by 100 to get correct values)
    It is working for all the amounts except 1or 2 amounts, im uploading same source file for  all the amountsu2026 why it is happening like this u2026and is there any availability to change those 1 or 2 values at data base tables level  or at any pleace (I hope in SAP it is may not possible)u2026can any body tell me why it is happening like this. u2026 because of  this issue only my report is pending to sign off u2026.please  can any body find  the solution ASAP.
    Regards,
    VENKAT

    Are they non decimal currencies?
    If yes, create RKF1 on amount field excluding the currencies for which you are not getting currect values then in CKF or formula as RKF1 / 100.   Similarrly create another RKF2 on amount only including the currencies which are excluded in RKF1, create a CKF or formula as RKF2/10000. Then created another formula wich adding CKF1 and CKF2.

  • EXIT_SAPLV50E_001 User Exit is not working for multiple plants case

    Hi,
    I have to update foreign trade data in Invoice during invoice creation using VF11. For that, I have written code in EXIT_SAPLV50E_001 and updated segal value. This functionality is working fine, if I have a single plant in an invoice. But customer has scenario where they can have multipl plants in an invoice.
    For multiple plants in an invoice, this EXIT_SAPLV50E_001 is not called.
    I am unable to find another better place where in I could place my code. Please help. Remember, case in multiple plants.
    Will be rewarded.
    Regards
    Arpit

    Hi Arpit,
                   Please use below mentioned user exit in T-code VF11
    he following user exits are available for tcode VF11
    Exit Name           Description
    SDVFX001            User exit header line in delivery to accounting
    SDVFX002            User exit for A/R line in transfer to accounting
    SDVFX003            User exit cash clearing in transfer to accounting
    SDVFX004            User exit G/L line in transfer to accounting
    SDVFX005            User exit reserves in transfer to accounting
    SDVFX006            User exit tax line in transfer to accounting
    SDVFX007            User exit: Billing plan during transfer to Accounting
    SDVFX008            User exit: Processing of transfer structures SD-FI
    SDVFX009            Billing doc. processing KIDONO (payment reference number)
    SDVFX010            User exit item table for the customer lines
    SDVFX011            Userexit for the komkcv- and kompcv-structures
    V05I0001            User exits for billing index
    V05N0001            User Exits for Printing Billing Docs. using POR Procedure
    V60A0001            Customer functions in the billing document
    V60P0001            Data provision for additional fields for display in lists
    V61A0001            Customer enhancement: Pricing
    J_3RSINV            Customer enhancement: Pricing
    or You can use BADI
    BADI_SD_SALES_BASIC
    BADI_SD_TO_FM
    BADI_SD_BILLING
    Regards,
        Thangam.P

  • Simple calculations in Universe not working for XI 3.0

    Simple calculations in Universe using key figures are not working in XI 3.0(without any Fix Pack)
    Below is the steps I followed.
    1. Using key figure [Jan] I am trying to round the values by deviding it by 1000.
    <EXPRESSION>@Select([Jan])/1000</EXPRESSION>
    This gives me a null cell value.
    2. I tried addition then
    <EXPRESSION>@Select([Jan])+1000</EXPRESSION> result was all the cell values changed to 1000.
    3. Finally without calculation I tried
    <EXPRESSION>@Select[Jan]</EXPRESSION> this also resulted null value
    But without EXPRESSION tag if I try @Select[Jan] it works fine.
    Am I missing anything in above expressions.
    As of now I am creating variable in report to incorporate the rounding.
    Thanks
    Raghu

    It was my mistake while writing the question. Path I have used is correct one only @Select(Key Figures/.
    If i use the above alone, I am able to se the data. But if I use in betwen <EXPRESSION> then it gives null value.
    Note: Pls dont confuse with flower bracket i used it just to avoid coverting it to a html link and also the backslash it was not showing in preview
    I have followed that pdf and created calculation in universe.
    Edited by: Raghavendra Barekere on Feb 6, 2009 6:42 AM

  • 3.4: keyword auto-completion not working for multiple levels

    Auto-completion does not work with higher level keywords, which used to work in LR 3.3 (IIRC).
    Example:
    I enter in the "Click here to add keywords" field:
    "He" then LR tries to complete the keyword by showing keywords starting with "He". Fine.
    But this is a keyword which does not exist so far, so I enter "Heldenplatz > W" because I want to have sorted it under Wien. If I'm not mistaken, LR 3.3 showed after entering the "W" a list of existing keywords starting with W (auto-completion for the one level higher tag). This is not the case anymore. I have to enter  "Heldenplatz > Wien" completely, which makes it slow and error-prone.
    Am I mistaken or can you reproduce it?
    Cheers

    GaryRowe wrote:
    How can it be, after all this time, that they still do not have effective regression testing in place ? Any sane development team (who wants to remain sane ;-) builds this as a priority ... unless they aren't given the resources?
    I think (don't remember though) that this never worked, so regression testing would not have helped.
    What is really to worry, that features aren't consequently and completely implemented (and tested). With a new option in Lightroom 3, Adobe has offered support for keywords with spaces. It seems that this feature as neither been thoroughly analysed or implemented. Thus, we face the currently inconsequent support of it:
    keyword completion only works with the first entered word, but when you enter a complete keyword hierarchy using the ">" letters
    filtering seems to have problems too

  • HT2486 Smart Group not working for Multiple 'Not a Member of' Options

    I am trying to go through my contacts and assign everyone to a group.  I want to create a smart group whose criteria is "not in Group 1" AND 'Not in Group 2'.
    This does not work.  It simply gives me all the contacts.
    Also, is there anyone to see a contact and know to which groups they belong.  When I can't remember who someone is, it is helpful if I know what group.

    I have a different conclusion : for me, it works since 10.9 where it has never worked before (and I just checked it still works with 10.9.1) !
    I did not modified my groups, they simply started to work properly with 10.9.

  • Output Type ZNEU not working for PO document type ZNB

    Hi all,
    I have copied from standard the document type ZNB, and also the output type ZNEU, (from NB and NEU), I have made and checked all the setting on NACE (condition records, procedures, output types and sequence) everything is same as standard, I have also mantained in the "Fine-Tuned Control: Purchase Order" the indicators 1 and 2 (for new and change) for ZNEU, and mantained in MN05 the entry for ZNB Doc Type with VN media=1, date/Time=4  so for me these is the only setting needed but for some reason I am not getting the message automaticaly, but if I create manually the message while creating the PO then it works fine.
    For Doc type NB and Output type NEU the system gererates correcly the message so I don't know what could be happening here.
    The reason I created these copies (ZNB and ZNEU) it's because I have a different plant in a different company code which need to issue PO's and need a different number range and also different FORM (with the logo of the other plant/Company)
    Any ideas on how to correct this??
    Regards

    The problem was that in spanish, the function partner VN and CP are PR and PR so this was confusing and the records were crossing each other, thanks to every one

  • Output medium 5 not working for invoice message type

    Dear all,
    we have an issue with output medium 5 for comercial invoices. We have defined current message type ZRD0 with this output medium (it still has other mediums assigned like 1) because when we create a comercial invoice we want to send the invoice automatically to customer mail as a pdf file.
    We have followed the instructions:
    -we have add this medium to message type and it has assigned exactly the same program and smartform as medium 1).
    - Communication strategy is already defined as it is being used for vendors mails.
    - Customer has e-mail address filled and my user in SU01 has a mail defined.
    Unfortunately mail is not being generated but spool is being generated?!? For vendors this output type is working fine, we are sending the PO to vendor's mail as pdf file and I don't understand why it's not working.
    Any ideas??
    thanks in advance,
    Raquel

    Hi Raquel
    Firstly In the output type ZRDO output type , check wheather the transmission medium has been checked or not. Secondly also check in VV32 with what transmission medium the record has been maintained.
    Finally also check in ZRDO output type wheather pdf file has been maintained or not
    Regards
    Srinath

  • LookUpSet is Not working for multiple columns in SSRS 2008 R2

    Hi Friends,
    I have a problem when i use more than one LookUpSet in SSRS to display more than one value based on Day Number & other fields..Please find the below details and please suggest me a solution for this.
    Crystal : 
                    Day1                              Day2
    Period 4     Arts,Maths               Arts,Maths
    For this in SSRS i am using LookUpSet as below based on StaffID,PeriodNumber & DayNumber like  this:
    = (IIF(Fields!DayNumber.Value=1,Join(LookupSet(Fields!StaffID.Value & Fields!PeriodNumber.Value &  Fields!DayNumber.Value
        , Fields!StaffID.Value & Fields!PeriodNumber.Value & Fields!DayNumber.Value
        , Fields!ClassCode.Value
        , "TIMSTF5"), "," ),"")) 
    which is displaying correct in SSRS,But when i use the same expression to display Day 2 classes it is returning empty even though i have values on Day 2.Please have a look at the SSRS output below:
                    Day1                              Day2
    Period 4     Arts,Maths              
    Day 2 Expression is :
    = (IIF(Fields!DayNumber.Value=2,Join(LookupSet(Fields!StaffID.Value & Fields!PeriodNumber.Value &  Fields!DayNumber.Value
        , Fields!StaffID.Value & Fields!PeriodNumber.Value & Fields!DayNumber.Value
        , Fields!ClassCode.Value
        , "TIMSTF5"), "," ),""))
    I am not sure why it is not liking to use more than LookUpSet in the same report,Please suggest me with a work around for this.
    Thanks in advance,
    Sam.

    Hi Guys,
    I have sorted out the problem.Solution for the above problem is use Max before the expression like below, since it has multiple days and periods in the Dataset.
    = Max((IIF(Fields!DayNumber.Value=2,Join(LookupSet(Fields!StaffID.Value & Fields!PeriodNumber.Value &  ields!DayNumber.Value
        , Fields!StaffID.Value & Fields!PeriodNumber.Value & Fields!DayNumber.Value
        , Fields!ClassCode.Value
        , "TIMSTF5"), ","  + vbcrlf),"")))
    Thanks,
    Sam

  • ECR/ECO Workflow not working for multiple Objects

    Hello all,
    We have implemented ECR/ECO workflow by customizing the SAP standard one. We are facing a problem when entering multiple ECO objects such as mutiple Documents, materials, BOMs etc. When we create the ECR, two parralel workflow start (one for ECM and other for ECO) and depending on how many ECO objects we have included, multiple instances of ECO workflows will trigger (I think this is the standard behaviour as well but not sure)
    In our workflow, we have a wait step in ECO workflow that waits until ECM has been converted into ECO (ECOP status) and starts the ECO workflow. Also, we have created a Wait step in ECM workflow and that waits until the ECO workflows have reached the CONFIRMATED Step when the processing of the objects are finished.
    When we enter one object, both workflows start and ECO waits until ECM has been converted into ECO and then start the processing the Objects. when the ECO workflow is done (Status confirmated), it switches back to ECM workflow and then goes on with Close/Release steps of the Objects/ECO etc.
             But, when we have multiple ECO objects, both start well as ECR converts to ECO and the ECO starts and then work items are processed but then stops just before the CONRIMATED steps even though all objects are changed/maintained properly and  ECO workflows are completed. As a result, the control doesn't refer back to ECM and we never get the ECO close and Release step work items.
    I have checked SWETYPV, SWEL, business objects ECM and ECO but nothing gives a result..
    Any help would be appreciated..
    Thanks

    Can you please update on what is the status in the workflow log. You can check this from SWIA tcode.
    If it is in process step please check for ST22 dump if any.
    Thanks
    Arghadip

  • Workflow not working for multiple line items

    Hi gurus,
    we are working on ECN/ECO workflow.
    Once ECN is created in CC01, our workflow triggers.
    we are calling subflow from main WF for enhancing the materials of the Engineering change number(ECN).
    Subflow will take the material to different departments for enhancing the views like,
    Purchasing views by purchasing dept,
    quality views by quality dept,
    sales views by sales dept,
    etc.
    This whole process is working fine, if there is single material number in ECN.
    But, if there are 2 material numbers, the control is not returning back to MAIN WF from Subflow.
    do we need any config/setup to make it work. (we are using block while calling subflow).
    Any help will be of gr8 use.
    rgrds.
    santosh.

    Can you please update on what is the status in the workflow log. You can check this from SWIA tcode.
    If it is in process step please check for ST22 dump if any.
    Thanks
    Arghadip

  • BAPI_SALESORDER_CREATEFROMDAT2 - not working for multiple  BOM

    Hi -
    I am using BAPI_SALESORDER_CREATEFROMDAT2 function module to create sales order with multiple material. If more than one BOM materials are passed to the FM,this FM is giving error and not creating sales order. I have to pass multiple BOM to the FM and it should create sales order and expand the BOM to its components also.
    Can anybody help on this.
    An example will be good.
    thanks
    pls help
    Edited by: sanchari g on May 13, 2009 11:05 AM

    Hi Sanchari,
    Try the following logic:
    LOOP AT it_salesheader INTO wa_salesheader.
        CLEAR wa_order_header_in.
        CLEAR wa_order_header_inx.
        CLEAR wa_order_partners.
        CLEAR wa_bapicond.
        CLEAR wa_bapicondx.
        REFRESH it_order_items_in.
        REFRESH it_order_items_inx.
        REFRESH it_order_partners.
        REFRESH it_order_schedules_in.
        REFRESH it_order_schedules_inx.
        REFRESH it_bapicond.
        REFRESH it_bapicondx.
        wa_order_header_in-doc_type   = wa_salesheader-auart.
        wa_order_header_in-sales_org  = wa_salesheader-vkorg.
        wa_order_header_in-distr_chan = wa_salesheader-vtweg.
        wa_order_header_in-division   = '00'.
        wa_order_header_in-purch_no_c = wa_salesheader-bstnk.
        wa_order_header_in-purch_date = wa_salesheader-bstdk.
        wa_order_header_in-ref_1      = wa_salesheader-vbeln.
        wa_order_header_in-price_date = wa_salesheader-prsdt.
        LOOP AT it_salesitem INTO wa_salesitem WHERE vbeln = wa_salesheader-vbeln.
          wa_order_items_in-itm_number  = posnr_temp.
          wa_order_items_in-material    = wa_salesitem-matnr.
          wa_order_items_in-plant       = wa_salesitem-werks.
          wa_order_items_in-target_qty  = wa_salesitem-kwmeng.
          wa_order_items_in-ref_doc     = wa_salesitem-vbeln.
          wa_order_items_in-ref_doc_it  = wa_salesitem-posnr.
          wa_order_items_in-ref_1_s     = wa_salesitem-vbeln1.
          wa_order_items_in-poitm_no_s  = wa_salesitem-posnn.
          APPEND wa_order_items_in TO it_order_items_in.
       ENDLOOP.     "loop for line item which contains all BOMs.
       CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
          EXPORTING
            order_header_in               = wa_order_header_in
            order_header_inx              = wa_order_header_inx
           testrun                       = testrun
         IMPORTING
           salesdocument                  = v_salesdocument
          TABLES
           return                        = it_return
           order_items_in                = it_order_items_in
           order_items_inx               = it_order_items_inx
            order_partners               = it_order_partners
           order_schedules_in            = it_order_schedules_in
           order_schedules_inx           = it_order_schedules_inx
           order_conditions_in           = it_bapicond.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           wait          = 'X'.
    ENDLOOP.   "loop for the header data.
    Hope it helps.
    Regards,
    Arnab.

Maybe you are looking for