Sales order Change document user exit

A colleague of mine has been asked if there is a way of inserting a different username to the standard one when a change document is created for the sales order header.  Is there a userexit that would suffice?
Thanks in advance
Ian

You have only one option as far as I know:
All change document creation occurs in function
CHANGE_POINTERS_CREATE centrally.
The only option would be to apply a repair to this function to set the username (CDHDR-USERNAME) to the value you want. You would do this only for sales document change docs - object class is VERKBELEG I think. This is also held on CDHDR.
Hope this helps.
Cheers
Colin

Similar Messages

  • Sales Order Line Items User Exit - Credit Management/ Exposure Calculation

    Hello Folks
    I am looking for a solution to a peculiar problem we have in credit management.
    In case of Drop Ship sales order life cycle, the system automatically creates two line items per sales order - one each for Freight and Handling Fees. these are NOT relevant to schedule line delivery, nor are they billed to the customer along with the material billing. The default update rule for credit control area concerned is 12. The system, on finding line items not relevant to schedule line delivery automatically switches from rule 12 to 18. This leads to Open Deliveries field (S067-OLIWW) being updated instead of Open Orders (S066-OEIKW) on saving the sales order.
    Once the sales order is billed for the material, the system should logically display net value as zero for the open order (as the 2 lines of fees and freight are not yet billed, the order is still open). But the system considers this figure at SALES DOCUMENT HEADER level and considers the net value as the total value of the sales document (including the material that is already billed).
    What I am looking for is if there is an exit available whereby the system considers only those line items whose billing status indicator is "not complete". As such, the net value should be updated to the S067-OLIKW field net of the billed items.
    Please advise if there is any such user exit available. Also, is there a way to customize this? We are exploring this at our end, but would appreciate an expert advise. Right advise will be awarded with brownie points
    Regards
    Mandar Barve

    VKM1 uses FM SD_ORDER_CREDIT_RELEASE to release orders on credit.

  • Sales order line item user exit?

    Hi Folks,
    Can any one of you suggest me an user exit in sales order line item level?
    I want something which stops before/ or just after entering the quantity in the item level.
    We wanted to set up a issue which deals with rounding profile comming from CMIR record to take from Ship-to rather than standard Sold-to party functionality.
    Thanks a TON in advance.
    Praveen.

    Praveen,
    Check this post
    https://forums.sdn.sap.com/click.jspa?searchID=7098802&messageID=1674246
    Regards,
    Satish

  • Sales order split line user exit MV45AFZZ

    Hi Guys.
    Requirement is to split the sales order line items into multiple based on certain requirement. I Started coding in MV45AFZZ (USerexit_Save_Document_Prepare).  Basically what i am doing is looping at XVBAP and based on some condition inserting additional line in XVBAP and adding a new line with new UOM and incrementing the POSNR.). The data seems to be ok to me. But when i save i am getting update terminated error.  Can anyone help me out ?
    Thanks
    Vikram.

    Hi,
    Ary you using any 'COMMIT WORK' there?? If yes, that may cause this kind of error. Appending the records in XVBAP with mandatory fields should work.

  • Calling a Sales Order Change BAPI in a Sales Order Exit

    Functional Requirement:
    While creating a Sales Order with Reference to another Sales Order, on saving the new sales order, change something in the referenced sales order.
    I am trying to achieve the same by doing the following:
    In the standard SAP user exit called during saving the new sales order USEREXIT_SAVE_DOCUMENT I am calling the BAPI BAPI_SALESORDER_CHANGE on the referenced Sales Order.
    However the BAPI is unable to change the other sales order giving an error Enter the document number. I am specifying the Document Number while calling the BAPI, so I know that is not the error.
    I just wish to know whether it is technically possible to call a BAPI to update another Sales Order while we are currently saving one Sales Order.

    Hi Girish,
    If it works correctly when run seperately and you are sure the data passed into the BAPI is exactly the same then it may be something like table locks or similar causing your original problems...
    What about packaging up your working Z program into a custom function module and calling that from within USEREXIT_SAVE_DOCUMENT as a seperate task (IN NEW TASK) and building in a slight delay of say 5 seconds at the start of your code?
    I'll be honest, this isn't an ideal solution but might be sufficient to resolve your issues.  I'd be inclined to see if you could just run your Z program as a background process every 5 minutes or so to capture any changes and perform updates but if this is a no no from your functional people I'm not sure what else to suggest sorry.  I've never personally had to update a document from within the save routine of another document so can't give any advice based on my own experiences sorry.
    Gareth.

  • Determine Sales Order change (ECC6.0 using Enhancement-point)

    Hi all,
    I want to determine Sales Order change e.g. if any item added to sales order or any item deleted fron sales order and also if Sales Order is deleted .... how can I achive this???
    I am using ECC6.0 , in which I am using Include          MV45AFZZ and FORM USEREXIT_SAVE_DOCUMENT to determine change at SAVE. The table XVBAK and structure VBAP is available but from this I am not able to determine the change.
    How to do this..?
    Regards,
    NiLesH.

    Hi Nilesh,
    Please see USEREXIT_SAVE_DOCUMENT_PREPARE instead of the one you are using in the Include MV45AFZZ.
    SAP comments this customer form as:
    * This userexit can be used for changes or checks, before
    * a document is saved.                                           
    * If field T180-TRTYP contents 'H', the document will be  
    * created, else it will be changed. This form is called at the
    * beginning of form BELEG_SICHERN
    For the deletion, try to code your check in the form USEREXIT_DELETE_DOCUMENT in the Include MV45AFZZ provided for the customers.
    I feel these would be more suited for your requirement.
    Cheers,
    Sougata.
    You can use tables CDHDR/CDPOS for change documents but on a large scale reporting this would be very slow.
    Alternatively, for performance reasons, you can use the form USEREXIT_READ_DOCUMENT to capture the sales order at its original state (in an internal table) then use form USEREXIT_CHECK_VBAP for any changes made while in the sales order create. Then in USEREXIT_SAVE_DOCUMENT, compare the previous and current condition values. If any changes exist, insert a row in a custom table with the change information. At the end you can base your report on your custom table rather than change document tables which will be slow on processing large volume of data.
    Note: Go the user-exit way only if you are dealing with high volume of data
    Edited by: Sougata Chatterjee on Jan 1, 2008 11:38 PM
    Added after considering Ranjith's post

  • Authorization at Sales Order Change (Item level)

    Hello Experts,
    Is there any standard authorization object at sales order for adding new items? As I want to restrict some users to add new item lines at sales order change ( VA02 )
    Regards,
    Amr

    Hello,
    How can I use this object V_VBAK_AAT to disallow users to add
    some item lines from VA02 but users can change any other functions
    at the sales order (e.g. update pricing conditions)?
    As I see on this object V_VBAK_AAT, If I revoked ACTVT = 02 'Change',
    It will revoke all change functions from users.
    I think the best solution for your requirment would be to seek the help of Basis folk to create a new User ID which would be having access to Change mode of Sales Order (VA02). Then you can restrict addition of Material line item with the help of Technical consultant by putting up code in following User exit.The logic in the code will be addition of Material line item will be restricted if the User Name is the newly created one...
    1:- MV45AFZB -- USEREXIT_CHECK_VBAP
    2:- MV45AFZZ -- USEREXIT_MOVE_FIELD_TO_VBAP
    3:- MV45AFZZ -- USEREXIT_SAVE_DOCUMENT_PREPARE
    Regards,
    Sarthak
    PS : On information note, you can refer the t-code SU24 to see the standard authorization object for change mode of Sales Order.

  • Plant restriction at sales order level by user

    Dear SD experts,
    Is it possible to restrict plant at sales order creation by user, if so, how this is to be configured.
    my requirement is user shall not able to create sales order(sales document) for plants restricted.
    pl help
    thanx in advance
    regards
    Srihari

    Dear Sir,
    Wud like to explain what circumstances i am asking this restriction;
    1. have total three plants - 1001, 1002,1003 & these plants are to three sales offices ie., SO1, SO2, SO3, respectively
    2. material extended to above plants with purchase & sales views
    3. I have three users user1, user2, user3 : these are are belong to three Sales Offices ie., SO1, SO2, S03 respectively,
    4. I have three sales document types say sd1, sd2, sd3
    Current settings are user1 can raise sales order for any plant ie., 1001, 1002, 1003, system is not stopping, as user1 is belong to Plant 1001 & Sales Office - SO1 only,
    my requirement is system shud not allow if user1 is trying to raise sales order for other than Sales Office & Plant.
    Hope u r clear about what circumstances I am asking this requirement.
    Experts can help us without User Exit & SHDO, is there any solution for restriction plant.
    Thanx in advance
    Regards
    Srihari

  • 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.

  • Status Profile - Sales Order Change

    Hi,
    I have a issue regarding Status Profile in Sales Order.
    I have a sales order with two status - 
    Awaiting Approval ( Initial at the time of creation of Sales Order )
    Approved ( Approval by HOD after creation )
    No changes has to be done in Sales Order once approved, if any changes to be done then, needs resetting of the status to initial.
    How to control the same.
    I have checked the transactional control in user status but change sales order control is not there.
    Can be controlled through user exit then how can it be be done.... User Exit name and brief logic of possible.
    Regards
    SD Consultant.

    Hi
    You can use MV45AFZZ include to find appropriate User exit for your requirement with the help of your ABAPer.
    USEREXIT_SAVE_DOCUMENT would be suitable to you.
    User status are maintained at JEST table, so you can write code to activate status 1 and deactivate status 2 if sales order changed.

  • Blocking Sales Order change

    Hi,
    We have a requirement that sales orders should no be able to be changed after a month that it has been created/opened.  I would like to know if ithere is a standard way of blocking sales order change (include new items and quantity change) considering its creation date.
    Thank you and regards,
    Renata Prataviera

    Hi,
    I am not sure any standard settings can help with the requirement.
    However you can use user exit, USEREXIT_SAVE_DOCUMENT in the include MV45AFZZ. to satisfy your requirement.
    Regards,

  • Reschedule sales order & STO document

    Hi experts,
                   When user  do V_V2 for reschedule sales order & STO document , He find no of document & select document then user direct call change document screen. But i don't want to user for this right for change this document, If user have VA02 right then he can do it. But if user have no authorisaction then user can not do here in VA02 changes , Can i restrict user for changes in document,  Because it create many problem,
    Pls give me suggection on priority basis,
    Thanks a lot in advance ,
    Regards:
    Happy

    Hi Harsha,
    If you want to restrict the user at T.Code V_V2 level then use this Authrization object in this remove Value 02
    If you want to restrict bu using sales document type then go with
    Object                          Field         Value (interval)
    V_VBAK_AAT            AUART     02 remove
    If you want to restrict bu using sales area then go with
    V_VBAK_VKO
               SPART      $SPART
               VKORG      $VKORG
               VTWEG      $VTWEG
    Regards
    Durga Sana

  • Sale Order changes View

    Dear Guru's
    Is there any T-Code for verifying Sale Order changes (Step wise), as in my company Invoices are generated with lot of changes which not matching with Sale Order conditions. So I would like to moniter the Sale Order conditions changes. Kindly help me out.
    Thanks in advance

    Hi
    Sales order changes can be seen in the report only if the changes are made by any user(userid). If your problem is with changes in pricing conditons...then before comparing the sales orders and invoices, I advise you to check the copy controls and the price type used in the copy controls. If the price type selected is to redetermine the pricing, then you should check the validity of the conditon records. Sometimes, the conditon records may be different during sales order creation and invoice creation.
    Thanks,
    Ravi

  • Sales Orders Change Log question

    Hi All,
    I am currently working on a project that involves querying SAP Database to get custom reports via web browser, I've made a lot of advances and most of the site is ready but I'm missing just one item that I hope you could help me.
    Thing is I am working with the Sales Order change log and the problem comes one a user deletes a row. If I go to the change log inside SAP and see the differences a new record will be shown saying that row X was deleted and
    if I go to the database (ADOC and ADO1 tables) I don't have a way to see wich row was deleted.
    My way of doing this is to check for the number of rows on the current state of the sales order and check the same on the previous instance of the SO and see if a line was deleted. Then I would have to check row by row between instances what rows are there and what row is missing and store that info. I think this kind of approach will definitively kill the server.
    I was wondering if some one can give me a hint about how to approach this problem. Does any body know how SAP works on this area?
    I'm working with SAP2005A and SQL Server 2005 Standard Edition.
    Any help is greatly appreciated.
    Thanks!
    Alejandro.-

    Hola Alejandro,
    Thanks for your answer, as I see it I'm doing exactly what you proposed but the problem comes with the following scenarios:
    a.- If I post a new SO with two lines I will have on the ADO1 table two records with the values 0 and 1 for each line respectively but if I delete the item on LineNum = 1 and then I add a new item, this last item will be also created with LineNum value = 1. This is not a complicated thing to do but the problem comes when the user is used to work with SOs with several items at detail level and is used to add and erase lines once in a while and as I see it it's very difficult for me to track those specific changes. There's also the fact that on the Log table a new instance is created every time the user hits the update button regardless if a modification was actually made or not. I mean I would know that a line was deleted or added but I would have to start comparing each field on each line of a sales order with it's previous instance to check what was actually added/deleted and I'm afraid that this may affect the server performance. I know that SAP does this without affecting to much the system resources and that is what I'm trying to find.
    I forgot the other scenario I was considering he he I will post again as soon as I remember it but I hope I'm explaining this ok (I'm not very good at explaining...) If not let me know and I'll try to explain again.
    I'm also working on trying to get another approach to see what comes up...
    Thanks for checking this thread, your answers are helpful.
    Regards.

  • How to raise an information message in Sales order change second screen(pbo

    Hi Experts,
      I need to change data in Sales order header if user entered wrong value while creation of order. If he has not given the correct value then i need to raise one information message on second screen of VA02. How can it possible when enter PRESS button or any action(means in the second screen pbo only).
    Cheers,
    Bujji

    Hi,
    Which field do you want to validate??
    Thanks,
    Naren

Maybe you are looking for

  • MobileMe gallery movie in iweb too small

    I posted my videoin my MobileMe gallery. I posted two sizes, iphone size and a HD size. I then use the MobileMe gallery widget to use that video in my website. I want the large size to show up in my website. Though it only allows me to resize to the

  • Cannot share screens, help please.

    computers: imac : 10.5.2, one gig memory, a second monitor is hooked up to the imac, router is dlink DI-524 (at different location...) the imac is brand new. g5 dual 2.0 : 10.5.2 ghz, 2.5 gigs memory, linksys router wireless g broadband router with r

  • Data acquisition: task specified does not exist

    I am trying to do an analog read.   Apparently in the original code (which I did not write), the data acquisiton is a multithreaded task. (I am not a real programmer, so know next to nothing about multithreading, and not a whole lot about programming

  • Any way to set phone to only alert for phone calls ?

    hey guys, Is there any setting or app were that i could set my iphone 4 verizon to only alert me if there is a call coming in ?

  • Back Button Breaks My Layout

    Hi All, I am having a problem with the browse back button, from searching the forums I gather that this is a common problem but I can't find any references to my particular problem? Anyway, my problem is that when a user clicks the back button the la