Condition value currency based on amount currency in sales order creation

Hi all,
      I have a requirement where during creation of a sales order with line items in the conditions tab where if condition type is EDI2 the amount currency should be USDN and accordingly condition value currency should also be changed to USDN.
I found the exit to acheive this and succeeded in changing the amount currency to USDN but condition value  currency is also changing but for all above condition types.
I am using form userexit_field_modific_kzwi.
loop at xkomv where kschl = 'EDI2'.
XKOMV-WAERS  = 'USDN'.
MODIFY XKOMV INDEX SY-TABIX TRANSPORTING WAERS .
select single waers into komk-waerk from TCURC where waers = xkomv-waers.
endloop.
Thanks & Regards
Jerry

Hi Vindo,
Thank you for your replay.
There is no Net value column in pricing procedure. Am able to change the Net value in the condtion tab of  Item level but the problem is , the change is  not  reflected in condition tab of sales order header net value.This is creating a problem when we try to post the invoice document .
Cheers,
sravan.
Edited by: Rob Burbank on May 7, 2010 4:30 PM

Similar Messages

  • Header condition value is changing in Invoice compare to Sales Order

    Hi,
    I have created one Sales Order with five line items and total quantity is 100 units. I have one header condition type and the value is 1000 USD in Sales Order.
    Now I have created delivery and changed the quantity from 100 units to 105 units..
    And than I  have created Invoice. If i check the Header condition type value now it it 1100 USD instead of 1000USD(header condition type value should be the same as in Sales Order)
    Can anyone suggest me why the header condition value is changing in Invoice where as it should be as same as in Order?
    Thank you for your support
    Best Regards
    Amjathpasha

    Hi Amjad,
    You might check in copy controls for the Pricing type if the prices are getting re-determined at the time of billing.
    Although, if it is, the value should have been 1050 USD and not 1100 USD.
    As you know item condiitons for all the items are added up to the header, you might want to analyze item conditions as well.
    Also, since you are delivering 105 units instead of 100, do you still want the system to charge for 100 units? Or is it something related to under-delivery/over-delivery tolerance?
    Regards,
    Amit

  • Condition value of JMOD not appearing in the sales order.

    Hi all,
    Im encountering a peculiar situation where the conditon value of JMOD is not showing up in the sales order..It is however showing the tax rate.. Pls suggest.
    thanks and regards
    Joe

    Hi joseph
    some soution for you I googled for you
    one example like yours i am just copying and providing info for you i dont know whether i can copy link or not here
    here is the solution
    I'm using TAXINJ procedure with JFACT as the pricing procedure for sales.
    Here, I've maintained in FTXP, for IN00 and taxcode V1(new one defined),
    taxes as desired and JMOD = 16%, AED as 2%.
    But these values are not getting picked up in the pricing in sales order.
    I'm keeping UTXJ correctly. I tried with % of UTXJ with 100%.
    In the pricing analysis, I see that the condition record for JMOD is found correctly with 16%.
    But it appears in the condition items as 0%
    solution:
    Check whether you have maintained the tax classification in material master and also check whether u have defined the same tax classification in VK11 for UTXJ, where u assign the Tax code.
    Also check for customer tax classification. And check what you have maintained in J1ID. System will first search for values from J1ID, and then in FTXP.
    And have you a sales pricing condition like JEX2 which is a copy of JMOD ? The value of JEX2 gets posted for Excise account key. This ensures that the cost accounting of excise value paid is done correctly - account key EX2.
    I'm maintaining TAX classifications correctly in the material master, customer master and final tax classification for plant also is set correctly.
    As I told, JIN1, JIN2, JIN4,JIN5 are picked up correctly and calculated. Problem is only for Excise.
    And these values are getting copied initially, before I put PR00 manually.
    Once I put PR00, all the conditions are set to zero back
    Then after entering the price manually, u do the update pricing in Conditions View.
    See, I have not altered any thing in the standard JFACT procedure. That means sales condition is there for JMOD to enable account posting..
    Now, I've changed Tax category in OVK1, and put UTXJ alone there and now, JMOD is getting picked up and is calculating the value..
    But note that I've maintained 10% as JMOD in FTXP.. and 8% in the J1ID excise rate maintenance for chapter ID.
    Can I do away with Excise rate maintenance for chapter ID. So that I will get the % maintained in the FTXP..
    did the tax code pick up correctly... did u maintain the chapter Id and excise rate fro teh chapter ID
    I could solve the proble..
    In the excise group assigned to the plant, I had to check on the indicators, SED and AED.
    Hope its clear your issue.
    Regards,
    Krishna.

  • Default document currency as per document type for sales order

    Dear All,
    We are facing problem in Default document currency as per document type for sales order,
    Our requirement is not to give currency in customer master & set it as default document currency as per document type,
    for example: Document type 'OR' default currency 'INR',
                         Document type 'ZEU' default currency 'EUR',
                         Document type 'ZUS' default currency 'USD',
                         Document type 'ZNP' default currency 'NRP,'
                         Document type 'ZAF' default currency 'RAND,'
    Is it any how possible in standard setting ?,
    Regards,
    Sai

    Hi,
    The system proposes the sales document currency from the customer master record of the sold-to party. You can change the currency manually in the document or change in currency in customer master. If you change the currency, the system recalculates prices for the entire document.
    to determine different currrency in sales docuement you need to write an user exit and then overwrite the docuement currency copied from customer master. Try user exit 'USEREXIT_MOVE_FIELD_TO_VBAK' under include MV45AFZZ for this change.
    with regards
    vivek.

  • Addition of Condition type in XKOMV programmatically - Sales Order creation

    Hi,
    I need to add a condition type ( a record with whole data like Amount etc,.) in XKOMV programmatically during a Sales order creation, so that the new condition type gets automatically saved along with other data in VA01. Please suggest the better way of doing this - through Userexits or Form routines.
    Thanks in Advance,
    Sirisha.
    Edited by: hema Namuduri on Oct 20, 2011 5:12 PM
    Edited by: hema Namuduri on Oct 20, 2011 5:13 PM

    Hi E_Hinojosa / madhurao123,
    I added the below code in FORM userexit_xkomv_bewerten_end ( of Include: RV61AFZB ) which will get triggered in 'Pricing' Function Module.
          FORM USEREXIT_XKOMV_BEWERTEN_END                              *
    FORM userexit_xkomv_bewerten_end.
    DATA: l_amt1 TYPE vbak-netwr,
                v_waerk TYPE waerk.
    l_amt1 = '56000'.    " Let's say..
              READ TABLE xkomv WITH KEY kschl = 'ZF02 '.
              IF sy-subrc <> 0.
                  xkomv-stunr = '012  '.
                  xkomv-kschl = 'ZF02 '.
                  xkomv-krech = 'B    '.
                  xkomv-kwert = l_amt1.
                  xkomv-kbetr = l_amt1.
                  xkomv-ksteu = 'C'.
    Select single waerk into v_waerk from vbak where vbeln = komp-vgbel.
                  IF v_waerk <> space.
                    xkomv-waers = v_waerk. 
                  ENDIF.
                  xkomv-zaehk = 99.
                  CLEAR: xkomv-kntyp,
                         xkomv-kstat,
                         xkomv-kolnr,
                         xkomv-knumh,
                         xkomv-kopos,
                         xkomv-kinak.
                  xkomv-kherk = 'C'.
                  xkomv-kvsl1 = 'ERL  '.
                  xkomv-drukz = 'X'.
                  xkomv-kaend_loe = 'X'.
                  xkomv-updkz = 'I'.
                  APPEND xkomv. CLEAR xkomv.
                  DELETE xkomv WHERE kschl = 'ZH00 ' OR kschl = 'ZF00 '.
                  komp-netwr = l_amt1.
                ENDIF.
    ENDFORM.                    "USEREXIT_XKOMV_BEWERTEN_END
    Above is the main logic I am using, apart from other Export, Import statements etc,.The above code is getting triggered during every screen transition.
    It is automatically adding condition type 'ZF02' with all values during the creation of sales orders for some contracts, but not for other contracts. I am trying to trace what is the difference in both scenarios.
    Please suggest.
    Regards,
    Sirisha N.

  • Make Net Value Field at item level Editable in Sales Order

    Hi
    All pricing in our system are manual .
    So the client wants to change the Net Value Field in Credit and Debit Memo Request to be Editable ( Currently it is not modifiable)
    Plz suggest how to g about it.
    Do i need to use Userexit_ Field_ Modification, if yes how , The field VBAP-NETWR.
    REgards
    Rohit

    Hi Yadav
    Changing Net Value will effect the updation of various tables ...so u r right not the correct approach .
    Can i put condition type and its value in Credit Request Memo and its value aditable same as in screen for Sales Order .if yes how , changing screen sequence group in credit memo request is creating problems
    Regards
    Rohit

  • Credit management how to block amount on particular sales order

    hi,
    Client want to block amount on sales order.
    If customer is having credit limit of 100000 n there are 3 sales order , sales order 1 amount is 50000,sales order 2 amount is 30000 and sales order 3 amount is 40000...
    Now customer is coming n saying I want 40000 amount material of sales order 1.here my client want to block 50000 for sales order 1 so customer can not use amount for other sales order , system will check credit limit is 100000 and out of 100000 system should block 50000 for order 1.
    Solution required...
    If this is not possible then suggest me possible solution.
    please suggest...

    please note what you require is not possible in SAP.
    Therefore there is no standard solution.

  • Block sales order creation based on material qty

    Hi,
      In my scenario i want to block the sales order creation based on material qty , how i can do this?
    Example:
    Material qty below 100 = able to create sales order
    Material qty above 100 = not able to create SO
    Thanks,
    Arun

    Hi
    For restricting the order if it is less than a specified qty, you can maintain the 'min order qty' in material master.
    But your requirement is the other way round - Restrict order if it is more than specified qty.
    In this case, you need to use the following sales order exit  in progran MV45AFZZ
    u2022     USEREXIT_SAVE_DOCUMENT_PREPARE
    Use this user exit to make certain changes or checks immediately before saving a document. It is the last possibility for changing or checking a document before posting.
    The user exit is carried out at the beginning of the FORM routine BELEG_SICHERN.
    Hope this helps.
    Regards
    Madhu

  • SQL Query to reduce Commission amount on a Sales Order

    I hope that this is the right forum to post this and hope that someone may be able to help?
    I have a customer who wants to manipulate the amount of commission given on a sales order for some specific items.
    I have set up a UDF on the item master record called U_Commission_exempt. I have given this valid answer of 'Y' = Yes and 'N' = No
    When I load a sales order, the commission amount is derived from the Sales Employee logged against the BP on the BP Master Data.
    When you enter the Item No. onto the Sales order, I have set up a formatted search that goes and looks at the Item Master Record, and if the U_Commission_Exempt is set to 'Y' the commission amount on the sales order is supposed to be reduced to zero.
    My problem is, I can not get the SQL to do exactly as I want - at the moment it is reducing the amount to zero every time.
    Can anyone offer any thoughts on how the SQL should look?
    Thanks

    Thanks for all the Abhishek - I really do appreciate all the help on this as it's been really furstrating trying to get over this.
    Would you be able to finalise the SQL for me as I still dont quite understand what you are saying - If you look at Gordon's attempts from earlier, the brackets etc all look different to your version.
    If the OITM record returns 'N', the commission needs to come from OSLP 'Commission' which is stored on the sales order as RDR1 'Commission'

  • Condition types in Sales order creation process

    Hi Friends...
    While creating the sales order with BAPI,
    What is the condition type i have to pass for pricing procedure...
    There many condition types for my pricing procedure, which one o have to select...
    Some of them are mannual, and other reuired, which one I have to pass?
    I want the information related to this condition types.., as here no SD consultant availble for me.
    Sales order creation, Line item error
    Thanks,
    Naveen.I

    Hi Friends...
       Please let me know is it mandatory to give condtion type while creating the sales order...?
    I am using BAPI_SALESORDER_CREATEFROMDAT2  to create my sales order...
    http://www.sap-img.com/abap/bapi-salesorder-createfromdat2.htm
    Thanks,
    Naveen.I

  • Replacing Profit Center value while sales order creation process - VA01

    Hi,
    Profit Center replacement   in Tcode VA01 and VA02
    I want to replace the profit center value (COBL- PRCTR) in Account assignment TAB in sales order creation time VA01 and VA02 by using custom logic (Line item Material Group and Sales District VBKD-BZIRK).
    Can anyone tell me what exit or BADI I can use for this ( I tried some of them and not working properly).
    1.     In Exit I need to have the value of Sales District VBKD-BZIRK and Line item u2013 Material Value  - These 2 field values I need in the exit.
    Thanks in advance.
    Rajesh.

    What do you mean this is not correct user exit. That is an include and there are user exits within that include.
    Have you tried save document prepare?  If yes, what have you done?
    Don't just blindly say 'that is not correct' or don't expect someone code for you. You better try in different way and learn how to do it. I just got it worked in my system just in 5 minutes in debug.
    You are not going to change COBL-PRCTR but you should change XVBAP-PRCTR.
    put a break point in userexit_save_document_prepare in include MV45AFZZ
    Loop through XVBAP and change PRCTR as per your logic.... This changed PRCTR carried till end (billing document/accounting document). I can see the profit center document with changed profit center.
    Good luck... if that solves. Mark this thread appropriately.
    Most importantly, you better close your previous threads if they are answered. if you solved by yourself post the solution so that others can benefit from that. 
    @moderator, please check this guy posts
    Edited by: Sampath Kumar on Apr 28, 2011 1:16 PM

  • Get condition prices before sales order creation

    Hi Experts,
    I have a non-SAP system which needs price information from SAP.
    As we know, in SAP after Sales order creation, the prices can be found in item condition tabs. All condition records and prices can be found.
    Now, before the non-SAP system sends data to SAP for sales order creation, non-SAP needs the condition record and prices same as after sales order creation.
    seems i have to write code in SAP for the logic of price determination. i assume that will be a big work.
    so i'm supposing whether we can get the condition from the bapi for sales order creation. i can mask testrun = 'X', then get the conditions. but i tried creating sales order in code and found the condition - ORDER_CONDITIONS_IN is not populated.
    anyone got a idea to solve this?
    Thanks a lot.
    Legend Lee.

    Hi,
    If you run the BAPI under the same conditions but without the text flag checked do you get anything returned? Are there any messages in the RETURN table?
    There are a number of OSS notes on this BAPI e.g. 93091 if you search on service.sap.com. The answer may lie in the pricing configuration; that the BAPI is not designed to work how you want it to work or a parameter has not been specified correctly.  You could look at FM SD_SALESDOCUMENT_CREATE and try and use that however it is not released. Unfortunately I canu2019t give you a definitive answer or solution.
    Regards, David

  • How to Overrride ATP values during sales order creation

    Hi all,
    How i override ATP values during sales order creation.
    The scenario is that we need to migrate open orders from an existing legacy system to SAP.
    While migrating these orders, we need to make sure that dates on the schdule lines are same as they are in the old system. Hence we need to override ATP.
    Any suggestion welcome..
    Regards,

    Hi Kantur Shekar madhuri,
    Would you confirm the whether in your schedule line category is activated for "Product Allocation" or not.
    if not please activate and re run your scenario.
    Regards
    Arun

  • Updating Condition Type based on pricing type in Sales order

    Hi ,
           I've created a sales order using BAPI. Now I want to update the condition type using pricing type 'Z' customer reserve . I'm using BAPI_SALESORDER_CHANGE.
    I'm passing the values as:
      condition-itm_number = '000000'.
          condition-CONDTYPE = 'Z'.
          condition-cond_count = '01'.
          condition-currency = w_temp_itab_so-currency.
         condition-CALCTYPCON = 'Z'.
          APPEND condition.
          conditionx-itm_number = '000000'.
          conditionx-cond_count = '01'.
          conditionx-updateflag = 'I'
          APPEND conditionx.
    But its not getting updated.
    Thanks and regards,
    Jyoti Shankar

    Hi G's
    Iam trying to get my fields hidden based on the conditon type i give, and not in a position make that hidden so, how can be that done,,
    The actual instance is:
    I am having different plants for the company and two plants have different taxation procedure and rest differemt and if i select plant with different taxation procedure the condition type should be supresses only for the particular plant...
    All your Support is Appreciated

  • Different currency exchange rate at time of sales order and invoicing

    Hi Friends,
    Actually,we are facing a crucial problem in Export where we would like to have the current currency exchange rate to be applicable both at excise and commercial invoice.
    Regards,
    Praveen

    Hi Ankur,
    Thanks for your reply.But our problem is sales order,exchange rates are defined with M type in OB08 as u have said.However when the periods are different for order entry and invoice generation we are facing the following problem.Orders are at old exchange rates and excise invoice is getting generated at current exchange rate.This is resulting in value difference between commercial invoice and excise invoice.
    Please help.
    Regards,
    Praveen

Maybe you are looking for

  • LaserJet 5100 printing issue

    I have a LaserJet 5100 - purchased in 2005 - worked great until I just bought a new HP Pavilion computer.  It prints normal text fine but having issues printing 11x17 pdf drawings.  I have tried loading updated drivers from HP site, called HP and tal

  • File download from application server to presentation server

    Hi,      We have requirment to upload a file to application server in .dbf format and then download it to presentation server.  while downloading the file to presentation server some of the fields  getting junk values.  we are downloading file to exc

  • How can I get new windows to open On Top Of the current window, not Behind the current window?

    Regarding the Options checkbox to "When I open a link in a new page, switch to it..." I already have that box checked, but still windows are opening behind my current window.

  • How do change the sound level input at the premiere cs6

    Hello:          I would like to know how to change the sound level input al the premiere cs6?. Sincerely, Gabriel Conde

  • Distroying a componnet

    I need help with something... I want to distroy a component when it is not visible .... i tried to use the dispose() method but after disposing i can still access the the component ... Is there a way to make sure that it is completely removed from me