How: PO company code selection?

Hi together,
when creating a PO it is not mandatory to specify the company code explicitly (at least in the environment I work with). SAP somehow determines the company code from the po data (plant? account assignment?).
Is anybody able to explain to me the exact way how SAP does select the company code for the PO? I guess how it might be done but I would really like to understand the details.
Thanks to your efforts!
kind regards,
Florian

hi,
Normally, system doesn't allow to do the PO w/o co. code....
But in you case,I think it would be coming from Vendor master data....because few of the data in it are stored at co. code level only...Other than this i don't see any other master data or ref. data which has the co. company code already defined in itself...
This you can recheck via entering the vendor ...and then enter the porg...then check whether the same co .code is flowing or not...
Hope it helps..
Regards
Priyanka.P

Similar Messages

  • SRM 7.0 company code selection for manual PO

    Dear All,
    We use SRM 7.0 and I have created a purchasing group under a central purchasing organization. This purchasing group is responsible from procurement of  two different Company Codes. I did all the assignments in responsibility tab and attributes tab under PPOMA_BBP.
    When i try to create a manual PO, I don't see any option to select the company code, either in "Overview" tab , nor in "Header" tab.
    Does anybody know or help me how to select/enable company code selection for manual PO creation ?
    Thanks in advance,
    Best regards,

    Dear Kumar,
    Thanks for the info. In my organization, there are two company codes and apart from them there is a Purchasing Org.
    All the attribute settings are done for these company codes. While creating a PO, as there is no field for Company code, system determines the company code automatically in background. (let's say Company code X). But I'm trying to create a PO for company code Y.  When I enter the cost center, I got the error "Cannot purchase between company codes".
    So how am i going to select company code Y ? How the system will determine company code Y ? Can you please give in details what must i do ??
    Thanks in advance,
    Best regards,

  • Peculiar problem in LDB ADA with company code selection

    <h5>Hello Colleagues, </h5>
    Faced a peculiar problem with company code selections in LDB ADA. Entered depreciation area, dep posting perios, lower and higher value of company code and would like to except few companies from selections. On pressing extension button, error message "Depreciation area 01 is not defined in chart of depreciation" is popping up and not allowing to provide exceptions for company codes. But working well in development systems. We are using ECC 6.0 systems and in both systems we have same lines of code for SAPDBADA.
    During debug, found that in development system, control coming to initial statements after PAI event. But in other systems, control skips few initial commands after PAI and directly jumps to later commands. Due to this FNAME parameter in PAI subroutine setting with '*' in other systems and 'BUKRS' in dev system.
    Could anybody give me some thoughts of why system behaving differently?
    Thanks and Regards,
    Prasanth

    Some - or most? - ODBC driver, especially MS for SQLServer and Access, don't support these advanced JDBC features.
    Like the messages says: they are optional features, and the driver doesn't implement them.
    A good news:
    you don't need them.
    Just go through your ResultSets only forward by next(), and do all inserts, updates and deletes with executeUpdate() and SQL commands.

  • How the Company Code determination happens in the SAP CRM

    Hi,
    Friends ,
    How the Company Code determination happens in the  SAP CRM ?
    Regards,
    VCS

    Hi VCS,
    company code is determined in the following ways,
    Sales org created in CRM is linked to Sales org in ECC, where it is diretly linked to Company code in ECC.
    Secondly, Billing units in CRM are assgned to CC, you can see this under Master data-> Cross system org units-> Biling units to CC
    Regards,
    Seshu

  • No postings can be made to profit center 3200 in company code 2000

    Hi All,
    My client is having two company codes i,e 2000 and 3000.
    2000 company code is having only one profit center i.e 2000
    3000 company code is having two profit centers i.e 3100 & 3200
    Document spliting is activated in both the company codes.
    If we want to post FI Invoice in FB60.
    First selected the companycode 2000
    Selected the vendor belonging to 2000
    Below:
    Another line item of expenses selected, one expenses GL Account
    BUT the company code selected for this line item is 3000 and selected the cost center 3200
    After saving the Error of "No posting can be made to profit cetner 3200 in company code 2000" is coming.
    I understood that it is because of First line item belonging to vendor is for 2000, so the profit center 3200 is inheriting to first line item which is not possible to post.
    If iam able to provide the profit center in the Vendor line item the problem will be solved. But there is no profit center field available in any tab of vendor items.
    I have checked the field status belonging to Posting key 31, the profit center is available which is optional, but not available while posting.
    Kindly suggest how to select the profit center for the vendor line item.
    Thanks & Regards
    shankar

    Hi,
    System picks the same profit center given in expense line item to vendor line.
    You can follow the below process:
    1. While invoicing: in co code 2000
    Dr Intercompany clearing a/c
    Cr vendor (2000)
    2. Clearing the Intercompany transactions: in co code 3000
    Dr Expense (profit center 3200)
    Cr Intercompany clearing a/c
    Please check
    Regards,
    Gangadhar

  • How to remove multiple selections button in LDB selection screens

    Hi Friends,
    I am facing a problem while doing an HR object. I took an LDB with Selection screen '100'. i got the company code select-option in it. But i need to avoid multiple selection button so that i have to take only a single company code to print the ALV heading as the company Text. Please tell me quickly, how can i do it.
    Regards,
    Santosh.

    You may have to do something like below where S_BUKRS is your company code select option of the LDB.
    REPORT  zakstest1 NO STANDARD PAGE HEADING.
    TABLES t001.
    TYPE-POOLS: sscr.
    SELECT-OPTIONS s_bukrs FOR t001-bukrs.
    INITIALIZATION.
    *-- Remove the the ranges option
      PERFORM remove_ranges_for_sel_options.
    *&      Form  remove_ranges_for_sel_options
    *       text
    FORM remove_ranges_for_sel_options.
      DATA: optlist  TYPE sscr_opt_list,
            restrict TYPE sscr_restrict,
            ***      TYPE sscr_***.
    *-- Allow EQ only
      CLEAR optlist.
      optlist-name       = 'EQ_ONLY'.
      optlist-options-eq = 'X'.
      APPEND optlist TO restrict-opt_list_tab.
      CLEAR ***.
      ***-kind    = 'S'.
      ***-sg_main = 'I'.
      ***-sg_addy = 'N'.
    *-- Make S_BUKRS range to have only EQ
      ***-name    = 'S_BUKRS'.
      ***-op_main = 'EQ_ONLY'.
      APPEND *** TO restrict-***_tab.
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
        EXPORTING
          restriction            = restrict
        EXCEPTIONS
          too_late               = 1
          repeated               = 2
          selopt_without_options = 3
          selopt_without_signs   = 4
          invalid_sign           = 5
          empty_option_list      = 6
          invalid_kind           = 7
          repeated_kind_a        = 8
          OTHERS                 = 9.
    ENDFORM.                    " rem_ranges

  • Consolidated HR report from 2 company code

    Hi ,
    How can we extract consolidated HR  report from 2 company code
    Rex

    Hi,
    What kind of report you are talking about? If it is employee master data report (Flexible employee data) then enter company codes in multiple selection dialog by clicking on the multiple selection button in front of company code selection option.
    Regards,
    Waqas Rashid

  • How to remove an selection screen element at the event

    hi,
    can any one tell me how to remove / Disable an selection screen element at the runtime after an event occurs like selection of Value from a parameter.
    Thanks and Regards
    Guhapriyan Subrahmanyam

    TABLES : BKPF.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_BUKRS LIKE BKPF-BUKRS OBLIGATORY.
    "Company code
    SELECT-OPTIONS : S_BELNR FOR BKPF-BELNR MODIF ID M01.
    "Accounting Doc No
    PARAMETERS: P_GJAHR LIKE BKPF-GJAHR MODIF ID M02.
    "Fiscal year
    SELECTION-SCREEN END OF BLOCK B1.
    AT SELECTION-SCREEN ON S_BELNR.
    IF S_BELNR IS NOT INITIAL.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'M02' .
    SCREEN-INVISIBLE = '1'.
    MODIFY SCREEN .
    ENDIF.
    ENDLOOP.
    ENDIF.

  • Prevent creation of a PO to a non company code Vendor

    Hi,
    We have had a scenario where we have been ableo to create a purchase order to a vendor that doesnt exist in that company code.  The purchase order will let you Goods receipt this also and will only cause a problem upon invoicing it.
    Since a Purchase order is considered a legal document we believe we should be able to prevent PO being saved if the vendor used does not exist in the company code selected in the PO header data. 
    I can see why sap allows it as you put in the vendor before the company code is entered but can we prevent this being saved or a message coming up on the system when this combination is entered?
    Thanks

    Hi Tracey Sparry,
    This can achieved as below.
    An organizational unit in Logistics, subdividing an enterprise according to the requirements of Purchasing.
    A purchasing organization procures materials and services, negotiates conditions of purchase with vendors, and is responsible for such transactions.
    You specify the form of procurement by assigning purchasing organizations to company codes and plants.
    Possible forms are:
    Enterprise-wide: One purchasing organization procures for all the company codes of a client - that is, for all companies belonging to a corporate group
    Company-specific: One purchasing organization procures for one company code
    Plant-specific: One purchasing organization procures for one plant
    In this way you can assig purchase orgnization to company code which is not necessary but in you case it is necessary so when you are creating vendor with purcahse org and company code it will establish link when you are creating purchase org and company code it will not not allow to proceed further it gives error that xxx vendor id not defined in company code and purchase org and stop further to save PO.

  • Customer-based BP role, Company Code level data

    System ECC 5.0.
    May be somebody can help me in a problem with Company code level data for BP.
    I'm trying to create new BP in custom Z role (created by me), on company code data screen I cannot set "Company Code Is Valid for Customer" indicator on company code selection dialog box.
    I use custom Z role with assigned custom Z rolecategory (with active BP-customer syncronizaton), It seems that there is a missing setting in SPRO for rolecategory that activate possibility to enter company code data.....

    After some investigation.... the problem was not in customising, but in some requirements from code: BP role should have the same name as s BP rolecategory. After renaming it goes.

  • F.27 - combined statement for different company codes

    Hi,
       In F.27 transaction, for sending account statement to customer, for a customer with open items in different company codes, a different account statement is generated for each company code. The business wants one statement per customer, with open items from all company codes. We have been working on a investigating a solution, but making a Z-copy of the programs and modify looks too complicated. Is there a solution in FI configuration, which leads to generation of just one account statement per customer.
    Help would be appreciated.
    Thanks
    PH

    HI
    Have you tested the statement by giving multiple company codes in F.27 in Company code selection? You have the option of selecting multiple company codes here, It should solve your problem.
    Award points if usefull.
    sarma

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

  • Relating to Creation of Number of Company Codes.

    Hi Experts,
    My Client is a Trader and he has 5 different Company Codes. Which are as follows.
    1) This Company imports Goods and Sales Locally.-It"s a properitoship
    2) This Company Exports Goods - Its a Properitoship.
    3) This Company is a shop which sells goods- Its a Partnership Firm.
    4) This Company is a shop which sells goods- Its a Partnership Firm.
    5) This Company has Group of Shops which sells goods- Its a Partnership Firm.
    In the 5th Company Case each shop can be treated as Cost Centre and Profit Centre so that the Reports can be get individually Profit-Centre wise and Consolidated.
    Any Other Alternative Solution Please advice.
    The Customer from the Third Company can even buy from Fourth or Fifth Company also, and makes the payment from whichever company he purchases. The Customer will be alloted points on all Company purchases irrespectively from which can be reedemed.
    Whether the Third, Fourth and Fifth Company can be treated as Single Company Code and each shops can be treated as Profit Centres then How about the Capital to be treated because each firm will have different Capital Amount and Assets and Liabilities.
    Any other Alternative solution please advice.
    Best Regards
    Javeed Ahamed.M

    hi,
       I had clearly explained the client requirement in the thread that as per the legal requirement the five company codes have to be seperately filed . Each partnership firms should be filed seperately because the partners are different. If combine the company codes 3,4 and 5 as a single company code and maintain the company codes as profit centers then i can get the report for each profit center. How will the capital , Liabilities and assets be maintained in the profit centers because each firm will have  different capital. The accounts will be combined for the three companies whether it is correct as per legal requirement.
    If i maintain different company code for each company code then i will have to maintain the customer from company code 3 should be present in 4 and 5 and vice versa. The customer will make the payment from which company code he purchases. But the points on purchase will be maintained and after reaching certain point he can reedeem the consoildate point  from any company if this is the scneario pls advise me how the company code structure to be maintained.

  • Cost center  & company code relationship

    Hi All,
    How many company codes can be assigned to a cost center? In Cost center master record there is an option to enter company code.
    If we mention company code there, does that mean that cost center is valid to only that particular company code?
    Thanks in advance

    Hi Reema,
    Though the Cost Center is part of Controlling Area hierarchy; Cost Center is used predominently to trace the Costs pertaining to a Company Code. In real-time scenario most often a Cost Center is assigned to One Company Code only. That is why in Field Status for Cost Center Master Data you will make assignment of Company Code a Required entry.
    Regards
    Srinivas Bandi

  • Excluding particular Company Code

    Hi Experts,
    We have Company Code as one of the selection field in the Info Package (In Data Selection Tab) . Now we need to load data Excluding one particular Company Code. Do we have any option in the Info-Package level to Exclude specific Comapny Code.
    Waiting for the Prompt response as it is bit urgent..
    Thanks in Advance...
    XYS Redd
    Regards,

    Hi Reddy,
    <b>Sample Code:</b>
    Define a structure... like
    Data : ls_range type l_t_range.
    Data : l_idx type i.
    Define a internal table for company codes.
    Data : lt_comp like /bi0/comp_code occurs 0 wiht headerline.
    --> Select company codes
    Select comp_code from /bi0/comp_code into   corresponding fields of lt_comp.
    --> Delete the company codes you dont want from this internal table.
    Delete lt_comp where comp_code = 'XXXX'.
    read table l_t_range with key
             fieldname = '<Fideld Name>'.
             l_idx = sy-tabix.
    --> To delete the existing value(if any or bland value)
    Delete l_t_range where fieldname = '<Fideld Name>'.
    --> To Create selection
    Loop at lt_comp.
    l_t_range-sign = 'I' ("Include").
    l_t_range-low = lt_comp-comp_code.
    l_t_range-OPTION = 'I'.(Inlcude)
    append l_t_range.
    endloop.
    <b>OR</b>
    If you want to exclude only 1 company code, Using range include all by creating multiple selections in the infoObject selection Tab(No need to go for the coding, Bcoz it is not changing dynamically).
    Ex: if you have company codes like 1000,1500, 2000, 3000 & 4000 and you want to exclude 3000 then
    In selection
    Comp_code : from(1000) - 2000(to)(include 1000,1500 & 2000).
    comp_code : 4000(another selection in same infopackage).
    Save the infoPackage.
    Hope this Helps
    Srini

Maybe you are looking for