UserExit/BADI for getting the contract number in ME31K

Dear Experts,
Is there any userexits/BADI available in ME31K , for getting the contract number once it is created.
Thanks&Regards,
Anversha

Hi
find the BADI:
1. Goto SE24
2. Open the class "CL_EXITHANDLER"
3. Open the Metnod "GET_INSTANCE"
4. Put a Break point in the "  CASE sy-subrc."
CALL METHOD cl_exithandler=>get_class_name_by_interface
    EXPORTING
      instance                      = instance
    IMPORTING
      class_name                    = class_name
    CHANGING
      exit_name                     = exit_name
    EXCEPTIONS
      no_reference                  = 1
      no_interface_reference        = 2
      no_exit_interface             = 3
      data_incons_in_exit_managem   = 4
      class_not_implement_interface = 5
      OTHERS                        = 6.
  CASE sy-subrc.
    WHEN 1.
      RAISE no_reference.
    WHEN 2.
      RAISE no_interface_reference.
    WHEN 3.
      RAISE no_exit_interface.
    WHEN 4.
      RAISE data_incons_in_exit_managem.
    WHEN 5.
      RAISE class_not_implement_interface.
  ENDCASE.
5. Come Back and Execute the Transaction Code
6. In the Debugging screen "exit_name" having the BADI Name for that Tcode.

Similar Messages

  • Userexits/BADI in ME31K for getting the contract number created.

    Dear Experts,
    Is there any userexits/BADI available in ME31K , for getting the contract number once it is created.
    Thanks&Regards,
    Anversha

    Hi
    find the BADI:
    1. Goto SE24
    2. Open the class "CL_EXITHANDLER"
    3. Open the Metnod "GET_INSTANCE"
    4. Put a Break point in the "  CASE sy-subrc."
    CALL METHOD cl_exithandler=>get_class_name_by_interface
        EXPORTING
          instance                      = instance
        IMPORTING
          class_name                    = class_name
        CHANGING
          exit_name                     = exit_name
        EXCEPTIONS
          no_reference                  = 1
          no_interface_reference        = 2
          no_exit_interface             = 3
          data_incons_in_exit_managem   = 4
          class_not_implement_interface = 5
          OTHERS                        = 6.
      CASE sy-subrc.
        WHEN 1.
          RAISE no_reference.
        WHEN 2.
          RAISE no_interface_reference.
        WHEN 3.
          RAISE no_exit_interface.
        WHEN 4.
          RAISE data_incons_in_exit_managem.
        WHEN 5.
          RAISE class_not_implement_interface.
      ENDCASE.
    5. Come Back and Execute the Transaction Code
    6. In the Debugging screen "exit_name" having the BADI Name for that Tcode.

  • FM for get the week number

    Hi experts..
    I need a FM for get the week number...
    for example today 14 april 2010 is the  15 week from the start of the year..
    best regards
    Marco

    Hi,
    Check this Fm : GET_WEEK_INFO_BASED_ON_DATE .
    Just enter the date
    the week parameter returns the year and week number. the last 2 digits give the week number.
    Thanks.

  • How to get the contract number selected on VA01.

    Hello Experts,
    While creating a sales order a contract number is selected.
    ie to which contract this SO is being created.
    We get a ALV list with list of contract number and we select one.
    But no where this contract number is displayed.
    I have a placed a input/output box on additional tab header leve of VA01.
    I need to display the contract number selected by the user for that sales order on to that box.
    and this should  happened the moment the user copies the contract number from the ALV list
    any functon exit or badi's which could be used to get the value.               
    right now iam using the include MV45AFZZ
    I know the table getting used.
    Thanks in advance.
    Regards,
    Ranjith

    You can put your code into the MOVE_FIELD_TO_VBAP userexit in include MV45AFZZ. The contract information is stored on item level (VBAP) in fields WKTNR (contract number) and WKTPS (contract item). If you can have more than one contract in a sales order you should display that information on item level rather than header level, if you always reference one contract only per sales order header should be fine.
    Hope that helps,
    Michael

  • Badi for checking the vendor number entered in ME31K

    Hi all,
    My requirement is to check the vendor number that user has entered in me31k and give messege accordingly.
    Is there any badi to implement it?
    badi me_process_pocust perhaps will not work in this case.
    Plz help.

    Hi Santosh,
    Have you looked BADI <b>ME_PROCESS_PO_CUST</b> or user exits <b>EXIT_SAPMM06E_016</b> / <b>EXIT_SAPMM06E_017</b>?
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • User Exit or BADI for catch the document number after saving the document

    Hi ,
    I am working on data conversion where Document number(BELNR),BKPF and BSEG  data should
    transfer to my Z table(Containes fileds of BKPF and BSEG) after SAVE the document related to
    Tcodes F-01 , F-22 , F-28 , F-43 , FB01 , FB02, FB60 ) . It need to go through by any user-exit or
    BADI.So Could you please suggest me any User exit or BADI ASAP.
    Waiting for reply.
    Thanks
    Lakshmi

    You should use BTE (Business transaction event). This concept is used especially for FI related enhancements...
    Study this document to know how to use BTE
    http://www.todoabap.com.ar/archives/FI%20Enhancement%20Technique%20-%20How-To-Guide%20on%20the%20Usage%20of%20Business%20Transaction%20Events%20(BTE).pdf
    Let me know if you face any specific issues..

  • How to get the Equipements number and desciption for the contract item ?

    Hi Gurus,
            How to get the Equipements number and desciption for the contract item items? It would gr8 helpful to me...
    VBAP,,EQUI,,,,,,?
    Thanks
    Krisna

    Check with below tables :
    EQUI    Equipment master data
    EQKT   Equipment short text
    EQUZ   Equipment time segment
    Thanks
    Seshu

  • HT4812 I recently fixed my computer and need to reinstall logic pro 9 but I can't find the booklet with my serial number, is there any other way I can get the serial number for logic pro 9 (box)?

    I recently fixed my computer and need to reinstall logic pro 9 but I can't find the booklet with my serial number, is there any other way I can get the serial number for logic pro 9 (box)?

    If you still have the receipt or other proof of purchase, you can ask Apple to send you the serial. Otherwise, bad luck mate.. Good news is, you can now buy Logic Pro 9 from App Store for just 199 USD

  • I recently subscribed to Acrobat XI after the trial expired but when I went to activate it I was asked for the serial number. I only have the order number on the invoice. How do I get the serial number for the trial software that is on my computer?

    I recently subscribed to Acrobat XI after the trial expired but when I went to activate it I was asked for the serial number. I only have the order number on the invoice. How do I get the serial number for the trial software that is on my computer?

    Please do not try to send attachments in mail responses to forum messages. Please return to the forum and click Reply. You can then use the CAMERA icon to add your pictures. Looking forward to seeing what is wrong with your license screens - the general advice is simply to sign in, and everything is done. Make sure you use the SAME Adobe ID that you used to purchase, and check your account details to be sure the subscription is active.

  • How to get the document number for a ware house order.

    Hello gurus,
    how to get the document number for a ware house order. [if GI is posted refering that WH order] .. is there any report?
    Thanks in advance

    There are several options.  When you post a Goods Movement, you can use LB12 -display Transfer Requirement for material document or LB11 Display TR for material.
    Depending on how your system is set up you may have gotten a Transfer Order automcatically.  In this case you can look at LT24 - Transfer Order for material.

  • How do I get the serial number they ask for in signing in , I bought the 19.99 a month program?

    how do I get the serial number they ask for at the sign in part, I paid for the 19.99 and cannot access it , thank you

    Start by using your web browser to go to creative.adobe.com. Log in there with your Adobe ID.
    There is no serial number for subscriptions. You use your Adobe ID. Then there are options to download applications.

  • How do I get the Serial Number for Adobe XI that purchased from Amazon over two weeks ago?

    I am trying to get the serial number so that I can have the permanent version of the Adobe XI that I purchased from Amazon.  Does anybody know how Adobe alerts a buyer to this info?  I purchased the software as a Download so do not have a box.

    Required Proof of Eligibility:
    STUDENTS:
    Your proof of eligibility must be a school issued email address OR a document issued by the institution with your name, institution name, and current date.**
    Types of proof of enrollment include:
    School ID card
    Report card
    Transcript
    Tuition bill or statement
    TEACHERS, FACULTY, STAFF:
    Your proof of eligibility must be a school issued email address OR a document issued by the institution with your name, school name, and current date.**
    Types of proof of employment include:
    Faculty or staff paycheck stub
    Dated ID card
    Official letter from the registrar of the educational institution indicating current employment
    Note: Any sensitive information such as pay amounts, grades, or social security numbers can be covered or crossed out.HOMESCHOOL STUDENTS & TEACHERS:
    Dated copy of a letter of intent to homeschool**
    Current membership ID to a homeschool association (for example, the Home School Legal Defense Association)**
    Dated proof of purchase of curriculum for the current academic school year**
    * Adobe does not provide a trial version of Adobe Acrobat XI Pro for Mac
    ** Documents dated within the last six months are considered current.

  • How can I get the serial number for Premiere 11?

    In october 2012 I´ve bought a bundle pack with Photoshop Elements 11 and Premiere 11. After a hard disk crash i was about to reinstall them both but my wife has trown the envelope in the garbage... = No Serial number available!!
    I´ve registered the serial number for Photoshop Element 11 on Adobe, but not the key for Premiere (they are on the same dvd).
    How can I get the serial number for Premiere 11?

    I do not think there is any way for anyone here to help you (we are just other users) so you are going to have to contact Adobe
    Forum for Download & Install & Setup problems
    http://forums.adobe.com/community/download_install_setup
    Chat http://www.adobe.com/support/download-install/supportinfo/
    -or http://www.adobe.com/support/chat/ivrchat.html
    And tell your wife to be more careful about throwing things away

  • I have my redemption code but can't get the serial number for adobe photoshop elements 12 that I jus

    I'm trying to find out my serial number.  I have the redemption code but can't get the serial number for adobe photoshop elements 12 that I just purchased

    Hi KEsheppard
    Please refer the link below to get the help regarding redemption code and the serial number:
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    Let us know if it helps,
    Thanks!
    Gurleen Kaur

  • I need help getting the license number for Adobe Photoshop Elements. However, It doesn't recognize me as an authorized user. Can someone help?

    I need help getting the license number for Adobe Photoshop Elements. However, It doesn't recognize me as an authorized user. Can someone help?@

    I am having the same problem...did you ever fix it?

Maybe you are looking for