Increase String Length for Plant Field (WERKS)

Hi SAP Gurus,
Good day!
My requirement is as follows:
1. I have around 20 companies with at least 50 "plants" per company
2. In my legacy system, I am using a 3-digit code to identify the unique "plants" within a particular company code
3. There are instances of similar entries for "plants" belonging to different company codes. For example, Company 1 has a plant 101 which is located in the northern part of the city while Company 2 also has a plant 101 but located on the souther part of the city
4. Upon migration to SAP, I am requiring that I will know that upon first glance of the plant field, I will know immediately which plant (Plant-Company code combination) I am referring to
The workaround that I thought of initially was to have the first digit of the plant code act as a prefix to identify the company code and then the last three digits mapped to the old naming convention. In our example in 3, the first plant can be A101 (A = company 1) and the other B101 (B=company 2)
However, due to the nature of my business, I am constantly creating new company codes...and that in less than 5 years time, I may already use up all the available prefixes (letters+numbers)
I am thinking if there is a way to expand the plant field to say 6 characters, although this will involve customization. I am not sure as well how this would affect the interdependencies for the enterprise structure since the plant is one of the fundamental units in SAP. Aside from the fact that customizing the plant field may have other effects on support packages that may need to be installed in the future.
Any suggestions?
BR,
Puck

Hi,
I understand your requirement but it is not at all advisable to increase the lenght of the plant field.
You can use plants starting from 0001 till 9999( also the different combinations of the alphabets). Let the description of the plant include company code.
Once you start using the system you will recognize the plant by it's code with the company code.
It seems that you are a user and not a SAP consultant.
Please consult your SAP consultant to understand the importance of the plant.
The plant code is used in several tables in SAP.If you try to change the lenght of the plant field in one table you have to change it for all the tables, which itself is a very big project.
Changing the plant is not customizing, it requires some special technical skills with skilled people.
Try to drop the idea of increasing the lenght of the field to avoid incosistancies in the system.
try to map all your plants in 4 digit code.
Cheers,
Satish Purandare

Similar Messages

  • For abap-hr i need datatype and length for the fields which i selected

    hi seniors,
          I got one task for which i have to get the data type and length for the fields of a table in abap-hr. I am using dd03l table, but my team leader told me to not to use this. So, please anybody can help, i will be thankfull.
          I have to select PA30 fields in which pernr and choic, subty and whatever i have selected the infotypes fields. If there is any function module to find data type and length or else any other table.
    thanks,
    sekhar.

    Hi,
    Try using the Function Module "DDIF_FIELDINFO_GET". You can use this for fetching the complete details of a structure or, a specific field.
    Input:->
    TABNAME        PA0001
    FIELDNAME     PERNR
    Output:->
    Check the DFIES_TAB  it will contain all the details you need for the specific field.
    Sample--->
    CALL FUNCTION 'DDIF_FIELDINFO_GET'
      EXPORTING
        TABNAME              = 'PA0001'
    *   FIELDNAME            = ' '
    *   LANGU                = SY-LANGU
    *   LFIELDNAME           = ' '
    *   ALL_TYPES            = ' '
    *   GROUP_NAMES          = ' '
    *   UCLEN                =
    *   DO_NOT_WRITE         = ' '
    * IMPORTING
    *   X030L_WA             =
    *   DDOBJTYPE            =
    *   DFIES_WA             =
    *   LINES_DESCR          =
    TABLES
       DFIES_TAB            = MY_DFIES_TAB
    *   FIXED_VALUES         =
    * EXCEPTIONS
    *   NOT_FOUND            = 1
    *   INTERNAL_ERROR       = 2
    *   OTHERS               = 3.
    Hope this was of some help.
    Best regards,
    Sagar.

  • How to use same Data Type and Length for two fields

    How to use same data type and length for two fields when using 'FOR ALL ENTRIES IN' in a select statement? For instance the select queries are :
    SELECT bukrs gjahr belnr lifnr budat bldat zlspr dmbtr waers shkzg
    FROM bsik
    INTO TABLE it_bsik
    WHERE bukrs = p_bukrs
    AND lifnr IN s_lifnr.
    IF it_bsik IS NOT INITIAL.
    SELECT belnr gjahr awkey awtyp
    FROM bkpf
    INTO TABLE it_bkpf
    FOR ALL ENTRIES IN it_bsik
    WHERE belnr = it_bsik-belnr
    AND gjahr = it_bsik-gjahr.
    IF it_bkpf IS NOT INITIAL.
    SELECT belnr gjahr lifnr xblnr
    FROM rbkp
    INTO TABLE it_rbkp
    FOR ALL ENTRIES IN it_bkpf
    WHERE belnr = it_bkpf-awkey+0(10)
    AND gjahr = it_bkpf-awkey+10(4).
    ENDIF.
    ENDIF.
    Here it gives an error in the 3rd select query that 'When you use the addition "FOR ALL ENTRIES IN itab", the fields "GJAHR" and "IT_BKPF2-AWKEY+10(4)" must have the same type and the same length.'
    Kindly clarify.

    Hi Saurabh,
    Please see the example code that I have developed for you. It will help you solve the problem.
    REPORT ZTEST_3 .
    tables : BKPF.
    data : begin of it_bkpf occurs 1,
             belnr type RE_BELNR,
             awkey type awkey,
             awtyp type awtyp,
             gjahr type GJAHR,
           end of it_bkpf.
    data : begin of it_bkpf1 occurs 1,
             belnr type RE_BELNR,
             awkey type gjahr,              " change the data type
             awtyp type awtyp,
             gjahr type GJAHR,
           end of it_bkpf1.
    data : begin of it_rbkp occurs 1,
             belnr type BELNR_D,
             gjahr type gjahr,
             lifnr type LIFRE,
             xblnr type XBLNR,
           end of it_rbkp.
    select belnr
           awkey
           awtyp
           gjahr
           from bkpf
           into table it_bkpf
           where BUKRS = 'TELH'.
    loop at it_bkpf.
    it_bkpf1-belnr = it_bkpf-belnr.
    it_bkpf1-awkey = it_bkpf-awkey+10(4).           "Here only append the required length.
    it_bkpf1-awtyp = it_bkpf-awtyp.
    it_bkpf1-gjahr = it_bkpf-gjahr.
    append it_bkpf1.
    clear it_bkpf1.
    endloop.
    select  belnr
            gjahr
            lifnr
            xblnr
            from RBKP
            into table it_rbkp
            for all entries in it_bkpf1
            where belnr = it_bkpf1-belnr
    This is just an example. Change the fields according to your requirement.
    Regards
    Abhii
    Edited by: Abhii on Mar 9, 2011 9:08 AM

  • Best practice to define length for varchar field of table in sql server

    What is best practice to define length for a varchar field in table
    where field suppose Remarks By Person  varchar(max) or varchar(4000)
    Could it affect on optimization in future????
    experts Reply Must ... 
    Dilip Patil..

    Hi Dilip,
    Varchar(n/max) is a variable-length, non-unicode character data. N defines the string length and can be a value from 1 through 8,000. Max indicates that the maximum storage size is 2^31-1 bytes (2 GB). The storage size is the actual length of the data entered
    + 2 bytes. We always use varchar when the sizes of the column data entries vary considerably. While if the filed data size might exceed 8,000 bytes in some way, we should use varchar(max).
    So the conclusion is just like Uri said, use varchar(max) or varchar(4000) is depends on how much characters we are going to store.
    The following document about varchar in SQL Server is for your reference:
    http://technet.microsoft.com/en-us/library/ms176089.aspx
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Increase of length for bank a/c

    Currently we are running TT payments for overseas vendors who have bank a/c exceeding the maximum length eg. China based on ISO is 18 digits but the bank a/c is 19 digits. Is it possible to increase? How we handle the idoc file. What's are tasks to be carried out?
    Kindly advise

    Hi Veronica,
    Try t.code OY17 as referred in OSS Notes 389649
    also there is OSS# 115002   DME for house bank account numbers w/more than 18 digits
    <i><b>China</b>
    - Different account number formats in part with more than 18 digits
    - Save the first 18 digits in the 'Bank account number' field
    - If the Chinese bank account number is longer than 18 digits,
    then save the remaining digitsin the 'Reference specifications for bank details' field</i>
    Hope this helps.
    Rana

  • Check the Data length for the fields in the mapping

    Hi,
    I need to check for the data length of the below fields in mapping. And if any of the field lengh does not match with the given length then I discard the data and trigger a mail
    X1_LENGTH = 9
    EMail_LENGTH = 100
    PrjDesc_LENGTH = 50
    Regards,
    Varun

    Hi,
    You can use following approach:
    - Create UDF for length analysis and raise exception if length is not accurate Use lenght() method of string.
    CheckLength(Field, Length)
       If Field.lenght() >= Length then raise mapping exception
    Use Alert to capture this and send mail.
    - Use Enum while defining datatype to reject data at source (in adapter engine). Again use Alerts to send mail.
    Regards,
    Gourav

  • Fixed length for the fields of  ALV output

    Hi,
          How to fix a field in the ALV output to its max length..For example..if a field's max length is 10...that coloumn should not be dragged or moved to right..Its lenght shluld be fixed to 10...Could any bod suggest me how to perform this...thanks..
    Shyam.

    Hi,
    U can better optimize the width.it will be good.
    data : W_LAYOUT TYPE SLIS_LAYOUT_ALV.
    W_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM     = SY-REPID
          I_STRUCTURE_NAME       = 'T_ALV'
          IS_LAYOUT              = W_LAYOUT
          IT_FIELDCAT            = T_FIELDCAT_ALV
          I_CALLBACK_TOP_OF_PAGE = 'ALV_TOP_OF_PAGE'
        TABLES
          T_OUTTAB               = T_ALV
        EXCEPTIONS
          PROGRAM_ERROR          = 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.

  • Length for Value field in PO & Estimate order

    Dear All,
    There is a problem in Purchase order as well as Estimate order,the item value in po & the estimated cost value in general data field is not allowing us to put more than 9 digit.For example i want to put 9990000000 inr ,but the system is not acceping the input value.so please gude me is there anything in standard to make this solved,please guide me for the same.
    Thanks,
    Das

    Hi
    the field length fo the value field NETPR is 11 this is including the Sapces or comas & excluding the decimal.
    So you will be able to enter only 9 characters.
    due to this the sytem will not allow you to enter more.
    Thanks & Regards
    Kishore

  • Increasing of the length of the field of short text

    hai gurus
    i want to increase the length of the field while creating the purchase order is there any facility for  that plese give me the details

    Hi Rao,
    If you want to give some description in the short text you can use Purchase order text for giving complete details about your requirement to the vendor.
    Regards,
    Vijay

  • Increase length of output field in ABAP Query

    Hello All,
    I have one ABAP Query in which inside the  system  generated program for the Query, there is a write statement -
    write 030(020) anlav-invnr
    Because of this statement,  the field invnr is displaying in only 20 chars & the last two chars of the field invnr are not getting displayed.
    I want to display all 22 chars for field invnr.
    How can I increase the output length for this field.
    Please help.
    <vague subject corrected by moderator, please choose a meaningful one next time>
    Edited by: Thomas Zloch on Mar 3, 2010 2:34 PM

    >
    Jain Arpita wrote:
    > write 030(020) anlav-invnr
    Means displaying INVNR field at 030th position with 20 chars width. To increase the width you just give 022 instead of 020 like below.
    write 030(022) anlav-invnr
    Thanks
    Venkat.O
    Edited by: Venkat.O on Mar 3, 2010 11:28 AM

  • How to increase the decimals in RPD for some field?

    Hello gurus,
    We have 1 filed in DW name as "EXCHANGE_RATE" when i query it DW it's showing me values with 4 decimal points.
    and same column when i m using in OBIEE frontend, it's giving me values with 2 decimals.
    So how to increase the decimals for that field in RPD?
    we have 10.1.3.4.1 version.
    Thanking You.

    Hello Svee,
    Thanks for ur help, But I found one different way that will make change only to that particular filed.
    Bcz if I will change the database properties that will change the configuration globally to all the fields.
    So what I did is, I went to column properties and change the Data Format to 4 decimals and saved it as System-wide default for that field.
    So, the change that i want will be their only for that filed...
    Though I really appreciate ur help.
    Thanking you.

  • How to increase the length of Remarks in Journal Vouchers

    Hi SAP Guru,
    I  am new in SAP Business One.  Normally our Narration which we feed in Details of Journal Voucher is longer than the space provided.  Is there any way to increase the length of Details field in Journal Voucher or Some other way we can cater this requirement.
    Thanks for answers in advance
    J.S.Rana

    Hi Rana,
    In this case, you have to create a user defined field of required length under Journal Transactions Header to fill the data.
    Regards,
    Vijay Kumar
    SAP Business One Forums Team

  • How To Increase the Size of Memo Fields 4000 Char in WebCenter 11g?

    How To Increase the Size of Memo Fields greater than 4000 Char in WebCenter Content (UCM) 11g?
    I was able to increase the size of Memo field from 2000 Char to 4000 by setting parameter value MEMOFIELDSIZE=4000 . But the requirement is to increase the size more than 4000 around 7000 char but Database(Oracle 11G) is not supporting more than 4000 char.
    Is there any other way to increase the size of Memo field?
    Thanks in Advance!!
    Regards
    Ram

    Hello All,
    Thanks for your responses.
    Let me explain the scenario again in detail:
    1. we have three meta-data fileds xProductCategory,xProductFamily and xProducts
    2. These fields are related with DCL feature and corresponding values are being stored in corresponding custom Views
    3. xProducFamily is dependent of xProductCategory and xProduct is dependent on xProductFamily
    4. currently, there are around 250 Product values and average name of Product can be of 25 Char, so if we are selecting all product values for some Contents then Product Values are being stored in DocMeta table as comma separated values with one space, so total characters are being very high than 4K Char.
    5. Currently view that is storing the Product values, stores "Name" column instead of ID(like 1,2,3....)
    6. And our Content Server is integrated with Oracle WebSenter Portal, where logic has written to retrieve the contents based on "Product Name" instead of "Product ID" and already we are in UAT phase.Currently we are not in situation to revert the changes from Product Name to Product ID.
    7. Also if we are storing the values on the basis of Product ID, then again the issue may arise in Future, if the number of Products increased.
    Hoping the issue explanation is clear now and waiting for some possible solution for increasing the length of memo field.
    Thanks in Advance !!
    Regards
    Ram

  • Using Field Exit for a field in table KNA1

    Hi everyone,
    I am working on a ticket, the problem is we have a field called STRAS in table KNA1 which holds the address of the customer but now we want to increase the length of this field from 35 charachters to 55 due to some business requirement. SO my question is if this can be done using Field Exit and if yes.. can you please tell me how as I have never used Field exits.
    Thanks,
    Rajeev

    Hi,
    Using field exit, you can only validate the data entry for the field (either globally or on a particular screen field)
    This is usually done by implementing the field exit for the data element corresponding to the field(in your case STRAS_GP)
    Hence you cannot increase the length of the field using the concept of the field exits...
    Please note that after SAP R/3 4.6c, SAP has stopped the creation of field exits and there will be no support for any new ones created.
    Regards
    Shiva

  • How to Increase the length of Material Code (MATNR)

    Hi all,
    I have the requirement to increase the size of Material code (from 18 characters to 30 Characters) .
    Is their any provision for this in ERP 2005.
    Let me know.
    regards,
    Sheo

    You should not increase the length of the field.
    You can do it by changing the domain for MATNR, but then you have to modify all programs and screens where MATNR is used.
    The only impact of this is that SAP will disown your implementation and will not provide any free support. You have to pay their hefty consulting fee every time
    Hope this answers,
    Lakshman

Maybe you are looking for

  • Synchronizing Column Comments from Relational Model to Data Dictionary?

    I've changed/added column comments to a table in my Relational Model. When I try to sync the changes to the Data Dictionary of the Database the new/changed column comments are never included. I can actually see that the values in the Field "Comment i

  • Solaris 10 X2100 VLAN config

    What are my options for configuring a virtual interface on an x2100 server with Sol10 Because the interface shows up as the type " nge0" I am assuming that the hardware does not support it per the info below. Is there another alternative or a softwar

  • How to get the formatName of an image?

    Hi, I'm trying to write a little class which gets as input an image file (gif, jpg or png) and outputs a resized version of it. My aim is to output allways an image having the same format like the input one. I saw that ImageIO.write accepts as parame

  • Does imessage send to iphones(with imessage) without internet?

    im considering getting an ipod and i want to know will i be able to imessage people even if i do not have access to internet?

  • Facebook crashes after last iOS update  ???

    I Have just updated my iPad to the last iOS but it seems like there is a problem,my facebook app crashes when I open it?? what can I do????