Modification of MIGO Financial Posting from Custom Pricing Conditions on PO

Hello All,
I am currently at a client where there are 7 custom Pricing Conditions associated with Sub-Contracting POs. Because there is a Global Template in place, there is no way to include these custom Pricing Conditions in the typical Purchaing Automatic Account Determination.
We are considering a custom development whereby we would associate each custom Pricing Condition to a unique Expense GL Account, but have it all lumped to the same GR/IR LIability Account.
My big question is....does anyone know where/how we can hook up a User Exit, BAdI, BAPI, or some other method  to affect the GL Posting based on a look up table, upon the posting of a MIGO transaction?
Any assistance with this would be greatly appreciated.
Thank,
Marc

hi,
in the condiion type remove the Quantity scale basis and try
Thanks

Similar Messages

  • How to access/display custom pricing condition values in the webshop (eg. o

    Hello,
    we are using B2B with IPC-pricing, using our own pricing conditions. Calculation of the prices works fine (can be verified when enabling the price analysis link).
    Now we need to show some of these own pricing condition's values (not the ones available in the salesdocument header/item like getNetValue, getTaxValue,..) in the shopping basket (order.jsp).
    How can we achieve this (eg. get the IPC to transfer these values back to the shop or read them somewhere)?
    Thanks for any hint
    Kind regards,
    Manuel

    Hi all,
    We've found the solution according to the post from Rajinikanth G and Sateesh Chandra (http://scn.sap.com/thread/2046477). That will work (return any pricing information/details like custom pricing conditions, subtotal1 - 6 etc. as in pricing analysis) for order.jsp (display shopping basket), order_change.jsp and orderstatusdetail.jsp (display order), but not for confirm.jsp (order confirmation / print order).
    <%@ page import="com.sap.isa.businessobject.header.HeaderSalesDocument" %>
    <%@ page import="com.sap.isa.businessobject.ipc.IPCBOManager" %>
    <%@ page import="com.sap.isa.core.UserSessionData" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCClient" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCDocument" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCException" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCItem" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCPricingCondition" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCPricingConditionSet" %>
    <%
       String priHdrCondTxt = "";
       String priItmCondTxt = ""; 
       HeaderSalesDocument hsDoc = ui.header;
       UserSessionData usd = UserSessionData.getUserSessionData(request.getSession());
       IPCBOManager ibom = (IPCBOManager) usd.getBOM(IPCBOManager.NAME);      
       IPCClient ipcClient= ibom.getIPCClient();
       if (ipcClient == null)
           ipcClient = ibom.createIPCClientUsingConnection(hsDoc.getIpcConnectionKey());
       ipcClient.getIPCSession().setCacheDirty(); // important to get the correct data
       ipcClient.getIPCSession().syncWithServer(); // important to get the correct data
       IPCDocument ipcDocument = ipcClient.getIPCDocument(hsDoc.getIpcDocumentId().getIdAsString()); //getIpcDocumentId: null without setCacheDirty and syncWithServer
       try{
           // Header
           priHdrCondTxt += "<br>------HEADER--------";
           IPCPricingConditionSet hPriCondSet = ipcDocument.getPricingConditions();
           IPCPricingCondition[] hPriCond = hPriCondSet.getPricingConditions();
           for(int i=0; i<hPriCond.length; i++)
               priHdrCondTxt += hPriCond[i].getConditionTypeName() + "(" + hPriCond[i].getDescription() + ")" + hPriCond[i].getConditionValue() + " //<br>";
           //Item
           IPCItem[] ipcItems = ipcDocument.getItems();
           for(int i=0; i<ipcItems.length; i++)
               priItmCondTxt += "<br>------ITEM--------";
               IPCPricingConditionSet iPriCondSet = ipcItems[i].getPricingConditions();
               IPCPricingCondition[] iPriCond = iPriCondSet.getPricingConditions();
               for(int x=0; x<iPriCond.length; x++)
                   priItmCondTxt += iPriCond[x].getConditionTypeName() + "(" + iPriCond[x].getDescription() + ")" + iPriCond[x].getConditionValue() + " //<br>";
       }catch(IPCException e) {
       %>
       <%=priHdrCondTxt%><br>
       <%=priItmCondTxt%>
    In confirm.jsp there is no IPC-document available (<HeaderSalesDoc>.getIpcDocumentId()/getIpcConnectionKey() are null). Also BOM -> getBasket()/getOrder()/getCustomerOrder()/getQuotation() are empty. Here we've transferred the necessary pricing informations from basket to confirmation through the UserSessionData.
    Set data in order.jsp:
    <%
       String itemId = "Item-" + item.getProductId() + "SomeValue";
       HashMap pricesForConfirm = new HashMap();
       pricesForConfirm.put("Header-SomeValue", "Val1");
       pricesForConfirm.put(itemId, "Val2");
       UserSessionData usd = UserSessionData.getUserSessionData(request.getSession());
       usd.setAttribute("pricesForConfirm", pricesForConfirm);
    %>
    Show data in confirm.jsp:
    <%
    String itemId = "Item-" + item.getProductId() + "SomeValue";
    UserSessionData usd = UserSessionData.getUserSessionData(request.getSession());
    HashMap pricesForConfirm = (HashMap) usd.getAttribute("pricesForConfirm");
    s2 += pricesForConfirm.get("Header-SomeValue");
    s2 += pricesForConfirm.get(itemId);
    %>
    That whole solution does work fine also when pricing analysis is disabled in XCM. (Note that we've enabled "doItemCalls" in backendobject-config.xml according to note https://service.sap.com/sap/support/notes/1004533, but we did not use the ExtensionData-mechanism to transfer data from/to ABAP, because that would need changes on ABAP- (to fetch and fill) and Java-side (to read and display) and because we could not find/access relevant pricing information from IPC at the time the BAdI is called. Also the BAdI CRM_ISA_HDR_PRICING mentioned in the note does apply for the web catalog. We've used that to give IPC more information to calculate the netValue using additional pricing conditions for the catalog.)
    We've also implemented note https://service.sap.com/sap/support/notes/892761 to show a different price (eg. grossValue) in the mini basket (total items and price in basket).
    If there's a need to display a different price in the catalog, there note https://service.sap.com/sap/support/notes/1022962 could be implemented.

  • Custom Pricing Conditions not working for a PO in SRM

    Hi Experts,
    We are on SRM 5.0, ECC 6.0 , Extended Classic Scenario.
    We configured the pricing conditions in SRM . We defined the our custom pricing condition types as below
    Condition type      ---  Condition Class       ---  Calculation Type
    Frieght(%)            ---       Prices                ---      Percentage
    Frieght Value       ---        Prices                ---  Fixed Amount
    We also defined the Calculation Schema.
    But when we try to define the pricing conditions in SRM during PO creation\change , the standard pricing condition types work but when we input the above defined custom pricing condition type, the value entered gets cleared. Pricing Overview is not calculating the values of the custom Pricing condition types.
    Please assist as where i have gone wrong. Do I need to run any standard report for pricing or do i have to implement any BADI.
    Thanks,
    Addy.

    Hi Sanjeev,
    I have run SM52 and VMC is active with 4 VM's .
    Please suggest.
    Thanks,
    Addy.
    Edited by: Addy1209 on Nov 18, 2010 4:28 PM

  • Post from customer consignment to quality inspection

    the movement type 632 post the stock of customer consignment-unrestricted use stock back to own stock unrestricted.
    What could i do to post it directly in my own stock but int the quality insp. from customer consignment stock.
    Regards.

    Hi,
    The movement type 322 > unrestricted use of customer consignment to a quality inspection of the customer consignment
    What i need is to post it in my plant: From the unrestricted use of customer consignment to a quality inspection of my own storage location.
    My probelm is not resolved yet.
    I'm triying with 655 but i don't know how to run it.
    Regards.
    OBK
    PM consultant

  • Custom pricing condition not getting triggered automatically in CRM 4.0

    Hi
    The custom discount pricing condition created in R/3 is active in R/3 and is getting triggered for Sales Orders created in R/3.
    I have downloaded the same pricing conditon from R/3 to CRM 4.0 i am able to trigger it manually in CRM service transaction. But i need the condition to be triggered automatically for the pricing group.
    Your inputs are highly solicited
    Thanks
    Padma

    Hi Padma,
    did you enable the condition download from ERP to CRM already? Did you run the initial condition customizing download and the initial condition master data download successfully (check also the application log in SLG1)?
    In addition, you should be aware, that for any condition customizing change in ERP you need to rerun the initial customizing download (there is no delta download) and that you need to refresh the IPC customizing buffer, which is automatically done once a day by default.
    Best Regards,
    Michael

  • BAPI for creation of Credit Note with custom pricing condition

    I need to create a Credit Note with reference Invoice via program.  So, I am planning to use BAPI. Could you please suggest appropriate BAPI?  I need to send a pricing condition that is set manually in the credit note as well.  So, I will needto pass pricing condition and value.  Thanks.

    Hello,
    Why you have to create the credit note using BAPI w.r.t. invoice ? Can you brief the senario .
    The simple way is create a credit memo request in VA01 w.r.t. invoice number. It will have the block . Remove the block and Create credit memo in VF01 .
    Thanks
    RK

  • How to get xkomv-kwert (condition value) from a pricing condition ZZP1

    Hi experts,
       I have a pricing condition zcust that I need to modify in the sales order.   The calculation of ZCUST is dependent on the condition value in another price condition ZZP1.   The price for ZZP1 is a fixed amount of $6 which is split among line items in the order.    In sapmv45A, when the code hits userexit_save_document_prepare, the value of xkomv-kwert (condition value) exist.   In other user-exits in sapm45A, I was unable to find xkomv-kwert.  My question is:  How can I find the value of xkomv-kwert  as i don't  know how ZZP1 is calculated ??  There is no routine attached to ZZP1.
        THE ZCUST has a routine 993 which is similar to 3.   Here in program saplv61A, i was trying to get xkomv-kwert for ZZP1 but unable to get any data.   Can anyone suggest where i can get the data (xkomv-kwert) for ZZP1 in saplv61a ?
    I looked at userexit_xkomv_bewerten_end in saplv61a but it does not help.
    XKomv-kbetr  always has data.    If i have ZZP1 data, then i can modify ZCUST.
    Many thanks.
    Joyce

    Hi Jelena,
      In VOFM, it is Formula/Condition Base Value for routine 993.   In Pricing Procedure, it falls in column "Base Type" for 993.
    Let's see if i can simplify this: In a sales order with 2 line items:
                   prices                    Amt                      Condition Value (USD)
    Line 10     ZS1   sell price     2.30                                 1150
                     ZPP1 charge        6.36                                 3.40  (note the distribution **)
                     ZL1                      3                                      3
                    ZR1 %                  1.000%                            11.50
                    ZR2                      0.01                                   5
                    Suggested price =  2.35                             1172.90
                      ZCUST               2.34                                1170
                      total price            2.34                               1170  
    Note:  The ZCUST price is wrong.  It is missing the ZPP1 charge which is 3.40.  Zcust should be 1170 + 3.40 = 1173.40
    Line 20     ZS1   sell price     25                                 1000
                     ZPP1 charge        6.36                                 2.96  (note the distribution **)
                     ZL1                      3                                      3
                    ZR1 %                  1.000%                            10
                    ZR2                      0.01                                   0.6
                    Suggested price =  25.41                              1016.56
                      ZCUST                   25.34                           1013.60 (should be 1013.60 + 2.96)
                   Total price                25.34                            1013.60
    You can see the ZCUST is calculated incorrectly.  The routine calculate zcust as $1170 and $1013.60 for each item which did not include the distribution amount of  ZPP1 ($3.40 and $2.96).  
    When i debug the routine, the xkomv-kwert is zero.   I  am trying to get $3.40 and $2.96 so i can add to to zcust in the routine.
    Am trying to determine in saplv61A at which include that i can see #3.40 and $2.96 for both line items in xkomv-kwert.
    Then maybe i can modify the routine or saplv61A so it shows the correct zcust price  after entering the 2 line items in the sales order  create (VA01) ?     Can you pls suggest  ?
    If i make the changes in USEREXIT_SAVE_DOCUMENT_PREPARE, then user cannot see the correct zcust until the order is saved.  This would be too late to know the zcust price ahead of time.
    Pls view in the Edit mode... i see my texts have been compressed.
    Many thanks
    Joyce
    Edited by: Joyce Chan on Jul 9, 2009 10:24 PM
    Edited by: Joyce Chan on Jul 9, 2009 10:25 PM

  • Tr.posting from customer consignment stock to delivery stock

    Hi all
    end user has done sales delivery instead of normal delivery he has done consignment.Billing documnets also completed.How to reverse the consignment stock to normal delivery stock without cancelling the documents.
    regards
    anup

    you can do consignment return --> Return delivery --> Credit memo..
    Hope it helps..
    Regards
    Priyanka.P

  • Customized Pricing Condition downlaod

    Hi all,
        While doing initial load for Cutomized condition table for Pricing from R/3 to CRM i.e. for condition table A904 in r/3 i am getting an error as 'Mapping Error' in transaction SMW01. Also the error message is "<b>target table CNCCRMPRCUS904 is not actively available</b>". Can anyone please help me in resolving it.
         Thanks in advance.
    Regards,
    Rahul

    Hi Paul,
         I have tried doing changes as per mentioned note but was getting error as field MAINT_STAT is not being referenced in Access YZ05 for condition table 904 even though there are no z fields.
        Also for other condition tables that have z fields i am able to do generate condition tables successfully but after running the customized adapter objects not able to find the condition records in the genrated table.
         Can you please help me to resolve the above 2 errors.
    Regards,
    Rahul

  • Automatic financial postings from MIGO

    Hi Gurus,
    While automatic financial posting from MIGO/MIRO, the tax accounts (VAT on INPUTS or excise) did not post in Financial accounts as Business area is not found in automatic configurations. Will some one please help me to find where in configuration we can make business area pick up to Tax Accounts based on business area's selected for the Vendor/Materials.

    Hi Hitesh,
    MIGO is Movement type 101, go to OMWN and chek what is the Transaction key, this will decide what should be debit and credit.
    Then come to OBYC and define the account to be posted taking the combination of transaction key and valuation class.
    Then you will see the accounts are bein automatically posted to FI. Keep these account as "post automatically only"
    Hope this helps
    Regards
    Bharat

  • Pricing Condition - Skip Access Sequence

    I have a pricing condition that is assigned an access sequence but for certain business areas, we want to skip over the access sequence and use a value from a custom table.  Is there a way to do this with a pricing requirement on the condition in the pricing procedure?
    Currently, because the access sequence is assigned to the pricing condition, even if it does not meet the requirements, it is no hitting my Condition Value code to look at the custom table.
    When I remove the access sequence from the pricing condition configuration, it does hit the code.  I need to be able to do both.
    Thanks in advance,
    Pam

    I apologize Pam, my response actually contradicted itself. Once it skips the access sequence it then skips the condition, along with skipping the alt. calc. etc.
    To get this to work happily together there's a number of options.
    You could have the access sequence be not exclusive, so when that is skipped it will move down to the next access sequence (which you'd define with less detail so it will be "true"). Only thing here is when it is not skipped, then both access sequqnces will fire.
    More of an ABAP route would be do attempt most of this checking in the Price Proc Rqmt & AltCalc code. Possible have the requirement set a variable for your condition that the Alt Calc would then act upon.
    This is all off the top of my head, by I know you can get it to work properly. It's not that crazy of a requirement

  • Pricing Condition is Duplicating on Changing the Variants in Quotation !

    Hi,
    I have a requirement, where the Pricing Condition (Custom Pricing Condition Specific to the Variant Pricing) is duplicating on changing the Variants in Quotation to be stopped or deleted.  I suppose, the variant pricing condition should not be newly added to the pricing table each time, there is a change in the material variants as chosen by the business/user with the Quotation.  Instead, I assume, the existing cost for the variant pricing condition should update each time, when the variant material is changed by the user. I am not sure, whether this issue can be controlled in the configuration? or Can I control the occurrence of the duplicate pricing condition inside any user exit by deleting the duplicate condition, but retaining the newly added ( Recently  added pricing table entry for that condition)? I am not sure, what are the possibilities to fix this issue? Appreciate if you could provide me with a suitable solution.
    Thanks for your time.
    Thanks,
    Kannan

    Hello Kannan.
    I have the Same Problem. do you have a solution for the same?
    i have written a pricing condition at the characteristic level using pricing Factors. however when i change the characteristic. it is duplicating the condition instead of refreshing it.

  • Pricing Condition Value

    Hi All,
    I have a strange issue, where in when we eneter a material into sales order(VA01/Va02), there is a customized pricing condition type which is triggered. But the problem is, the condition base value appears zero and net value is calculated accordingly.  When we save the sales order, the COndition value  appears and net value changes because of this. Initially Condition value appears zero. It is an Item condition. Whet could be the reasons for this discrepancy.
    Thanks ,
    Swathi

    HI,
    Kindly Check your Pricing procedure in V/08 , and also check in Sale order level how system is calculating what is the value is picking based on that you can do the necessary changes in pricing procedure
    Regards,
    Prasanna

  • Sale Order pricing Conditions

    Hi all,
    In my sales order display transaction and change transactions i.e. tcode va03 and va02 i need to restrict certain users from viewing a few columns from the pricing conditions screen. Say for example 'Amount', 'Crcy', 'Condition Value' etc. Is there any way to accompalish this. If there is any exit please suggest the name or if there is any setting kindlly explain. 
    Urgent.
    Thanks.

    Hi Anurita,
    Well you can do this by going to T code : SHD0
    Here you enter the Transaction code for which u need to change the screen eg VA02 & Select the screen variants Tab
    Here you need to enter the screen variant , program ( SAPLV69A) and screen no   ( 6201) .
    Now if you click on change option you can hide your required fields by selecting invisible options.
    Hope this helps
    Cheers

  • Posting advance from customer

    Dear All,
    I have to post advance from customer through pos billing. It has to hit separate reconciliation account in ERP through special GL indicator. How do i capture the same.
    Are there any pricing / billing configurations in SAP or any configuration on POS side.
    Thanks in advance.

    Hi Charmz
    Never worked on it.. I just know it is there
    You can get some help from SAP ERP Sales and Distribution (SAP SD) Forum.. I am referncing SD Forum so that someone would look into it
    You can also check the SAP Help site http://help.sap.com/erp607 (Check Under Ehp4 or 5)
    Br. Ajay M

Maybe you are looking for

  • SIGSEGV received in ?? at 0xffffffff in ??. Processing terminated.

    We are getting this error: SIGSEGV received in ?? at 0xffffffff in ??. Processing terminated.On a Linux Redhat ES3 box using J2RE 1.4.2 IBM build cxia32142-20050609. I have never seen this type of javacore dump before. It looks like the instruction p

  • Can you play this url? (JMF error 'could not create player for')

    Hello, I can play this url in Windows Media Player http://anon.vht.com.edgesuite.net/dl/deg18-062405-2425.wmv However when I try to play it in JMStudio 2.1.1e, I get error "could not create player for deg18-062405-2425.wmv" Any help appreciated, than

  • I have one query about table entries.

    i have one query about table entries. suppose  for particular table we maintained   5 entries in dev server. actaully in the dev we have only these 5 entries. In production we have 200 entries actually. If we move the cts from  dev  to production ,we

  • Stop firefox on win7 from continually opens tabs for updated addons

    today firefox updated addons even though I had that feature turned off and now the updated addons keep opening tabs to the addons website respectively and continually, speed dial, no script and adblock...how can I stop this? first it should not updat

  • ST 22 dump analysis

    Hi, In ST22 dump analysis, we are getting the following columns... Date, Time, Host, User,Client, Error ID....Is there any way to get also the program name (which is usually available on double clicking any row) in it... Because dump analysis report