Problem While Creating Classification View in mm01

Hi Friends,
I have useing 'BAPI_OBJCL_CREATE' for creating Classfication View
I am passing   mat no,  class , class type ..
How can i find  characteristic values  for  particular Class..
Means How can i find values which r passed through
ALLOCVALUESNUM , ALLOCVALUESCHAR, ALLOCVALUESCURR  tables
I have code like this
{  CALL FUNCTION 'BAPI_OBJCL_CREATE'
          EXPORTING
          OBJECTKEYNEW            = P_MATNR
          OBJECTTABLENEW          = 'MARA'
          CLASSNUMNEW             =  IT_MATMAS-CLASS
          CLASSTYPENEW            =  IT_MATMAS-KLART
        STATUS                  = '1'
        KEYDATE                 = SY-DATUM
        TABLES
        ALLOCVALUESNUM          =
        ALLOCVALUESCHAR         =
        ALLOCVALUESCURR         =
          RETURN                  = IT_RETURN2.

Hi,
You need to use the BAPI 'BAPI_OBJCL_CREATE' to create characteristics for a material.
The characteristics are need to be passed in the table ALLOCVALUESCHAR.
If you do not know the values for a particular characteristics then you canmake use of FM
BAPI_CLASS_GET_CHARACTERISTICS and BAPI_CHARACT_GETDETAIL to get the values.
Regards,
Ankur Parab

Similar Messages

  • Help for creating classification view in mm01

    hi guys can anybody help on creating classification views in mm01 using bdc recording i need a step by step procedure . since when i tryed in mm01 there are filds like class name i dont know where all these data's to find one more thing is i was asked to create classification view using bdc recording ...please help me with some programs if u have

    Hi,
    You need to use the BAPI 'BAPI_OBJCL_CREATE' to create characteristics for a material.
    The characteristics are need to be passed in the table ALLOCVALUESCHAR.
    If you do not know the values for a particular characteristics then you canmake use of FM
    BAPI_CLASS_GET_CHARACTERISTICS and BAPI_CHARACT_GETDETAIL to get the values.
    Regards,
    Ankur Parab

  • TP CONFIGURATION PROBLEM ( While creating a View Controller in Component )

    Hi All,
         I have a problem in TP Config while creating a View Controller in a component i am getting this Exception 
        Parameter lsm(&1) not in version 0004(&2) of tp configuration .
        This Exception Raised from this Function Module : RS_ACCESS_PERMISSION
    Any on can please help me to come out of this issue.
    Regards And Thank you,
    Nirmala.K

    Sounds like you should be using one of the Apps forums, perhaps {forum:id=210}

  • Problem while creating help view.

    hi experts,
    i'm creating a help view.
    my base table is mara.
    i've to link it up with mast table.
    while creating help view, when i see its relationship with mast table its under the section  ("Relationships with unsuitable cardinality").
    when i click on it and then click on copy.
    it doesnot get copied.
    what is the reason and how should i go about it.
    plz help.

    hi
    good
    go through this link ,which ll give you detail idea about the help view
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed13446011d189700000e8322d00/content.htm
    thanks
    mrutyun^

  • Facing problems while creating tree view

    Hi gurus,
    I am facing problems while crating the tree view can please explain me what are the basic requirements for creating tree view and explain me  which are the methods i need to redefine.
    any answer is appreciated.
    Regards,
    Chetan Agali

    Hi Chetan,
    Maybe Poonam Assudani weblog may help you a little more. Check it's location here:
    /people/poonam.assudani/blog/2009/06/24/create-a-tree-view-display-in-crm-web-ui
    Kind regards,
    Garcia

  • Problem while creating summary view

    Hi frnds i am trying to creating a view that contains only summary but i am getting error pls find my script below getting error sql command not properly ended,What's the wrong
    create or replace view call_stat_v
    (Tot_usr,Act_usr,call_rcv) as
    (select count(*) from call_logs) Tot_usr,
    (select count(*) from call_logs where trunc(last_login) >= trunc(sysdate - 9))Act_usr,
    (select count(*)
    from call_agt_all a,call_leads b
    where a.BATCHNO = b.BATCHNO
    and a.SERNO=b.SERNO
    and b.status is null and
    trunc(a.C_DATE) >=trunc(sysdate -9))call_rcv

    there is no way solution from blushadow to cause the error you mention
    Proof Of Concept
    ===========
    SQL> create table call_logs ( last_login date);
    Table created.
    SQL> create table call_agt_all ( batchno number, serno number, status varchar2(1), c_date date)
    2 .
    SQL> create table call_agt_all ( batchno number, serno number, c_date date);
    Table created.
    SQL> create table call_leads ( batchno number, serno number, status varchar2(1));
    Table created.
    SQL> ed
    Wrote file afiedt.buf
    1 select
    2 ( select count(*) from call_logs ) c1,
    3 ( select count(*) from call_logs where trunc(last_login)>=sysdate ) c2,
    4 ( select count(*) from call_agt_all a, call_leads b
    5 where a.batchno = b.batchno
    6 and a.serno = b.serno
    7 and b.status is null
    8 and trunc( a.c_date ) >= sysdate ) c3
    9* from dual
    SQL> /
    C1 C2 C3
    0 0 0
    SQL> insert into call_logs values (sysdate);
    1 row created.
    SQL> insert into call_logs values (sysdate);
    1 row created.
    SQL> insert into call_logs values (sysdate);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> insert into call_logs values (sysdate+10);
    1 row created.
    SQL> insert into call_logs values (sysdate+10);
    1 row created.
    SQL> insert into call_logs values (sysdate+10);
    1 row created.
    SQL> select
    2 ( select count(*) from call_logs ) c1,
    3 ( select count(*) from call_logs where trunc(last_login)>=sysdate ) c2,
    4 ( select count(*) from call_agt_all a, call_leads b
    5 where a.batchno = b.batchno
    6 and a.serno = b.serno
    7 and b.status is null
    8 and trunc( a.c_date ) >= sysdate ) c3
    9 from dual;
    C1 C2 C3
    6 3 0
    SQL> insert into call_agt_all (batchno, serno, c_date) values (1,1,sysdate);
    1 row created.
    SQL> insert into call_agt_all (batchno, serno, c_date) values (2,2,sysdate);
    1 row created.
    SQL> insert into call_agt_all (batchno, serno, c_date) values (3,3,sysdate);
    1 row created.
    SQL> insert into call_agt_all (batchno, serno, c_date) values (4,4,sysdate+10);
    1 row created.
    SQL> insert into call_agt_all (batchno, serno, c_date) values (5,5,sysdate+10);
    1 row created.
    SQL> insert into call_agt_all (batchno, serno, c_date) values (6,6,sysdate+10);
    1 row created.
    SQL> insert into call_leads (batchno, serno) values (1,1);
    1 row created.
    SQL> insert into call_leads (batchno, serno) values (2,2);
    1 row created.
    SQL> insert into call_leads (batchno, serno) values (6,6);
    1 row created.
    SQL> insert into call_leads (batchno, serno) values (5,5);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select
    2 ( select count(*) from call_logs ) c1,
    3 ( select count(*) from call_logs where trunc(last_login)>=sysdate ) c2,
    4 ( select count(*) from call_agt_all a, call_leads b
    5 where a.batchno = b.batchno
    6 and a.serno = b.serno
    7 and b.status is null
    8 and trunc( a.c_date ) >= sysdate ) c3
    9 from dual;
    C1 C2 C3
    6 3 2
    SQL> create or replace view lili as
    2 select
    3 ( select count(*) from call_logs ) c1,
    4 ( select count(*) from call_logs where trunc(last_login)>=sysdate ) c2,
    5 ( select count(*) from call_agt_all a, call_leads b
    6 where a.batchno = b.batchno
    7 and a.serno = b.serno
    8 and b.status is null
    9 and trunc( a.c_date ) >= sysdate ) c3
    10 from dual;
    View created.
    SQL> select * from lili;
    C1 C2 C3
    6 3 2
    SQL> insert into call_logs select * from call_logs;
    6 rows created.
    SQL> insert into call_agt_all select * from call_agt_all;
    6 rows created.
    SQL> insert into call_leads select * from call_leads;
    4 rows created.
    SQL> select * from lili;
    C1 C2 C3
    12 6 8
    SQL>

  • Problems while facing Materialized Views

    Hello All,
    I am facing some problems while creating Materialized Views.
    Senario.
    SCOTT USER:
    sql> Grant select on emp to Public;
    sql> Create materialized view log on emp;
    Connected to LDB User
    sql> CREATE MATERIALIZED VIEW mt_emp
    Refresh fast
    as select * FROM scott.emp;
    I am getting error.. Stating that Table doesnt Exist.
    Please tell me the Reason..
    Note:
    If there is No Log on table Emp then it is throwing the error that there in no LOG on the EMP Table.
    Now when I create a Log on EMP table --> Then it is giving the Problem that Table doesn't Exist.

    Hello paragjp
    The Below are the Steps I am Implementing..
    Connect as Scott User.
    SQL> Grant select on Emp to Public;
    SQL> Create materialized view log on emp with primar key;
    Now I will be Connecting to Other User Say LDB
    Connect as LDB User
    SQL> CREATE MATERIALIZED VIEW mt_emp
    Refresh fast
    as select * FROM scott.emp;
    -- The Below Errors are comming
    ERROR at line 3:
    ORA-12018: following error encountered during code generation for "K5ESK_LDB2"."MT_EMP"
    ORA-00942: table or view does not exist

  • Problem while Creating MVLOG with synonym in Oracle 9i:Is it an Oracle Bug?

    Hi All,
    I am facing a problem while Creating MVLOG with synonym in Oracle 9i but for 10G it is working fine. Is it an Oracle Bug? or i am missing something.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL>
    SQL> create table t ( name varchar2(20), id varchar2(1) primary key);
    Table created.
    SQL> create materialized view log on t;
    Materialized view log created.
    SQL> create public synonym syn_t for t;
    Synonym created.
    SQL> CREATE MATERIALIZED VIEW MV_t
      2  REFRESH ON DEMAND
      3  WITH PRIMARY KEY
      4  AS
      5  SELECT name,id
      6  FROM syn_t;
    Materialized view created.
    SQL> CREATE MATERIALIZED VIEW LOG ON  MV_t
      2  WITH PRIMARY KEY
      3   (name)
      4    INCLUDING NEW VALUES;
    Materialized view log created.
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    PL/SQL Release 9.2.0.6.0 - Production
    CORE    9.2.0.6.0       Production
    TNS for Solaris: Version 9.2.0.6.0 - Production
    NLSRTL Version 9.2.0.6.0 - Production
    SQL>
    SQL> create table t ( name varchar2(20), id varchar2(1) primary key);
    Table created.
    SQL> create materialized view log on t;
    Materialized view log created.
    SQL> create public synonym syn_t for t;
    Synonym created.
    SQL> CREATE MATERIALIZED VIEW MV_t
    REFRESH ON DEMAND
    WITH PRIMARY KEY
    AS
      2    3    4    5  SELECT name,id
    FROM syn_t;   6
    Materialized view created.
    SQL> CREATE MATERIALIZED VIEW LOG ON  MV_t
    WITH PRIMARY KEY
    (name)
      INCLUDING NEW VALUES;  2    3    4
    CREATE MATERIALIZED VIEW LOG ON  MV_t
    ERROR at line 1:
    ORA-12014: table 'MV_T' does not contain a primary key constraintRegards
    Message was edited by:
    Avinash Tripathi
    null

    Hi Nicloei,
    Thanks for the reply. Actually i don't want any work around (Creating MVLOG on table rather than synonym is fine with me) . I just wanted to know it is actually an oracle bug or something else.
    Regards
    Avinash

  • Creation of classification view in mm01

    Hi Friends,
    I want to create classification view for Tran: mm01 , What bapi should iused.
    Thanks,
    Asha

    BAPI_OBJCL_CREATE / BAPI_OBJCL_CHANGE
    regrd
    anjali

  • Problem while creating sales order

    Hi
       We are facing a problem while creating a sales order in R/3. The sales order number is getting generated. But we are not able to view the same in the backend meaning it is not there in the database. Any inputs would be of help.
    regs
    Steve

    Hi everybody,
    I've got a problem with this too. I use the BAPI_SALESORDER_CREATEFROMDAT2 with BAPI_TRANSACTION_COMMIT and the webdynpro shows me the document number created in R3 with a Success message. But when I go to R3 and try to display the created sales order, it doesn't exists. So... Maybe I'm doing something wrong with the BAPI_TRANSACTION_COMMIT. ¿Can anybody help me with this?
    The code I use is this:
    When the user pushes the SAVE button in the WebDynpro, this code executes:
        //@@begin onActionSave(ServerEvent)
         wdThis.wdGetSOCreaCustController().executeBapi_Salesorder_Createfromdat2();
         wdThis.wdGetSOCreaCustController().executeBapi_Transaction_Commit();
        //@@end
    In the custom Controller I've got the code for those executions:
      public void executeBapi_Salesorder_Createfromdat2( )
        //@@begin executeBapi_Salesorder_Createfromdat2()
         try {
              wdContext.currentBapi_Salesorder_Createfromdat2Element().modelObject().execute();
         catch (Exception ex) {
              wdComponentAPI.getMessageManager().reportException(ex.getMessage(), false);
         wdContext.nodeOutput().invalidate();
        //@@end
      public void executeBapi_Transaction_Commit( )
         try {
              wdContext.currentBapi_Transaction_CommitElement().modelObject().execute();
         catch (Exception ex) {
              wdComponentAPI.getMessageManager().reportException(ex.getMessage(), false);
         wdContext.nodeOutput().invalidate();   
        //@@end
    ¿Is something wrong? ¿Is something missing?

  • Error while creating parameterise view

    I m getting below error while creating parameterise view
    CREATE OR REPLACE VIEW rdr_le_info_view (v_run_number , v_isin_cob )
    AS
    SELECT l.strategic_le
    ,cun.ucn cunucn
    ,cun.date
    ,cccs.ucn ucn
    ,cccs.agr_num
    FROM strat_le l
    ,ucn_name cun
    ,customer_setup cccs
    WHERE l.gfa_until_dt = '31-dec-9999'
    AND l.glas_until_dt = '31-dec-9999'
    AND l.int_until_dt = '31-dec-9999'
    AND cccs.run_num = v_run_num
    AND cccs.ucn_lead_office = cun.ucn
    AND cun.OID = l.client_oid;
    AND cccs.run_num = v_run_num
    ERROR at line 13:
    ORA-00904: "V_RUN_NUM": invalid identifier
    Plese help me in above.

    Try
    CREATE OR REPLACE VIEW rdr_le_info_view
    AS
    SELECT l.strategic_le
    ,cun.ucn cunucn
    ,cun.date
    ,cccs.ucn ucn
    ,cccs.agr_num
    FROM strat_le l
    ,ucn_name cun
    ,customer_setup cccs
    ,cccs.run_num run_num
    WHERE l.gfa_until_dt = '31-dec-9999'
    AND l.glas_until_dt = '31-dec-9999'
    AND l.int_until_dt = '31-dec-9999'
    AND cccs.ucn_lead_office = cun.ucn
    AND cun.OID = l.client_oid;Then call it like:
    select *
    from rdr_le_info_view
    where run_num = v_run_num;

  • Error While Creating Materialized View

    Hello,
    I am getting error ORA-22818: subquery expressions not allowed here while creating materialized view. I am using Oracle9i Enterprise Edition Release 9.2.0.1.0. Below pasted is my SQL Script.
    Any help is highly appreciable.
    Thanks
    *********SQL************
    select distinct(id),NAME,(select count(GRADE) from employees where
    nationality like '%US%'and id=a.organization_id and grade=a.grade
    group by ID,GRADE) US,(select count(GRADE) from employees where
    nationality not like '%US%' and organization_id=a.organization_id and grade=a.grade
    group by ORGANIZATION_ID,GRADE) NON_US,grade from employees a
    where grade is not null
    group by GRADE,ID,name
    order by to_number(grade) desc

    Hi,
    This is a documented restriction on MVs. You cannot have a scalar express (i.e a select statement) in the select list.
    You can get round this by joining your select count(grade).. expression in as an inline view in your FROM clause. Or you can create a normal view without the scalar expression, create your MV as a select from this view, then re-define your view to contain the query you want.
    Hope that helps,
    Rod West

  • Error while creating Materialized View step 3 of 6 using wizard

    have oracle 9i Rel 1 on Windows 2000 server. Master Site has been setup. Database links are created at Materialized view site. But while creating Materialized View Group using wizard there is following error on step 3 of 6.
    Statement:----------------
    /*OracleOEM*/ SELECT 1 FROM SYS.dba_constraints@masterdbname WHERE OWNER='username' and table_name='tabname' AND constraint_type='P'
    Stack Trace:----------------
    ORA-00942: table or view does not exist.
    ORA-02063: preceding line from masterdbname.
    All parameters for replication are correct.
    Please help me early.
    Thanks

    Hello,
    In the masterdbname, logging as sys user, you must grant select permission on sys.dba_constraints view to mvadmin_dbname user (where dbname is the replicated database name).
    Regards,

  • Error while creating Materialized View step 3 of 6

    I have oracle 9i Rel 1 on Windows 2000 server. Master Site has been setup. Database links are created at Materialized view site. But while creating Materialized View Group there is following error on step 3 of 6.
    Statement:----------------
    /*OracleOEM*/ SELECT 1 FROM SYS.dba_constraints@masterdbname WHERE OWNER='username' and table_name='tabname' AND constraint_type='P'
    Stack Trace:----------------
    ORA-00942: table or view does not exist.
    ORA-02063: preceding line from masterdbname.
    All parameters for replication are correct.
    Please help me early.
    Thanks

    Hello,
    In the masterdbname, logging as sys user, you must grant select permission on sys.dba_constraints view to mvadmin_dbname user (where dbname is the replicated database name).
    Regards,

  • Problem:  While creating a project in iDVD, it plays perfectly on the computer, but after burning the sound is off.  Video soundtrack is not in the right place.  HELP!

    Problem:  While creating a project in iDVD, it plays perfectly on the computer, but after burning the sound is off.  Video soundtrack is not in the right place.  HELP!

    Have you checked out the topics at the right in the More Like This section?
    OT

Maybe you are looking for

  • How to make an animated gif on a imac

    Hi guys I am running an Imac OS X 10.9.4. I would really like to make some animated gif's if possible. Can anyone help me please? I tried some instructions using Preview, but my preview does not allow saving a file as a .gif, nor does half the things

  • How to get two out param which is used in Procedure

    hi experts, Am keep on thinking, but not yet answer myself.. so am here Using Jdev11.1.1.5.0-adfbc. I had in db, procedure like this PROCEDURE proc_find_x_cal_year_period      p_bu                    VARCHAR2,      p_date                    DATE,    

  • How to increase/decrease text size in CS5?

    I came straight from DW MX and in CS5 if I want to, for example, change the font size just for one line in an article already published, I don't see a way to do it. At the bottom under Properties, I can select "CSS" and see the font size, but it want

  • Linked Server :: OLE DB provider "OraOLEDB.Oracle" for linked server "ABC" returned message "New transaction cannot enlist in the specified transaction coordinator. ".

    Hello All, As mentioned in title, i am stuck up with that articular error from last three days, i have following scenario, my SQL server 2008, my oracle 10g are on both same machine with OS Windows Server 2008. the following error generated on my man

  • SAP BI - Data Services connection

    Hello I am trying to set up SAP BI - Data Services connection. Couple of questions : 1. Where from within the SAP can I get SAP gateway hostname and SAP gateway service name 2. I have a developer right on BW. Is it enough to make connection with my u