Userexit for SO Create/Change.

Hi,
Please tell me the userexit for the Sales Order Create/Chagne

Hi,
You can find the user exits in the include MV45AFZZ....
Details are given below   :
<b>User exits in the program MV45AFZZ</b>
The user exits which you can use for modifications in sales document processing are listed below.
•     USEREXIT_DELETE_DOCUMENT
This user exit can be used for deleting data which was stored in a separate table during sales document creation, for example, if the sales document is deleted.
For example, if an additional table is filled with the name of the person in charge (ERNAM) during order entry, this data can also be deleted after the sales order has been deleted.
The user exit is called up at the end of the FORM routine BELEG_LOESCHEN shortly before the routine BELEG_SICHERN.
•     USEREXIT_FIELD_MODIFICATION
This user exit can be used to modify the attributes of the screen fields.
To do this, the screen fields are allocated to so-called modification groups 1 - 4 and can be edited together during a modification in ABAP. If a field has no field name, it cannot be allocated to a group.
The usage of the field groups (modification group 1-4) is as follows:
•     Modification group 1: Automatic modification with transaction MFAW
•     Modification group 2: It contains 'LOO' for step loop fields
•     Modification group 3: For modifications which depend on check tables or on other fixed information
•     Modification group 4: is not used
The FORM routine is called up for every field of a screen. If you require changes to be made, you must make them in this user exit.
This FORM routine is called up by the module FELDAUSWAHL.
See the Screen Painter manual for further information on structuring the interface.
•     USEREXIT_MOVE_FIELD_TO_VBAK
Use this user exit to assign values to new fields at sales document header level. It is described in the section strong> "Transfer of the customer master fields into the sales document".
The user exit is called up at the end of the FORM routine VBAK_FUELLEN.
•     USEREXIT_MOVE_FIELD_TO_VBAP
Use this user exit to assign values to new fields at sales document item level. It is described in the section strong> "Copy customer master fields into the sales document".
The user exit is called up at the end of the FORM routine VBAP_FUELLEN.
•     USEREXIT_MOVE_FIELD_TO_VBEP
Use this user exit to assign values to new fields at the level of the sales document schedule lines.
The user exit is called up at the end of the FORM routine VBEP_FUELLEN.
•     USEREXIT_MOVE_FIELD_TO_VBKD
Use this user exit to assign values to new fields for business data of the sales document. It is described in the section strong> "Copy customer master fields into sales document" .
The user exit is called up at the end of the FORM routine VBKD_FUELLEN.
•     USEREXIT_NUMBER_RANGE
Use this user exit to define the number ranges for internal document number assignment depending on the required fields. For example, if you want to define the number range depending on the sales organization (VKORG) or on the selling company (VKBUR), use this user exit.
The user exit is called up in the FORM routine BELEG_SICHERN.
•     USEREXIT_PRICING_PREPARE_TKOMK
Use this user exit if you want to include and assign a value to an additional header field in the communication structure KOMK taken as a basis for pricing.
•     USEREXIT_PRICING_PREPARE_TKOMP
Use this user exit if you want to include or assign a value to an additional item field in the communication structure KOMP taken as a basis for pricing.
•     USEREXIT_READ_DOCUMENT
You use this user exit if further additional tables are to be read when importing TA01 or TA02.
The user exit is called up at the end of the FORM routine BELEG_LESEN.
•     USEREXIT_SAVE_DOCUMENT
Use this user exit to fill user-specific statistics update tables.
The user exit is called up by the FORM routine BELEG-SICHERN before the COMMIT command.
Note
If a standard field is changed, the field r185d-dataloss is set to X. The system queries this indicator at the beginning of the safety routine. This is why this indicator must also be set during the maintenance of user-specific tables that are also to be saved.
•     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.
Working with User Exits
Updating the document flow
The total quantity to be billed is transferred to the sequential data record. Quantities which have already been billed are managed within the SAP system. This process is influenced by user exits. User exits directly influence the update of compressed document flow VBAPF in the system. This document flow accumulates quantities which have already been billed and compares them to new billing quantities. A new billing document is then created with the following quantity:
Quantity to be billed = New quantity - quantity already billed
Using user exits, you can specify the keys to which records of the compressed document flow are to be stored.
santhosh

Similar Messages

  • Userexit  for partner function changed

    What is the userexit for partner function changes in VA01 or VA02.

    Hi,
    Please check this:
    EXIT_SAPLEINM_002
    Thanks and best Regards,
    Suresh

  • Services for Object (Create , Change, Delete)

    Hi All,
    Is there any sample program where we can create (Change and delete) a note in the services for object for sales order.
    We have requitement where we need to develop a Z program which should have the functionality of changing or creating or deleting the Note from the services for object in sales order. the input parameter will be sales order.
    Thanks.
    Chindam.

    I don't have any sample code
    Please check how this fm called
        CALL FUNCTION 'BDS_CALL_NAVIGATOR'
           EXPORTING
                classname      = 'BUS2037'    " Business object for sales order
                classtype      = 'BO'
                OBJKEY         = L_OBJKEY  " Sales order Number
           TABLES
                EXCLUDING      = i_excluding
           EXCEPTIONS
                INTERNAL_ERROR = 1
                OTHERS         = 2

  • Create Outbound  extended IDOC for venodr create & change (XK01 & XK02)

    Dear all,
    My requirement is as below:
    I have to populate an extended IDOC of the standard IDOC CREMAS in the following cases.
    1. When a new vendor is created from XK01 with classification characterstics value for supplier status as 'YES'.
    2. When a vendor is changed by adding a partner function OA in the partner function.
    3. We have to purposefully fail the IDOC when the partner function OA is deleted in XK02 transaction.
    4. We have to purposefully fail the IDOC when the main vendor is blocked or deleted(XK05 or XK06).
    Since i am new to IDOC, i tried many things but its not working.
    I tried by the change pointer method for the standard IDOC but it will create the IDOC in all cases which we don't want it should be created only when supplier status is 'YES' and new partner function OA is created.
    Regards,
    Manjunath

    hi,
    I know how to extend an IDOC, but my question is after extending an IDOC i have to populate that outbound IDOC only in some cases.that is when a vendor is created with supplier status as YES, when a vendor is changed by adding an partner function.
    I want these checks know where to make these checks before creating an outbound IDOC.i want to knaow a common point where i can make these checks like an exit.
    i found 1 exit fo all the cases EXIT_SAPMF02K_001 but in this exit we will have the vendor number because it is exit before save.
    Now  i am looking into the FM 'MASTERIDOC_CREATE_CREMAS' in which we have an exit 'EXIT_SAPLKD01_001'.
    Regards,
    Manju

  • VA01. userexit for contract create

    Hi all,
    I have a requirement in which while creating contract thru va01i have to show a popup after the credit limit exceeded message so that user can edit the values and save it.my problem is i have coded a popup in the userexit_save_document to show apopup to confirm such that if user selects NO the contract is not saved.But my problem is after the user presses NO the item details entered is lost. how can i solve it .please help.
    Thanks ,
    Mahesh.

    hi,
    check the include MV45AFZZ...It has number of userexits....put a breakpoint and check..
    Regards,
    Nagaraj

  • BAPI for PO Create/Change with use of EXTENSIONIN table

    Hello,
    We are using SRM extended classic scenario which copies PO's from SRM to ECC via function module BBP_PO_INBOUND.  This function module does mappings and then calls either BAPI_PO_CREATE1 or BAPI_PO_CHANGE.  I have added field YYVSBED (char2) to structure CI_EKKODB.  When BAPI's are called this field is present in ExtensionIn structure.  While debugging the processing, I can see that it being processed, however, it does not get posted in database.
    Any suggestions are very welcome.
    Thank you.
    Natasha

    Internally the BAPI uses the the MEPO...-Structures .  Your data is lost  at the move-corresponding from the BAPI-Structure to the related MEPO... structure . If your target-field is an EKPO-Field you have to check if there is a field in the MEPOITEM -structure . 
    If you use the CI_EKPODB  to extend the EKPO with your custom field, the BAPI would work, because this is included in EKPO and MEPOITEM   .
    Best regards Josef

  • BAPI  for create/change purchase info record

    Hi All,
    Could any one suggest me the BAPI for the create/change purchase info record(ME11/ME12).
    Earliest can be appriciable.
    Regards
    Anil

    Hi,
         I did not get any bapi related to create/change purchase info. But i can give u list of purchase info . if u got revert back to me
    Reward if it is usefull..
    Bye.
    BAPI_INFORECORD_GETLIST

  • Change the Layout for Create Change Display and   Alv List

    Hi All,
    I am working on Custom Development  WD Application for Maintain   Employee.
    I need to Get help/advice to hadle the two Problems.
    1) In my application I have to provide Create,Change & display Employee.
    Customer needs seperate Link/Application for all Create , Change and Display in Portal.
    I thought I am planning to Create Three Application in the WD Component(Create,Change & Display) while Pressing the Application I have to find out what is the Application They Pressed in the Componenet Controller to Change the Layout/Field (Edit/Display/Visisble) according to Create/Change/Display Employee.
    For this How to Find the Application name of the WD Componenet.
    2) To show the Employee List I am having using ALV LIst.
    But my List consuists of 35 Fields. Customer not ready for scrolling the List to see all columns.
    I thought I am planning to provide Visible/Invisble columns after providing one button.
    If they pressed this button It will next set of Columns with out scrollibng.
    How to handle this ?
    Kindly help/advise  me for both the Problems to proceed further.
    Thanks in advance.
    Dav

    1.For this How to Find the Application name of the WD Componenet.
    DATA:
      l_api                           type ref to if_wd_component,
      l_application_api               type ref to if_wd_application,
      l_application_info              type ref to if_wd_rr_application,
    lv_name                            type string.
      l_api              = wd_this->wd_get_api( ).
      l_application_api  = l_api->get_application( ).
      l_application_info = l_application_api->get_application_info( ).
      lv_name = l_application_info->get_name( ).
    > 2) To show the Employee List I am having using ALV LIst.
    >
    >  But my List consuists of 35 Fields. Customer not ready for scrolling the List to see all columns.
    Are they planning to buy Wide Screen monitor ??
    I am not really fan of the solution you propose, at the same time i am not having better idea. I would get the customer on table and see how they would like to have the presentation of 35 columns without scrolling.
    ALV provides customization, in that way users can select their own list of columns.

  • Userexit or BADI for MM41/ MM42 article create/change

    Hi Experts,
    My requirment is do some validations for custome fields before save the article while create or change. Please let me know any user exit and BADI's for suitable for my requirment. The user exit and BADI should be execute when i create/change article through BAPI. & handle errors. How to handle error in BADI without throw error message to GUI screen.
    <removed by moderator>
    Thanks
    jayabanda
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Aug 25, 2011 11:13 PM

    Hi Jonathan,
    Appreciate your reply. As you know the validations kick in based on your input on the screen, kind of mostly part of PAI of the screen (0750 in this case). But my requirement is to prevent this change in the first place, not validating the user's input after a change option is given to the user.
    If you know if and how we can achieve this, please share your thoughts.
    Thanks & Regards,
    Venu

  • Authorization control for creating change request transaction

    Hi,
    We are creating the Change Request(SDCR) through support desk message by using action Create Change Document.
    How can I control the creation of Change Request Document(SDCR).
    By which  roles i need to control this.
    Regards
    PK
    Edited by: PK on May 14, 2010 2:19 PM

    Hi,
    I have removed the role SAP_SUPPDESK_PROCESS & tried to create Change Document . It allowed me to create.
    Can you check & tell exactly which role is for creating Change Document.
    Regards
    PK

  • Enhancement/Exit for transportation zone while creating/changing customer

    Hi,
    I want Enhancement/Exit for chnging transportation zone while creating/changing customer.

    HI,
    I  used inmplicit enhancement .
    and change kna1-lzone
    but still previous value is store.
    no changes made.
    even i changed
    addr_chg = 'X'.

  • Create change log for Z tables in XD02/XD03

    I have added a new tab, to customer master screen. The new screen under that tab has 4 fields,
    those 4 fields are inserted into Z table.
    Can you please give me the sequence of steps so that system will show change history with Z fields?
    I checked that fields are set for change document.
    I have created change document using SCDO.
    How to use method GET_FIELDNAME_FOR_CHANGEDOC of CL_IM_V_CUSTOMER_ADD_D_CS class and method GET_CHANGEDOC_FOR_OWN_TABLES of CL_IM_V_CUSTOMER_ADD_DATA class?

    Hi,
    I have a similar problem with MK02 (vendor master).
    I tried with appending a user field to LFA1.
    I hand over the table and fieldname (LFA1-Z....) in parameter E_FIELDNAME of method VENDOR_ADD_DATA_CS.GET_FIELDNAME_FOR_CHANGEDOC .
    With method GET_CHANGEDOC_FOR_OWN_TABLES of BAdI VENDOR_ADD_DATA I provide the objectclass 'KRED' to the standard program.
    However, there is no change document created for changes on the appended field. If I change one of the standard fields the change document is created.
    Do I have to put my own coding for change document creation somewhere in the BADI methods?
    Any idea?
    Thanks,
    Holger
    Edited by: Holger Probst on Apr 28, 2010 1:30 PM

  • BAPI for create/change Routing

    Hi ,
         Are there any BAPI's for creating/ changing routings.
    Regards,
    Divyanshu

    hi,
    <b>BAPI_ROUTING_CREATE</b>"used for creation.
    Regards
    vijay

  • How to create change pointers for IT6 when custom table Z777A changes?

    Situation: We are using custom table Z777A (copied T777A and added fields) to store building locations. Employee's IT6 subtype 92 retrieves valid work address building locations from table Z777A.
    Problem: Whenever there are updates to Z777A, we need to find all IT6 subtype 92 records that use the changed building location from Z777A and create IDOC's The change pointer entry will need to be for the IT6 subtype 92 row that is affected.
    Question: Can anyone give me specific details as to how this can be accomplished? Thanks.

    Hi,
    MASTER DATA CHANGES DISTRIBUTION BY CHANGE POINTER TECHNIQUE:
    Step 1: Creating change document object in SCDO transaction.
    Step 2:Assigning tables to the change document object.
    Step 3:Specifying change document items in transaction BD52.
    Step 4: Activating change pointers for the message type HRMD_ABA in transaction BD50.
    Step 5:Activating change pointers globally.
    Step 6:Executing program RBDMIDOC  in SE38, Specifying message type HRMD_ABA.
    with regards,
    M.Sreeram.

  • IDOC Type for Tcode CC01 and CC02 (Create / Change Change Numbers)

    We are trying to integrate Change Master from a 3rd party system to SAP R/3 4.72.What is the IDOC Type for Tcode CC01 and CC02 (Create / Change Change Numbers)

    Thanks...
    We have looked at this IDOC Type. However we are not very sure how the components (Material/BOM etc.) will be mapped into E1AEEFM segment in the IDOC.

Maybe you are looking for

  • Connecting to two wi-fi networks with the same name

    Hello, I have to work daily on two different universities, using my Powerbook 12" (MacOS 10.5.8). The wi-fi networks in both places are both called the same - "eduroam", the European network service for education. Everytime I try to connect, the syst

  • IMac can connect to wireless network automatically

    All of a sudden, my mac won't automatically join my wireless network. I can find the network easily and connect to it, but it doesn't connect automatically like it used to. This seems odd as iphones have no problem finding the wi fi network and conne

  • Applying downpayment to invoice

    Error message occuring when trying to apply downpayment to invoice.... No matching records found 'AR Down Payment' (ODPI) (ODBC-2028) Message 131-183 please assist

  • Problems when deploying web service onto Weblogic 12c

    Hello everybody: Created a web service with MyEclipse 8.5; when deploying onto Weblogic I'm facing this next problem: Nov 3, 2012 7:44:40 AM com.sun.xml.ws.transport.http.servlet.WSServletDelegate destroy INFO: WSSERVLET15: JAX-WS servlet destroyed N

  • PDF form returning empty??

    Hi there, I've made a few PDF forms before, and they've always worked fine but the one I built last week is different. When tested between myself and colleagues at another office it is OK (it is set up to submit the whole completed PDF back to me by