BADI OR ENHANCEMENT WHEN SAVE VA01 OR VA02

Hi All,
I have a requirement that when I save in VA01 or VA02, Some values which i entered in application should populated to my custom FM(i.e item,schedule and notes ). as i googled and found the include MV45AFZZ and kept code in.
FORM USEREXIT_SAVE_DOCUMENT.
as lv_vbeln = vbak-vbeln
Here i am getting Vbeln.
in that code iam using fms
1.  BAPISDORDER_GETDETAILEDLIST
2..SHP_GET_SD_DATA
to read the data about current vbeln. Here Iam unable to get data.
Here I sholud not use VBAP-POSNR or VBEP-MENGE AND NO SELECT STATEMENT.
And      'in update task' doesnot work for above FMs. Means it is showing sytax error for(changing ,importing parameters).
Please help me.
Thank in advance.
Regards,
Mithuunn

Hi Mithuunn,
In USER_EXIT_SAVEDOCUMENT you should not put a COMMIT WORK.
Call your function in UPDATE TASK passing it the number of sales order.
To stop in debugging your function and see if you really order arrives or have to put a delay with WAIT UP xx TIMES do the following:
Put a break inside your FM and in the user-exit and activates the debugging and:  Options --> update debugging
Stop within your function and you can debug it at runtime.
I hope you help.

Similar Messages

  • User-Exit/Badi for MD14 (At Save)

    Good  Morning
    i want to  an exit or badi for md14 when save planned order

    Hi ,
    try one of those :
    LMDR2001
    LMDZU001
    only two exits for the package MD , you should find the appropriate  components there
    Regards

  • How to change schedule line fields when save sales documents in va01/va02

    Hi, every Experts,
    I want to change schedule line when save the sales documents in va01 or va02, such as change delivery block or schedule line category.
    of course, can use user exit USEREXIT_SAVE_DOCUMENT_PREPARE, but I do not know to use this user exit, I am newer about ABAP.
    Please help me , thanks.
    best regards
    Passion Wu

    Hi,
    For changeing schedule line: select line item, GOTO --> item --> schedule lines --> enter the confirmed qty.
    USEREXIT_SAVE_DOCUMENT_PREPARE program is MV45AFZZ
    For your reference
    USEREXIT_SAVE_DOCUMENT_PREPARE - Can I use in button, but skip
    regards,
    Mohanprabu C

  • Badi/userexit for va01,when save button is clicked

    hi friends,
    i want badi/userexit which triggers when save button is clicked in va01 tcode.
    Thanks,
    Gaurav

    Hello,
    You can debug the standard code ( /h before pressing save button) searching for user-exits or badis.
    Set breakpoints in statements. For example if you are looking for call customer-fuction, click on:
    Breakpoint --> Breakpoint at --> Breakpoint at Statement
    and then here write: CALL CUSTOMER-FUNCTION
    Then pressing F8 it will go directly to the next breakpoint (user exit for this transaction).
    I hope it will help you.

  • Enhancement for MIGO when SAVE with any of these tables afru,aufk,jest,tj02

    Enhancements/BADI's for MIGO Transaction When SAVE.
    Tables: afru,aufk,jest,tj02t,afpo,
    eban,qave,qals.
    can anyone pls suggest Enhancements/Exits/BADI's
    for MIGO transaction where i can use any of the
    above tables .
    i found mb_migo_badi, i dont think i can use this.
    If any one know any user exits to do it  .
    Regards
    Ashok.

    Hi Madhu,
    user exits for stopping PO creation without production order confirmation.
    Regards,
    Ashok.

  • How to save va01,va02 transaction code

    Hello Every one,
    When creating sales order in VA01, at last screen as soon i save a message box to be appeared and when editing details in VA02 as soon enter details and save a message box to be appered please let me know the userexit and releavent code tobe written......
    Regards
    Martin

    Hi,
    U can do it in MV45AFZZ ,inside this include use the userexit USEREXIT_SAVE_DOCUMENT.
    Regards,
    nagaraj

  • When comparing the EXits BADIs and Enhancement points .

    Hi All,
               Could you please let me know the upward compatibiltity of the User-exits BADI and Enhancement points?
    In case of version upgrade how do these efffect?
    Please give me some details......
    Thanks in Advance.
    Regards
    Abhilash.

    hi Gautham/All,
         Thanks for the update.
    Can u be more elaborate on this.
    In the upgraded versions we can not do for enhancement spots
    and BADIs  because they will be having upward compatability.
    Only user exits and customer exits are not having the upward compatibility. so we have to write the code manually in the new version.
    This is as per my understanding.
    Please correct me if I am wrong?
    Thanks in advance.
    Regards
    Abhilash.

  • Disabling Profit center in VA01 and VA02

    Hi geeks,
    I have a requirement where i need to disable the profit center column for some specific sales document types in VA01 and VA02.
    Please guide me with the User-exit to complete the requirement.
    -Jiyaaaa

    Hi Prabhu,
    i want to gray out completely without being able to input.
    the following is the code i hav written in exit "userexit_field_modification" of the include "MV45AFZZ"
    enhancement 1  zprofitcenter_enhancement.    "inactive version
    case screen-name.
          when '*VBAP-PRCTR'.
            if sy-tcode = 'VA01' or sy-tcode = 'VA02'.
              screen-input = 0.
              modify screen.
            endif.
        endcase.
    *IF ( SCREEN-NAME = 'VBAP-PRCTR' ).
    *SCREEN-INPUT = 0.
    *ENDIF.
    endenhancement.
    In debugging,i have checked it is calling this enhancement.but in the output,it is not greying out.
    kindly,let me know where iam going wrong.
    -jiyaaa

  • How to add custoim fields on the additiondata b tab of va01 and va02

    Hi All,
       i want to add the field on the Additional data B tab of the VA01 and VA02 at header level.
        Already one field is there now i want to add one more field.How to proceed.
       I think i have to go with screen exits.Can you help me in proceeding further and where should i write the code.
       It is urgetn.Please help me

    I have to move the updated fields to the vbak table
    The code is like this
    If      VBAK-ZZGrswgh   less than    ZTRKLMT-ZZweight OR
            VBAK-ZZCubTot    less than    ZTRKLMT-ZZCube   OR
            VBAK-ZZPaltot      less than    ZTRKLMT-ZZPallet   
                  CLEAR VBAK_ZZTRKLMT.
    Else
                  MOVE ‘X’ TO VBAK_ZZTRKLMT.
    End if
    should i write this code in the USEREXIT_MOVE_FIELD_TO_VBAK of program MV45AFZZ ?
    This user exit should trigger when
    VBAK-AUART Equals 'ZWH' OR
        VBAK-AUART Equals 'ZFV'
    Reply soon

  • BADI or Enhancement Spot while assigning BP to a Org Unit

    Hi,
    I have a requirement of changing the BP address while assigning the BP to a Org Unit in PPOMA_CRM. Is there any BADI or Enhancement Spot which can be used for this purpose.
    Thanks,
    Ravi G

    Hi Ravi
    Regarding this thread I want a help from your side if you can help me please.
    I have to put some validation for the assigned employee and the position under which the employee is beeing assigned.
    Is there any badi or Enhancement spot that can resolve my problem.
    the validation will be done as soon as we select the employee that will be assigned to the position and press the ENTER.
    It is done before SAVE.
    Best Regards
    Saurabh

  • Badi or Enhancement for Purchase order invoice plan change for ME22N

    Hi ,
      I have a req to have a custom tab at the header level with the push button in ME22N , By clicking the push button i need to update the invoice plan detail to all item level by using the 1st line item invoice paln entered while creating PO . I have done with adding the custom tab using MM06E005 enhancement. The problem i am facing is need to change the PO invoice plan detail for all line item. Please let me know the BADI or Enhancement to change the PO detail in the Tcode ME22N . Any Badi before save or after save with invoice plan details.
    <offer removed by moderator>. Many thanks for you help!
    Regards,
      Vinoth.v
    Edited by: Thomas Zloch on Oct 14, 2011 11:59 AM

    Hi Eduardo
    ME_PROCESS_PO_CUST is don'tt have the Invoice plan and ME_GUI_PO_CUST is for screen but i need the badi to get the invoice plan details and change the remaining item with the invoice plan .
    Regards

  • Abiword 3.0 - crash when save as pdf

    Recently I have upgraded Abiword to 3.0. When save a document in pdf format Abiword crashes and leaves 2 files in the directory:
    .gsf-save-XXXXXX
    documentname.abw.saved
    Is it an issue with the new 3.0 version or something is wrong with my system? In previous version the pdf conversion worked fine. Thanks!

    Abiword 3.0 is a mess!
    I can confirm abiword crashes when trying to save a document as *.pdf on 3.12.7-2-ARCH x86_64 + i686 + 3.8.13.1-1-ARCH armv7l, GNU/Linux, Openbox, LXDE.
    Furthermore the top ruler is covered by a grey bar as soon as you click into the text window so you cannot use tabulators nor indentation. (Bugzilla Bug 13582)
    The system wide theme and appearance settings are ignored and abiword appears in a very ugly GTK standard theme.
    Seems like abiword 3.0 has inherited all the long known bugs from its 2.9.X antecessors.
    IMHO it was a bad decision to put abiword 3.0 into the repositorys as it is unstable and buggy.
    The only way is to downgrade to last stable 2.8.6-9 version until abiword becomes usable again.
    EDIT: Another annoying bug: *.odt files created and saved with abiword 2.8.X cannot be opened with abiword 3.X!!
    Last edited by renegat (2014-02-03 00:35:12)

  • Is there any userexit OR BADI  for MIR7 WHEN change number of PO

    I know I can use badi  NVOICE_UPDATE- CHANGE_BEFORE_UPDATE method. to check PO's number when
    I save .
    I want to find an exit or badi to implement when I change number of PO, and  type enter  to  check the number .How can I do ??

    Hi,
    Please check this thread for the procedure to find the BADI for a transaction
    http://searchsap.techtarget.com/tip/0,289483,sid21_gci1276392,00.html#
    Or
    You goto se24 and specify the class CL_EXITHANDLER and in that double click on GET_INSTANCE method in that put a break point on the line 
    CALL METHOD cl_exithandler=>get_class_name_by_interface
    and run you transaction... for almost every action you will get this method trigger and in that check the exit name... And that's the BADI for the interaction made in that transactation.
    Please go through this link for Finding BADI using class CL_EXITHANDLER in detail.
    [Finding BADI|http://abapreports.blogspot.com/2008/06/badi-finding-in-abap.html]
    Hope this would help you.
    Good luck
    Narin
    Edited by: Narin Nandivada on Aug 19, 2008 5:30 PM

  • VA01 and VA02 Change Search Help

    I need to add extra field in the search help of the ORDER in SALES ORDER (VA01, VA02). I want to see both the ORDER and the DESCRIPTION in the search help of ORDER field.
    I ask for this in existing thread but it was marked as Answered: [ Re: VA01 and VA02 Search Help Mitigation]
    The main problem is that after i create search help in se11, I do not know what to do after that. Where is the place to say this search help is for this field. I search for exits but no results. Some advises will help.
    Thank you.

    I try this and learn a lot. But i think that this is not the exact way. It do not work. The table is VBAP and the field AUFNR (Order Number). It has not search help. It has only the standard one field. When I press F4 on it it shows only its list and I need the description. When I press F4 and see the technical data it show table AUFK and field AUFNR. The description is in AUFK-KTEXT.
    I think i miss something small to do it. I think that I do not need collective search help or search help exit because it is for some more complex checks. May be I need only view with this two fields and elementary search help. But how to 'tell' to the field to use it.

  • EXIT OR BADI OR ENHANCEMENT FOR CATS_APPR_LITE TCODE

    Hi All ,
       I want to put some validation for tcode CATS_APPR_LITE  . when you execute this tcode and after
    entering reporting period and F8 , it shows a report there you will click on first application toolbar button
    for Approve or Reset Approve for any row .
    When user click on Approve or Reset approve at that time i want to put some validations .
    For this validations i am not able to find any EXIT OR BADI OR ENHANCEMENT  .
    i found one Badi : CATSXT_EVENT . but my data is not visible which i want like Activity type .
    Can anyone please help me .
    Regards ,
    Nilesh K Jain .

    Hi Nilesh,
    Tcode : CAT2.
    /message/5260477#5260477 [original link is broken]
    Regards,
    Sravanthi

Maybe you are looking for

  • Adobe Flash Plugin keeps crashing

    I can barely get 10 mins of playing a game on Facebook before I get the above message, it has happened on and off for a few months now but its getting ridiculous to try to play my game now, sometimes not loading at all. I have noticed that it is only

  • ALE Distribution Model

    Hi, I've created an ALE distribution model to process the interface concerning Set Up HR and Accounting. Initialy we make it all and distribute it to the receiving system (FI) and it seems to be ok. After that the funcional team generate some movemen

  • Code for reading the and placing the file using java webservice

    Hi All, Can anybody can guide me on how to read a file and place the file using java. Let  me know if any code is available which has been completed using java. Regards, Rahul

  • Blackberry White screen of death

    My friend has the Blackberry Curve 8520 it was working fine for her but recently she has been getting a white screen randomly which she then needs to take the battery out and plug it into charge, to get it to work. The first time it did it she though

  • Iphoto library trashed

    Is there any way to recover my iphoto library if I "securely emptied" my trash with it in there?