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.

Similar Messages

  • User exit or a badi for checking the vendor email id in me22n on me29n

    hi all,
    can anybody suggest me a user exit or a badi  for checking the email id of the vendor in me21n or me22n or me29n.
    i.e. a user exit or a BADI which gets hit either at the time of creation or release of a purchase order.
    plz suggest me a solution its urgent.
    regards,
    santosh

    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 for checking the vendor emailid in me22n or me21n

    hi all,
         can anybody suggest me a user exit for checking the email id of the vendor in me21n or me22n or me29n.
       plz suggest me a solution its urgent.

    hi yaan,
           i checked with the user exit that u suggested me, it is getting triggered, i am able to check whether the vendor email id is present or not, but this is happening all the time that is even when the user dont want to send a email to the vendor i.e. he just wants to print the purchase order, even at that time this user exit is getting triggered and giving a message that the vendor email id is not maintained.
      the reson why this is happening is there is no import parameter to this user exit which gives the "medium of data transfer"  the user has entered. if i get this parameter visible inside the user exit, then i can check this parameter inside the user exit and do the required operation.   i checked up with all the user exits in "me" package and even the other related packages but none of them is getting triggered,
      do u know a user exit or badi which imports this parameter and also gets triggered at the time of creation of purchase order.
      plz give me a solution.
    regards,
    santosh.

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

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

  • Badi for check tax number field

    Hi guys!
    Can anyone tell if exists a badi that ckecks the field 'TAXNUM' in transaction 'BP' after we put a value there.
    I've already check in the transaction 'Bus7' and i only find the function for the event 'check before saving' -'BUP_BUPA_EVENT_DCHCK'.
    Thanks in advance.
    Hugo.

    Hi everybody!
    I need understand how implement check of taxnum using transaction BUS3 - view BUTX01.
    I need check tax number in transaction FPP2.
    I see a post very interesting:
    Badi for check tax number field
    I create a module function but inside of module function i don't have data for my validation. I think i make a mistake. Help please!
    If somebody have a tutorial would be great!!
    Thanks!

  • Visio 2010 Validation for Checking the number of a specific type of shape.

    I have written a rule for flowchart for checking the number of Start/End Shapes in a document.
    The FilterExpression is as follows:
    AGGCOUNT(FILTERSET(SHAPESONPAGE(), HASCATEGORY("Start/End"))) > 0
    The TestExpression is as follows:
    AGGCOUNT(FILTERSET(SHAPESONPAGE(),HASCATEGORY("Start/End"))) = 2
    (Since totally there are 2 shapes: 1 Start and 1 End Shape)
    However, it is not working. Can anybody tell me what is wrong in the expressions.

    Well, it worked for me, so I want to check that you modified the Start/End master to have the User.msvShapeCategories row with the value "Start/End", as I did?
    A Category is not a Master
    David J Parker MVP (Visio) http://blog.bvisual.net

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

  • My new Macbook won't connect to my wifi network - it keeps saying "password incorrect" - but I've tested it on my phone and works fine, I've checked the password I enter is correct digit for digit - what could the problem be?

    My new Macbook won't connect to my wifi network - it keeps saying "password incorrect" - but I've tested it on my phone and works fine, I've checked the password I enter is correct digit for digit - what could the problem be?

    you need to open the keychain access located in your utilities folder in the applications and once in the keychain on the left side click on the words system at the top and in the lower section click on passwords
    next look in the striped area for any passwords that say airport network password next to kind and highlight those and hit delete on the keyboard to remove them from the keychain.
    once you remove all of these airport passwords, quit the keychain
    turn wifi off then back on, select your wifi network from the list and enter the password telling it to save to keychain this should resolve your issue!

  • Stored Procedure for checking Invoice Vendor ref No

    Hi All
    I need a sp for checking a vendor ref no  on an invoice if it already exist in the system or the user forgot to include one when trying to add the document.
    I get this error on the one that I created
    16/03/2010  12:21:54: [Microsoft][SQL Native Client][SQL Server]Conversion failed when converting the nvarchar value '24     0' to data type int. (CINF)
    Here is my SP :-
    DECLARE @Invoice AS VARCHAR(15)
    DECLARE @Card AS VarChar (20)
    SELECT @invoice = NumatCard, @card = CardCode FROM dbo.OPCH
    WHERE DocEntry = @list_of_cols_val_tab_del
    if @object_type = '18' and @transaction_type in (N'A', N'U') -- AP Invoice is null
    begin
        If exists (SELECT T0.cardcode, T0.NumAtCard  FROM OPCH T0 where T0.NumatCard is null and  T0.cardcode=@list_of_cols_val_tab_del)
         begin
              SET @error = 10
              SET @error_message = N'Supplier invoice number not entered.'
         END
    END
    SELECT @INVOICE = NumatCard FROM dbo.OPCH
    WHERE DocEntry = @list_of_cols_val_tab_del
    if @object_type = '18' and @transaction_type in (N'A', N'U') -- AP Invoice to check if the invoice no exist
    begin
        If exists (SELECT T0.cardcode, T0.NumatCard  FROM OPCH T0 where T0.NumatCard = @invoice  and  T0.cardcode=@list_of_cols_val_tab_del)
         begin
              SET @error = 10
              SET @error_message = N'This invoice number already exist for this supplier.'
         END
    END
    Regards
    Bongani Dlamini

    This code should be inserted into the original (or already expanded) SBO_SP_TransactionNotification stored procedure after the line
    --     ADD     YOUR     CODE     HERE )
    Try this full (and a little modified) procedure:
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER proc [dbo].[SBO_SP_TransactionNotification]
    @object_type nvarchar(20),                     -- SBO Object Type
    @transaction_type nchar(1),               -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
    @num_of_cols_in_key int,
    @list_of_key_cols_tab_del nvarchar(255),
    @list_of_cols_val_tab_del nvarchar(255)
    AS
    begin
    -- Return values
    declare @error  int                    -- Result (0 for no error)
    declare @error_message nvarchar (200)           -- Error string to be displayed
    select @error = 0
    select @error_message = N'Ok'
    --     ADD     YOUR     CODE     HERE
    if @object_type = '18' and @transaction_type in (N'A', N'U') -- AP invoice
    BEGIN          ----
    DECLARE @Invoice AS VARCHAR(15)
    DECLARE @Card AS VarChar (20)
    SELECT @invoice = NumatCard, @card = CardCode FROM dbo.OPCH
         WHERE DocEntry = @list_of_cols_val_tab_del
    -- AP Invoice is null
    If exists (SELECT T0.cardcode, T0.NumAtCard FROM OPCH T0 where T0.NumatCard is null
               and T0.DocEntry=@list_of_cols_val_tab_del)
    begin
    SET @error = 10
    SET @error_message = N'Supplier invoice number not entered.'
    end
    -- AP Invoice to check if the invoice no exist
    If exists (SELECT T0.cardcode, T0.NumatCard FROM OPCH T0 where T0.NumatCard = @invoice
               and T0.CardCode=@card and T0.DocEntry!=@list_of_cols_val_tab_del)
    begin
    SET @error = 10
    SET @error_message = N'This invoice number already exist for this supplier.'
    end
    END          ----
    -- Select the return values
    select @error, @error_message
    end

  • How to retrieve the vendor number during creation of Purchase Order?

    Dear SAP experts,
    For our Purchase Orders, during PO creation (t-code ME21 or ME21N) we want to achieve the following:-
    1) default the delivery address to our plant A address if the vendor is local and
    2) default the delivery address to our plant B address if the vendor is foreign.
    At the moment, we are trying to use the user exit enhancement "MMDA0001" to achieve the above.
    The problem is how to retrieve the vendor number from the screen so we could pass the vendor number to ZXM06U32 to check the ktokk field in LFA1 table in the whether the vendor is foreign or local.
    Thank you in advance.
    Regards,
    Alex

    u can do one thing, create 2 partner function, like 1 for local, and second for import vendor.
    or make 2 batch  n activate vendor batch and make mandatory field from SPRO. 
    then goto SHD0, and do one by one step. first time take 1st requirement and second time take second . like that make two variant .
    i dont know how much it will be helpful. bt i want to suggest smth like that only.
    or, go for ABAPER help
    thanks
    nisha

  • Change the Agreement details using the vendor number

    Hello All,
    My requirement is to get the Agreement number and line item details corresponding to a vendor from a Z table.
    I am able to read the vendor number using BADI ME_PROCESS_REQ_CUST and method GET_DATA
    Now i want to set the agreement details. I have fetched the details from the table, but i am not ablt to set these details in PR.
    I tried using method SET_TEXT but nothing works.
    Please suggest.
    Thanks & Regards,
    Tarun

    Hi,
    what exactly do you mean by setting agreements details? Is it one of the long texts on item level? If yes then you should be able to update long text on time level using method using method IF_LONGTEXTS_MM~SET_TEXT. I've done this before but for PO and I did not have any problems. I assume that PR and PO are really similar. Which BADI method do you use to update items?
    Cheers

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

  • EXIT/BADI  for enhancing the output of the transaction S_ALR_87013532

    Hi,
      greetings to all!! I have a problem here guys-I need to find any exit or badi for enhancing the output of the tcode S_ALR_87013532.This tcode is used for seeing the planned/actual/variance of project cost.
    In  the output we have got 3 columns-total of years, previous years and 2009. Under each column we have Plan, Actual, Variance and VAR %. Our requirement is to show Functional Location(PRPS-TPLNR), Budget Number(TCN01-SWRT0), SBU (TCN01-SWRT1) and Region (TCN01-SWRT2) in each of the clolumns-you can also get the last 3 fields in PRPS table as USR00, USR01 and USR02.
    Can anyone help please?could not find anything worthwhile on SDN. Thnx  a lot !

    Hi,
    Check   these User-Exits..
    Exit name  Short text
    KAHFEX01  Selection data for commercial reporting in PS
    KAP10001  PS: Hierarchy Reports for Projects
    KAP60001  PS: Export Project Key Figures into R/3 EIS
    Also check the BADI
    WBS_USER_FIELDS_F4
    Regards
    Raghu
    Edited by: Raghavendra  Rao G on Sep 2, 2009 12:26 PM

  • Exit or routine or BADI for save the sales order

    Exit or routine or BADI for save the sales order.
    Please give your input Asap.
    Thanks & regards,
    Vinayak More.

    Hi Vinayak,
    please go through the steps and u will be able to find BADI of any transaction.
    &*************Reward point if helpful**************&
    BADI Info:
    Method 1:
    Go to Tranaction: SE24.
    open class CL_EXITHANDLER
    Open the method " GetInstance"
    Put Break point in the statement
    call method cl_exithandler=>get_class_name_by_interface
    Now execute the Transaction which you need teh BDC it will automatically stops at the the method. In debugging mode double click on the variable: " exit_name" It will return the BADI Name.
    Method 2:
    find the Package name and go to the tranaction SE84.
    Enter the package name
    inside the left navaigaiton panel there is one option " Enhancements" click on this enhancement and then enter the package name and execute it. you will get hte number of enhancement.

Maybe you are looking for

  • Can't see pricing options for Creative Cloud. :'(

    Two things, Adobe: 1. When I try to click the "See All Plans" button on this page (Cloud-based software and services for creatives | Adobe Creative Cloud) I'm taken to a blank page (except for the unhelpful footer). The error console on my browser sa

  • What's the optimum buffer size?

    Hi everyone, I'm having trouble with my unzipping method. The thing is when I unzip a smaller file, like something 200 kb, it unzips fine. But when it comes to large files, like something 10000 kb large, it doesn't unzip at all! I'm guessing it has s

  • How can I stop deleted mail 'reappearing' in inbox?

    I have email [email protected] set up on my mail app on iphone 3gs iOS 4.2.1. I have a small but annoying issue where I read and delete messages from my inbox but next time I check my mail they have reappeared as new unread messages. I have to delete

  • Bought a new computer running windows 8.1 and it will not allow me to install all in one lexmark printer.

    I have this lexmark printer running on 3 other computer, windows 7 and windows xp, but in 8.1 I get a message saying incompatable. What is really going on? 

  • Upgrade causing problems and still no extra speed

    Hi BT Apparently my area had the fast broadband updated within the last few weeks but still mine is usual rubbish speed plus I have had quite a few disconnections lately with the hub lights going out. I have been promised time and time again that thi