View cluster table child table calling problem!

Hi All,
I have created a cluster table with one table as header and one as item...
Header table : ZRAJ1
ITEM TABLE : ZRAJ2
ZRAJ1 :
ZPRODUCT
ZPROD_DESC
ZSTATUS
ZUSER
ZRAJ2:
ZPRODUCT
ZLABEL
This clearly shows that zraj2 is depending on ZRAJ1.
Created a cluster with these two tables.
Also, created events for ZRAJ1.
EVENT 05:
FORM create_entry.
  yraj1-zuser = sy-uname.
ENDFORM.
EVENT 02:
FORM after_save.
  IF yraj1-zstatus = 'L'.
    CALL TRANSACTION 'ZRAJ_VIEW'.
  ENDIF.
ENDFORM.
If the Zstatus is "L" in ZRAJ1, a new transaction will be called to maintain the child table zraj2.
Trasnaction 'ZRAJ_VIEW'.
REPORT 'ZRAJ_VIEW'.
INITIALIZATION.
*declaration:
  DATA : itab LIKE vimsellist OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
*To call the MAintanence screen directly through the program:
  CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
    EXPORTING
      action                               = 'S'
  CORR_NUMBER                          = ' '
  GENERATE_MAINT_TOOL_IF_MISSING       = ' '
  SHOW_SELECTION_POPUP                 = ' '
      view_name                            = 'YRAJ2'
  NO_WARNING_FOR_CLIENTINDEP           = ' '
  RFC_DESTINATION_FOR_UPGRADE          = ' '
  CLIENT_FOR_UPGRADE                   = ' '
  VARIANT_FOR_SELECTION                = ' '
  COMPLEX_SELCONDS_USED                = ' '
   TABLES
      dba_sellist                          = itab
  EXCL_CUA_FUNCT                       =
EXCEPTIONS
  CLIENT_REFERENCE                     = 1
  FOREIGN_LOCK                         = 2
  INVALID_ACTION                       = 3
  NO_CLIENTINDEPENDENT_AUTH            = 4
  NO_DATABASE_FUNCTION                 = 5
  NO_EDITOR_FUNCTION                   = 6
  NO_SHOW_AUTH                         = 7
  NO_TVDIR_ENTRY                       = 8
  NO_UPD_AUTH                          = 9
  ONLY_SHOW_ALLOWED                    = 10
  SYSTEM_FAILURE                       = 11
  UNKNOWN_FIELD_IN_DBA_SELLIST         = 12
  VIEW_NOT_FOUND                       = 13
  OTHERS                               = 14
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
it is calling, ok no issues but it is not allowing me to create a new entry in the child table zraj2.
Error: Table is locked by the user Raj.Checked in SM12 yes there is an lock entry for the table zrst(cluster),  zraj1, zraj2.
Question :
By default in the execution of cluster will there be a lock in all the child table as well.
if so how to create new entries....
For your information : Standalone it is working fine.That is if i execute ZRAJ1 in SM31 i am able to create new entries..
Can any one provide some input on this............
Tahnks,
raj.

I don't know any direct transaction for your purpose, but you can use this program RSTXSCRP to download your form into the local file and than you can open it to view.
Regards,
Naimesh Patel

Similar Messages

  • Problem with Master and Child table

    Hi,
    Working in jdev 11.1.1.2.0. I have one strange issue. i have master and child tables, the model is working fine with the view link. but when drag drop the same into my jsff. when i query the result 1st time 2 tables are refershing properly and data is coming. but the when i trying to select another row in the 1st table my 2nd table(child table) is not refreshing.
    i put partial trigger of the 2nd table as 1st table id.
    can any one help wht is issue here.
    Edited by: user5802014 on Jul 15, 2010 3:44 PM

    Check this post might help you
    http://baigsorcl.blogspot.com/2010/03/creating-master-detail-form-in-adf.html

  • F4 help for a field in item table in a view cluster

    Hi All,
    I have a view cluster with two tables. I should provide F4 help for field in item table based on the selected row of the header table.
    F4 should have only values fetched based on the header table entry.
    How can i achieve this. Please suggest.
    Regards,
    Kusuma K.

    Hi amar_war,
    use screen painter to edit the screen layout where the field VKBUR is on. Double click the field to get the details screen. Here you can attach a search help to the field.
    H_TVBUR has no more parameters, it will display a list of al sales offices with description text
    H_TVBVK will also show the sales group, if VKGRP is a screen field, it will restrict the result list automatically on matching VKGRP.
    H_TVKBZ has also VKORG VTWEG SPART - it will take those values from screen if filled.
    If you are not satisfied with the results, you can easily create your own search help using own selection method and own search help exits if required.
    Try standard search help for standard field first.
    You can create a copy of VKBUR as ZVKBUR and attach search help there, you can create your own screen structure and attach the search help there - 50 ways to get your search help...
    Regards,
    Clemens

  • Parent - child tables foreign key relation ship

    Hi All,
    we have 600 hundred tables ..i would like to print a hierarchial tree based on the foreigh key relathionship
    i tried my best but i couldnt.
    parent table
    child table 1
    childtable3
    child table 2
    and so
    Can somebody help me out with a query?
    Thanks,
    kt

    CREATE OR REPLACE FUNCTION get_child_tables (
    ptable VARCHAR2,
    powner VARCHAR2 DEFAULT 'SCOTT',
    plevel NUMBER DEFAULT 10
    RETURN stringarray
    -- -- create this ON SQL*PLUS "CREATE OR REPLACE TYPE STRINGARRAY AS TABLE OF VARCHAR2(50);"
    -- AUTHID CURRENT_USER
    PIPELINED
    AUTHOR DATE VERSION COMMENTS
    ======================================================================================
    [email protected] 26-OCT-2009 1.0 Developed to ease developers effort to find Nth level of Referential integrity
    ======================================================================================
    -- PURPOSE -> To find PARENT=> CHILD relational TABLE(S) in Oracle upto a depth max N Level.
    --SYNTAX TO USE
    SELECT * FROM TABLE( get_child_tables('DEPT','SCOTT',3)); Store this query in a file for your use
    SELECT * FROM TABLE( get_child_tables('EMPLOYEE')); Store this query in a file for your use
    -- RESULTS looks as below
    --1 => DEPT
    --2 => EMP
    --2 => EMP2
    --3 => EMP_CHILD
    --3 => EMP2_CHILD
    -- and so on
    --This can be leveraged to use in any oracle database REGION 10g having and above.
    --This FUNCTION gives formatted result of the Oracle 10g Hierarchical query result coded in the cursor
    --to find MASTER => CHILD relational TABLE(S) upto a depth max 10 Level.
    --The result of the PIPELINED function can be retrieved using Oracle new operator
    --TABLE(array name) in SQL query.
    --Due to the AUTHID CURRENT_USER compiler directive any user can use based on his/her access privileges on the database.
    --GRANT EXECUTE ON SCOTT.get_child_tables TO PUBLIC;
    --CREATE OR REPLACE PUBLIC SYNONYM get_child_tables FOR SCOTT.get_child_tables;
    IS
    atname stringarray := stringarray ();
    -- create this ON SQL*PLUS CREATE OR REPLACE TYPE STRINGARRAY AS TABLE OF VARCHAR2(50);
    vlevel NUMBER;
    vtname VARCHAR2 (50);
    nindex NUMBER := 0;
    bprocessed BOOLEAN := FALSE;
    CURSOR c1 (powner_in IN VARCHAR2, ptable_in VARCHAR2, plevel_in NUMBER)
    IS
    SELECT LEVEL, LPAD (' ', (LEVEL - 1) * 2, ' ') || pt AS "TNAME"
    FROM (SELECT a.owner w1, a.table_name pt, a.constraint_name c1,
    a.r_constraint_name r1, b.owner w2, b.table_name ct,
    b.constraint_name c2, b.r_constraint_name r2
    FROM all_constraints a, all_constraints b
    WHERE a.constraint_name = b.r_constraint_name(+)
    AND a.owner = b.owner(+)
    AND a.owner =
    UPPER (powner)
    -- Change Owner here while testing
    --AND A.r_constraint_name IS NULL
    AND a.constraint_type IN ('P', 'R')) v1
    START WITH pt =
    UPPER
    (ptable)
    -- Change your master table here while testing the QUERY
    CONNECT BY PRIOR ct = pt AND LEVEL <= plevel;
    -- Change lavel here while testing
    BEGIN
    atname.EXTEND;
    atname (1) := 'NOTHING';
    OPEN c1 (powner, ptable, plevel);
    LOOP
    bprocessed := FALSE;
    FETCH c1
    INTO vlevel, vtname;
    IF nindex > 1 AND atname (atname.LAST - 1) = vtname
    THEN
    --DBMS_OUTPUT.PUT_LINE('2 ==== vtname  ' ||vtname || '   '|| atname.count|| '   '||atname.last ||  '   '||atname( atname.last-1));
    bprocessed := TRUE;
    END IF;
    IF NOT bprocessed
    THEN
    nindex := nindex + 1;
    atname.EXTEND;
    atname (nindex) := vtname;
    PIPE ROW (vlevel || ' => ' || vtname);
    DBMS_OUTPUT.put_line ( ' **** nindex - atname( nindex) '
    || nindex
    || ' - '
    || atname (nindex)
    DLOG('ADDING ',vTname); A LOGGING ATONOMUS PROCEDURE FOR DEBUG PURPOSE
    END IF;
    EXIT WHEN c1%NOTFOUND;
    END LOOP;
    CLOSE c1;
    FOR i IN 1 .. atname.COUNT
    LOOP
    DBMS_OUTPUT.PUT_LINE('atname (i) ' ||atname (i));
    END LOOP;
    RETURN;
    EXCEPTION
    WHEN no_data_needed
    THEN -- THIS EXCEPTION HAS TO BE THERE TO GET THE FUCTION WORKABLE
    DBMS_OUTPUT.put_line (SQLERRM);
    RETURN;
    END get_child_tables;
    /

  • Master Child Table

    Hi,
    I am using JDeveloper 11.1.1.4 version.
    In my page I have master child relation to be displayed.
    I am displaying this by following the standard adf-bc master child example.
    i.e add the id of the master child as partialTrigger to the child table.
    But my requirement is that, multiple row selection is enabled for the master table and when multiple rows are selected in master table,
    child table should not display any records.
    How can I achieve this??
    Also,I have a details panel displayed right under master table which displays selected row values in a form.
    Here also,when multiple rows are selected,I should not display any values in the details panel.
    Please advice on how to achieve this.
    Thanks,
    Praveen

    Hi,
    have a selection listener set on tabe to bean method and in bean getAllSelectedRowKeys from table. If you get more than or equal 2 entries hide the detail panel or write code so that u reresh ur detail vo to contain no rows

  • How to create EVENTS for a View Cluster.

    Hi Tech Gurus,
    I have created a view cluster on 5 tables. I need to do a validation and this can be done by using events. But i am unable to create a EVENT for the View Cluster. Could anyone please tell me how to create events for a View Cluster.
    Thanks in advance for your esteemed replies.
    Regards,
    Raghavendra Goutham P.

    Hello Pasapula
    When you are in the View Cluster maintenance dialog (SE54) click on dialog "Events".
    Below the field for the view cluster you have an additional field <b>FORM routines main program</b>. There you have to add the main program containing the FORM routines called by the VC events.
    For example: I had defined a normal report containing an include with all the FORM routines. The report contains only the following lines of coding:
    report zus_0120_u1.
    * Common Data und access routines for user exits in VC maintenance
    include LSVCMCOD.
    include  zus_0120_f1. "FORM routines for VC events
    Now in the "Events" dialog of the view cluster maintenance you assign your FORM routines to the events.
    Regards
      Uwe

  • Creating Z transaction from view cluster

    Hi All!
    I had created view cluster using SE54.This view cluster contains check tables to be maintained by the user.
    Now my problem is how to attach these view cluster to a Z transaction through SE93.In production se54 is not available and i have to attach this view cluster to the Z transaction so that selected users are restricted to use this view cluster.
    Regards
    Praneeth
    Points will be rewarded
    Message was edited by: Praneeth kumar

    Hi Rusidar,
    You can actually use the transaction code SE93 to launch a view cluster. Say you have a view cluster: MYVC. Here is how you can create a transaction code to display this:
    1. Execute transaction SE93.
    2. Enter the desired transaction code in the input field, say MY_TCODE.
    3. Click on 'Create' button. A 'Create Transaction' popup will open. In this popup, enter the short text for this code and choose the last radio among all radios which says "Transactions with Parameters ('parameter transaction')" and click 'OK'.
    4. In the resulting screen, enter 'SM34' as Default Value for transaction. Then add the following two entries under 'Default Values' section (this section is located towards the end of the screen):
    Name of screen field Value
    SHOW                     X  (means simulate click on 'Display' button
    VCLDIR-VCLNAME   MYVC ( This is the technical element that corresponds to the input field in the screen of transaction sm34).
    5. Check the checkbox 'Skip Initial Screen'.
    6. Save the transaction code.
    Try running the code. If your cluster view already works via sm34, it should execute....
    Cheers....
    Regards,
    Shiromani
    Edited by: Shiromani Raj Sharma on Dec 26, 2007 10:33 AM

  • Events in View cluster

    Hi .. i have a scenario where i created a view cluster with two tables/views.. so when i display data .. i dont want to see all the entries of my table.. i want to restrict data according to some conditions? how to do that? i have checked there are some events..but how to use it..i checked, but didnt get any help..i dont want to put events in my individual views, only in view cluster events? any ideas..

    Hi
    I don't think it can do it by event of the view cluster, but probably it cna't do it by event of the view of the single table.
    If you want to load all data in according to certain condition, you should create a table view and insert your condition there and so create the claster view based on this table view
    Max

  • Child Table Cache Problem - Only in Environment

    Hi All,
    I have master-child tables in a page. Master table is based on a VO and child table is based on pl/sql EO. When user updates any child table row and hits on save, I load the same page again by releasing AM. The problem is when the page loads again after update, two records are being shown in child table. One record with old value and other record with the modified value. But in database only record exists and it is successfully updated. If we again hit "Apply" on the page then only the updated record is shown. I am sure this is due to vo/eo caches. But after insert/update, I am forwarding to same page with retain am set to false. So this should clear-off all associated caches. I had even tried to clear vo caches explicitly before redirection. But even this doesnt help. This issue exists only in the environment but cannot be reproduced locally in JDev. Its working perfectly fine in JDev.
    Any pointer on the above issue?
    Thanks in advance,
    Murari

    hmm...caching may be happening at webbean level rather than the VO level. You can confirm this by getting the value of VO.getrowcount in processRequest.
    For both Classical table as well as Advanced Table, clearcache() method is available to clear the cache of data object for inner table. Call this in processRequest. You can put in a check to call this only when you self-redirect to this page.

  • How to restrict data from tables in a view cluster

    Hi,
    I have 5 Z* tables, Company code is the common code in all of these.
    I have created a view cluster on these five tables.
    My requirement is to viewcluster should display the data of the user's company code.
    When i see the data in SE54 it is showing the proper data(i.e data which is related to users company code) for some of the tables.
    And displaying all company codes data for some of the tables.
    What can be the issue here ?
    Do we need to map the data from proper data displaying tables to these tables ? if so How to do that ?
    Please help on how i can solve this issue.
    Regards,
    Sunil Tata.

    Here is a small utility that can be used to copy and paste between a table and Excel.
    I have been obliged to slice the llb into small chuncks for internet technical issues. Sorry...
    CCMessage Edited by chilly charly on 04-02-2005 03:21 PM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Copy.zip ‏24 KB
    Paste.zip ‏22 KB
    CopyPaste example.zip ‏11 KB

  • Problem with "Call Transaction" which calls a view cluster

    Hi Colleagues ,
    I have a rare issue with the call transaction , here is the use case for it :
    1> I call a transaction(calls a screen X) in a report ,
    2> I have a button in the screen , which calls another transaction(calls a screen X2) .
    3> On the screen X2 i have another button which calls transaction (calls the view cluster ).
    problem :
    i'm not able to see the navigation pane in the view cluster on the left. its missing .
    but when the view cluster is called direclty , i'm able to see the navigation pane in the view cluster ..
    My initial doubt was , is this the problem with nesting of 'Call Transaction' calls ????
    please answer the thread , i have to fix this ASAP.
    regards,
    Dilip

    problem solved.

  • Creating view cluster for a header and detail table

    Hi all,
    I want to create a View cluster for maintaining 2 tables (one is the header table and other is the detail table)
    ....for each line in the header table there can be multiple detail line items...
    If anyone has worked on such requirement...please tell me how should i go about developing it.
    after creation i should be able to maintain the cluster using transaction SM34....
    Thanks ,
    Sushil.

    hi
    refer to following link
    http://help.sap.com/saphelp_nw04/helpdata/en/d0/999246b2aa11d1a5700000e82deaaa/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d0/999246b2aa11d1a5700000e82deaaa/frameset.htm
    Cheers
    Snehi

  • How to get the Minum Grade level from the view cluster table V_T710CL_B

    Hi Guys,
    I want to fetch the Minum Grade level from the view cluster table V_T710CL_B
    kindly help me
    Regards
    Rusidar.

    HI Siggi,
    Thank you for your reply..
    I am also planning to do FM to get the data. But it is saying that the Cluster table ZES does not exist (ZES is the the standard table, in SE11 also).
    How can I use the Fields from the that table.?
    What can I do now, can you please explain me about this point.
    Waiting for your reply.
    Thanks and Regards
    Rajesh
    Message was edited by:
            rajesh

  • Display Description from Text table on View Cluster

    Hello All,
    I have the below requirement for creating a view cluster to maintain customizing data -
    V_TAB_1 has been created for table TAB_1. TAB_1has a text table associated with it.
    V_TAB_2 has been created for table TAB_2. TAB_2 has a field which has foreign key relationship with the key field of table TAB_1.
    I have created view cluster using above views V_TAB_1 and V_TAB_2. Now while maintain the data using view cluster, description is no visible on the UI.
    First Level of Data: This maintains the data in table TAB_1 and its text table.
    Now, If I select any record and click on the sub node of the view cluster - Following appears
    Second Level of Data -
    If we look at the data in the second screen shot, description 'Nitesh' is not coming against the reason code '1'. this is highlighted in the second screen shot
    I have tried to populated with Events as well. But could not succeed. Any help would be highly appreciated.
    Regards,
    Nitesh

    Hi
    I try to see the data of CSKS by SE16 and I can't see the text field (my release is 6.00) but I can see that field by SE16N, so just the situation like yours.
    Probably the fields of this table are too much, because SE16 can display the text field of other tables having a text table
    Max

  • Extension of connecting mater and child tables

    Initial Question:
    Need help in SQL :
    I have master table name called : AA
    Data is having :
    Date Display Name
    =====================
    10/3/2009 Q3 2009
    1/3/2010 Q4 2009
    1/13/2010 Q1 2010
    4/4/2009 Q1 2009
    7/4/2009 Q2 2009
    I have Child Table
    ===============================
    ID Date Name
    =======================================
    101 10/3/2009 AAAAA
    101 1/3/2010 AAAAB
    =====================================
    Reporting purpose, I need to have data in child table for every quarter.
    Problem is : I dont have data in child table for every quarter date.
    How I want : I want to create a view, which has data of child table along with all quarters, so that I can use that view in my report.
    Data I want in view :
    ID Date Name
    =======================================
    101 10/3/2009 AAAAA
    101 1/3/2010 AAAAB
    101 1/13/2010 NOT PRESENTED ( NEW ROW)
    101 4/4/2009 NOT PRESENTED ( NEW ROW)
    101 7/4/2009 NOT PRESENTED ( NEW ROW)
    I dont want to create any procedure for this, because evey time need to run the procedure to populate data in the view / table
    New Question: : I have got another parent for Child for ID's : Ex : 101
    Another Parent table: AP
    =====================
    ID
    =============
    101
    102
    103
    I want to show every quarter to this ID as well Child. ( I can partition from this id, but I need some data from Child also.)
    Data I want in view :
    ID Date Name
    =======================================
    101 10/3/2009 AAAAA
    101 1/3/2010 AAAAB
    101 1/13/2010 NOT PRESENTED ( NEW ROW)
    101 4/4/2009 NOT PRESENTED ( NEW ROW)
    101 7/4/2009 NOT PRESENTED ( NEW ROW)
    102 10/3/2009 NOT PRESENTED ( NEW ROW)
    102 1/3/2010 NOT PRESENTED ( NEW ROW)
    102 1/13/2010 NOT PRESENTED ( NEW ROW)
    102 4/4/2009 NOT PRESENTED ( NEW ROW)
    102 7/4/2009 NOT PRESENTED ( NEW ROW)
    103 10/3/2009 NOT PRESENTED ( NEW ROW)
    103 1/3/2010 NOT PRESENTED ( NEW ROW)
    103 1/13/2010 NOT PRESENTED ( NEW ROW)
    103 4/4/2009 NOT PRESENTED ( NEW ROW)
    103 7/4/2009 NOT PRESENTED ( NEW ROW)
    Thanks in advance

    Hi,
    Is this the same problem as: Need data in Child table based on master table
    Please don't post the same question more than once.
    Sometimes, if you've made a question very confusing, it may be good to start over with a better-worded question (not the exact same one). In that case, mark the original thread as "Answered", so all replies will be posted in one place.
    This site can be flaky, and it's possible to accidentally post a new question when you thought you were updating an old one.
    It that's what happened in this case, mark either one of the threads as "Answered" now, and we'll continue with the other one.
    Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables, and the results you want from that data.

Maybe you are looking for

  • Premiere Pro CC 7.2.1 Crashing and Corrupting on Mac

    This started shortly after updating from 7.1, to 7.2, to 7.2.1 almost back to back.  I cleaned out everything and re-installed, updated all CUDA drivers, and crashed through the forum without finding a specific cure for my problem.  I use Digital Reb

  • Cflayout does not validate in strict XHTML

    Greetings Is there a workaround for this? # Error Line 6, Column 70: there is no attribute "align" …ript">_cf_loadingtexthtml="<div align='center'><img src='/CFIDE/scripts/ajax/r… ✉ You have used the attribute named above in your document, but the do

  • Solar_project_admin to transport whole project

    We have some documentation in Solution Manager (in transaction "solar02"). It is version 3.1 we are using. We have to transport Documentation of project "smart" to a newer Solution Manager(version 3.2). However project "smart" exists aso on newer Sol

  • Fully qualified elements in clientgen ant task

    I think that ant clientgen task from WLS 10.3.3 is ignoring XSD parameter elementFormDefault="qualified". I generated client with this task and then sent simple request to webmethods server (i don't know version of this server either implementation o

  • Problems importing Session Ejb in Creator

    Hi all, I've tries to import a Session Ejb in a web app, usng Creator2. I have created the MyEjb.jar containing the ejb's classes, and the deployment descriptors. The ejb do not use any data source. Then, I've imported the ejb using the provided proc