How to place two tables at a time in every page in a smartform?

Hi All,
   I have a requirement in a smartform where i need two tables in every page. These tables should repeat on every page with regard to the data thats getting populated in it.If one table has more data it should not push the second table completely from the page.
Can anyone please give me a solution.

Hi
If you see in real time printing of Smartform documents like PO or SO or Invoice
we will see two tables data one is header data which will have a single record per document and Item data which will have mulitple records.
So header data is fixed in all pages and the Item data is printed in MAIN window and overflows to other pages depending on the data.
SO Item table data will be printed in number of pages where as the Header table data will pe constantly printed on the header part(top part) of every page.
so you can handle the 2 internal tables data as above
<b>Reward points for useful Answers</b>
Regards
Anji

Similar Messages

  • How To place two images in a obiee 11g Report Page header

    Hi ,
    Greetings for the day!.
    I want to place two images (one at top left and another at top right ) above the table view . I am not sure how it is called as. i think it is page header . Can anyone let me know how to accomplish this ?
    Kind Regards
    Sudarshan

    Hi,
    Will you pls let me know the best pixel size can be given for both images ?
    Also how can i make the images left and right aligned .Formatting option is not allowing to move the images left or right.
    Pdf output of the report header should display images one at extreme left and extreme right.
    Will you pls let me know whether i can try in single view(title/static/narrative) with html code like below :
    <img src="smiley.gif" alt="Smiley face" align="middle" />
    If so pls provide the details.

  • How to join two tables

    hi
    how to join two tables using inner join  if the first table has two primary keys and second table has 3 primary keys

    Would describe type of joins in ABAP, which might differ with other joins.
    The join syntax represents a recursively nestable join expression. A join expression consists of a left-hand and a right- hand side, which are joined either by means of INNER JOIN or LEFT OUTER JOIN. Depending on the type of join, a join expression can be either an inner (INNER) or an outer (LEFT OUTER) join. Every join expression can be enclosed in round brackets. If a join expression is used, the SELECT command circumvents SAP buffering.
    On the left-hand side, either a single database table, a view dbtab_left, or a join expression join can be specified. On the right-hand side, a single database table or a view dbtab_right as well as join conditions join_cond can be specified after ON. In this way, a maximum of 24 join expressions that join 25 database tables or views with each other can be specified after FROM.
    AS can be used to specify an alternative table name tabalias for each of the specified database table names or for every view. A database table or a view can occur multiple times within a join expression and, in this case, have various alternative names.
    The syntax of the join conditions join_cond is the same as that of the sql_cond conditions after the addition WHERE, with the following differences:
    At least one comparison must be specified after ON.
    Individual comparisons may be joined using AND only.
    All comparisons must contain a column in the database table or the view dbtab_right on the right-hand side as an operand.
    The following additions not be used: NOT, LIKE, IN.
    No sub-queries may be used.
    For outer joins, only equality comparisons (=, EQ) are possible.
    If an outer join occurs after FROM, the join condition of every join expression must contain at least one comparison between columns on the left-hand and the right-hand side.
    In outer joins, all comparisons that contain columns as operands in the database table or the view dbtab_right on the right-hand side must be specified in the corresponding join condition. In the WHERE condition of the same SELECT command, these columns are not allowed as operands.
    Resulting set for inner join
    The inner join joins the columns of every selected line on the left- hand side with the columns of all lines on the right-hand side that jointly fulfil the join_cond condition. A line in the resulting set is created for every such line on the right-hand side. The content of the column on the left-hand side may be duplicated in this case. If none of the lines on the right-hand side fulfils the join_cond condition, no line is created in the resulting set.
    Resulting set for outer join
    The outer join basically creates the same resulting set as the inner join, with the difference that at least one line is created in the resulting set for every selected line on the left-hand side, even if no line on the right-hand side fulfils the join_cond condition. The columns on the right-hand side that do not fulfil the join_cond condition are filled with null values.
    Note
    If the same column name occurs in several database tables in a join expression, they have to be identified in all remaining additions of the SELECT statement by using the column selector ~.
    Example
    Join the columns carrname, connid, fldate of the database tables scarr, spfli and sflight by means of two inner joins. A list is created of the flights from p_cityfr to p_cityto. Alternative names are used for every table.
    PARAMETERS: p_cityfr TYPE spfli-cityfrom,
    p_cityto TYPE spfli-cityto.
    DATA: BEGIN OF wa,
    fldate TYPE sflight-fldate,
    carrname TYPE scarr-carrname,
    connid TYPE spfli-connid,
    END OF wa.
    DATA itab LIKE SORTED TABLE OF wa
    WITH UNIQUE KEY fldate carrname connid.
    SELECT ccarrname pconnid f~fldate
    INTO CORRESPONDING FIELDS OF TABLE itab
    FROM ( ( scarr AS c
    INNER JOIN spfli AS p ON pcarrid = ccarrid
    AND p~cityfrom = p_cityfr
    AND p~cityto = p_cityto )
    INNER JOIN sflight AS f ON fcarrid = pcarrid
    AND fconnid = pconnid ).
    LOOP AT itab INTO wa.
    WRITE: / wa-fldate, wa-carrname, wa-connid.
    ENDLOOP.
    Example
    Join the columns carrid, carrname and connid of the database tables scarr and spfli using an outer join. The column connid is set to the null value for all flights that do not fly from p_cityfr. This null value is then converted to the appropriate initial value when it is transferred to the assigned data object. The LOOP returns all airlines that do not fly from p_cityfr.
    PARAMETERS p_cityfr TYPE spfli-cityfrom.
    DATA: BEGIN OF wa,
    carrid TYPE scarr-carrid,
    carrname TYPE scarr-carrname,
    connid TYPE spfli-connid,
    END OF wa,
    itab LIKE SORTED TABLE OF wa
    WITH NON-UNIQUE KEY carrid.
    SELECT scarrid scarrname p~connid
    INTO CORRESPONDING FIELDS OF TABLE itab
    FROM scarr AS s
    LEFT OUTER JOIN spfli AS p ON scarrid = pcarrid
    AND p~cityfrom = p_cityfr.
    LOOP AT itab INTO wa.
    IF wa-connid = '0000'.
    WRITE: / wa-carrid, wa-carrname.
    ENDIF.
    ENDLOOP.

  • How to place two checkboxes in a single line.

    Hi all,
        In selection screen , how we place two checkboxes
    with labels in a sigle line.
    Regards,
    bala.

    hi,
    chk this.
    chk this.
    SELECTION-SCREEN: BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(3) TEXT-003
    FOR FIELD P_Chk1.
    SELECTION-SCREEN POSITION 30.
    PARAMETER: P_chk1 AS CHECKBOX.
    SELECTION-SCREEN POSITION 35.
    PARAMETER: P_chk2 AS CHECKBOX.
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN: END OF BLOCK B2.
    rgsd
    anver
    if hlped mark points

  • How to place two narrow portlets in the same row of a wide column

    Hi,
    How to place two narrow portlets in the same row of a wide column.
    Im using ALUI 6.1
    Thanks in advance
    sandeep

    As I understand there is no easy way to do it now. I guess in theory that can be done by customizing ALUI page layout source code, but this is significant efforts. Correct me if there is more easy way to do it.
    Edited by Bryazgin at 05/23/2007 7:32 AM

  • How to place two different indesign documents side by side on my desktop in order to copy and paste images and text from one to the other?

    How to place two different indesign documents side by side on my desktop in order to copy and paste images and text from one to the other?

    Or choose Window > Arrange > Tile
    And, you of course can copy/paste without tiling.

  • How to update two tables with trigger

    Hi:
    how to update two tables with trigger ?
    I have two tables :
    (1)ASIA
    MI number;
    (2)ASIA_P
    ID number;
    When I insert a new value into the asia.MI ,I also can
    insert the same value into the asia_p.id field.
    I have write a trigger as follows but it does't work.
    create or replace trigger MI_TRG
    before insert on asia
    for each row
    declare
    seq number;
    begin
    select MI_SEQ.Nextval into seq from dual;
    :new.MI:=seq;
    insert into ASIA_PRO(MI_ID)
    values
    (seq);
    end MI_TRG;
    How to realize it ?
    thanks
    zzm

    Why do you say it does not work?

  • How to comapare two tables data difference

    Hi all,
    Can any one tell me how to compare two tables data of two different data bases .
    Table names are same in both databases.
    Thanks You
    Regards,
    P Prakash

    833560 wrote:
    I don't have privilege to create data base link ,If the database has no link so that you can query the the data, you have two options.
    Find someone with the privilege to create the link and write a query like this
    Re: Efficient way to comapre two tables.
    Which as I mention may not be quick,
    Kindly tell me some other way .But will be quicker than your other option which is to dump the data into two spreadsheets and start reading.

  • Proxy Server asking for username and password almost 6 times for every page I load, but the same doesn't happen with other browsers like chrome

    The same question keeps popping up again and again "The proxy moz-proxy://proxy.iitm.ac.in:3128 is requesting a username and password. The site says: "moz-proxy://proxy.iitm.ac.in:3128""
    Even after i give the right details, it asks me like 5 more times before it completely loads the page. Some times it happens only 2 times.
    With other browsers like chrome, it asks only in the beginning. it doesn't occur after that.
    This started occurring only recently. i upgraded to firefox 9.0 and it functioned properly for more than 12 hours before it started occuring. i tried downgrading back to 8.0.1 but the problem still continued.

    i'm afraid i need to use proxy settings to connect to internet. The settings are all fine because it used to work properly all this time. i specify the proxy address and the port, which is correct, i am very confident. it is so because the page actually loads on firefox, but not before it asks for my user name and password for it a lot of times, and for every page. for other browsers, it asks only in the beginning, that is, when i start the browser.
    i've put three pics here. under the first two settings, the third image showing the user name and password thingy popping up. this happens a lot of times for every page.

  • How to cross two tables?

    Greetings community,
    This is totally beginner’s question, so accept my apology for bothering you with such a basic thing. At first I blamed Microsoft for giving us LINQ that was so easy to use and on the other side much slower intellisense in SSMS when typing
    queries, but it was my laziness to learn T-SQL properly at the end.
    I have two tables that I have to cross. First is simple lookup table named LUItems that is consisted of these columns:
    ItemID int – auto incremented key
    Name  nvarchar(50)
    ULoA  int (user’s level of authorization: 1 is lowest)
    Second table is document details – for the simplicity of this question let’s say it’s consisted of only these columns:
    DetailID int – auto incremented key
    DocumentID int
    ItemID int
    DocDate  date
    So I have some user logged in, who wants to see a document. I want to let him/her see only those document details that are at his/hers ULoA.
    At first phase I create small lookup table from LUItems where I pull only those items whose ULoA is smaller or equal than particular user’s authority level. That table is attached on one binding source, so I could use item’s names in order
    to show them in data grid view that is dedicated to show document details.
    At second phase I need to pull document’s details, but if I pull them all, data grid view would throw the exception if document contains some items that particular user is not supposed to see, because attached lookup in previously created
    binding source simply does not contain them.
    What I need is stored procedure with entry parameters DocumentID and ULoA, which would result of only those document details for the particular document whose items’ ULoA are smaller or equal than entered.
    Thanks for any help.

    Hi SaravanaC,
    Thanks for the reply.
    I’m trying but I simply don’t get how it really works. Don’t get me wrong; using your part of code, with some lucky-guessing I came up with this:
    CREATE PROCEDURE GetDetailsByULoA (@DocID int,@ULoA int)
    AS
    BEGIN
    select DetailID,DocumentID,a.ItemID,DocDate from dbo.DocumentDetails a
    inner join dbo.Items b
    on a.ItemID=b.ItemID where b.ULoA<=@ULoA and a.DocumentID=@DocID
    END
    And that did the particular job, but I don’t get it. At first glance, I was wondering how you could select ULoA from document_details, considering that this table does not contain column named so. Then I realized that “select” actually
    works on some table-construction that was previously made by joining the tables.
    My problem actually is that SSMS’s intellisense comes up with too many red underlining while typing. All the time I have feeling that I mistyped or made some other error. For example ItemID was ambiguous until I typed “a.” in front of
    it, and I couldn’t have typed it before I typed “from” part. It’s expected because intellisense can work fine only if things are previously declared, and that’s what I was doing all my life, first declare-compute after. That’s why I’m comfort with LINQ, and
    confused with T-SQL.
    So for example you “nicknamed” tables “a” and “b”, but you did it inline, causing the intellisense to go crazy. Is there any way to nickname them previously in some kind of declare that nickname, and do join later?
    If I declare empty table like Patrick suggested in previous post, is it variable or that table becomes another table in database? If it is a variable as I hope, how do I assign it some values, and by that I mean I want to pull some existing
    data from some table, not make up something and insert.
    Does every variable in T-SQL have to start with @?
    What is the difference between “join”, “inner join”, “outer join” that I found in documentation? Don’t get me wrong because I ask those probably basic things. I find it hard to read the documentation because I’m not used to this way of
    thinking. When you talk T-SQL it’s like you talk human language; for example:
    SELECT this FROM that. I’m sure that machine translates this to: FROM that SELECT this, and that’s how I do it all my life. In order to learn T-SQL I need to learn how to declare things first and avoid red underlining.
    Thanks for any advice.
    <<Is there any way to nickname them previously in some kind of declare that nickname, and do join later?>>
    Nop , you need to specifically aliases for per statement(select,update or delete)
    better you can type below order in SSMS
    1)select * from
    2) give the table name and alias (if join specify it)
    3)where clause
    4) then provide the column name in select clause
    in that way you can avoid some red mark
    <<If I declare empty table like Patrick suggested in previous post, is it variable or that table becomes another table in database? If it is a variable as I hope, how do I assign it some values, and by that I mean I want to pull
    some existing data from some table, not make up something and insert.>>
    Patrick has declare and use table variable, yes you can declare the table variable and use them later by inserting, updating, deleting records just like normal table
    table variable is like temporary table that get created and deleted on fly, and scope is with in the batch or SP, SQL server doesn't maintain any stats for this
    http://www.sqlteam.com/article/using-table-variables
    <<Does every variable in T-SQL have to start with @?>>
    Yes all variable start with @ http://technet.microsoft.com/en-us/library/ms187455%28v=sql.105%29.aspx
    <<What is the difference between “join”, “inner join”, “outer join” that I found in documentation? >>
    join and inner join are same, default join in SQL Server is INNER JOIN
    difference between INNER & OUTER JOIN is
    inner join will return only the matched records specified on ON clause
    outer join will return all records from both left and right table
    even if not match with nulls on the records that was not present.
    http://stackoverflow.com/questions/38549/difference-between-inner-and-outer-joins
    http://stackoverflow.com/questions/19267238/what-is-difference-between-inner-join-and-outer-join
    Please mark this as answer if it helps you

  • How to  Join two tables using the Inner Join

    Hi All,
    I have two tables i.e table1 and table2 as i have created two otds and my present requirement is to join this two tables and get the results and using this i need to do some logic and update another table3.
    can some one help me out how to go for the above req.
    Thanks in Advance
    Srikanth

    The best efficient way to use inner join is create two input otds,use there otd's in create a collaboration usinf etl.
    after selecting two input otd's create a inner join statement and map it to out put otd.
    while using the etl the performance of the over all integration is increased 20 time of the normal integration.
    Hopes this will helps,,
    Thanks,
    Papa Rao.

  • How to print two tables adjacent to each other?

    Hi,
    Scenario
    I have a form with a body page and two tables. The property of the body page is set to 'Flowed', 'top to bottom' as flow direction and the check box for page break is set.
    Requirement
    The two tables need to be printed adjacent to each other.
    Approach followed until now
    1. Since the body page is 'Flowed' type, the two tables are placed one below the other (Tab1 & Tab2). So I tried to set the Flow direction of the Body page to 'Western text'. But this did not solve the issue as since it is set to 'western text', only after Tab1 is rendered, table Tab2 starts printing itself, which is not desired. Both the tables should be printed at the same time.
    2. I wrapped both the tables in one sub form with 'Type' set to 'Positioned' and set the check box for page break. Now I arranged the tables adjacent to each other. But the check box for page break for both the tables were disabled and because of this if there is not enough space to print the total records of both the tables, the complete tables is shifted to another page leaving the previous page blank.
    Kindly suggest how to resolve this issue.
    Regards
    s@k

    Dear Andres,
    I tried as per you suggestion and it works fine. Thanks a lot.
    Now adding to this, I am trying to print the 'formatted text'. The tables have two columns. the first column is a normal field and the second column is table having the 'formatted text'.
    As per your suggestion, I concatenated the two tables in one table. So the final table has 2 normal fields and 2 tables.
    Final table structure:
    Column1      Column2(Table)             Blank             Column3          Column4(Table)
    Settings maintained:
    I have set the 'Body' row of the table to 'Flowed' with direction as 'Western text' (Top to bottom does not help ).
    The settings for Column 2 & 4 (tables) are maintained as:
    1. The Table is set to 'Flowed' with direction 'Top to Bottom'.
    2. The body row is 'Flowed' with direction 'Western Text'
    (The Border 'Edges' for the tables, columns is maintained as 'None')
    Issue:
    The sample data has around 10 entries in the (final)  table. When I try to print the form, if column2(table) is initial, the data in Column3 and 4 are shifted towards Left hand side.
    Kindly suggest how to resolve this issue.
    Regards
    s@k

  • Loading two tables at same time with SQL Loader

    I have two tables I would like to populate from a file C:\my_data_file.txt.
    Many of the columns I am loading into both tables but there are a handful of columns I do not want. The first column I do not want for either table. My problem is how I can direct SQL Loader to go back to the first column and skip over it. I had tried using POSITION(1) and FILLER for the first column while loading the second table but I got THE following error message:
    SQL*Loader-350: Syntax error at line 65
    Expecting "," or ")" found keyword Filler
    col_a Poistion(1) FILLER INTEGER EXTERNALMy control file looks like the following:
    LOAD DATA
    INFILE 'C:\my_data_file.txt'
    BADFILE 'C:\my_data_file.txt'
    DISCARDFILE 'C:\my_data_file.txt'
    TRUNCATE INTO TABLE table_one
    WHEN (specific conditions)
    FIELDS TERMINATED BY ' '
    TRAILING NULLCOLS
    col_a FILLER INTEGER EXTERNAL,
    col_b INTEGER EXTERNAL,
    col_g FILLER CHAR,
    col_h CHAR,
    col_date DATE "yyyy-mm-dd"
    INTO TABLE table_two
    WHEN (specific conditions)
    FIELDS TERMINATED BY ' '
    TRAILING NULLCOLS
    col_a POSITION(1) FILLER INTEGER EXTERNAL,
    col_b INTEGER EXTERNAL,
    col_g FILLER CHAR,
    col_h CHAR,
    col_date DATE "yyyy-mm-dd"
    )

    Try adapting this for your scenario.
    tables for the test
    create table test1 ( fld1 varchar2(20), fld2 integer, fld3 varchar2(20) );
    create table test2 ( fld1 varchar2(20), fld2 integer, fld3 varchar2(20) );
    control file
    LOAD DATA
    INFILE "test.txt"
    INTO TABLE user.test1 TRUNCATE
    WHEN RECID = '1'
    FIELDS TERMINATED BY ' '
    recid filler integer external,
    fld1 char,
    fld2 integer external,
    fld3 char
    INTO TABLE user.test2 TRUNCATE
    WHEN RECID <> '1'
    FIELDS TERMINATED BY ' '
    recid filler position(1) integer external,
    fld1 char,
    fld2 integer external,
    fld3 char
    data for loading [text.txt]
    1 AAAAA 11111 IIIII
    2 BBBBB 22222 JJJJJ
    1 CCCCC 33333 KKKKK
    2 DDDDD 44444 LLLLL
    1 EEEEE 55555 MMMMM
    2 FFFFF 66666 NNNNN
    1 GGGGG 77777 OOOOO
    2 HHHHH 88888 PPPPP
    HTH
    RK

  • How to join two tables and get the supply delivery date next to order?

    So there are two tables. One has customer's order no, ordered date, order quantity, available quantity and code of article-
    The other table comes form supply side where we have supply order no, article number, ordered qty, and delivery date.
    We keep stock so this can not be MOT (made to order) system.
    What i need is correct date of arrival to appear next to cusotmers spoecirfic order. The older cusotmers order get's the parts first, second oldest order is next in line etc.
    here is any example
    customer's order
    ref order
    art. code
    ordered qty
    available qty
    order date
    1809202491
    700497
    60
    0
    3.7.2014
    1809200528
    700497
    13
    0
    20.6.2014
    1809198640
    700497
    7
    0
    9.6.2014
    supply order
    supply order
    art. code
    qty orderd
    date of arrival
    4501243378
    700497
    50
    4.8.2014
    4501263437
    700497
    20
    6.10.2014
    There is actually a 3rd "table" and that sort of connects the two and that is stock on hand per art. code.
    The main issue is that stock is assigned to purchase orders only when it actually arrives in the warehouse.
    A human can easilly connect the dates of when the stock will arrive and quantities with correct customer's order. In this case the firts order will get 50 pcs in August while 10 pcs will remain on backorders. The missing 10 pcs Will arrive in October. The second order will get 10 pcs in october and 3 will remain on backorders with no delivery date. While the third customer orders does not have a delivery date.
    So how to make the SAP do this calculations and display the arrival date next to date of customer's order?

    I checked the instructions as i do not have access to this part. It seem this is a query. We had issues with queries in the past as not all codes from orders would appear in them. They never found the reason why that is happening.
    However, I think the main issue is that the information here is not connected and is separately provided for supply and for sales. So i doubt it can be connected in this query.
    edit: as you can see the only connection is stock on hand.
    and total number of various items we have is close to 100.000 of various article codes.

  • How to update two tables in a single call using JDBC Sender adapter

    Hello All,
    The scenario is, database entries have to be selected from two tables and at the same time those tables have to be udpated with the flag.
    We are using JDBC sender adapter and in Select Query, we are fetching the data by joinin the two tables.
    Update Statemtent: We can only update one table using this statement.
    Is it possible to update two tables using the Update Statement without using Stored Procedures.
    Let me know.
    Regards,
    Sreenivas.

    Hi Sreenivas,
    > Is it possible to update two tables using the Update Statement without using Stored Procedures.
    Yes its possible through join statement
    Check this links
    Update in JDBC Sender adapter for more than one table
    data from 2 tables for jdbc sender adapter
    Regards
    Ramesh

Maybe you are looking for