MV45AFZB, USER_EXIT_CHECK_VBEP?

Hi,
If I give an error message in the screen of SCHEDULE LINES:
FORM USEREXIT_CHECK_VBEP USING US_DIALOG.
            MESSAGE e000(fb) WITH 'Error, not a multiple of' marc-ZZPLMNG.
I don't see the message in SCHEDULE LINES screen, but in the previous screen of VA01/VA02?
How to stay on the same screen?
Adibo.

Hello,
    Try like this :-
FORM USEREXIT_CHECK_VBEP USING US_DIALOG.
MESSAGE e000(fb) WITH 'Error, not a multiple of' marc-ZZPLMNG.
Stop.
Regards,
Deepu.K

Similar Messages

  • VA01-VA02 : Error message in a user exit / MV45AFZB

    I everyone,
    i want to add an error message in the exit "USEREXIT_CHECK_VBEP" (MV45AFZB) but when i do so it displays the following abend message :
    "Incorrect index structure for table XMVERF_POS
    /0000000222 /000030 "    (V1322).
    just after mine.
    do you have any idea ?  
    Xavier.
    PS : I use SAP ECC5

    Hi Xavier,
    Here is the explanation when you get this type of error:
    Short Text
    Incorrect index structure for table &
    Diagnosis
    Internal error.
    Procedure
    Repeat the transaction.
    If the error occurs and you have a CRM System connected to your ERP System, the document may have been archived in the CRM System.
    If the error occurs again, inform your system administrator. If the error cannot be corrected, call the SAP Hotline directly. Describe which steps preceeded the error.
    This is the long text description of that error message, so please let me know what next i mean whether you checked this and took the necessary action as explained above.
    let me know if your problem still persists, else kindly close the thread.
    Regards,
    Yugandhar

  • Runtime error in USEREXIT_CHECK_XVBAP_FOR_DELET in include MV45AFZB

    Dear,
    I have programmed USEREXIT_CHECK_XVBAP_FOR_DELET in include MV45AFZB, but run into a runtime error.
    See enclosure for more details as to what I have programmed.
    Does anyone know how I can change my code in order to prevent the runtime error from happening?
    Thanks so much in advance for your replies.
    Kind regards,
    Bart Jongen

    Hello all,
    Thanks for your hints.
    In the meantime I have found the solution to my problem:
    By changing the e(rror) in my code to an i(nformation) message, the runtime error no longer appears.
    Kind regards,
    Bart

  • MV45AFZB User Exit; FORM userexit_check_vbap

    Hi experts,
    I have implemented a user exit in MV45AFZB, the requirement is that when I change the sales order quantity of a line item for example previous quantity is 2000 kg and I change it to current quantity 1000kg, during debug mode i need to know the previous quantity 2000kg of that particular sales order item I changed. I looked at YVBAP but it is empty. Any inputs is appreciated.
    Thanks.

    Hi Mawi,
    For this function : you have enhancement spots. click on spiral icon, goto edit enhancement- show implesit enhancements
    then cursor will take you some enhancement spots, here you can find for vbap_old and vbap_new structures.
    if it is useful, points please.
    Thank you
    srinu

  • Help in User Exit MV45AFZB

    Hi,
    We have a User Exit for SO, MV45AFZB.
    We want to insert a condition in it that when we change the plant, new pricing should be carried out..
    Please let me know where i should check the condition, in Form  USEREXIT_CHECK_VBAP or Form  USEREXIT_NEW_PRICING_VBKD... because plant shows in VBAP table and pricing table have another...
    what should be code for this...
    Regards...

    Duplicated post?
    [Problem in User Exit MV45AFZB - USEREXIT_NEW_PRICING_VBKD;
    Regards,
    Andrea

  • Which user exit MV45AFZZ or MV45AFZ1 or MV45AFZB to use.

    Hi All,
                In the Sales Order Types ZDRC and ZCRU, when Sales Org is US15, the field VBAP-MVGR1 shall be mandatory.
    We need to use MV45AFZZ or MV45AFZ1 or MV45AFZB user exit.
    In MV45AFZB, USEREXIT_CHECK_VBAP, seems closest, which is used to carry out additional checks (e.g. for completion) at item level.
    Please suggest.
    Thanks.

    Hi
    Pl check this exit...this may be useful to meet the requirement
    in program MV45AFZB
    USEREXIT_CHECK_VBAK
    This user exit can be used to carry out additional checks (e.g. for completion) in the document header. The system could, for example, check whether certain shipping conditions are allowed for a particular customer group.
    Thanks,
    Ravi

  • User exit in MV45AFZB include

    Hi experts,
    I got a requirement like this .
    To develop user exit to check if the sales order item is within warranty or not,
    And then display a message for user action.
    Background information and requirement:
    When a lift is installed, the Warranty Period is stored in the material master characteristic. If there is a replacement, then the SAP Notification will trigger a Sales Order where the user will create the sale item. During this item creation, a user exit is required to check whether this new replacement should be covered by an existing sales order item warranty (i.e whether the same part has been replaced before and within the warranty period), and the search is by the sales code (ie. The sale order item eg.DEIN material), equipment number ( as represented by the Equipment number in the technical object section in the Sales order header) and subcode (as defined in the characteristic of the item) combination. If an existing item is found and the warranty is still valid (ie.Today -  Sales Order items’s Service Rendered Date(that is manually entered by user)< Warranty Period), Then the system should display a message indicating that the sales order item should be crated in service order instead. Otherwise, prompt a message indicating that the user can continue to create the sales order item.
    Basic Logic:
    User Exit 1:
    USEREXIT_MOVE_FIELD_TO _VBKD
    1. Develop this user exit to get the Equipment Number from the Notification. The Notification number is retrieved from the Sales Order document flow.
    2. Assign the Equipment number to the Sales Order Item’s Technical Information Equipment number field.
    User Exit 2: USEREXIT_CHECK_ABAP
    After user enters Sales Order Item, It triggers the user exit USEREXIT_CHECK_ABAP that the performs the following actions.
    1. Get the current characteristic, Subcode, value, possibly using USEREXIT_GET_FIELD_FROM _SDCOM.
    2. Using the same material number, retrieve the characteristic Warranty Period in the material master classification.
    3. Using current sales order item material number and Equipment Number, get all sales order tiem in VBAP and VERIS02 where VBAP-MATNR = material number (which will retrieve the historical sales with same sales code) and EQUINO = Equipment Number.
    4. Sort list found by Sales order item’s Service Rendered Date in descending order.
    5. Repeat through this list of items until same Sub code is found.
    · Get item characteristic Subcode.
    · If Subcode = current Subcode and Today <(Service Rendered Date + Warranty Period)
    o “part is within warranty. Sales order: NNNNNN. Please create this item in Service Order as non-chargeable.
    I got these USEREXITS in MV45AFZB and MV45AFZZ includes.
    Can any one tell me what is the purpose of USEREXIT_MOVE_FIELD_TO_VBKD in MV45AFZB include
    and USEREXIT_CHECK_VBAP in MV45AFZZ include? . 
    If i write code in above includes is it work out? OR is there any other way to achieve above requirement?
    Can any one tell me Step by step process to achieve this.
    Iam new to USEREXITs.
    Points guaranteed
    cheers
    kaki

    1. You have to get a key from SAP to modify the two includes in which the user exits are present.
    2. You have to enter statement 'INCLUDE z**. ' in both user exits in the MV45* includes. Then save and activate the MV45** includes.
    3. You have to figure out the code that carries out the functionality described in your specifications.
    3. Write the code in includes Z** .
    4. Now the code written by you will be executed when you run the relevant SD transaction
    Message was edited by: Sudhir Bhate

  • How to disable DELETE option in user exit MV45AFZB

    Hi All,
    Can u please suggest on this req,I  need to modify the user exit MV45AFZB form USEREXIT_CHECK_XVBAP_FOR_DELET   needs to be modified to not to allow an order item or an order for division (spart = 80) to be deleted.
    Thanks,

    Hi, malleshanthi.
    Please, refer to this link:
    [http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm]
    User-Exits in program MV45AFZB
    USEREXIT_CHECK_XVBAP_FOR_DELET
    In this user exit, you can enter additional data for deletion of an item. If the criteria are met, the item is not deleted (unlike in the standard system).
    You can also insert enhancement implementation:
    FORM USEREXIT_CHECK_XVBAP_FOR_DELET USING US_ERROR
                                              US_EXIT.
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(2) Form USEREXIT_CHECK_XVBAP_FOR_DELET, Start                                                                                A
    * Example
    * IF US_ERROR NE SPACE.
    *   MESSAGE ......
    * ENDIF.
    * IF .......
    *   US_EXIT = CHARX.
    * ENDIF.
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(3) Form USEREXIT_CHECK_XVBAP_FOR_DELET, End                                                                                A
    ENDFORM.
    Best regards,
    George Shlyahov.

  • MV45AFZB  user exit

    Hi, All
    <b>we are using FORM USEREXIT_CHECK_VBAK USING US_DIALOG in MV45AFZB  to set incomplete status for a sales order if the credit card data is not maintianed, we are using for specific payment terms, the code is working and it sets the incomplete status but it is not updating VBUV table can any one help,
    here is the code</b>
    IF ( SY-TCODE  = 'VA01' OR SY-TCODE = 'VA02' ).
        IF XVBAK-VKORG = '1234'.
            IF XVBKD-ZTERM = 'O879'.
              IF (  XVBAK-RPLNR = '0' OR  XVBAK-RPLNR = SPACE ).
                  CLEAR XVBUV.
                  XVBUV-MANDT   = SY-MANDT.
                  XVBUV-VBELN   = XVBAK-VBELN.
                  XVBUV-TBNAM   = vbak
                  XVBUV-FDNAM   = RPLNR
                  XVBUV-FEHGR   = 'Q?'.( CONFIG)
                  XVBUV-STATG   = '04'.
                  XVBUV-UPDKZ   = 'X'.
                  APPEND XVBUV.
                ENDIF.
              ENDIF.
            ENDIF.
          ENDIF.
    <b>THE CODE WORKS BUT VBUV IS NOT UPDATING EVEN AFTER THE SALES ORDER IS SAVED.</b>

    Hi,
    Welcome to SDN.
    Please try this.
    IF ( XVBAK-RPLNR = '0' OR XVBAK-RPLNR = SPACE ).
      CLEAR XVBUV.
      XVBUV-MANDT = SY-MANDT.
      XVBUV-VBELN = XVBAK-VBELN.
      XVBUV-TBNAM = vbak
      XVBUV-FDNAM = RPLNR
      XVBUV-FEHGR = 'Q?'.( CONFIG)
      XVBUV-STATG = '04'.
      XVBUV-UPDKZ = 'U'.                       "Change here
    APPEND XVBUV.
    ENDIF.
    Regards,
    Ferry Lianto

  • Include MV45AFZB

    Hi!
    We have to add some code in include MV45AFZB (form USEREXIT_MOVE_FIELD_TO_TVCOM_H).
    Do we use SE38 to do it and get the access key? Or there is another way to do this?
    Thanks!
    Cristian

    Hi there,
    There are some standard user exists which even the ABAPer cannot change.
    Customized user exists will be in the customized includes. For eg in MV45AFZB, there will be cystomized include ZMV45AFZB for eg which will have the customized user exists. To change / modify that user exists we donot need an access key. Pls note that we cannot change any standard user exists. It is given by SAP which we can just call in our prog.
    We need access keys only to define / change condition tables or to change the requirement routines in VOFM.
    Regards,
    Sivanand

  • MV45AFZB - FORM USEREXIT_CHECK_VBAP USING US_DIALOG - incompletion log

    Hello,
    I'm struggling with a problem concerning the incompletion log after deleting a value in the named user exit.
    I check if the profit center has a certain value in the form  USEREXIT_CHECK_VBAP USING US_DIALOG. if this is the case, the system deletes the value. But my problem is that at this moment, the incompletion log is not updated. Do I have to update the table xvbuv manually with the new entry ? Or is there another way to update this ?
    Thanks in advance !

    That's not entirely true - it depends on the user, what changes on the line item, and what the criteria are for blanking out the value.  Removing the value would be the normal trigger if the field is in the item incompletion procedure but not necessarily if done via code.
    The incompletion check occurs in routine VBAP_PRUEFEN_ENDE and requires that something has changed in VBAP in order to be triggered.  If the routine has already been called and then you change a VBKD-based value on the item, such as the incoterms, then the incompletion check is skipped but the userexit_check_vbap call is still made afterwards.  In this scenario, if you click 'Save' after making the incoterms change, the profit center value gets wiped out and no incompletion is triggered unless you append the value back to the table (or make a subsequent check with RV_CHECK_DOCUMENT_INPUT).  I'm assuming this is why the poster asked the question.  Might be a bug, but SAP would probably tell you it's 'working as designed'...

  • MV45AFZB, MV45AFZZ  (VA01) Sales Document No

    Hi All,
    I have created screen exit for sales order creation tcode, and storing some data in ztable,
    everything is fine till here, only problem is i am not getting sales document number at the time of save event which should be captured at run time when number is getting generated.
    can anyone suggest which field i should pass to store sales doc no,
    i am updating,Inserting data in MV45AFZZ, subrtn USEREXIT_SAVE_DOCUMENT.
    Thanks
    sujeet

    Hi Sujeet Mishra,
    try with
    XVBAK-VBELN
    or
    YVBAK-VBELN
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • USER_EXIT-MV45AFZB FORM USEREXIT_CHECK_VBAP

    HI ALL...I HAVE ONE OBJECT THAT IS
    IWANTO ADD 3 FIELDS FROM ADRC(POST_CODE1,REGION,COUNTRY) TO VBAP(ZZSHIPTOPC,ZZSHIPTOREG,ZZSHIPTOCO).
    FOLLOWING THIS LOGIC....
         1.ON USER EXIT CHECK INTERNAL TABLE XVBPA FOR THE PARTNER FUNCTIONS AT THE HEADER OR ITEM LEVEL.
    2.THIS UE IS VALID FOR TC VA01 &VA02 ONLY
    3.BEFORE DOING THE SEARCH IN ADRC CHECK THAT THE MATERIAL IS CONFIGURABLE(MARA-KZKFG = 'X').
    4.MOVE FIELDS TO NEW ZZ ....FIELDS IN VBAP.
    PLZ WRITE THIS OBJECT ANY BODY KNOW'S

    *&  Include           ZPLM_ENG_VC_REFCHAR
    TITLE: POPULATE ZFIELDS IN TABLE VBAP BASED ON DOCUMENT LINE ITEM SHIP-TO PARTNER VALUES.
            ZFIELDS REQIRED ARE POSTAL CODE,REGION,AND COUNTRY.
    TRANSACTION: VA01,VA02.
    PROGRAMMER: JANARDHAN REDDY.
    DATE:07/24/2008.
    *DATA DECLARETION.
    TYPES:BEGIN OF STR_ADRC,
          POST_CODE1 TYPE ADRC-POST_CODE1,
          REGION TYPE ADRC-REGION,
          COUNTRY TYPE ADRC-COUNTRY,
          END OF STR_ADRC.
    DATA:WA_ADRC TYPE  STR_ADRC,
         WA_KZKFG TYPE MARA-KZKFG,
         TAB_ADRC TYPE TABLE OF STR_ADRC.
    TYPES:BEGIN OF STR_VBAP,
          ZZSHIPTOPC TYPE VBAP-ZZSHIPTOPC,
          ZZSHIPTOREG TYPE VBAP-ZZSHIPTOREG,
          ZZSHIPTOCO TYPE VBAP-ZZSHIPTOCO,
          END OF STR_VBAP.
    DATA:WA_VBAP TYPE  STR_VBAP,
         TAB_VBAP TYPE TABLE OF STR_VBAP.
    IF SY-UNAME = 'OFF1'.
    IF SY-TCODE EQ 'VAO1' OR SY-TCODE EQ 'VAO2'.
    *CHECK INTERNAL TABLE XVPA.
    LOOP AT XVBAP.
    SELECT SINGLE KZKFG FROM MARA
                INTO WA_KZKFG WHERE MATNR = XVBAP-MATNR.
    IF WA_KZKFG = 'X'.
    READ TABLE XVBPA WITH KEY VBELN = XVBAP-VBELN    "Step 2
             POSNR = XVBAP-POSNR  PARVW = 'SH'.
       ENDIF.
    IF SY-SUBRC <> 0.
      READ TABLE XVBPA WITH KEY VBELN = XVBAP-VBELN   "Step 3
             POSNR = XVBAP-POSNR  PARVW = 'SH'.
    ENDIF.
    IF SY-SUBRC = 0.
    *GATHER FIELDS FROM ADRC
    SELECT POST_CODE1 REGION COUNTRY FROM ADRC INTO WA_ADRC  "Step 4
          WHERE ADDRNUMBER = XVBPA-ADRNR.
          ENDSELECT.
          ENDIF.
    IF SY-SUBRC = 0.
    *MOVE THE FIELDS TO Z..FIELDS
        MOVE :WA_ADRC-POST_CODE1 TO XVBAP-ZZSHIPTOPC,
              WA_ADRC-REGION     TO XVBAP-ZZSHIPTOREG,
              WA_ADRC-COUNTRY    TO XVBAP-ZZSHIPTOCO.
       MODIFY XVBAP TRANSPORTING ZZSHIPTOPC ZZSHIPTOREG ZZSHIPTOCO.
    ENDIF.
    CLEAR:TAB_ADRC,WA_KZKFG.
    ENDLOOP.
    ENDIF.
    ENDIF.

  • Form exit in MV45AFZB.

    Hi,
    My requirement is the users need to validate documents created in the SD module to ensure that the correct CO object is used before the document is transferred to FI i.e. for particular company code if my G/L account number is starting with 4 then I should not pass the WBS element to G/L account and pop up a error msg, the error msg will be created in se91.
    Now in which form exit I can use for this? or if i need to write my own form exit then where can i write my code?
    This form exit which i should modify or create will be then assigned to a validation rule through tcode OB28
    can any one help me with this?
    null

    hello,
    i was just wondering what if i write a form exit in MV45AFZZ and then can use it in OB28 ? will do any harm?

  • Config of free goods?

    I'm an ABAPer so forgive if my question is not clear to you SD guys. We are having an issue with creation of orders and the functional consultant might be new to this problem.
    I read several threads here regarding the config.
    1) I checked transaction VOV4 for OR-NORM-FREE-TAN-TANN. it's there
    2) Checked material master MM03 / Sales Org. 2 for category group. Group of material is NORM.
    3) Checked free goods determination in VBN3 for Customer-Material combination, there's a value there and is valid from 12/22/2008 to 12/31/9999 (valid indefinitely)
    But when we try to create an order in VA01, using the same customer and material (from number 3) and set the item category of the material to TANN, the system automatically changes it to TAN.
    (On the technical side) I checked the exits MV45AFZZ and MV45AFZB and there is no routine there that does the change from TANN to TAN so we're convinced that this is caused by some config.
    Can anyone help? How can the item stay as TANN (without having to retype. When it is retyped, it's like the item category is being forced into the system, right?)?
    Thanks in advance.

    Hi,
    What I undersatnd is , you want INCLUSIVE free good sdetermination.
    For example, for every 10 units 2 units are free. That means 20% free goods.
    If Customer has ordered for 10 units then  he has to pay for 8 units and 2 units will be free of charge.
    In standard, the free goods condition type is NA00 (with item generation).
    So, you need to create the Condition record for NA00 in transaction VBN1 and specify the free quntity properly.
    In standard, the Pricing Procedure for free goods determination is NA0000.
    You need to assign this procedure to the Sales Area in which you want to create the Sales Order (V/N6).
    Now, when you will create an order for the above material say M1 for 10 units, system will split it as two line items.
    First line item, M1 -
    8 units -
    TAN (system will calculate price for this item).
    Second line item, M1----
    2 units -
    TANN (no pricing, it is 100% free).
    You need not have to specify the Item category mannually.
    For the first item (Main item), system will automatically take the Item category as TAN and for the 2nd item (sub-item) item category will be TANN.
    Regards
    Pradyumna

Maybe you are looking for

  • Please, help with AS2 / CS3

    In this zip file, I replaced the images, with blank photos, with the image titles, to make it easier to see the problem. (download files) http://www.pbsjbuzz.tv/site_flash/site_flash.zip (view online) http://www.pbsjbuzz.tv/site_flash Thank you ! Hel

  • Windows Vista home basic

    I have been trying to get my IPOD to work on my new computer for a couple of weeks now. It is a 4th gen 20G click wheel. It shows up on my computer and it shows up in the diagnostics in iTUNES. But it will not show up when in the itunes store. I have

  • Advice on external hard drives for Macbook pro

    I am looking to buy an external hard drive for my macbook pro urgently. I was intending to purchase a time capsule but am really concerned with the reliability concerns of the time capsules where they stop working after 6 months to 18 months as poste

  • I upgrade from SAP R/3 470 *110 to ecc5 ,now i can't start sap dp

    after  i upgrade oracle9i to oracle10g ,the sap can't start ,and the status of dispatcher is stopped, and the R3trans -d is wrong ,occure the ora-12154 error, ERROR => OCI-call 'OCIServerAttach' failed: rc = 12154 ERROR => CONNECT failed with sql err

  • It is telling me to erase the disk than install but i cant loose data

    it is telling me to do the erase and install and i cant do any thing else i dont no how to go back to the tiger os to get the data do i cancel the instal and press startup disk???