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**

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

  • Looking For a relation btwn sales off and company code

    Hi SD Experts
    I have a requirement (iam an abapper) where in i need a uniqe relation between company code, sales office and bussiness place. I found a table idvkbur_bupla but this table is initial in the sap system.
    My Question is if I have a company code value(bukrs) and a businees place value(bupla or branch), can I derive a unique sales office from that?
    Help will be greatly apprecieated.
    Best Regards
    Sameer

    HI Sameer,
    a direct link you just have trough the process. For order taking its in the table VBAK (you have company code field BUKRS_VF and sales office in field VKBUR) here you have an 1:1 link
    Also in Invoice for one item you have a 1:1 link. The company code in table VBRK field BUKRS and in VBRP the field VKBUR (sales office). VBRK and VBRP are linked via the field VBELN.
    In the customizing you can have many links (1:n).
    table TVKO you have link from company code to sales organization
    TVTA you assign the possible sales areas
    TVKBZ you assign the possible sales offices for the sales areas.
    There are more tables but just some important ones.
    I hope it helps
    Regards,
    Norbert

  • Database table/FM to find relation between plant and company code in SRM

    Hi,
    I have a requirement where I need to determine the relation between the plant and company code in SRM.
    The plant and company code both belong to R/3. We are replicating the plant by using the report BBP_LOCATIONS_GET_ALL.
    This plant is now available as a BP in SRM. But from which SRM table or using which SRM FM can I get the relation between this and the company code?
    Thanks,
    Srivatsan

    Hi
    <b>Check table BBP_LOCMAP. (Plants) -  Manage Table Business Partner   > System   > Location
    BBP_COMPCODE_FAV               User-Specific Favorites for Permitted Company code.</b>
    Hope this will help.
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

  • Relation between sales organization and company

    HI,
    What is the relation between sales organization and company
    codes?
    ANY BODY SUGGEST THIS MATTER.

    hI,
    Kindly search in this forum before posting
    Re: Can you assign one sales organization to multiple company codes?
    see the above link
    Thanking you,

  • Table that gives the relation between plant and company code

    Hi gurus,
    I actually have plant number and using this plant value i need to get the company code.
    Is there any table that gives the relation between plant and company code. So,that i can get the company code details.
    Thanks in advance.

    Hi Bhanuphani,
    Use  T001K  where BWKEY is the plant
    Reward if useful
    Thanks Arjun

  • 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

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

  • Valuation at plant level and company code level

    Hi,
    Can someone explain me the difference between the valuation at plant level and company code level with a real world example?
    Regards,
    Malsha Kalubowila

    Hi,
    Inventory can be valuated at two levels either at company code level or at plant level. If you select valuation at company code level, all materials across all the plants will have same material price since valuation is at only company code level.
    Say for example Company code 1000 is buying a material which unit price is Rs. 10 from a vendor who supplies to two different plant A & B of company code 1000.  Assume Plant A is situated near vendor premises itself (so freight cost is Re 1 extra)  whereas plant B is situated at far away from vendor place (so freight cost rs 2 extra) and both cases freight cost is borne by the company and not by vendor.
    Assuming you have selected valuation at plant level, now in plant A same material will be valauted at Rs. 11 (10 +1) whereas at plant B it is valuated at Rs. 12 (10+2).
    Whereas if you have selected valuation at company code level, price will not be valuated at plant level rather at company code level which will get updated at moving average price in this case.
    So it is always best practice to select valuation at plant level rather than at company code level.
    Reg
    Karthikeyan G

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

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

  • 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

Maybe you are looking for