Addition Item getting added while posting Sales Order Changes - ORDCHG

Hello,
I have a requirement to post sales order changes - ORDCHG. Now, when I am adding the qualifier 002 at the item segment E1EDP01 with the existing Item number, it is creating another Item in the sales order rather than changing the existing one. What could be the reason? I am passing the below values in to the respective segments.
E1EDK01-ACTION = '003' - Changes in one or more items
E1EDP01-ACTION = '002' Item Changed.
Please advise.
Regards,
Venkata Phani Prasad K

I encountered the same problem.  As Vinit pointed out, it looks up the line item using field POSEX on VBAP instead of POSNR.  If you want to look up POSNR,  you can implement either user-exit ZXVDBU07 or ZXVDBU09 in IDOC_INPUT_ORDCHG and do the following.
Loop through YVBAP and modify the internal table to set POSEX to be equal to POSNR.
This will cause the IDOC to select the correct line item based on POSNR.  The only side-effect is that when the order is updated, it will also update field POSEX on table VBAP.

Similar Messages

  • Statistics Currency Error while posting Sales Order (No: V1453)

    Hi Sappers,
    I am in process of making a company in SAP ERP SD - IDES, and while posting Sales Order, after I input Sold to Party, PO no, Del Plant and Incoterms and I press ENTER: The error comes up as:
    Statistics: The currency from in INR for date 25.11.2011 could not be determined.
    Kindly suggest a possible solution.
    Thanks
    Rahul Tikku

    Hi,
    Just go to "OBD2", select the Accounts group of your customer and "Double Click" on it, then "Double  cliick" on "Sales Data" > Further goto,  "Sales" and check if "Currency" field is suppressed. if so then change it to required or optional Entry. save and update you customer master in XD02. Then try your process.
    Reagrds
    DSR

  • Unable to block or throw credit limit message while posting Sales Order.

    Dear All,
    I hv created new customer and extended credit limit through FD32, assigned Risk Categeory and set the limit to 10,000/-.
    When i am posting Sale Order with 15,000 or more value, i am not getting any warning or error message while saving Sale Invoice. No block was set against delivery or billing in Sale Order.
    Kindly guide me, which step i am missing. FYI, customer dont hv any open item or credit exposure as of now becoz he was new customer.
    Regards,
    Venkat

    Option 1
    If your requirement is to go ahead with warning message and allow saving the sales document, maintain A in VOV8 for credit limit check.
    If you want to restrict creating sales order when credit limit exceeded maintain B in VOV8 for credit limit check.
    Option 2
    Now in OVA8 if you click on dynamic option. Make sure you satisfy these requirements
    The customer's credit exposure is split into a static part - open items, open billing, and delivery values - and a dynamic part, the open order value. The open order value includes all not yet or only partially delivered orders. The value is calculated based on the shipping date and the credit horizon you specify in the adjacent field. For the purposes of evaluating credit, you want the system to ignore all open orders that are due for delivery after the horizon date. The sum of the static and dynamic parts of the check may not exceed the credit limit.
    I would recommend with option 1, still if you want to go for option 2
    Then click on Static and make sure you also select open orders and open deliveries.
    This will happen if you select static
    The customer's credit exposure may not exceed the established credit limit. The credit exposure is the total combined value of the following:
    Open sales documents
    Open delivery documents
    Open billing documents
    Open items (accounts receivable)
    You can specify in the adjacent fields whether the system takes into account all open orders and all open deliveries.
    Regards
    Ravi.
    I am sorry i wont be able to add further input than this.
    Dont forget to reward points if you think it was successful

  • Item & Discount added in the Sales Order

    Dear All,
    I have a requirement where in once a Sales Order is created with approved Quotation, then no new extra items to be added in the sales order.
    Quantity in the existing line item can be decreased to the lower side but no addition in quantity to be done.
    Also no change in discount condition  types to be done.
    Please suggest the approprite Config. If there is no standard config, then please suggest the code which needs to be written in the approprite Userexit.
    Best solution will be rewarded.
    Thanks and regards,
    Dilip Kumar Rao

    Hi,
    To restrict creation of new items and to restrict addition of quantity to existing items, use following user-exits and coding.
    Program : MV45AFZB
    FORM USEREXIT_CHECK_VBAP USING US_DIALOG.
    *{   INSERT         D50K904678                                        1
      if sy-tcode eq 'VA01' or sy-tcode eq 'VA02'.
        check vbap-vgbel <> space and vbap-vgpos <> space.
        read table vvbap with key vbeln = vbap-vgbel
                                  posnr = vbap-vgpos.
        if sy-subrc eq 0.
          if vbap-kwmeng gt vvbap-kwmeng.
            message e499(sy) with
              'Quantity entered is greater then referenced'.
          endif.
        endif.
      endif.
    *}   INSERT
    ENDFORM.
    Program : MV45AFZZ
    FORM USEREXIT_MOVE_FIELD_TO_VBKD.
      if sy-tcode eq 'VA01' or sy-tcode eq 'VA02'.
        loop at xvbap where vgbel eq space
                      and   updkz eq 'I'.
          exit.
        endloop.
        if sy-subrc eq 0.
          message e499(sy) with 'New Item is not allowed'.
        endif.
      endif.
    ENDFORM. 
    -Alpesh

  • Item level remark while entering Sales order

    I have entered a remark at item level while entering sales order. How will the user i.e production or quality department will come to know that there is a remark at the item level.
    Now one has to go and check for each and every item for remark.
    Can someone help me out from this.
    Thanks

    The answer to your question is you use sales texts. This is done in IMG-SD-BF-Text determiantion
    In customizing, you can specify which texts are to be used for internal purposes and which are to be used in the sales and distribution forms.

  • Right item category not getting copied while copying sales order

    Hi,
    We have a scenario where we are coping an existing order document and maintaining a new order document.
    The problem is that when we are copying the existing order, we ll not get the same item categories in the copied order as available in the original order.
    The Free of Cost item categories of the materials got changed to the normal item categories, which should not happen.
    Let me know if any configuration changes made in system can fix this issue.
    Cheers!!!
    Ajay

    Hi,
    This may be due to copycontrol between these two sales order. In copy controls, you are retriggering the item category determination.
    When you define the copy control from SO to SO, select the item category and keep the source and target item category as same. (Same for schedule line category also). Once this is done, your problem will be solved.

  • ITem category  error while creating sales order through

    Hi,
    I am trying to create a sales order through Bapi  and in between im getting the below error.
    ' Item category TAM is not defined for non material items'.
    Can anybody pls provide the solution for this.
    Thanks

    speak to your SD functional person.  The Error is pretty self explanatory; SAP is telling you that the item category for that order item is not permitted by your SD configuration.

  • Order tab  while posting sales order

    Hi,
    Our SD Consultant is posting a sales order in the t.code va01 there is a tab account assignment,now the isssue is in that account assignment tab there is field i.e.order. now if he selects the order and saves, it is showing as 'incomplete document', now we have opened and verified then there is a message "gl account not assigned", my question no. 1 is that order is for internal order or production order.
    question no.2 is  from where it is picking these values.

    Hi Selvam,
    Thanks for your reply..
    At the time of saving sales order it is showing incomplete document.
    if i select internal order then in the incomplete doc. it is showing as "gl account not defined"
    but gl accounts defined in t. code : vkoa
    if i have not select internal order then it is showing as"order missing"
    Kumar

  • Problem with profitability segment derivation while posting sales order

    Hello,
    We have the issue of profitability segment being not derived when the sales order is changed using BAPI 'BAPI_SALESORDER_CHANGE'. Subsequent to calling this BAPI we execute a BDC - to derive the profitability segment - which runs well in the foreground but fails in the background. Immediate help in this regards would be of immense help.
    I have searched the forum but could not locate anything useful. There is this thread (Re: BDC for profitability segment VA02 (sales order)) citing the same problem but without answers.
    Kind Regards,
    Indu Shekar

    Probability Segment is maintained but  Profitability Segment is still grayed out.
    The only way i was able to move things to COPA  was to do a project Settlement from
    WBS element to Profitability Segment (PSA).
    But does anyone know if we can move things to COPA during Sales Order (specifically for a project-based Sales Order)?
    Thanks.

  • Error determining posting period(infostructure S008,Variant Z2,RC3) while creating Sales orders from Inbound IDOCS

    Hello,
    I am getting this Error message"error determining posting period(infostructure S008,Variant Z2,RC3)" while creating Sales order from Inbound Idocs in the IDOC,which is affecting sales order creation.
    While viewing this Info structure S008, I could see no records have been maintained. Wanted to know the reasons behind this Hard error?
    Is it something related to Date Field used in the Update Rules for this Infostructure which is causing this posting period error?
    Appreciate your inputs on this.
    Thanks and Regards
    Mohammed Roshan

    Thank you Jelena,I checked the Ship. Delivery dates in the IDOC which are for Current Fiscal Year- 20140703 and 20140711,Could there be any other reason for this error?
    Could it be an issue with e Update rule in this Infostructire S008
    Secondly when we try change the update rule thru MC25 for this Infostructure S008,It gives a message"
    "Maintenance of SAP standard updates not allowed"
    Kindly advice
    Thanks and Regards
    Mohammed Roshan

  • Empty line item added in incomplete sales orders after upgrade

    Hi,
    We are upgraded from 4.7 to 6.0 version of R/3. After the upgrade in sales orders which were incomplete in 4.7, a empty line item have got added in those sales order. While opening those order in VA02, first line item is completely empty and due to that it doesnot allow me to do anything on that order. Also, on checking the tables such as VBAP, VBKD an empty line item is there.
    Kindly Advice.
    Thanks in Advance.

    Hi Kishore,
    I have already checked SAP notes but got nothing related to it.

  • Getting runtime error while doing sales order

    Hi,
    I am getting a runtime error while doing sales order.
    Error : SAPSQL_INVALID_FIELDNAME
    Kindly suggets....stuck up badly.
    cant do any transaction.
    Regards
    Kishan

    Hello,
    Check OSS Note#209847 and 310304
    Regards,
    Gauravjit.
    Reward points if the notes are helpful

  • While creating sales order I am getting  Sanctioned party list blocked  but I am able to create delivery, and PGI

    Dear GTS Experts,
    While creating sales order I am getting  Sanctioned party list blocked, but I am able to create delivery, and PGI.
    Where Is the wrong ?
    Thanks a lot
    Venu gopal

    Dear Venu
    Based on your message shown in the system, can you check the field in Control Settings for System Reaction in the Document type settings via Application Levels in the feeder system. This Field '' System Response in Feeder system if SAP GTS fails'' should be maintained with ''A''. I think in your case it could be 'Blank'' Thats why the system is allowing you to create the subsequent documents accordingly.
    Please let me know if any further inputs required.

  • How to change the status of material while creating sales order via BDC

    Hai.
    In BDC while creating sales order( va01 posting ) it is stucking up in middle saying material is new. I.e Sales order (va01) is not  getting created because  of material status is new . I want to create sales order  (va01) even  material status is new.
    pls give me out the solution. Points will be rewarded.
    thanks & regards,
    sami.

    Hi,
    If you drag the line item a little towards the right side, you will find a filed material entered. The one you see in the material filed on sales order over view screen is the one determined. You can as well double click and see the fields material entered and material determined.
    Is there anything else you are expecting to see as part of analysis ?
    Regards
    Sadhu Kishore

  • New Line Item to be created in sale order

    Hi,
    Client requires a new line item to be created in sale order for particular regions only..
    Scenario 1 :
    For a particular region Additional Tax shud be calculated on Basic Price .
    Scenario 2 :
    For a particular region Cess on Vat need to incorporated.
    Client wants to maintain condition records in Cond Type :UTXJ and also the client shall maintain a 2 different Tax Codes for above each scenarios,  In future in case Additional Tax or Cess on Vat is applicable to other regions it shud get posted in their respective G/L's
    Plz suggest...
    Thanx...

    It would be wonderful had you shared your suggestion in this forum itself rather sending to personal mail ids which is against the rules and regulations of this forum.
    I request you to dont do that please.

Maybe you are looking for

  • Roxio won't die

    My partner and I are running Windows XP on our respective machines. While we were using the previous version of the Blackberry Desktop software, every time we rebooted, Windows Installer popped up and tried (unsuccessfully) to install the Roxio Media

  • Problem downloading any apps through app highlight...

    Hi there , i have done everything i believe i am ment to do however no matter what i try i can't download any apps at all from the market place or the apps highlights. am i doing something wrong - are there certain steps i should have done which mayb

  • OS X 10.8.5 causes external disk to eject improperly

    Ever since updating to 10.8.5 I'm having a problem with my external Time Machine drive when my iMac goes to sleep.  When I return to the computer, the folling warning pops up on the screen: I'm not doing anything differently than I've always done.  T

  • HT4890 I do not have photo stream on my i cloud menu. How do I get it there?

    I do not have photo stream as part of my i cloud menu, what do I need to do to add it to the main menu?

  • Repolist.sh

    i made this script to help me post the contents of my repo on the forum - it's pretty simple but it preformats with phpbb code so that you just paste the text into a post, complete with links to pkg homepages and your online PKGBUILDS - you can see w