How to change Position Number in Sales Order?

Hello Gurus,
I have the requirement to renumber the positions in an existing sales order.
For example position 000020 needs to be changed to position 000030.
Unforunately BAPI_SALESORDER_CHANGE cant do this apparently.
Anyone knows a way other than direct access to VBAP or deletion of position and after that inserting the new position?
Regards,
Vasco

For heaven's sake, stop thinking about changing it programmatically. You will land yourself in deep trouble. Better delete the order and create a new one.
Four years back , I was pitched in as an advisory consultant to design a solution to incorporate some IS-Retail feature in SD module .It gave me good exposure to study  standard sales process closely- how the standard program takes care of addition, insertion and modification operation. Basically, I had to do similar kind of thing via enhancement. There are so many scenarios and so many  tables like XVBAP, YVBAP, IVBAP, SVBAP to manipulate. If any table is filled incorrecly, data will be inconsistent and there will be short dumps. Other than that you also have to change the related tables like VBUK, VBUP, VBEP and the  tables that David Knittle mentioned. Some indexed tables like VAKPA & VAPMA are also updated along with VBAP.
System basically knows whether it is an insertion , update or deletion by checking the value of UPDKZ field. Also, for some scenario, probably for deletion ( forgot, did it long back ), two line items are created, one at the original position and one at the end.

Similar Messages

  • How to change pricing Conditions in Sales order in change sales order bapi

    Hi Experts,
    How to change pricing Conditions in Sales order in change sales order bapi.
    I have used the 2 function modules bapi-changesalesorder and sd salesdocument change, But it is creating the new record , instead of changing the existing one, Could please assist regarding the same
    Thanks in Advance .
    NLN

    HI NLN
      I have just tried on my system and managed to overwrite the existing price by passing the following parameters.
      <b>Import Paramters:</b>
         SALESDOCUMENT - Sales Document Number
         ORDER_HEADER_INX - UPDATEFLAG as <b>'U'</b>.
         LOGIC_SWITCH - Import Structure - Pass 'X' to LOGIC_SWITCH-COND_HANDL.
      <b>Tables:</b>
         CONDITIONS_IN - ITM_NUMBER,
                         COND_COUNT, -> Condition counter same as KONV-ZAEHK generally it is <b>'01'</b>
                         COND_TYPE,
                         COND_VALUE,
                         CURRENCY.
         CONDITIONS_INX - ITM_NUMBER,
                          COND_COUNT,
                          COND_TYPE,
                          UPDATEFLAG as <b>'U'</b>,
                          CURRENCY.
       Hope i have clarified your query.
    Kind Regards
    Eswar

  • How to restrict the Number of sales orders in theTCode:VL10A whil creation

    I'm creating the Delivery by using the batch job with program: RVV50R10C Here I need to restrict the number of sales orders numbers while creating deliveries for sales orders
    Like system should pick the sales orders (sales documents) from 1 to 100 OR 100 to 200
    Please advise me how to do it and what changes I need to do it

    Hi,
    Aslo, you can see Note 198137 - VL10: Customer-specific enhancements / user exits. As is for SO, check subroutine LV50R_VIEWG03. If cf_subrc = 1 thin this SO isn't seen in list.
    ***INCLUDE LV50R_VIEWG03 .
    *&      Form  POSTAB_VEPVG_FILL_USER
    FORM POSTAB_VEPVG_FILL_USER
         USING    IX_LIST_PROFIL    TYPE      SHP_VL10_LIST_PROFIL
                  IX_PARAMETERS     TYPE      SHP_VL10_PARAMETERS
                  IX_SELECT_OPTIONS TYPE      SHP_VL10_SELECT_OPTIONS
                  IT_ENQUEUE        TYPE      SHP_VL10_PACKAGE_T
                  IX_SD_ORDER       TYPE      SHP_VL10_SD_ORDER
                  IS_VEPVG          TYPE      VEPVG
         CHANGING CS_POSTAB         TYPE      SHP_VL10_ITEM
                  CF_SUBRC          TYPE      SYSUBRC.
    CF_SUBRC = 0.
    *  cs_postab-zzfield = ......              "add new field to List
    *  if xxxxxxx = yyyyyyy.
    *    cf_subrc = 1.                         "Exclude this index from List
    *  endif.
    ENDFORM.                    " POSTAB_VEPVG_FILL_USER
    I hope this helps you
    Regards
    Eduardo

  • How to change material discription at sales order item level ?

    Dear Gurus,
            We have some requirement need to change material description at sales order item level , but in system it is in disable mode how to change that  into change mode in sales order item level?
    Thanks in advance
    Regards
    Venkat

    Not possible in SAP Standard.
    Instead why not create a Customer Material Info Record in T-Code - VD51?
    Alternatively it the requirement to change the Description is only for few Sales Order then create a Text ID & Enter the Description in Text Feild. Then in Smartform program wrie a code which will check for Material Description in the Text first & if not found then take from normal material Description in Sales Order.
    But Customer Material info Record seems to be the best solution.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • How to enter serial number for sale order line  which is in shipped status

    Hi All,
    We have 2 different items which are defined as Serialized at Sale order issue at item definition.
    In one sale order,User has forgot to add serial number to one of the item at Ship confirm stage.
    He has entered serial number correctly to other item.
    Now the both Sale order lines are in Shipped status if we view them through Shipping>transactions.
    I am technical guy and new to OM.Could you please let me know the process to enter the serial number for the item to which user has missed it
    Thanks,
    Satya

    Hi Satya,
    Since the item is already shipped, you cannot enter serial number for this line.
    you have to enter serial numbers after pick confirm only.
    check this note
    How to Enter Serial Numbers in the Shipping Transactions Form [ID 1235403.1]
    As a workaround for the previous lines do RMA and try to receive the goods back to your subinventory.
    For all new transactions follow the above notes.
    Thanks
    -Arif.

  • How to change a plant in sales order for main item of BOM

    Dear Gorus,
    Please tell me how we can change plant of main item of a BOM?
    Actually, I have maintained a LUMF BOM. The main item and components of this are maintained for two different plants.  BOM is also maintained for both the plants and it explodes smoothly in sales order once I provide the plant. But as per our reqirement sometime we need to change the plant. Here system does not allow to change the plant of main item of BOM as it is in gray mode now.
    Please guide me how can I change the plant? Is it possible by configuration or should I go for userexit?
    If the userexit required please tell me which userexit I have to use because I already discussed and checked with my ABAPer. we could not find the right userexit.
    Thnaks in advance.
    regards,
    Sanjay

    Dear Sanju,
    Could you please explain what you have done for the same?
    Thanks & Regards
    Piyush

  • How to Change Item catgegory in sales Order

    Hi all,
    I am creating sales order with reference to sales contract but at the time of sales order we don't have en off stock to deliver to customer , so we have deiced to go for Third party sales process
    But the problem is while creating a sales order with reference to Sales contract the line item of the sales order line item in grad Mode ( Not changeable mode )
    Finally i find out why sales order line item in gray mode Due to Structure Scope Using in item category TAS as D to Explore the BOM In Contract and Sales order  that a reason system gray out sales order line item
    Can any one guide me how sales order line item should be in active mode so i can change the Item category as a TAS third party item category
    Help me regards this
    Thanks
    Rajesh

    Hi all,
    Thanks for replay
    all ready i maintain manual item category in VOV4 the movement i am creating sales order with reference to contract the sales order line item showing in GRAY  mode i cant choose manual item category while i choosing F4 its showing TAS but i cant select that item category because sales order line in gray mode
    and Find out the reason why sales order line item coming in Gray Mode because i am Using Structure Scope D  In Item Category
    to Explore Variant config 
    can any one suggest me how to change the item category
    Thanks
    Ram

  • How to Change delivery  date in Sales Order????

    Hi Guru
    If i creating Sales order (OR) for eg date 29/11/2007, for delivery date it will 6/11/2007, If i change Mannualy for delivery date, it will getting some error, i need delivery date should be one or two days delay only.
    regards
    [email protected]

    Hi Mohammed,
    In the sales document type configuration screen you have the field for Delivery Date Proposal. Use the appropriate value that is required. Also confirm the order date in your question is later than the delivery date maybe that is the reason why the system is giving you an error.
    Regards
    Nadarajah Pratheb

  • How to change the price in sales order copying from contract?

    Hi All,
    I am creating a sales order with reference to contract & the same prices in the contract are flowing. But the validity of prices are expired & I am unable to edit the prices in the sales oerder level.
    Please suggest what configuration need to do to edit prices in the sales order level.
    Thanks,
    Madhu

    Hello Madhu,
    I am creating a sales order with reference to contract & the same
    prices in the contract are flowing. But the validity of prices are expired
    & I am unable to edit the prices in the sales oerder level.
    Please suggest what configuration need to do to edit prices in the sales order level.
    The configurational setting for changing the pricing flow from Contract to Sales Order is in Copying control. Go to the T-code VTAA and select your relevant Contract and Sales Order. At the Item level itself, you shall find a control called PRICING TYPE. Select the option as B or C.
    Please try out this approach so that your issue related to pricing flow can be avoided.
    Regards,
    Sarthak

  • How to change translation date in sales order

    Hi would it still be possible to change the translation date in the sales order if delivery document is already created and good issue is already is already posted. Please advise where on the sales order i can change the translation date.
    Thank you

    Dear,
         Please give me path of translation date in sales order. I find but not getting in sales order.
    Sandip

  • How to change a DIVISION in Sales Order which is already saved?

    Hi,
    I want to change only the division in Sales Order which is already created and saved.
    Which means I already created sales order with sales area GB50/02/12 and now I want to change that division to 14.
    Please note that it has no reference docs and it is independent .. . . I mean to say it is directly created and it is not all used as any ref.
    Please Help ASAP.
    Edited by: nananx143 on Apr 13, 2011 4:13 PM

    Hai,
    Two things want to share.
    1. Hope the material will be considered in some particular division while creating.
       The reason for the issue may be, user entered a division /12 and selected material of other division.
    First as a permanent solution
    a) Check in Material master,the  sales view division is maintained for the material or not
    b) In the sales order type settings, - T code:  VOV8 Check the field
          Check division      needs to be maintained as 2 Error.
    This prevents the wrong selection of division and material combination.
    2. You mentioned as no reference document, similar if there is nor following documents cancel the sales order and create a new sales order.
    In case if you want to change the data compulsory in the same document , then can edit the SAP table entry directly. BUT IT IS NOT RECOMMENDED.
    Regards,
    Mani

  • Change  of Plant in sales order line item

    Hi folks,
         Can someone guide me how to change the line item sales order --plant after saving.
    it is coming as grayed once entered.
    Regards
    Srshkumar

    Hi,
    Good To see few replies, But the field(Plant) is coming grayed after entering the plant in the line Item.
    Need few more suggestions.
    Regards
    Srshkumar

  • IDOC NUMBER ON SALES ORDER

    How to find Idoc Number on sales order screen .Also any table that holds both Idoc number and sales order number?
    Appreciate your Help Thanks!

    Hi
    go to header-> output in the sales order and u will find the idoc no there
    Ranga

  • How to count number of sales orders generated in a month in SAP SD

    Hi SD Gurus,
    I have a very strange query from client. I have to count the number of sales order created in a month for a z report. For example 30 in Jan, 25 in Feb etc. Could anyone suggest me How to count number of sales orders generated in a month in SAP SD.
    Regards
    Vinod Kumar

    Hi,
    Goto the T.Code "SE16" or "SE16n" or "SE11".
    Enter the table name as VBAK
    Enter the created on date as the starting date of the period and to date as the end date.
    Enter.
    Click on "Number of Entries".It will tell you the number of entries created in a particular period.
    If you want a report,goto the T.Code "VA05n".
    Regards,
    Krishna.

  • How to prevent change payment term in sales order?

    Hi,
    My client not allow sales admin. to change payment term in sales order. How to do this? (by standard SAP functions or authorization)
    Thanks & Regards,
    Jr.SD

    Either you can run T.Code shd0 or apply User exits in the program MV45AFZZ - USEREXIT_MOVE_FIELD_TO_VBAP to achieve this.
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Adding loops problem

    Hi I dont seem to be very successful adding loops. I drag the folder of loops to the browser and GB says it adds but when I search for them, I cant find them - seems some Loops are there but not others. The files are all AIFF with extension of both .

  • Mac Mini won't boot - displays white screen

    I just bought a new mini, core duo, and set it up today. Everything was working fine, and I followed the instructions to update 9 applications from Apple. I also installed a wireless keyboard/mouse MS Desktop 1000. Everything worked great until the r

  • Can't get layers in After Effects

    http://www.youtube.com/watch?v=JbuXctVWKqg I posted a link to show my problem. Basically I had an EPS file from a designer that had the logo in it. I tried to import these into photoshop to touch up the layers but it always imported as a flat image.

  • TS3989 Whenever I connect my iPhone 4 to my computer

    Whenever I connect my iPhone 4 to my computer it does not show any photos on the computer yet on my phone they are. I have tried the above. Any ideas? Because I have so many photos I cannot update to iSO 7.0.4 as I cannot clear my photostream as cann

  • Why can't I publish my iweb page?

    It is asking me to sign in but it shows that I am already signed in... :-)