Retreiving plants based on company code in program

Hi all ,
     My requirement is I have 6 company codes in which there are 16 plants all together but my requirement is I need only 6 plants from them and these plants are in various company codes.
It would be helpful if someone can provide solution.
<removed_by_moderator>
Thanks & Regards
Jerry
Edited by: Julius Bussche on Aug 13, 2008 4:41 PM

Please read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting further.
If you can confirm that you have read the rules, then I will also give my answer.
Cheers,
Julius

Similar Messages

  • Search help to filter plants based on company code

    Hi folks,
                 I have to create a search help for plants based on the company code value. can I get any pointer to a search help exit for a similar requirement?
    Thanks
    Abhi

    hi abhi,
    you can create a elementary or collective search help according to your requirement. you have to define the compay code as import parameter. for more details search sdn or google....that will help you out..
    thanks and regards,
    tanmaya

  • Decimal places adjustment based on company code or currency

    Hi experts,
        my requirement is i have to adjust the decimal places in amount fields of internal table based on company code or currency given by user.
    suppose for example in my internal tables having 5 amount fields like 1.50 1.234 1.45 1.34, 1.67  for  company code is in01
    the same values for VN01 should be like this
    150 1234 145 134  167  ....
    can any body plz tell me any functional module is there to covert or abapcode?
    Thanks in advance,
    veena.

    That code is a bad idea.  Why would you hard-code that type of action for currency/amount handling?
    @poster: If the output is based on the local currency defined for the specified company code or one specified by the user, then use it.  SAP handles amount output automatically with a currency specification because the currency definition identifies where/how the decimal is output. 
    Just use WRITE as Florian indicated but  use the CURRENCY extension instead of DECIMALS.  You can do this dynamically based on the company code easily...
    A simple 3 line program shows you how this works:
    PARAMETERS: p_wrbtr type wrbtr.
    write:/ p_wrbtr CURRENCY 'USD'.
    write:/ p_wrbtr CURRENCY 'JPY'.
    Edited by: Brad Bohn on May 12, 2011 1:07 PM

  • Any option to restrict SE16 record level access based on company code?

    Hi All,
    I have a requirement to restrict record level access in SE16 based on company code.
    Our SAP system has two company codes. The requirement is that users of one company code should not be able to see records of other company code in SE16.
    Is it possible through some exits/badis/other methods?
    Thanks in advance.
    Regards,
    Arun Mohan

    You could write a small front end that accepts the company code, applies custom authorization code for each value and retains or removes, then calls the transaction and enters the selections the user requested and that your authorization check resulting in "passing"....  Of course, you'd have to block those users from "pure" SE16...   I once worked in situation similar, users in one country couldn't see USA data, etc. I think someone wrote an entire new program, called by ZSE16, for that.

  • Get pernr based on company code in logical databse

    Hi,
        When using the get pernr event, all the pernrs that I get are in the ascending order  I want them first grouped based on the company code and then on pernr.
    Any suggestions would be appreciated abd suitably rewarded.
    for ex: get pernr.
               write:/ pernr, bukrs.
             end-of-selection.
    result:   00000099 1001
              00000002 1003
    Regards
    Vick
    Message was edited by:
            vick vennav

    for ex: get pernr.
    write:/ pernr, bukrs.
    end-of-selection.
    result: 00000099 1001
    00000002 1003
    We are sending the payroll information to the 3rd party for pay check purposes, at my client side they have inserted a custom include in the standard program and populating the information in a flat file which needs to be sorted first based on company code and then on pernr. If I try to do it later,the code is becoming a mess, so I want to know is there a way to get pernr using logical database whose order is based on company code.
    Regards

  • Mass load plants to a company code

    How can I Mass load plants to a company code in SRM. The only way we know how to do this now is to load them 6 at a time in the extended attributes location section of the general attributes. can anyone help
    Edited by: John Wilson on Apr 9, 2008 11:12 AM

    Hi. Sorry for the late answer, only just found this thread while searching for something else.
    You can load 9 plants at a time a lot quicker than in PPOMA_BBP if you use PP01 and maintaining the "EBP Location" infotype 5502 then copy and paste from Excel.
    You can also CATT/ECATT this transaction, or do a call transaction from within a program.
    To maintain plants in PP01 you might have to change a setting in table T777I.
    Regards,
    Dave.

  • Need to download the data from BSEG based on company code and fiscal year

    Hi All,
              Please suggest me the solution to download the data from BSEG based on company code and fiscal year. As data in BSEG for the fiscal year2009  is 27 lakhs (= 2.7 million) for the specified company code.
    <removed>
    Thanks & Regards,
    Koti
    Edited by: Thomas Zloch on Mar 26, 2010 4:28 PM - please use English metrics only!

    May I ask what you mean by solution?  You can download from SE11, but where are you going to store 2.7 million rows and what tool are you going to use to store it?
    You probably need a (small) program that extracts what you want, then opens a dataset in an appropiate server-system folder, and transfers the data rows to the dataset as fixed-length or tab-delimited file.  It's been done many times, so suggest that you search.

  • How to determine number range for billing document based on company code ..

    Hi Friends!!
    can anybody tell me how to determine number range for billing document based on company code & tax departure country if required??
    Amit...plz help me!!

    Hi Amit,
    1. Define different Billing Document number ranges in  SPRO -> Sales & Dist -> Billing -> Define number ranges for billing docs. (VN01). Make sure that all are internal number ranges.
    e.g.
    NO.  From number To Number    Current number  Ext
    A1   0930000000    0930999999
    A2   0940000000    0940999999
    A3   0950000000    0950999999
    2. Define a Ztable ZNUMB_RANGE as follows
    Comp. Code | Tax departure country | Billing Doc Type | Number Range
    100                IN                               F2                      A1
    200                IN                               F2                      A2
    200                US                              F2                     A3
    3. In user exit RV60AFZZ (USEREXIT_NUMBER_RANGE)
    Read table ZNUMB_RANGE for Number Range with Comp. Code, Tax country and Billing Doc.
    If found pass this number range value to us_range_intern.
    us_range_intern is a standard SAP variable which tells program which number range use to create the current document which is under process.
    Let me know if you are clear.
    Thanks,
    Mandar

  • OB52 based on Company Code

    Dear All,
           As we are having several company codes and want users only to be able to open and close periods from transaction code OB52 belonging to their posting period with respect to company codes how can I restrict and allow them open & close periods based on company code repectively. Is there any process this be done.
    I tried with the notes I got from one sap-img link. But it did not work & there something is missing. Kindly if anyone have done this before send be step by step process. Awaiting for you reply...
    regards,
    Raj B...

    How about trying it this way?
    1. Remove access to OB52
    2. Create a maintenance view similar to V_T001B specific for each company.
    3. Create a TCODE for each of these views.
    4. Use this TCODE for authorization assignment.
    This should be simple but your number of views would be increasing with respect to the number of companies.
    ~Eswar

  • Gl a/c short and long text based on company code

    Hello Friends,
    In table skat the gl account description is given based on chart of accounts but what if i want the description based on company code.
    I want the table where i can get the gl account description based on company code??
    Pls suggest.
    Regards,
    Sunny

    Hi,
    you can look at the database view for requirement
    GL_ACCT_CC_TEXT
    regards\
    Mahesh

  • Stock transfer order between 2 plants in same company code

    Dear All,
    We have the requirement, where in the stock tranfer order (between 2 plants in same company code) instead of Material valuation price, MAP/Standard (depends on Price Control) gets picked up from supplying plant ,user should be able to enter its own price while creating stock transfer order.
    For fullfilling this requirement, I have created new condition type(where i have changed condition category from internal price "G" to "H" - Basic Price)
    Instead of using condition type- P101 in the stock transfer pricing,I have used above created new condition type, in pricing procedure then also while doing the post good issue against the outbound delivery( move type-"641", moving average is getting picked up.
    Can you please tell,where is the setting where we can make the system to consider manual given price while creating the stock transfer order instead of picking moving average price.
    Its very Important requirement ,please Provide valuable Inputs else provide some alternative.
    Thanks & Regards
    Nitin Chhabra

    Stock Transfer Order between Plants in the same Company Cpde are not relevant for pricing, as there is no billing. Billing only takes place between company codes. As same company code it would be like selling something to yourself - it doesn't make sense.  The stock value in the receiving Plant depends on the price contol there. If standard price, then you must enter the price when creating the material or use material revaluation to change it. When you transfer the material from the issuing plant, the value there will be transferred. In case of standard price any difference is posted to stock transfer differences. If using MAP then the value will be transferred from the issuing Plant in full.
    If you use costing with standard price in main plant, then it is possible that you can transfer the cost from the main plant to the second plant, by using special procurement key for costing.
    Rgds
    Richard

  • SKF transactional values based on company code

    Can anybody let me know the logic how we can seggregate transactional value passed to statistical key figure based on company code or is there anytable where we can direclty find SKF transactions involved based on company code ?
    Need to upload SKF transactional figures from one SAP system to another.Hence require process for extraction and uploading of the same

    Hi Amogh
    Hope you are looking for actual SKF quantities posted. kindly check s_alr_87013611 CC report, I think on the lower part this comes. This time I am not in front of system so you please check.
    Regards
    Rajneesh

  • Restriction of Tcode SQ01 based on Company code

    We are running one customized query using Tcode SQ01.  We need to restrict Tcode SQ01 in company code level.  We have checked about authorization object in st01. But there is no check of authorization object. Can anybody help to restrict SQ01 based on company code level?
    Regards
    Auroshikha

    Hi Auroshikha,
    Itu2019s very easy to maintain authorization in your Infoset Query report. I got and implemented similar requirement i.e. restriction /authorization as per company code.
    You need to use authority check for authorization object  P_ORGIN in your infoset.
    Please follow the bellow steps:
    -->Go to SQ02, Enter your Infoset name and click on Change button.
    -->Click on 'Code' (Shift+F8) icon dispalyed on application toolbar, you will be moved to Code Section of Infoset that lists different events.
    -->Choose Record Processing event from code section.
    -->Write the following code in 'Record processing' event of your Infoset.
    AUTHORITY-CHECK OBJECT 'P_ORGIN'
    *ID 'INFTY' FIELD '*'
    *ID 'SUBTY' FIELD '*'
    ID 'AUTHC' FIELD 'R' "read
    ID 'PERSA' FIELD P0001-WERKS
    *ID 'PERSG' FIELD DUMMY
    *ID 'PERSK' FIELD DUMMY
    *ID 'VDSK1' FIELD DUMMY.
    CHECK Sy-SUBRC EQ 0.
    Note: PERSA field used in this Authorization object plays an importan role , if you are in different module other that HR , then pass here table_name-companycode_field
    -->Genetare Infoset
    -->Go to SQ01 (in a new session) , Click on exeute or 'Test button' to check authorization is working for report
    Let me know if you need any more details.
    Thank you.
    Regards,
    Dinesh Tiwari

  • STO - Two plants within Different Company Codes

    Hello,
    Kindly help me out with this case, i want to create a STO for two plants within DIFFERENT company codes, so i've created all the required configuration and master data including creating the supplying plant as a vendor and the ordering plant as a customer, also all master data is maintained in both plants and i tried the scenario on the IDES system and it works okay so i know i'm on the right procedures. The problem is that i create the PO, but when i go to Transaction Code VL10B to create the delivery it gives me an error ( Delivery with no Line item not allowed ) even though there is more than enough stock in the storage location. Kindly help me out.

    17.01.2010     Stock                            10.500,000      0,000      10.300,000
    13.01.2010     Order     Totals record     100,000-     100,000      10.300,000
    13.01.2010     Deliv.     Totals record     100,000-     100,000      10.300,000
    17.01.2010     StLcSt     SLFR     10.500,000      0,000      10.300,000
    13.01.2010     Order     Totals record     100,000-     100,000      10.300,000
    13.01.2010     Deliv.     Totals record     100,000-     100,000      10.300,000
    17.01.2010     BtchSt     123     10.500,000      0,000      10.400,000
    13.01.2010     Deliv.     Totals record     100,000-     100,000      10.400,000
    17.01.2010     BStLoc     123       /SLFR     10.500,000      0,000      10.400,000
    13.01.2010     Deliv.     Totals record     100,000-     100,000      10.400,000
    This is the whole table.
    This is what i got. i believe that it is an availability check problem, i just can't see what is the solution.
    SLFR is the Storage location of the issuing plant.

  • Urgent: Maintain std cost for plants under different company codes

    Hi all,
    Company code(s)/Plant(s): C1/P1, C2/P2, ..., CnPn
    BOMs and Routings are maintained under P1. I believe that unlike BOM routing can't be made available across plants. So how does one maintain std cost across plants under different company codes?
    Thanks.

    Hi,
    You have to maintain individual BOM, Routing and varaint for all plants.
    Best Regards
    Ashish Jain

Maybe you are looking for

  • My phone icon with the contacts and everything is not working?

    What can i do to get my phone icon to work so I can call people and get to my contacts and such? Is it locked, and if it is what can i do to fix this.

  • Oracle iAS  10.1.3.5.0 Release 3 XALAN XSLT BSF Manager not found

    Hello to all, I have a strange problem. I have a very well running app under the iAS release 2. Now I have to go at release 3. The main problem that I face has to do with the XALAN libraries. I used to load some templates (XSL) in memory like this: S

  • What to do in this scenerio!

    Dear All, We have been developing our forms and reports in Oracle developer 6i. They are running in client server environment at the moment. Operating system we are using is mostly windows 2000, in some cases windows XP. Now we want to shift our appl

  • Check when inserting a batch in a delivery

    In the delivery, in the batch split screen, i have to make a check when a batch is inserted. Where should be written the code? Thanks! Moderator message: please (re)search yourself first, try to find available information/documentation. Edited by: Th

  • Macbook Pro Charger Broke

    Well, i am under AppleCare and the lead coming from the little white box (from the charger) to the macbook pro has come out a bit so theres a bit of wire being exposed. Not very safe. Just thinking would it cost if I took it to the Apple Shop to repl