Block/Delete Vendors by Company Code wide

Hi Guru's
We have got requirement to block/delete unused vendors in company code wide automatically or thru customised program. We have FK05 and FK06 to block&delete vendors. I triend updating LFB1 table using VENDOR_UPDATE Function module.
Below is the code used In my program.
IT_LFB1 = List of Vendors.
LOOP AT IT_LFB1 INTO WA_LFB1 .
WA_LFB1-SPERR = 'X'. " Block Vendor
WA_LFB1-LOEVM = 'X'. " Deletion Flag for all areas
WA_LFB1-NODEL = 'X'. " Deletion flag for general data
CALL FUNCTION 'VENDOR_UPDATE' IN UPDATE TASK
EXPORTING
I_LFB1 = WA_LFB1.
IF SY-SUBRC = 0.
COMMIT WORK.
ELSE.
Endloop.
But since this FM is not checking any authorisation to block/delete vendor. Could you please let me know how I can go ahead for this requirement either through BAPI which exactly perform like FK05/FK06. Looking forward with your suggestions.
Thanks in advance..
Shreyansh.

Thanks a lot Keshav..
Please help me..I have done coding as below for calling MAINTAIN_BAPI.
i_IS_MASTER_DATA-VENDORS-HEADER-OBJECT_INSTANCE-LIFNR = WA-LIFNR.
i_IS_MASTER_DATA-VENDORS-HEADER-OBJECT_TASK = 'U'.
i_IS_MASTER_DATA-VENDORS-COMPANY_DATA-CURRENT_STATE = ''.
i_IS_MASTER_DATA-VENDORS-COMPANY_DATA-COMPANY-TASK = 'U'.
i_IS_MASTER_DATA-VENDORS-COMPANY_DATA-COMPANY-DATA_KEY-BUKRS = WA-LIFNR.
i_IS_MASTER_DATA-VENDORS-COMPANY_DATA-COMPANY-DATA-SPERR = 'X'.
i_IS_MASTER_DATA-VENDORS-COMPANY_DATA-COMPANY-DATA-LOEVM = 'X'.
i_IS_MASTER_DATA-VENDORS-COMPANY_DATA-COMPANY-DATAX-SPERR = 'X'.
i_IS_MASTER_DATA-VENDORS-COMPANY_DATA-COMPANY-DATAX-LOEVM = 'X'.
      CALL METHOD G_VMD->MAINTAIN_BAPI
      EXPORTING
        IV_COLLECT_MESSAGES  = 'X'
        IS_MASTER_DATA = i_IS_MASTER_DATA.
is this correct..?..I am getting syntax errors in this..pleas help.

Similar Messages

  • How to get vendor and company code based on logistic invoice document

    how to get vendor and company code based on logistic invoice document in abap/4?

    Hello Kumar
    When you call BAPI_INCOMINGINVOICE_GETDETAIL using
    INVOICENUMBER = <number of invoice>
    FISCALYEAR = <fiscal year>
    the returned HEADERDATA contains what you are looking for:
    HEADERDATA-COMP_CODE
    HEADERDATA-DIFF_INF
    Regards
      Uwe

  • Deleting currency from company code

    hi Guys,
    I would like like to delete currency from company code. I have tried to delete it through IMG but i am being given the following error:-
      Cannot delete currency because it contains   transaction  data.
    May you please show how i can delete the currency on company code if possible.
    Best regards.
    Stitch

    hi,
    you cannot delete your currency from comp.code.
    if you've a curr-conversion ask your SAP consultant / OSS
    Andreas

  • "No amount authorization for customers/vendors in company code" error

    Hi gurus,
    When I try to post casj journal entry in FBCJ below mentioned Error showing please help
    I create Business Transactions ( Revenue and Expenses) in FBCJC2
    Defined no. range in FBCJC1
    Tolrance group for OBA3 created 1 entries blank
    and
    When I post a F-43 (purchase Invioce) same comment showing
    "No amount authorization for customers/vendors in company code "
    Thanks
    Srinath

    Hi Srinath,
    Check with the following thread can help you:
    No amount authorization for customers/vendors in company code 123..
    Also
    You might want to check the following:
    Configure Vendor-Specific Tolerances
    Define Tolerance Groups for Employees
    Define Tolerances (Customers)
    Search SPRO for these and you will find what you need.
    Kind Regards,
    Fernando Evangelista

  • During MIRO"No amount authorization for customers/vendors in company code "

    Hi All,
    When I am doing MIRO the system is throughing message
    "No amount authorization for customers/vendors in company code Z114
    Message no. F5155
    Diagnosis
    No amount authorization for customer/vendor line items has been specified in company code Z114 for the user group to which you are assigned.
    Provided that you are not explicitly assigned to a user group, the amount authorization to the group blank (" ") is valid.
    Procedure
    If you entered the correct company code, initiate the maintenance of tables T043 (user groups) and/or T043T (company code authorizations)".
    Please  tell me procedure and steps to solve this issue.....
    Thanks&Regards,
    chand

    Hi All,
    the problem didnt solve,
    please tell me the steps to solve the issue...
    hope to hear from you all.........
    Thanks&Regards
    chand

  • MIRO Error- No amount authorization for customers/vendors in company code

    Hi Friends,
    While creating Invoice (MIRO), when I enter amount at Header level, I faced below error.
    No amount authorization for customers/vendors in company code  XXX.
    Message no. F5155
    Please help to know how to rectify this.
    Regards, RAMAN.

    HI
    My problem  is not solved please guide me
    No amount authorization for customers/vendors in company code xxxx
    Message no. F5155
    Diagnosis
    No amount authorization for customer/vendor line items has been specified in company code xxxx for the user group to which you are assigned.
    Provided that you are not explicitly assigned to a user group, the amount authorization to the group blank (" ") is valid.
    Procedure
    If you entered the correct company code, initiate the maintenance of tables T043 (user groups) and/or T043T (company code authorizations).
    Regards
    Krishna

  • IV Error No amount authorization for customers/vendors in company code IN01

    Hi Friends,
    I am getting an error "No amount authorization for customers/vendors in company code IN01"while doing MIRO.
    Please help to resilve this.
    Regards,
    Ram

    Hi,
    Check in SPRO > MM > Logistics Invoice Verification > Authorization Management > Define Tolerance Groups > Here check the Tolerance Group for Company Code and also the amount
    If it is not assigned then copy it from Company Code "0001"
    Check in SPRO > MM > Logistics Invoice Verification > Authorization Management > Assign User Tolerance Group > Here check the Tolerance Group assigned to User

  • Error - No amount authorization for customers/vendors in company code

    Hi All,
    I'm new to SAP MM. This question has been posted many times but the suggested solutions are not working for me.
    Whatever i'm doing related to amounts (either while invoicing through FB60 or while creating down payment request through F-47), I'm getting error "No amount authorization for customers/vendors in company code".
    I have already tried following solutions -
    1.) Created tolerance groups and assigned to company code via tcode OBA3
    2.) Gone to SPRO and assigned 2 tolerance groups to company code (one blank and one created above in Step-1)
    3.) Assigned user-id (as in SAP system) to the respective tolerance group.
    Still I'm getting below error.
    Any inputs on this issue are welcome.

    I dont really know why you mentioned that you are new to MM, as this is related to FI.
    the error message has number  F5 155, the F in the beginning or hte error message number already mentions that it belongs to FInance
    If you use SE91 and lookup the where-used list  for this number then SAP will show you a few programs, in the detail you can see that SAP checks table T043T
    if you then use SM30, enter T043T and click customizing, then SAP takes you to the customizing knot to maintain this table.
    which is: IMG > Financial Accounting > Financial Accounting Global Settings > Document > Line Item >
    ....Define Tolerance Groups for Employees
    ....Assign User/Tolerance Groups

  • No amount authorization for customers/vendors in company code 6666

    Hi
    I have made settings in table T043t.but still getting the same error"No amount authorization for customers/vendors in company code 6666"
    Please help me out.
    regards

    Hi,
    Please check the following configuration.
    OBA4  Define Tolerance Groups for Employees
    OB57    Assign Users to Tolerance Groups
    Cheers!!
    Andy

  • No amount authorization for customers/vendors in company code 123..

    hi.. frnds..
    While doing MIRO, am getting this error: No amount authorization for customers/vendors in company code 123..
    can any one resolve this...
    thanks in advance...
    Regards.
    Raghav.KH

    Hi Raghav,
    Use following path,
    SPRO-  Financial Account ()New )   -
    Financial Account   Globlal  settings- Document -   Tolerance Groups -
    ---  Define Tolerance Groups for Employees   and  Assign User/Tolerance Groups
    This should solve your problem
    Thanks and regards
    Gitesh
    Edited by: gitesh mahamuni on Aug 31, 2009 7:17 AM

  • No amount authorization for customers/vendors in company code

    When I am posting transaction in F-43, i am getting below error
    "No amount authorization for customers/vendors in company code "

    Hi:
    You have to maintain configuration for table T043T (by company code)under transaction SPRO:
    In the future if the error message references a table use th following menu path as a short cut.
    System> Services> Table Maintenance> Extended table maintain=2 Then type in the table name (I.e., T043T). Click on customizing customizing with or without your project. A list will pop up=2 Select the appropriate one and double-click on the item you wan to configure.
    Please let me know if you need more information.
    Assign points if useful.
    Regards
    Sridhar M

  • No amount authorization for customers/vendors in company code VFCN

    Hi,
    When i check Invoice verification, getting this error : " No amount authorization for customers/vendors in company code VFCN "....
    B'cos of this i am not able to post the invoice, where can we set configuration?
    Regards,
    Srinivas.K

    Hi
    Please check the following navigation
    SPRO --> MM --> LIV --> Authorization management --> define tolerance group and Assign user tolerance group
    or
    Tcode OMRB and OMRC
    Regards
    Ramakrishna

  • Blocking Vendors on Company Code level

    Hi,
    Our Purchasing Organization has multiple Company Codes. Is it possible to block certain vendors for a Particular company code without affecting the other company codes which might be using that vendor??
    What exactly we are trying to do is block all future Purchase orders & Requisitions from being created for a list of Vendors for one company code. We do not want it to affect other Company codes within the same Purchasing Org which might be using the same suppliers.
    I know about XK05 but I think it puts a "Purchasing block" at the Purchasing Org level only and not on the Company code level. Is there any way to achieve this??
    Your inputs are really appreciated.

    Hi Martin,
    If you want to Block the Vendor for a Particular Purchase Organization and Company code then Go to XK05 and Select Vendor Pur Org and Comp Code and in Posting Block tab Activate for Selected Company code and in Purchasing Block tab Activate for Selected Purchase Organization and Save.
    Before this you need to set the following to Error.
    SPRO-MM-Purchasing-Environment data-Define attributes for System messages
    ME 023 Vendor & blocked for purchasing organization &
    ME 024 Vendor & flagged for deletion
    ME 025 Vendor & flagged for deletion for purchasing organization &
    For XK05 Message ME 023 would work.
    Regards,
    Nani.

  • Report for vendor across company code

    Hi,
    We want to have a report which include the vendor name along with its transaction total and net balance. Will also need to have the overall view of the vendor for all company codes, as many of our company codes purchases from the same supplier.
    Regds,
    Bhavesh

    Hi,
    Please check the report S_ALR_87012082.
    At the end you will also find an output option as "Total from All Company Codes". You can have a cross company code view there.
    Regards,
    Gaurav

  • Relation b/w vendor and company code

    hi,
        i m working on vendor details report, where i wanna select vendor on the comany code parameter.
    but i m not getting any relation b/w bukrs n lifnr so plz help me if u no anything regarding this.
    this is very urgent.
    thanks in advance
    marks will be sure.
    regards
    vijay

    Hi Vijay,
    LFB1 is vendor master data (company code)
    this gives the 1 to 1 relation between a vendor and a company code..
    to select the vendor based on company code
    SELECT lifnr
    FROM knb1
    INTO TABLE t_lifnr
    WHERE bukrs EQ 'comp code value'
    Thanks and Best Regards,
    Vikas Bittera.
    **Reward if useful**

Maybe you are looking for

  • Direcrt GL account activation restriction to specific PO's

    Dear All, We have activated the direct GL account posting(G/L account tab), which tab appears in MIRO. Can we restrict this GL account tab appearence for specific PO types only? Please suggest the possibilities. Regards

  • Installtion Labview RT on PXI Controller

    We have a PXI Controller 8106 which is running on Windows OS. We want to run it on Real Time OS from NI. What steps I need to perform to install that. Currrently when I boot in LabView RT fron BIOS, it displays "Transferring Control to User Program.

  • Link to files and projects

    Hello! I have a problem. I make a project in Adobe Captivate 4. In one slide there is button and it's link to .exe file. When i start publishing project (to .EXE file), a message appears: "The files\projects listed below are linked to the open projec

  • Security groups naming convention in FIM 2010 R2

    Hi, I am using five security groups for Installing FIM Synchronization Service Manager the automatically pick these groups when installed the FIM Synchronization Service Manager FIMSyncAdmins, FIMSyncJoiners, FIMSynchOperators, FIMSyncBrowse, FIMSync

  • Cannot upload avi files to photoshop cc

    I've just recently started using Photoshop CC and was trying to upload an avi file to make a gif, however it kept saying that it did not support video on this version of photoshop. I use Windows 7 and my sysptems properties are: Installed Memory (RAM