Reference to record

Hi,
I have problem with referencing to record of table.
Could you help me, please.
I have two tables:
tab1(PK_tab1,something) and tab2(PK_tab2,FK_pk_tab1,somethingelse)
relation tab1.pk = tab2.FK_pk_tab1
On 1st page(report) is displayed by select * from tab1;Here,1st column of tab1 is PK("link"-reference to tab2 )
Now,If I click on "link" will be displayed(on 2nd page) rows from tab2(only these rows : select * from tab2 where tab1.pk = tab2.FK_pk_tab1;)
Reginons/report/1stpage/report atributes/edit column PK
I do this :
Column Formatting/Highlight Words : &P1_REPORT_SEARCH.
Tabular Form Element/Reference Table Name : tab1
..../Reference Column Name : PK
Column Link/Link Text : #PK#
.../Page : 2
Name /Value
P2_FK_pk_tab1/#FK_pk_tab1#
and in 2nd page I regions/report P2
regions definitions/source : I tried this select * from tab2 where FK_pk_tab1 = &P1_PK;
But not functional.
report error:
ORA-01008: not all variables bound
Do you know where I did wrong?

Try changing your query to
  select * from tab2 where FK_pk_tab1 = :P1_PKIt's best to use the bind variable format for variables in queries.
You were using the format that works like a substitution string, which is more appropriate when you want to display a variable.
Plus, you were missing the period at the end.
Variables used as substitution strings need to start with an & and end with a period.
For example:
      &P1_PK.Here's a link to that topic in the documentation:
http://download-east.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25309/concept.htm#BEICHBBG

Similar Messages

  • Once I updated to OS 6 all my calendar entries from early in the year  have disappeared. I need them as a reference and record of activities how do I restore them?

    Once I updated to OS 6 all my Calendar entries from the early part of the year disappeared. I need them as a record of PD activities how do I restore the earlier entries. The new future activities are there just the old ones have disappeared.

    Well, that would depend on what calendar you are using.
    If you are simply relying on the calendar on the device, well, that's not very smart.  Restoring from backup should put everything back.
    If the calendar is synced with another service, like Google, iCloud, Exchange, do the entires still exist there?
    If the calendar is synced with Outlook or iCal on your computer, do the entries still exist there?

  • Reference record in another record

    Hi,
    I have two packages each having one record. Is it possible to reference the record of the second package in the record of the first package ? For example:
    create or replace pkg1 is
    type rec1 is record (
    col11 integer,
    col12 ref pk2.col21
    end pkg1
    create or replace pkg2 is
    type rec2 is record (
    col21 integer,
    col22 varchar2(20)
    end pkg2
    The above code always results in PLS-00532.
    I don't want a nested record but something like a foreign key from one record to another...
    thank you for your help,
    Vanessa

    You have two options:
    1).
    SQL> create or replace package pkg2 is
      2      type rec2 is record (
      3          col21 integer,
      4          col22 varchar2(20)
      5      );
      6  end pkg2;
      7  /
    Package created.
    SQL> create or replace package pkg1 is
      2      type rec1 is record (
      3          col11 integer,
      4          col12 pkg2.rec2
      5      );
      6  end pkg1;
      7  /
    Package created.
    SQL>2).
    SQL> create or replace type rec2 is object (
      2          col21 integer,
      3          col22 varchar2(20)
      4      );
      5  /
    Type created.
    SQL> show errors
    No errors.
    SQL> create or replace package pkg1 is
      2      type rec1 is record (
      3          col11 integer,
      4          col12 ref rec2
      5      );
      6  end pkg1;
      7  /
    Package created.
    SQL>

  • Using a session object to hold the value of a record set?

    Hi,
    I'm trying to hold the value of a record set (or literally the content of a column in a query in a db) in a session variable so that I can call on this later and insert into another table.
    I'm not sure of the correct syntax, I've already made a connection to the DB. I'm trying the following but it doesnt seem to like the code:
    <% session.setAttribute("code",rs("column_name")); %>
    <%String attrib =
    String.valueOf ( session.getAttribute("code")); %>
    Hello <%= attrib %>
    Any ideas, I dont know how to reference the record set, I declared the recordset previously as rs. Help! Can't find examples anywhere on the net!

    So just to recap. I appear to be seeing the column name "custorderno" within the Microsoft Access query "lastcust". But I get "no data found" when I run the following code (which I have sectioned off)
    <!-- connect to database and lastcust query --!>
    <%
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    Connection conn = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:/Tomcat/jakarta-tomcat-4.1.31/webapps/ROOT/Oatcake.mdb","","");
    Statement statement = conn.createStatement();
    String sql = "SELECT * FROM lastcust";
    ResultSet rs = statement.executeQuery(sql);
    while (rs.next()) {
    %>
    <TR><TD><%= rs.getString("custorderno") %></TD>
    </TR>
    <% session.setAttribute("code",rs.getString("custorderno")); %>
    <% String attrib =
    String.valueOf ( session.getAttribute("code") ); %>
    Hello <%= attrib %> [B]
    <%
    %>
    </TABLE>
    <%
    if (statement != null)
    statement.close();
    if (conn != null)
    conn.close();
    catch (Exception e) {out.print(e);}
    %>
    </BODY>
    </HTML>
    No as mentioned I am (as you can see) declaring everything as a string when in actual fact the contents of the "custorderno" within the query is set to a autonumber within MS Access.
    The while loop does work by returning the contents but the session object part is not working correctly with the following result returned:
    [B]java.sql.SQLException: No Data Found
    Help please!

  • DIEN vs. service master record

    Hello gurus,
    I know there are two ways of maintaining master data for services:
    - Material master records with material type DIEN
    - service master records
    Now, what are the pros and cons of each alternative?
    One thing I found out is that if I use DIEN-materials there is no way to record the provision of the service because there can be no goods receipt for DIEN-materials, correct?
    What factors did I miss?
    Thanks
    Alicia

    Thank you to both of you,
    first of all, Kishore, you are perfectly right: A goods receipt can be performed for DIEN-materials, too. I got that one mixed up with service items in purchasing orders.
    But then, the two answers unfortunatlly are a little contradictionary. In my view DIEN-materials can be used for procurement, too. So the sole difference for the process is that service master records are more detailed in reference to recording what exactly has been done and how long it took?
    That means, if I only nead a means to record if a service has been provided or not (without recording any times etc.), DIEN materials are sufficient, correct?
    Thanks again
    Alicia

  • How to update child record when item from parent record changes

    Hi, I have a master and detail form with two regions on the same page.
    Region one references parent record, one of column in the parent record is also in the child record. And is one to many relation
    between parent record and child record. How can I have the column on the child record updated when the column of the parent record is being modified?
    For exemple; Parent record has two columns : ID and Program.
    Child record has Program, goal# and status. I have two pages established, page 27 and page 28.
    Page 27 list out all programs from parent record, by clicking on edit to a program, it braches to page 28 with program listed as editable field in region one, and mulitple records list in region two from the child record with the same program.
    The problem that I am having is once the program in region one got modified using ApplyMRU, the program in child record did not get updated with the new value and therefore those record become orphan records. I need a way to update all current child records with the new program value.
    Thanks in advance for anyone who can hlep out on this problem.
    Julie
    Edited by: JulieHP on May 24, 2012 4:57 PM

    One Idea is
    If possible create a after update database trigger on the parent table to update the relevant child record.
    Next one
    Create a PL/SQL process on the parent page with process sequence next to ApplyMRU, so when the ApplyMRU is seccessfull it goes not to your process where you can have your update statement

  • Referencing Record Groups in a PL/SQL Library program unit

    I want to move a program unit into a PL/SQL Library. I know how to reference data items from the form, but how do I reference a record group? Here's the code sample:
    PROCEDURE pu_init_tree IS
    HTREE ITEM;
    V_IGNORE NUMBER;
    BEGIN
    HTREE := FIND_ITEM('CONTROL_TREE.MENU');
    V_IGNORE := POPULATE_GROUP('RG_USER_MENU_TREE');
    FTREE.SET_TREE_PROPERTY(HTREE, FTREE.RECORD_GROUP,'RG_USER_MENU_TREE');
    :CONTROL.Node_Selected := Ftree.Get_Tree_Node_Property('CONTROL_TREE.MENU', 1, Ftree.NODE_VALUE) ;
    END;
    Thanks much

    Hi,
    you can try adding parameters to your program unit:
    PROCEDURE pu_init_tree(your_item_name in varchar2, your_rec_group_name in varchar2) IS
    HTREE ITEM;
    V_IGNORE NUMBER;
    BEGIN
    HTREE := FIND_ITEM(your_item_name);
    V_IGNORE := POPULATE_GROUP(your_rec_group_name);
    FTREE.SET_TREE_PROPERTY(HTREE, FTREE.RECORD_GROUP,your_rec_group_name);
    :CONTROL.Node_Selected := Ftree.Get_Tree_Node_Property('CONTROL_TREE.MENU', 1, Ftree.NODE_VALUE) ;
    END;
    Regards,
    Hugo

  • Expiry of Purchase info record reminder

    Hi All,
    Is anyone aware about if it is possible to set some kind of reminder with a lead time, with respect to tht expiry of Purchase info record price in Material management
    Regards
    Vivek

    hi  vivek
    info  record maintains  vendor  number  and  material  number and  purchase  org  and  plant 
    this  is  relation  of  vendor  and  pricing   condition  of  matrial  already  recieved  from  vendor  this  info  record  u  can  use   as   reference  condition  record 
    u  can not   give  lead  time    for  info  records
    ok
    regards
    kishorre   reddy

  • Record Center Archival Strategy/Best Practise

    I am familiar with record center but I would like some guidance on how to do some of the things.
    Scenario : We have 4 site collections, 2 site collections are containing team sites which are built for different departments and one site collection is project site collection which contains sites for on going project and last site collection is for record
    center. There are different content types associated with each of libraries in above sites.
    -- From the team sites in those two site collections, only few documents from document libraries need to be archived (Here I would like to know, should I create a separate library in record center for each library in source site -- in this approach record
    center will have numerous libraries or just create one library for each team site and archive all documents in it -- this approach has drawback of finding document)
    Same way for project site collection where once project is ended they would like to archive all libraries : should I archive each separate library or archive all project libraries for that project into one library on record site.
    Dhaval Raval

    Hi Dhaval,
    I found articles for different aspects of Record Management in SharePoint 2010 for your reference:
    Introducing Records Management in SharePoint 2010
    http://blogs.msdn.com/b/ecm/archive/2010/02/13/introducing-records-management-in-sharepoint-2010.aspx
    Estimate performance and capacity requirements for large scale document repositories in SharePoint Server 2010
    http://technet.microsoft.com/en-us/library/hh395916(v=office.14).aspx
    Choose how to store and manage records
    https://support.office.com/en-us/article/Choose-how-to-store-and-manage-records-5299e96c-00ea-47dc-a711-f21b3cea00d3?ui=en-US&rs=en-US&ad=US
    To design the record management plan, we need consider about govermance, performance, security and etc.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Why not use work records in IB messages?

    Adding a derived / work record to a message now (tools 8.50) displays the following warning:
    Warning - Record TPT_EXP_HDR_WRK is a work record. (158,2758)
    The message then displays a "Structure references work records. (158,2759)" warning, for which the explanation is: "Work records should not be used to create rowset-based messages. Use dynamic views instead." The only reference to this I can find in PeopleBooks is:
    "Note. Avoid using derived/work records in messages. Work records don't behave like regular records when used with PeopleCode rowset methods. A good alternative is to use dynamic views."
    I understand the difference between work records ad regular records, but fail to see why this should preclude their use in messages. Can anyone explain why this is so, and what problems may be encountered by using work records in messages?
    Thanks,

    Barney, I've seen the error as well and thought it seemed odd, considering that messages don't write to the database. I ignore the warning and use derived/work records anyway. I have not had any problems.
    There are generic subscription programs that use the message record name to generate SQL inserts for subscriptions. Of course, if you were to use one of these generic subscription handlers, then you would have problems.

  • Where is the Record Update Form Wizard in DWCC?

    Trying to follow online help but it doesn't relate to DWCC.   A tutorial I found for CS6 suggests that it's in Insert > Data Objects > Update Record > Record Update Form Wizard but in DWCC there is no "Data Objects" option in the Insert menu.
    By the way, I'm looking for the wizard not the straight Update behaviour which I'm aware is in the Server Behaviours panel.
    Thank you.
    NJ
    EDIT:  Just spoke to Adobe "support" by chat about this and they were absolutely useless. The directed me to the article that I've highlighted above as being for CS6, which isn't helpful because "Data Objects" isn't in the Insert menu in DWCC, and when I pointed that out they gave me this link to try:  http://www.adobe.com/devnet/
    Seriously?  Is this the best I can hope for from Adobe support?  It was clear that the operative was just doing Google searches for the answers as opposed to actually knowing the software that they represent.  Really disappointing support.

    Hi Jon,
    "Database functionality was removed from DWCC."  - I use database functionality a lot so this is a real let down.  Why has it been removed when it seems so integral to a lot of modern websites and web applications?
    I've got the Legacy Extension, or Depracated_ServersBehaviours panel extension, but that does not bring back the Record Update Form Wizard.
    Tutorials as far as CS6 reference the Record Update Form Wizard but I'm guessing that it has just been completely dropped in DWCC - not that anyone from Adobe know that one way or another.  The official "support" I received earlier was a complete joke (some guy doing Google searches whilst saying - "I'm just verifying your account").
    I'm quite handy with Google myself so maybe there's an opportunity for me to move into a career as an Adobe support technician.
    I'll have to find a third party extension then I guess.  Thanks for the advice.

  • Record narration in Powerpoint 2013 with returns to previous slides

    Hi,
    I am trying to record narration on a Powerpoint slide show  (Powerpoint 2013). However I discovered that I can go only forward with slides. When I return to a previous slide the audio simply overwrites the narration of the first visit to the slide.
    I s there any way to have Powerpoint store multiple audio segments and the timing on returning to previous slides ?
    Thanks

    Hi,
    Could you please tell me how do you record narration in PowerPoint 2013? Do you use record slide show from Slide Show?
    If yes, it records narration on each slide not by time. This is why you return to a previous slide the audio simply overwrites the narration of the first visit to the slide.
    For more reference about record slide show:
    http://office.microsoft.com/en-us/powerpoint-help/record-and-add-narration-and-timings-to-a-slide-show-HA010338313.aspx
    Or we can try steps mentioned in following article:
    http://blogs.office.com/2011/03/02/the-secret-to-converting-your-presentation-into-a-video/
    Feel free to post back.
    Regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Passing Record Variable through Packages

    I have a question and hope that someone can help me to find the solution.
    I'm developing an application and I need to pass values form one procedure PR in package B to a function FN in package A. The why I try to go is passing the values by using a variable of record type.
    I have defined in both packages the same record structure that I also use in the declarations of procedure and function. I first compiled successfully the package A but when I try to compile the package B I get a compilation error:
    PLS-00306: wrong number or types of arguments in call to 'B.FN'
    It looks like the parameter definition or reference gets lost.
    Here below a very schematic example of my application:
    create or replace package A is
    type Rec1 is record
    ( rf1 T.f1%type,
    rf2 T.f2%type,
    rf3 T.f3%type)
    function FN ( Par in Rec1 ) return boolean;
    end;
    create or replace package A is
    function FN ( Par in Rec1 ) return boolean is
    V_ret boolean;
    begin
    whatever it does
    return V_ret ;
    end;
    end;
    create or replace package B is
    type Rec1 is record
    ( rf1 T.f1%type,
    rf2 T.f2%type,
    rf3 T.f3%type)
    procedure PR ( Par in Rec1 ) return boolean;
    end;
    create or replace package B is
    procedure PR ( Par in Rec1 ) is
    VP Rec1;
    V_go boolean;
    begin
    VP.rf1:= something_1;
    VP.rf2:= something;
    VP.rf3:= something;
    V_go:=FN ( VP ); <= here the compiler complaints
    whatever it does
    end;
    end;
    Many thanks for a quick answer.

    Okay I didn't notice the error message text in the body of the paragraph above.
    PS. If I specify singularly the fields in the parameter list I pass the compilation
    but I would like to use a record variable as one.Did you see my post where I always reference the record variable in package A?
    create or replace package B is
    procedure PR ( Par in A.Rec1 ) return boolean;
    end;
    create or replace package B is
    procedure PR ( Par in A.Rec1 ) is
    VP A.Rec1;
    V_go boolean;
    begin
    VP.rf1:= something_1;
    VP.rf2:= something;
    VP.rf3:= something;
    V_go:=A.FN ( VP ); <= here the compiler complaintsIt should work.

  • File Adapter - SP12

    Hi,
       We are in XI 30, SP12 and we were trying out passing the payload value as the file name.
    SAP help says that in the Variable Substitution, we should be giving as follows:
    Variable Name    FileName
    Reference  payload: Record,1,DT_HEADER,1,FILE_IDENTIFIER,1
    (Reference will show the XML path traversal till the least node to get the relevant value from the payload as per SAP help).
    In the filename Scheme we are mentioning the variable name <b>%FileName%</b>. But its not taking the value contained in the variable FileName which should hold the payload value. But its not happening.
    Anyone did some trial on the same pls throw some light on this issue..
    Thanks in advance
    Jayakrishnan

    To make the example if the online help run, you have to do following:
    File Access Parameters:
    -> File Name Scheme: %var1%.xml
    Processing Parameters
    -> File Construction Mode: Add Time Stamp
    Variable Substitution
    -> Enable: x
    Variable Name: var1
    Reference: payload:root,1,e1,1,e2,2
    Send this payload (use sender file adapter)
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <dummy>
         <e1>
            <e2>Data_1</e2>
            <f/>
            <g attr="abc">text</g>
            <e2>Data_2</e2>
         </e1>
      </dummy>
      <e1>
         <e2>illegal/value</e2>
         <f/>
         <g attr="abc">text</g>
         <e2 attr="fghij">Example Value</e2>
      </e1>
    </root>
    Result: Your file name looks like this:
    Example Value20050607-131921-414.xml
    =====================================================
    The example of Michal was ( _ omitted):
    payload:
    <?xml version="1.0"?>
    <OutputTag>
    <From>newfilename</From>
    </OutputTag>
    same config as above, besides:
    Reference: payload:OutputTag,1,From,1
    Result: newfilename20050607-133624-145.xml
    Hope this helps
    Stefan

  • In SM21 - Database error 235 at EXE

    Hello Gurus,
    In sm21 - Database error 235 at EXE this error shown in our test server, while investigating I found this
    ( I am attaching log for your reference )
    Details
    Recording at local and central time........................ 25.03.2009 23:02:24
    Task................ 15116  /  Background Processor No. 18
    User................ CSCADMIN_BC
    Client.............. 050
    Terminal............
    Session............. 1
    Transaction code....
    Program name........ RSORAHST
    Problem class....... K    SAP Web AS Problem
    Development class... SBAC
    Module name......... dbds
    Line................ 798
    Table name.......... 235
    Field name.......... EXE
    Documentation for system log message BY 2 :
    After the attempt to call a database operation, the database system has
    returned the error code specified in the message, which indicates that
    the operation concerned could not be executed successfully.
    Technical details
    File................ 018863
    Position............ 0000235620
    Entry type.......... h      ( Database Error (Non-SQL)       )
    Message ID.......... BY 2
    Variable parts...... 235       EXE                                       dbds    798
    The given program associated with this job SAP_PERIODIC_ORACLE_SNAPSHOT but this is run successfully on the test server.
    Can somebody tell me the error & the rectification for the same
    Thanks & regards
    Shishir

    Please check
    - ST22 for dumps
    - alert<SID>.log of the database
    - dev_w18 tracefile
    Do you use the same patches on both DEV and this system?
    Markus

Maybe you are looking for

  • Data Conversion in SAP E-Recruiting.

    Hi SAP E-Recruiters, Our client is using a Legacy application for recruiting candidates where it has 5000 candidates data base (internal and external candidates' applications). Now they are asking for movement of this whole data to the newly implemen

  • Conversion to PDF problem

    Spool to PDF is failing....when line size is greater than 255 character.. only 255 chararcters are coming up in the PDF I have to convert the spool (Abaplist) to PDF and send as a mail attachment. Any help is highly appreicated.

  • Error using java and javascript

    I have a jsp page that links to a bean and is working fine (getting data from the database). On a html form I have a button with a picture that fires off javascript when clicked: <BUTTON TYPE=reset onclick=showinfo('<%=index%>')> <IMG SRC="http://loc

  • CLEAR SELSCREEN

    Hi. I have a report with selection screen. I put values in the select-options of selection screen, and after the program call a smartform. When returns, the values still in the select-options. I refresh the select-option (refresh and clear), but no w

  • Tab option for choosing Planned delivery cost in Miro screen

    Hi all I'm a new user in SAP system and I have a question as follows:on Miro screen, I do not see the tab, select Planned delivery cost, I think someone did somthing in  system and made it hidden.it displayed above the layout tab, so  I want to know