ESYU: MASTER ITEM ATTRIBUTE UPDATE시 발생하는 ERROR 해결

PURPOSE
Master Item Attribute Update 시 발생하는 문제를 Manual Fix 시킬 수 있다.
Problem Description
Master Item Setup 후 종종 Attribute 값을 Update 하는 경우가 발생한다.
이때 특정 Item의 특정 Attribute를 Update시 'FRM-40654' error가 발생하는
경우가 있다. 이는 item attribute 들의 앞이나 뒤에 blank가 들어가 있는
경우 발생하는 문제이며 Regacy System에서 Item Import시 blank가 들어가는데
이것이 문제의 원인이 된다.
아래의 script를 돌려 Item Attribute에 들어가 있는 blank를 remove한다.
Solution Description
set serveroutput on size 1000000
DECLARE
len_var1 NUMBER;
len_var2 NUMBER;
sql_stmt VARCHAR2(450);
ln_cursor INTEGER;
ln_rows_proc INTEGER := 0;
CURSOR mtl_system_columns_cur is
SELECT column_name
FROM all_tab_columns
WHERE table_name = 'MTL_SYSTEM_ITEMS_B'
AND DATA_TYPE = 'VARCHAR2';
BEGIN
for cur in mtl_system_columns_cur
Loop
sql_stmt := 'select nvl(length(' || cur.column_name || '),0),
nvl(length(trim(' || cur.column_name || ')),0)';
sql_stmt := sql_stmt || ' from mtl_system_items_b ';
sql_stmt := sql_stmt || ' where inventory_item_id = ' || &inv_id ;
sql_stmt := sql_stmt || ' and organization_id = ' || &org_id ;
ln_cursor := dbms_sql.open_cursor;
DBMS_SQL.PARSE(ln_cursor,sql_stmt,dbms_sql.native);
DBMS_SQL.DEFINE_COLUMN(ln_cursor,1,len_var1);
DBMS_SQL.DEFINE_COLUMN(ln_cursor,2,len_var2);
ln_rows_proc := DBMS_SQL.EXECUTE(ln_cursor);
IF DBMS_SQL.FETCH_ROWS(ln_cursor) > 0 then
DBMS_SQL.COLUMN_VALUE(ln_cursor,1,len_var1);
DBMS_SQL.COLUMN_VALUE(ln_cursor,2,len_var2);
END IF;
DBMS_SQL.CLOSE_CURSOR(ln_cursor);
sql_stmt := '';
IF (len_var1 != len_var2) then
dbms_output.put_line('Bad Column: ' || cur.column_name);
END IF;
len_var1 := 0;
len_var2 := 0;
END LOOP;
EXCEPTION
when Others then
dbms_output.put_line('Error is' || sqlerrm(sqlcode));
end;
commit;
Update mtl_system_items_tl
set description= trim(description - script 결과값);
update mtl_system_items_b
set description = trim(description - script 결과값);

Similar Messages

  • 0material master data - attribute updated - not reflected in all providers

    Hello,
    An attribute of 0material was populated with data.  Previously it was blank.
    Since 0material is available in the dso's and cubes, the attributes come in as navigational.
    I am a bit confused.  The DSO which loads to the cube is not reflecting the 0material new attribute when displaying data.  The cube which is loaded from the same DSO  is reflecting the change to the 0material.
    I did not think that data needed to be deleted and reloaded?
    The attribute change run is part of the process chain and should update both dso and cube?
    Example;
    Cube
    Cust 1
    material abc
    new attribute bingo
    net value 100
    DSO which feeds above cube
    no data when selecting the same criteria above?
    However, when extracting only material and new material attribute in the dso, the attribute comes up.
    I am not sure if I am being clear.  Thanks for any help you can provide.
    Lynda

    figured out the issue - I went back and saw the dso nav attributes were not selected.  Should have noticed it sooner.

  • Override Master Item Attributes- object detaching from master after arrangement change

    I'm working on a large catalog and facing a problem when I try to update my master. Any object on my page that I altered the arrangement of (send to back, bring to front, etc..), is no longer linked to the master.
    Any ideas for a fix/work around? We're dealing with a thousand page catalog, so efficiency is critical.

    > Any object on my page that I altered the arrangement of (send to back, bring to front, etc..), is no longer linked to the master.
    It actually depends on what you did to the object on the document page.
    If all you did was override and send to front/back, then the object is actually still linked to the master page and will respond to change of fill/stroke and position.
    But if you did loads of other things, then the object loses each relationship to the master object.
    Regarding "fixing" your situation, I can't help you if I don't know what you want to do on the document pages.

  • Error while uploading master data attributes thru flat file

    while uploading master data attributes thru flat file i am facing the below errow. can nyone let me know plz.
    Error 8 when compiling the upload program: row 227, message: Data type /BIC/CCDEIO_MAT5_ATTR was found in a new

    This just means that you changed the transfer rules/transfer structure and have not refreshed the workbench yet.  The infopackage data hasn't been updated ... this is similar to a datasource update, where you need to replicate to make sure BW knows the latest version. 
    The best way to correct this error is to reload RSA1.  Every time I make a change to the tr/ts, I always run /nrsa1 to refresh the workbench. 
    Brian

  • Error while loading to Master data attribute 0product

    Hi experts,
    While loading the data from 0material to 0product master data attribute i am getting a error ' 0MATERIAL : Data record 2421 (''300000072 '):Version '300000072 ' is not valid. I request u all to help me to solve this error.
    Diagnosis
        Data record 2421 & with the key '300000072 &' is invalid in value
        '300000072 &' of the attribute/characteristic 0MATERIAL &.
    System Response
        The system has recognized that the value mentioned above is invalid, and
        has processed this general error message. A subsequent message may give
        you more information on the error. This message refers to the same
        value, even though it does not state this explicitly.
    Procedure
        If this message appears during a data load, maintain the attribute in
        the PSA maintenance screens. If this message appears in the master data
        maintenance screens, leave the transaction and call it again. This
        allows you to maintain your master data.
    Please let me know what could be the problem....
    Regards,
    Prashanth
    Edited by: Prashanth Shetty on Jul 16, 2008 7:42 AM

    Hi,
       The issue is due to errorneous record.
    Delete the request in Master data and Try the following.
    1) Goto PSA --> filter the Status (Red or Green)
    Select the Red records and correct the data in which error is throwm.
    After correcting the data, save and Right click PSA and give Start update immediately.
    2) Load via Infopackage only to PSA and later update from PSA and check.
    Any one of the above 2 methods will solve the issue.
    Regards,
    Balaji V

  • Error when scheduling the infopackage for loading Master data attributes

    Hi,
    Iam getting the following error message when scheduling this Master data Attributes ZIP_0PLANT_ATTR_FULL..( Flexible update of Master data info objects)..
    In Data load monitor error i got this following error message.
    Error message when processing in the Business Warehouse
    Diagnosis
    An error occurred in the SAP BW when processing the data. The error is documented in an error message.
    System response
    A caller 01, 02 or equal to or greater than 20 contains an error meesage.
    Further analysis:
    The error message(s) was (were) sent by:
    Update rules
    Thanks

    HI,
    A caller 01, 02 or equal to or greater than 20 contains an error meesage This is an Idoc error. Please check the Idocs :
    1) SM37 job log (In source system if load is from R/3 or in BW if its a datamart load) (give request name) and it should give you the details about the request. If its active make sure that the job log is getting updated at frequent intervals.
    Also see if there is any 'sysfail' for any datapacket in SM37.
    2) SM66 get the job details (server name PID etc from SM37) and see in SM66 if the job is running or not. (In source system if load is from R/3 or in BW if its a datamart load). See if its accessing/updating some tables or is not doing anything at all.
    3) RSMO see what is available in details tab. It may be in update rules.
    4) ST22 check if any short dump has occured.(In source system if load is from R/3 or in BW if its a datamart load)
    5) Check in SM58 and BD87 for pending tRFCs and IDOCS.
    Once you identify you can rectify the error.
    If all the records are in PSA you can pull it from the PSA to target. Else you may have to pull it again from source infoprovider.
    If its running and if you are able to see it active in SM66 you can wait for some time to let it finish. You can also try SM50 / SM51 to see what is happening in the system level like reading/inserting tables etc.
    If you feel its active and running you can verify by checking if the number of records has increased in the data tables.
    SM21 - System log can also be helpful.
    Thanks,....
    Shambhu

  • Problem with Configurator - Cannot Update Item Attributes for a Config item

    Hi!
    We configured an item to reproduce the following feature of Oracle Configurator in our business case (Oracle Configurator Modeling Guide - 115czmod.pdf): «For example, if you have raw materials that are ordered by lengths, do not create an item for each length. Instead, define a single item for each raw material with an attribute: Length. Then capture the needed length from the end user by a numeric input or from a List of Options, and associate that input with the attribute.»
    However, after we run the AutoCreate Configuration Items program the item was created in the Item Master but no Attribute was updated with the user defined values (within OConfigurator).
    We associated Item Attributes to Propoerties and these are associated to Feature Options.
    we wish to have the Item Descriptive Element Values (Item Catalog)
    transferred from the Configurator run time, after we configure any item.
    This is because we are working with item dimensions, such as length and width.
    We need to define these dimensions during the Configurator run time and have them transferred into the final configuration so that we can use them later on manufacturing. We wish to display these dimensions on a job.
    Support said that "The descriptive element value for the configuration item is copied from the model. This process will not look at the properties in the configurator.
    You may consider using the custom hook for catalog descriptions to get the selected attributes from CZ to the descriptive elements for the config item. Please see Custom CTO Packages under Setup page 2-63 in CTO Process Guide for more details."
    I'm trying to implement the suggested solution.
    I've customized user_catalog_desc procedure on CTO_CUSTOM_CATALOG_DESC package to populate the item catalog values.
    I'm failing to find the descriptive element values defined on configuratior for a specific inventory item id.
    I have managed to found a relation between "p_params.p_item_id" given in procedure user_catalog_desc and
    the configurated item_id in order to update the catalog data on the CTO_CUSTOM_CATALOG_DESC package.
    This is what I've done:
    procedure user_catalog_desc (
    p_params IN CTO_CUSTOM_CATALOG_DESC.inparams,
    p_catalog_dtls IN OUT NOCOPY CTO_CUSTOM_CATALOG_DESC.catalog_dtls_tbl_type,
    x_return_status OUT NOCOPY VARCHAR2)
    is
    begin
    declare
    counter number;
    i number;
    l_value varchar2(30);
    begin
    -- Put your logic here in such a way that you populate p_catalog_dtls
    -- parameter. p_catalog_dtls is a array of records. The attributes of
    -- this record are cat_element_name and cat_element_value.
    -- viz. record (
    -- cat_element_name varchar2(30),
    -- cat_element_value varchar2(30)
    -- Example : p_catalog_dtls(1).cat_element_value := 'XYZ';
    -- IMPORTANT : DO NOT ALTER THE VALUE OF cat_element_name . Doing so will
    -- result in incorrect or inconsistent behaviour.
    -- Make sure you set the x_return_status variable to one of the following:
    -- FND_API.G_RET_STS_SUCCESS to indicate success
    -- FND_API.FND_API.G_RET_STS_ERROR to indicate failure with expected status
    -- FND_API.FND_API.G_RET_STS_UNEXP_ERROR to indicate failure with unexpected status
    select count(*) into counter from MTL_DESCR_ELEMENT_VALUES
    where inventory_item_id = p_params.p_item_id;
    for i in 1 .. counter loop
    select
    distinct to_char(nvl(cz.input_num_val,cz.item_num_val)) into l_value
    from OE_ORDER_LINES_V oe
    , oe_order_headers_all oeh
    , CZ_CONFIG_CONTENTS_V cz
    where oe.header_id = oeh.header_id
    and oeh.order_number in (
    select distinct oeh.order_number
    from OE_ORDER_LINES_V oe
    , oe_order_headers_v oeh
    where oe.header_id = oeh.header_id
    and oe.inventory_item_id = p_params.p_item_id)
    and cz.ps_node_name = p_catalog_dtls(i).cat_element_name
    and oe.config_header_id = cz.config_hdr_id
    and oe.config_header_id in (select distinct cz.config_hdr_id from CZ_CONFIG_CONTENTS_V cz)
    and cz.ps_node_name in (select element_name from MTL_DESCR_ELEMENT_VALUES where inventory_item_id = p_params.p_item_
    id);
    p_catalog_dtls(i).cat_element_value := l_value;
    end loop;
    x_return_status := FND_API.G_RET_STS_SUCCESS;
    end user_catalog_desc;
    end;
    Although the customization seam correct the AutoCreate Configuration Items process
    terminates with warning, and the catalog info is not updated as expected.
    Can anyone help me on this?
    Many thanks in advance.
    Paulo Santos

    How did you solve this issue? During my testing I found there to be no link to the order lines when I was within this program. Therefore I am having issues getting the configuration information to populate the catalog. Is there a link and I just was doing it wrong? Thanks for any help!
    Thanks,
    Angela

  • Cant fully load updated data to Master data attribute

    Hi BW expert,
    I meet an issue here, I am not able to load updated data to master data attribute. My loading selection is based on employee number range.
    e.g employee number 00001 to 10000
    However the data is successfully loaded to master data but lot of the attribute data are not updated. e.g 056, 057, 098, 0100.
    I checked in PSA, there is no data updated for the attribute.
    I checked in RSA3 in R/3, there are attribute data extracted.
    Please advice, why attribute data is not updated when I load it in a range number. The attribute only work when I load one employee number.
    Thanks.
    regards,
    Wesley Koo

    check this:
    Re: Error while running InfoPackage
    Master data/text of characteristic 0MATERIAL already deleted
    Master data/text of characteristic ZXVY already deleted
    Hope it helps..

  • EFFECTIVITY CONTROL ATTRIBUTE NOT AVAILABLE IN MASTER ITEM

    Hi, I need to configurate an asset group for eAM. But I can't because the effectivity control attribute doesn't have available in: Master Item/BOM.
    The error message is: "Asset group must be unit efective" when I try to set "Asset Item Type" like: "Asset Group" in Master Item/Asset Management
    Thanks

    1) Personalization on the screen?
    2) You have more than one master orgs and you are not looking in the right master org
    Look at the mtl_system_items table and find the correct master org.
    Sandeep Gandhi

  • Using "Master Data Attribute of" in the Update Rule

    Hi,
    In my update rule of, i want to replace the master data attribute of my characteristic instead of using its source characteristic. For example. <i>InfoObject ZSTORECODE</i> has an attribute <i>ZSTORENAME</i>. My objective is to use the Store Name instead of a Store Code.
    I initially thought of using <i>"Master Data Attribute of"</i> in the update rules. However, I always end of with having an error of <i>"No Values."
    </i>
    Hope you guys can help me with this!
    Thanks,
    Raomon

    DATA: V_NSTC_SN2,
    V_KFC_COSTC LIKE RSGENERAL-CHAVL.
    V_KFC_COSTC = DATA_PACKAGE-KFC_COSTC.
    CALL FUNCTION 'RSAU_READ_MASTER_DATA'
        EXPORTING
          I_IOBJNM                      = 'KFC_COSTC'
          I_CHAVL                       = V_KFC_COSTC
    *   I_T_CHAVL                     =
    *   I_DATE                        =
    *   I_FLG_WHOLE_TABLE             =
          I_ATTRNM                      = 'NSTC_SN2'
      IMPORTING
    *   E_STRUCTURE                   =
    *   E_TABLE                       =
          E_ATTRVAL                     = V_NSTC_SN2
        EXCEPTIONS
          READ_ERROR                    = 1
          NO_SUCH_ATTRIBUTE             = 2
          WRONG_IMPORT_PARAMETERS       = 3
          CHAVL_NOT_FOUND               = 4
          OTHERS                        = 5
    RESULT = V_NSTC_SN2.
    Another Example Code:
    index on infoObject

  • DTP error: Lock NOT set for: Loading master data attributes

    Hi,
    I have a custom datasource from ECC which loads into 0CUST_SALES.  I'm using DTP & transformation which has worked for loading data in the past for this infoobject.  The infopackage loads with a green status but when i try to load data, the DTP fails with an error message at "Updating attributes for InfoObject 0CUST_SALES Processing Terminated" & the job log says: "Lock NOT set for: Loading master data attributes".  I've tried reactivating everything but it didn't help. Does anyone know what this error means? We're on SP7.   Thanks in advance!

    Hello Catherine
    I have had this problem in the past (3.0B) --> the reason is that our system was too slow and could not crunch the data fast enough, therefore packets where loacking each other.
    The fix: load the data into the PSA only, and then send it in background from the PSA to the info object. By doing this, only a background process will run, therefore locks cannot happen.
    Fix#2: by a faster server (by faster, I mean more CPU power)
    Now, maybe you have another issue with NW2004s, this was only my 2 cents quick thought
    Good luck!
    Ioan

  • Master data Attribute of ( Update rule)

    Hi SDN,
    I Just want to know the procedure to create update method of Master data Attribute of . coild any one tell me step by step
    Regards
    sujan

    3.     Creation of data targets
    •     In left panel select info provider
    •     Select created info area and right click to select Insert Characteristics as info provider
    •     Select required info object ( Ex : Employee ID)
    •     Under that info object select attributes
    •     Right click on attributes and select create transformation.
    •     In source of transformation , select object type( data  source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    •     Activate created transformation
    •     Create Data transfer process (DTP) by right clicking the master data attributes
    •     In extraction tab specify extraction mode ( full)
    •     In update tab specify error handling ( request green)
    •     Activate DTP and in execute tab click execute button to load data in data targets.
    cheers
    John

  • Update Master Data Attributes yellow in DTP

    Hi All,
    After  loading the master data DTP, the request becomes greeen but the "Update Master Data Attributes" step is still yellow. Let me know how to overocome this error
    Thanks,
    Sathya

    Hi,
    This is a master data full load and it updates more than 1 lakh records. Technically the Overall and technical status of my  DTP request becomes Green but when i go to the details tab and drill down the data package the "Update Master Data Attributes" still remains yellow so i dont think my load will update the attributes for my info object successfully.
    Is there a  solution to overcome or did anyone face this similar issue?
    Thanks
    Sathya

  • Master data attributes with direct update...its very urgent

    Hi all,
    Could anyone tell me how to laod the master data attributes with direct update in the infopackge..
    provide steps to create master data attributes and how to load..
    Thanks,
    Manjula

    Hi Manjula,
    Flexible Uploading
    Transaction code RSA1—LEAD YOU TO MODELLING
    1. Creation of Info Objects
    • In left panel select info object
    • Create info area
    • Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    • Create new characteristics and key figures under respective catalogs according to the project requirement
    • Create required info objects and Activate.
    2. Creation of Data Source
    • In the left panel select data sources
    • Create application component(AC)
    • Right click AC and create datasource
    • Specify data source name, source system, and data type ( Transaction data )
    • In general tab give short, medium, and long description.
    • In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    • In proposal tab load example data and verify it.
    • In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    • Activate data source and read preview data under preview tab.
    • Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    3. Creation of data targets
    • In left panel select info provider
    • Select created info area and right click to create ODS( Data store object ) or Cube.
    • Specify name fro the ODS or cube and click create
    • From the template window select the required characteristics and key figures and drag and drop it into the DATA FIELD and KEY FIELDS
    • Click Activate.
    • Right click on ODS or Cube and select create transformation.
    • In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    • Activate created transformation
    • Create Data transfer process (DTP) by right clicking the master data attributes
    • In extraction tab specify extraction mode ( full)
    • In update tab specify error handling ( request green)
    • Activate DTP and in execute tab click execute button to load data in data targets.
    4. Monitor
    Right Click data targets and select manage and in contents tab select contents to view the loaded data. There are two tables in ODS new table and active table to load data from new table to active table you have to activate after selecting the loaded data . Alternatively monitor icon can be used
    honor with points if this helps,
    Sudhakar

  • Item Cost update Coneversion Error

    Hi All,
    I am doing item Cost Update conversion, while doing this i am getting the Following only one error for all the items.
    Error Explanation - 'The default cost type for the cost type is not valid.'
    Error Code - CST_INVALID_DEFCSTTYPE
    i am inserting the data in the interface table 'CST_ITEM_CST_DTLS_INTERFACE'
    in this table i am taking only the below columns
    INVENTORY_ITEM_ID,
    ORGANIZATION_ID,
    COST_TYPE,
    RESOURCE_CODE,
    USAGE_RATE_OR_AMOUNT,
    COST_ELEMENT_ID,
    PROCESS_FLAG
    and i am doing this only for materail cost, is there any extra columns i have to take in the interface table for doing with out getting the above error.
    please provide me the data also for the extra columns.
    Any help would be appreciated.
    thanks
    Anushka

    the above error can come only when the row being imported is missing any of "lot size" or "based on rollup flag" or
    "shrinkage rate" or "inventory asset flag" values. Most probably it could be a setup issue.
    when any of these values are missing, the values are defaulted from the default cost type
    of the current cost type into which item costs are being imported into. If the
    default cost type too does not have the values set for the above mentioned
    columns which are having Null values, this message is displayed.

Maybe you are looking for