Which table contains both company code and Plant

HI,
Which table contains both company code and Plant?
which table contains Purchase requisition number and Company code?
Please help me.

plant and company code <b>marc</b>
MANDT     MANDT     CLNT     3     0     Client
MATNR     MATNR     CHAR     18     0     Material Number
WERKS     WERKS_D     CHAR     4     0     Plant
Purchase requisition number and Company code in <b>ekpo</b>
MANDT     MANDT     CLNT     3     0     Client
BANFN     BANFN     CHAR     10     0     Purchase requisition number
reward fi usefull

Similar Messages

  • Where can I find the relation between company code and plant?

    where can I find the relation between company code and plant?
    I need to the list of plants under a company code.
    Which table?

    yes,wayne weng   .What you said is right.
    Thank you very much!
    My MSN:[email protected]

  • Function Module to get Company code and Plant on the basis of infotype and pernr

    Hi Experts,
    I need to know the function module which will return company code and plant based on infotype and pernr(employee Number).
    Thanks,
    Salil Bagchi

    I think thats the only way
    CALL FUNCTION 'CU_READ_RGDIR'
        EXPORTING
          persnr          = p0001-pernr
        TABLES
          in_rgdir        = it_rgdir
        EXCEPTIONS
          no_record_found = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    check whether "Pay date for payroll result" with in Start Date and
                  End date, and "Reason for Off-Cycle Payroll" is initial
      LOOP AT it_rgdir WHERE paydt >= v_begda
                             AND paydt <= v_endda AND
                             void IS INITIAL
                             AND ocrsn IS INITIAL
                             AND srtza = 'A'.
        v_seqnr = it_rgdir-seqnr.
    ENDLOOP.
    Hope this helps.
    Thanks
    Kiran

  • PO creation-ME21n-Why SAP does not check company code and Plant relation

    Hi All,
    Does someone know, why SAP does not check Plant and company code relation at the time of PO creation or how can we put validation between plant and company code at the time of PO creation.
    <b>Example:</b> Suppose i have a company 0001 which is assinged to Plant 0001. when i am creating a PO with another company code 0002(Entering at header level-Org, data) and using Plant 0001 at line item level. SAP does not do this validation.
    How can we put this check in place?
    Thanks in advance.
    Deepak

    Hello Deepak,
    There are three types of purchasing
    - Company code specific :You need to assign company code to Pur organization
    - Plant specific : You must assign plant to pur organization
    - Cross company purchasing: No assignment between company code and pur organization.
    In the case 3, the system will not check company code and plant relationship, but it will check plant and pur organization specific.
    The following is the copy of sap help text:
    You can assign a purchasing organization to one company code. This is company-specific purchasing.
    You can assign a purchasing organization to no company code. This purchasing organization can then procure for all plants assigned to it, irrespective of the company code to which the plant belongs.
    Since each plant must be assigned to a company code, the company code can be determined via the plant in each procurement transaction, even if the procuring purchasing organization is not assigned to a company code.
    A purchasing organization must be assigned to one or more plants. This is plant-specific purchasing.
    Now, check your company-code and purchase organization assignment.
    Hope this helps.
    Regards
    Arif Mansuri

  • Assignment of Purchase Organization with Company Code and Plant

    Please give me solution to Assign Purchase Organization with Company Code and Plant. While creating a material in organization level plant and purchase organization should be assigned.
    Please help me out.
    Thanks

    Hi,
    I am not sure if i have really understood your query.
    Material creation means creating master data, as far as creation and assignment of organization elements with other organizational elements are concern for eg : purchase org in you case is part of standard configuration.
    You create Purchase org using t-code OX08 here you copy from and existing one and then chane the description of Pur org as per your requirement.
    You assign Purchase Org using t-code OX01 to company code assignment, t- codeOX17 for plant assignment to Purchase Org.
    Normally you do all your changes in Devlopment server save the changes in an transport request then move it to quality and production enviornment.
    Hope this helps.
    BR

  • Creating order with out Company code and plant - just for pricing -possible

    Hi gurus
    Just for creating sales order (let us say no delivery and no billing, client was not intrested in the initial setup) for just pricing thing, does we really need Company code and plant. with out that just with sales org setup(sale org+D.C) can I create an order to full fil the pricing scenario.
    Please I need help on this
    Thanks
    Kris

    hi kris,
            we cannot create a order with out company code and plant , due to the following reasons
          we do not require the company code to create the order , but we require the plant to create a material and use it in the sales order .and we require a company code to create a customer .
    the pricing procedure is determined depending upon the sales area(sales org+distribution channel +division).
    please reward the points if it is helpful
    Regards,
    Murali

  • Company code and plant should get defaulted from PO Document Type

    Dear All,
               We have three company codes 1000 ,1010 ,1020 .We have three purchase document types.NB,NB1,NB2.My requirement is if the user selects document type NB system should automatically take company 1000 and plant 1000 .Same is the requirement for other 2 documents . Is there any settings from which we can achieve company code ,plant getting defaulted according to document type ?
    Thanks & Regards
    Abhijit Das

    Dear,
    Ask your Abaper to write code in GUIXT scripts....
    There if you select particular document type then by default in PO it will popup your plant and company code.
    The above mentioned functionality we do not have in our current projetc, but related tho this we have done it by using the same scripts.
    Try def it will work.
    Regards
    Utsav

  • Company code and  Ship-To Party: variable values should be dynamic

    Hi,
    We have queries where we have  Company code & Ship-To Party as Variable parameters.
    While executing the report the user has to give the Variable values for both company code and ship to party.
    But when they give the company code.....in the next parameter ship to party, it has to offer values which belongs to that company code only. But here it is offering all values form ship to party., where user don't want to see the value from other company code as they have lot of values there which is causing inconvenience to the user.
    Kindly suggest me how to restrict the values at variable level.
    Thanks & Regards,
    Anand

    Hi,
    You can do that using BADI BW_BADI_F4 .
    You can use this BAdI to restrict input help for entry variables in the BI variable screen.
    Create a separate implementation for each required InfoObject.
    The BAdI is designed for multiple use.
    Restricting input help without using hierarchies
    To restrict input help for flat object lists without using hierarchies, use method Get_Restriction_Flat.
    Method GET_RESTRICTION_FLAT
    I_VNAM Variable
    I_IOBJNM InfoObject
    I_T_VAR_RANGE Table of entries on the variable screen
    I_T_COMPID Table of participating queries
    C_T_RANGE Range table with other restrictions
    C_INFOPROV InfoProvider
    C_F4_Mode F4 mode
    Entry parameters I_VNAM and I_IOBJNM return the names of the variables and the InfoObject that F4 helpwill be affected for. I_T_VAR_RANGE returns additional values from the variable screen entered beforethe call. These are returned in a range table that does not, however, return any information about variables that cannot be entered. I_T_COMPID is a list of participating BI queries.
    If there is a single InfoProvider, entry and return parameter C_INFOPROV contains the InfoProvider forthe participating queries, and can be overwritten in the implementation. Especially when you have justone MultiProvider, this allows you to restrict the input help to one of the physical InfoProviders ifyou also set the F4 mode to u201CDu201D (input help from dimension tables). The mode can onlybe set to u201CDu201D in conjunction with physical InfoProviders, as dimension values are otherwisenot available. If you reference to a VirtualProvider that is based on a data transfer process, you always need to set mode u201CMu201D (input help from master data)
    Return table C_T_RANGE is a range table of additional restrictions that can be used in the implementation.These restrictions are identical to restrictions that the system makes in the standard setting. It is therefore not possible to add to the list.
    The following restrictions are permitted in C_T_RANGE:
    u2022Restrictions for InfoObject I_IOBJNM itself (for example using a specified range)
    u2022Restrictions to groups of InfoObjects (for example restriction of the fiscal year variant for fiscal years)
    u2022Restrictions by the InfoObjectu2019s navigation attributes.
    For technical reasons, pure display attributes cannot be used.
    You can also make a restriction to physical InfoProviders. In this case, the input help is restrictedto the specified physical InfoProviders. Field IOBJNM in table C_T_RANGE then has to be set to 0INFOPROV.In the case of a MultiProvider using physical InfoProviders with mode u201CDu201D (input help from dimension tables), the input help is built from all participating physical InfoProviders.
    Entry and return parameter C_F4_MODE describes the retrieval method for the F4 help:
    u2022In mode u201CMu201D, the input help is built from the master data.
    u2022In mode u201CDu201D, the input help is built from the dimension tables of physical InfoProviders.
    The choice of method is therefore always dependent on the choice of InfoProvider.
    Restricting input help using hierarchies
    To restrict input help for flat object lists using hierarchies, use method Get_Restriction_Node.
    Method GET_RESTRICTION_NODE
    I_VNAM Variable
    I_IOBJNM InfoObject
    I_T_VAR_RANGAE Table of entries on the variable screen
    I_T_COMPID Table of participating queries
    C_T_HIERARCHY Table of possible hierarchies
    C_T_NODE Table with node restrictions
    C_INFOPROV InfoProvider
    C_F4_Mode F4 mode
    On the whole, this method is the same as method GET_RESTRICTION_FLAT. Instead of a C_T_RANGE, the additional node restrictions can be submitted using table C_T_NODE.
    C_T_HIERARCHY contains the hierarchies that can be used based on the existing query restrictions. Ifthis table contains multiple entries, the system uses the first hierarchy in the standard setting. In a BAdI implementation, specific entries can be removed in order to select the required hierarchy.
    Table C_T_NODE can be filled with individual nodes in order to restrict the hierarchy to the corresponding subtrees.
    All other parameters are the same for Get_Restriction_Node as described above for method Get_Restriction_Flat.
    For more information about implementing BAdIs for the enhancement concept, see the SAP Library for SAP NetWeaver, under BAdIs u2013 Embedding in the Enhancement Framework..
    Regards,
    Durgesh.

  • Company code and Profit center is not mandatory

    Hi,
    My requirement is that i wish to make the company code and profit center is not mandatory., ie greyed out. This i want while creating the project. I have assigned the controlling area in the project profile. but when i save the project i am getting the error as " Enter the company code".  I made changes in field selction for project definition screen group - both company code and profit center are in display mode. This i did it with regard to Project profile. In project builder screen it is greyed out. but asking for company code.
    Is it possible to make it for both? When i tried with Profit center alone, i am not getting any error. Whether company code is mandatory while creating project or anyway can we avoid company code?
    Please throw your views
    Thanks
    Sankar

    Hi,
    You can try in the following way:
    SPRO->Project System->Structures->Operative Structures->WorkBreakdown Structures->UserInterface Settings->
    Define Field Selection for WBS:
    Step1: Double CLick on "Field Selection: Project Definition"
    Step2:Click on "Influencing" button on the Application Tool bar.
    Step3:Double click on "Project Profile" line Item
    Step4:Against to Contents field- choose the relevent Project Profile (F4 search option) and then enter.
    Step5:Now here try to choose Company Code Fieled and make it as "Hide"
                        Profit Ceneter Field and make it as "Hide".
    Step6: Save the changes.
    Step7:Check with your Project.
    And Pl. let me know the result.
    Vemula

  • Determine company code and location (plant) w.r.t., cost center

    Hi,
    How could i determine company code and location based on given cost center. Could anybody please let me know if any table or function module is available to get this.
    Thank you

    Hi,
    As mentioned above im using META_READ_TABLE FM to get company codes from CSKS table of ECC. Below is the code im using:
       DATA:i_opt type STANDARD TABLE OF RFC_DB_OPT, i_fld type STANDARD TABLE OF RFC_DB_FLD,
           i_res type STANDARD TABLE OF TAB512.
    Constants:   c_expr(72) TYPE c VALUE 'KOSTL EQ COST_CTR', c_fld(5) TYPE c VALUE 'BUKRS'.
      w_opt-text = c_expr.
    w_fld-FIELDNAME = c_fld.
    append: w_opt to i_opt,
            w_fld to i_fld.
    data i_control type STANDARD TABLE OF BBP_CONTROL_RECORD.
    **&&--Get Co code from ECC (CSKS table)
    CALL FUNCTION 'META_READ_TABLE'
      EXPORTING
        QUERY_TABLE          = c_table
    *   DELIMITER            = ' '
    *   NO_DATA              = ' '
    *   ROWSKIPS             = '0'
    *   ROWCOUNT             = '0'
        LOGICAL_SYSTEM       = v1_logsys
      TABLES
        OPTIONS              = i_opt
        FIELDS               = i_fld
        DATA                 = i_res
        CONTROL_RECORD       = i_control.
    however it is giving me 'Communication Error' while executing this piece of code. I guess the problem here is with table i_opt which is holding logical expression. while calling this fm system is not recognizing logical expression 'KOSTL EQ COST_CTR'. Could anybody has any suggestion for this. please advise.
    Rgds

  • How to find out Company code from Plant in BW

    Hi,                                                      This is probably a very basic question.                                 
    In one of my ODSs, I have 0PLANT infoobject but do not have the Company Code. I thought 0COMP_CODE should have been an attribute of 0PLANT. But it is not and I am NOT finding anyway to derive the company code from the Plant code.                              
    I guess I can change my datasource to get that value but thought the Plant-->Company Code link is one of the most basic things in SAP R/3.    
    I cannot imagine it can be missed in the Business Content design by SAP.  
    So thought I would check with you to see if my expectation is correct.    
    If not, what might have been the reason behind the exclusion of the link between Plant and Company Code from the Business Content.                                                                               
    Thanks and regards,                                                       
    Atul Kulkarni

    Hi,
    we are running RETAIL and by design:
    a plant (0PLANT ) belongs to a sales organization (0SALESORG attr of 0PLANT) which belongs to a company code (0COMP_CODE attr of 0SALESORG)
    this defines a unique comp_code for a plant.
    You can therefore put the following two fields in an internal table of a start routine
    SELECT pPLANT sCOMP_CODE
    INTO CORRESPONDING FIELDS OF TABLE lt_internal
    FROM /BI0/PPLANT p
    INNER JOIN  /BI0/PSALESORG s ON sSALESORG = pSALESORG
      AND sOBJVERS= pOBJVERS
      AND s~OBJVERS = 'A'.
    and look it up in your IObj routine.
    In R/3 that's true WERKS (T001W9 belongs to a BWKEY (T001K) which belongs to a BUKRS.
    hope that helps...

  • Which table contains - FI Document Changes?

    Team,
    Which table contains - FI Document Changes?
    Please be specific; For example:
    CDHDR:
    OBJECTCLAS ?
    CDPOS:
    BJECTCLAS?
    ABNAME  
    ABKEY      
    HNGIND  
    Thanks

    Hello
    The OBJECTCLAS is BELEG.
    Use FM CHANGEDOCUMENT_READ_HEADERS
    with objectclass = 'BELEG'
         objectid  = (concatenate client + company code + doc no + fiscal year)
    Then loop at the header and use FM
      CHANGEDOCUMENT_READ_POSITIONS
    to get the CDPOS values
    Hope this helps
    Shounak
    Message was edited by: Shounak Mukherjee

  • Can you  tell me  relationship between company code and shipping document

    how to make the relationship between shipping document with company code .
    i have selection criteria which having company code and shipping no.
    but i am not able to make relationship, so please find and tell me the relationship table structure
    Regards,
    Siva

    Hi Siva,
    Read table TVKO to get the sales organizations (field VKORG) for the company code (BUKRS). This query might result into multiple VKORG entries.
    Read deliveries (LIKP) with VKORG as input to get all deliveries for the sales organziation.
    Regards,
    Frank Umans

  • Reg Tax Codes and Plants

    Hi Gurus,
    1) I am creating a PO. It doesnt have a Material as it is a text req converted to PO. I am having 10 plants which uses various Tax codes which will auto populate according to the plants. Now my requirement is i want to populate a tax code (XX) for 8 plants i am using and (YY) for 9th Plant and (ZZ) for 10th Plant.
    I dont have a material number. But i am having a Vendor Number, a Plant. We are not creating the PO's manually. This will be done by a Batchjob, so manually entering is also not possible.
    2) Also i want to overwrite the Tax code which is populating automatically with the Tax code from PIR. Please advice where we will be maintaining the Config for Tax Code and Plant/Company code.
    Please advice on this issue and how to proceed further.Thanks for your help in advance.
    Thanks,
    Sakkithyan

    Hi,
    If you want to default the tax code in the purchase order then create info record using transaction ME11..
    If you want to default tax code in MIRO then do it using transaction OMR2..
    Regards,
    Chintan Joshi

  • How to calculate no.of records for a specific company Code and Transaction

    Hi All,
    Could you please help me how to calculate or count no.of records, in a table which are having a specific Company Code and Transaction Code and populate  in an output table displaying that these many records are present for this company code and Transaction code.
    The table is having the data like this:
    LOB   TRAN CODE    COUNT
    X1                             1   
    X1                              2   
    X1                              3   
    X1                              4   
    F1   NB                      5   
    F1   NB                     6   
    F1   NB                     7   
    F1   NB                    8   
    F1   NB                    9   
    F1   NB                    10  
    F1   NB                    11  
    F1   NB                    12  
    F1   NB                     13  
    F1   NB                     14  
    F1   NB                     15  
    F1   NB                     16  
    F1   NB                     17  
    F1   NB                     18
    F1   NB                    19  
    F1   NB                    20  
    F1   NB                   21  
    F1   NB                   22  
    F1   NB                   23  
    F1                          24  
    F1                         25  
    F1                         26  
    F1                         27  
        In the above table there are totally 27 records,where as the no.of records with F1 as company code and NB as transaction code are 18..so i have to display like F1 NB and 18 as one record as output.
    Thanks and Regards,
    Johny

    You can go for Control Breaks for your requirement.
    First sort the internal table by company code and transaction. Declare a counter variable.
    Now loop the internal table and increment the counter variable. within the loop use AT END OF tcode.......ENDAT. Within the control break append the counter variable as well as the company code and tcode to some other ITAB and clear the counter.
    This will give you the total number of records for a combination of co code and tcodes.
    This will be a good reference for your requirement. What I am doing here is, for each Vendor i am calculating total number of deliveries and amounts for that vendor. For every new vendor i am writing the ouput on to a list and clearing the counter variables.
      LOOP AT t_vend_prod_grp INTO fs_vend_prod_grp.
        w_total_delv = w_total_delv + 1.
        w_total_amt = w_total_amt + fs_vend_prod_grp-dmbtr.
        AT NEW matkl.
          w_mat_grp = fs_vend_prod_grp-matkl.
    * To display the material group and the header texts for the data
    * grouped by material group and vendor.
          SKIP 1.
          WRITE:  text-mtk  COLOR COL_HEADING
                                  INTENSIFIED,
                / w_mat_grp COLOR COL_NORMAL
                                  INTENSIFIED OFF.
          SKIP 1.
          FORMAT COLOR COL_HEADING ON INTENSIFIED.
          ULINE  1(54).
          WRITE:/ sy-vline,
                2 text-ven,
               12 sy-vline,
                  text-dlv,
               26 sy-vline,
               38 text-amt,
                  sy-vline,
               46 text-cur,
               54 sy-vline.
          ULINE /1(54).
          FORMAT COLOR COL_HEADING OFF INTENSIFIED.
        ENDAT.                             " AT NEW MATKL
        AT END OF lifnr.
    * To display the actual data for the grouping based on Material group
    * and Vendor.
          FORMAT COLOR COL_NORMAL ON INTENSIFIED OFF.
          WRITE: / sy-vline,
                 2 fs_vend_prod_grp-lifnr COLOR COL_KEY,
                12 sy-vline,
                   w_total_delv,
                26 sy-vline,
                   w_total_amt CURRENCY text-usd,
                   sy-vline,
                46 text-usd,
                54 sy-vline.
          FORMAT COLOR COL_NORMAL OFF INTENSIFIED OFF.
          CLEAR: w_total_amt,
                 w_total_delv.
        ENDAT.                             " AT END OF LIFNR
      ENDLOOP.                             " LOOP AT T_VEND_PROD_GRP

Maybe you are looking for

  • An issue with authentication and authorization on ISE 1.2

    Hi, I'm new to ISE. I have an issue with authentication and authorization. I have ISE 1.2 plus patch 6 installed on VMware. I have built-in Windows XP supplicant and 2960 cisco switch with IOS c2960-lanbasek9-mz.150-2.SE5.bin On supplicant I use EAP(

  • How to allow a user to select an instrument from a group and use that VI?

    Hi All, In a previous application I wrote using Agilent VEE I created a Configure Equipment and Initialise Panel for the user to select for example a signal generator from a drop down list of different types, and when initialised the functions for th

  • Multiple orders scheduling in one screen - Revisions.

    Hi, Is it possible to schedule multiple orders in one screen using network graphics? Scenario is: in day to day operations we create maintenance orders and plan operations with its duration. after planning, if it requires more down time than permitte

  • System maximum max extents....

    Hi, I need a clarification about the System maximum max extents... The oracle doc "Error messages" about The error code and message "ORA-01631: max # extents (string) reached in table string.string" points out as action: "If maxextents is less than t

  • Need of badis?

    Hi Friends what is the need of badi BBP_SAPXML1_OUT_BADI and BBP_SAPXML1_IN_Badi in MM-XI-SUS scenario. what operations are possible with this badi Regards Micheal