How to extend commodity codes list to a new plant?

Dear friends,
I've created a new plant in our organization.
I would like to use the same commodity codes we use for the other plants.  It means thousands commodity codes.
I guess there is a way in SAP to copy commodity codes from one plant to another one.
Could you please let me know how to do that?
Thank you very much.

Hi,
You can use LSMW for this purpose.
You can use standard LSMW or do recording for this.
In the LSMW, enter only plant specific data for input file.
Regards,
Prashant

Similar Messages

  • How to calculate commodity code  using Tabe MARC and field STAWN.

    Hi All,
    how to calculate commodity code
    This attribute is stored at the Material/Plant level.  For each material, this attribute must be evaluated at all applicable plants. 
    u2022     If ALL values are the same, output the value to the report
    u2022     If all values are NOT the same, output u201CNot Consistentu201D in the column for the material
    The table to be used is MARC
    and the SAP technical field name is STAWN

    Hi Debrup,
    try this ... i have put down code here ... test it and make changes as needed.
    data:
    t_marc type standard table of marc with header line,
    lv_matnr like marc-matnr,
    lv_same type c.
    select MATNR WERKS STAWN
    from MARC
    into corresponding fields of table t_marc.
    sort t_marc by matnr werks stawn.
    loop at t_marc.
    at new matnr.
    clear lv_same.
    lv_matnr = t_marc-matnr.
    endat.
    at new stwan.
    * material is same but STWAN changed so flag change
    if lv_matnr = t_marc-matnr.
    lv_same = 'F'. " False.
    endif.
    endat.
    at end of matnr.
    if lv_same is intial.
    write : t_marc-matnr,t_marc-stwan.
    else.
    write : t_marc-matnr, 'Not Consistent'.
    endif.
    endat.
    endloop.
    hope this helps.
    Franc

  • How to extend the BP List

    Hi Friends,
    Please let me know how to extend the List view 100 to more in transaction BP.
    Regards
    Ricky

    hi frnd....
    u can use this code once
       CALL FUNCTION 'BAPI_BUPA_ROLE_ADD_2'
      EXPORTING
        businesspartner                   = customer_data-partner
      BUSINESSPARTNERROLECATEGORY       =
      ALL_BUSINESSPARTNERROLES          = ' '
       businesspartnerrole                = <wg_part_grp05-partnrole>
      DIFFERENTIATIONTYPEVALUE          =
      VALIDFROMDATE                     =
      VALIDUNTILDATE                    = '99991231'
    TABLES
       return                            = tbl_return.
               CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
              EXPORTING
                wait   = c_wait
              IMPORTING
                return = tbl_return.
    I have tried.....its working for both standard roles and also for custome roles

  • How to change commodity Code for material grp in certain plant

    Hi,
    I would like to change commodity code for some material group under certain plant
    May I know how to do this.
    I went to the following SPRO path, however, the table does not mention the plant and the material group for me to change.
    SD>Foreign Trade/Customs>Basic Data For Foreign Trade>Define Commodity Code/Import Code Numbres by Country.
    Please let me know.
    Thank.
    Tuff

    Hi,
    Commodity codes are define at country code level not on basis of plant or material group
    Weather it is one plant or many plants belongs from one company or different companies the commodity code is unique and it define by country legal authorities which are responsible for foreign trade.
    You can add commodity code for country and then you individually or by mass change you can change in material master.
    Kapil

  • GTS How to get commodity code from material master ? function/ table

    Hello,
    I have to write a "simple" program in GTS system.    (In SD   Commodity code is field MARC-STAWN  )
    The customer wants to enter material numbers ( from x  to y )
    and the program should display:
    Material--Material text--Commodity codevalidity from--
    validity to
    4711--Maschine_A--12345678905.08.2006--
    31.12.2008
    124587444--01.01.2009--
    31.12.9999
    4712--Maschine_B--5656568901.12.2007--
    31.12.2009
    (The customer wants to have a look if all Commodity codes in GTS are maintained)
    Can someone give me the name of the tables where it is stored in GTS?
    Or are there any function calls to get material data?
    best regards and many thanks
    Norbert
    Edited by: Norbert Zanders on Jan 1, 2009 5:08 PM

    You have to consider the following tables:
    /SAPSLL/PNTPR --> product number and GUID
    /SAPSLL/PRCTS --> product GUID and GUID of commodity code
    /SAPSLL/CTSNUM or /SAPSLL/CTSNUMC--> commodity code (general or country specific)
    /SAPSLL/CTSNUMT --> commodity code description
    /SAPSLL/PRT --> material description

  • How to extend Service Adapters list with my own components

    Hi
    Is there a way to create, use and deploy my own SOA adapters within Jdev ?
    Dominique

    You are right, the Adapter wizards have evolved in 11G. The runt time JCA adapter SDK from our past releases should help you write adapters which can work on 11 G just fine, since we are using the standard J2CA Spec based adapters. As for the UI wizard component, this is not documented yet, I take this as feedback, and will revert to you on the way we plan to incorporate this.

  • How to extend the mapping table when a new field is added to the data model?

    Hi Experts,
    I have added a new field to the entity PCTR and run the structures.. My new field was created in structure /MDG?_SX_0G_PCTR.
    My understanding is that I have to map it in the service mapping for USMDZ6_0G_PCTR.
    How do I get it in structure MDGF_PRFT_CTR_RPLCTN_REQ_PRFT to be able to map it?
    Thanks
    Riaan

    Hi Abdullah,
    Thanks for the document. I have managed to successfully map the field in USMD_IDOC_0G_PRCMAS.
    The field that I am using is PHINR(Profit Center area)  because we don't want the Profit center Area to be created with the default for the standard area. Instead we want to be able to send a different field value and also be able to change the field value in the profit center.
    It still defaults to the Standard group and does not use my entry when I replicate using the idoc.
    Any suggestions
    Thanks
    Riaan

  • How can I copy keyword list to a new library

    I'm a keyword fanatic. Keywords are my most favorite feature of the product. It's the reason I use iPhoto in the first place. I recently created a new iPhoto v6 library and can see that the keyword list did not get migrated. Is there a way to do this? Can I export and import the keyword list? Thanks.

    gtigan
    Keywords are kept in the main database file and when you create a new library, you create a new database.
    The only way I can think of to what you want is to select a single pic and give it ALL the keywords, then use iPhoto Library Manager to move that pic from the old library to the new one. iplm is the only way to move pics and metadata between libraries while using v6. (hmm, another reason to upgrade.)
    And, as I mentioned in my other post, if you're a "keyword fanatic" then check out Keyword Manager
    Regards
    TD

  • Match code list setting

    Hello,
    We have a specific match code list for a new field in the screen . We use Screen painter .
    When we display match code it will be displayed by default a list ALV . But here How can we change to a list Basic for the values of this match code . ( SAP Basic list not ALV list)
    Is there some way to change this setting for user ?
    Thanks

    Hi,
    I already added the field search help into screen, But here user need to have basic list for search help ,( This search help is for KUNNR,Name1...etc, And they want to have basic list when they press F4 , not normally AVL liste

  • Create/extend materials for new plant with new profit centers

    Hi.
    We have created a new plant and want to create/extend the materials from an existing plant to the new plant (with new profit center). Can this be done via MM17?
    Regards,
    Kjettern

    Hi Kjettern,
    To extend the existing material to a new Plant/Profit centre, pls follow the following steps: -
    1. Copy down the material number (i.e XYZ) you want to extend.
    2. Go to t-code MM01.
    3. Enter the material number (i.e. XYZ) you copied from (1) into the Material field and hit ENTER.
    4. You will get an information on the bottom that "the material type XXX and the industry sector YYY has been copied from master record".
    5. Pls note that Basic Data 1 & 2 is not changeable as the same set of material data will be used when a material is extended.
    6. Hit ENTER again. To change other details other than Basic Data 1 & 2, select the views that you want.
    7. You will be prompted to enter a Plant. Here you must enter the new Plant that you want to extend the material to and hit ENTER.
    8. You will get a confirmation stating that the material already existed and will be extended (to the desired Plant u entered in (7)).
    9. Ensure that all the data in all the important tabs are maintained, for the right Storage Location, Warehouse Num, Moving Average Price, Standard Price etc. before proceed further.
    10. Hit Save. You will get a msg that "Material XYZ created".
    Now you are able to use this material number in the new Plant you created.
    Hope this helps.
    Rgds.

  • Difference between list.clear() and new instance

    In the below code,
    List<String> test = new ArrayList<String)();
    list.add("one");
    list.add("two");
    list.add("three");
    list.clear();
    (or)
    list = new ArrayList<String)();
    list.add("four");
    list.add("five");
    What is the difference between List.clear() and creating new instance for list?

    1. Use code tags to post codes -- [code]CODE[/code] will display asCODEOr click the CODE button and paste your code between the {code} tags that appear.
    2. Invoking clear() sets all the elements of the ArrayList to null and resets the size to 0.    public void clear() {
         modCount++;
         // Let gc do its work
         for (int i = 0; i < size; i++)
             elementData[i] = null;
         size = 0;
        }(modCount is used to detect concurrent modification and throw an Exception when needed)
    Constructing a new ArrayList creates a new, different, empty ArrayList.
    In many situations they might be equivalent, but not in a case where you have two or more variable references to the same ArrayList. Example (watch out for typos)ArrayList<String> stringsA = new ArrayList<String>();
    ArrayList<String> stringsB = stringsA;
    : // add elements to stringsA
    : // stringsB refers to the same populated list
    stringsA.clear(); // stringsB refers to the clear()ed list
    : // add elements to stringsA again
    stringsA = new ArrayList<String>(); // stringsB still refers to the populated listdb

  • How can I use iCloud-keychain if i can not find my country in the country code list?

    How can I use iCloud-keychain if i can not find my country in the country code list?

    Welcome to the Apple Community.
    If your country code does not appear in the list…
    Go to System Preferences > iCloud > Keychain and enter your Apple ID password (Settings > iCloud > Keychain, from a mobile device)
    Select the ‘Create Different Code’ option. (Mobile devices only)
    Select the advanced option and choose whether to create a random code or no code, selecting the later allows syncing across devices but not with Apple’s servers.

  • How to deal with context dependant code lists?

    Hi ByD studio forum,
    recently one of the ByD solution partner raised an interesting questing regarding context dependant codelists. I create this thread to share the question and the answers (provided by Thomas Schneider) to it with the community.
    Most of the ByD codelists are context independant and contain a list of unique values. Some of the codelists (i.e. WorkAgreementAdministrativeCategoryCode) are context dependant and the code value is only unique within a certain context, i.e. country, region.
    Example - WorkAgreementAdministrativeCategoryCode:
    List ID
    Code Value
    Description
    AT
    1
    Hourly
    AT
    2
    Salaried Employee
    AT
    3
    Manager
    AU
    1
    Hourly
    AU
    2
    Salaried Employee
    AU
    3
    Manager
    BE
    1
    Hourly
    BE
    2
    Salaried Employee
    BE
    3
    Manager
    BR
    1
    Salaried Employee
    In a custom BO a element typed with an context dependant codelist is defined and should be placed on a custom UI.
    import AP.Common.GDT as apCommonGDT;
    businessobject CodeListMapping_Test {
                 element CustomerWorkAgreementAdministrativeCategoryCode : WorkAgreementAdministrativeCategoryCode;
    In UI-Designer however is the required ListID not available by default:
    So how can a ByD studio developer deal with context dependant codelist?
    Best regards,
    Ralf

    Hi Ralf,
    you need the contxt of the GDT in the BO: 
    import AP.Common.GDT as apCommonGDT;
    businessobject CodeListMapping_Test {     element CountryCode : CountryCode;
       element CustomerWorkAgreementAdministrativeCategoryCode :
                    WorkAgreementAdministrativeCategoryCode;
    As a next step, go to the UI designer, select the data element CustomerWorkAgreementAdministrativeCategoryCode.content, and select "Codelist Context Mapping" from the context menu. You can maintain the context of the structured code as shown in the following figure:
    Save and activate the UI model. The result is as follows:
    If you set the CountryCode field (via UI or via coding) the Customer....Code code list is filterted by the country code. You can also set the Customer....Code.listID in ABSL code if the element is filled via code.

  • How to handle such code: ? super ? extends Type

    Hi I faced of a problem which I don't handle:
    SortedSet<? extends Integer> set = new TreeSet<>();
    Comparator<? super ? extends Integer> c = set.comparator();//how to handle such code?
    ...Best Regards
    Andrej

    Integer is a final class, it can not be extended. So, you could as well write:
    SortedSet<Integer> set = new TreeSet<Integer>();
    Comparator<? super Integer> c = set.comparator();
    c.compare(new Integer(5), new Integer(5));On the other hand, If you were thinking of a set allowing different kinds of numbers, this is what you might be looking for.
    SortedSet<? super Number> set = new TreeSet<Number>();
    Comparator<? super Number> c = set.comparator();
    c.compare(new Integer(5), new Long(5));Why it must be "super" instead of "extends" is explained by [PECS rule|http://stackoverflow.com/questions/2723397/java-generics-what-is-pecs].

  • How to Extend the count of item code in IC_ITEM_MST table

    Hi Friends.
    Recently we used 10 count of IC_ITEM_MST table . But we want to extend the count 15. How to define pls help me.
    Regards
    Babu.J

    Duplicate post -- How to Extend the count of item code in IC_ITEM_MST table

Maybe you are looking for