SmartForms: Lining up colomn records in a Loop?

Is there syntax in SmartForms in my logic that will line up values being output in a colomn?
I'm having an issue with the colomns being unaligned in the text node?
Thank-You

Hi,
In your Loop you create the template for the heading and for the line items define the tabs postion accordingly display.
Regards,
Sravanthi

Similar Messages

  • Move to next record in a LOOP!

    I have to perform a loop on an internal table consisting of several records.
    within the LOOP there is an if-endif condition followed by some code.
    Now, in the else condition of the if-endif part, i have to move to the next record (i.e. next record in the internal table)...If i use "Exit",the entire loop processing is skipped, but i just want to skip the current sy-index and loop for the next record in the internal table.
    Please suggest some way to do it.

    loop at itab.
    if <condn>.
    else.
    continue.
    endif.
    endloop.
    continue will process the next loop from begining i.e. after continue it will go to the loop at itab statement for next loop pass.
    regards
    shiba dutta

  • How to put record set in loop

    Using the follwing query
    select distinct code from oalr where code > '" & AlertCode & "' and  code<=('" & code & "') "
    i got 5 records eg :5603,5604,5605,5606,5607
    record set fetching
    Ocode = CStr(rs4.Fields.Item(0).Value)
    Here  Ocode get only last record eg :5607, i want to take this 5 records in the loop how can i write the coding

    Thank for ur reply,
    But i not passing this in to matrix , i m going to pass the value in to anothe record set
    eg
    Ocode = CStr(rs4.Fields.Item(0).Value)
    select A.code,A.MsgData,B.UserSign,C.Portnum as MobileNum from OALR A inner join ALT1 B on A.Tcode=B.code inner join OUSR  c on C.UserID=B.UserSign where  A.code='" & Trim(Ocode) & "' ")
    I want to pass the Ocode value in to the loop.becoz only one value pass this query next time pass means duplicate value prob occure so i want to pass the Ocode value up to EOF. Give some solution

  • Smartform configurations to maintain records in TFDIR

    Hi all,
    I need one clarification regarding Smartform.
    For each new smartform created, the corresponding record will be maintained in corresponding smartform relaetd tables (say : TFDIR--With FM name genarated) in SAP.
    But in my case it is not maintaining the record in TFDIR. So when I call the FM "SSF_FUNCTION_MODULE_NAME", the value os SY_SUBRC = 2.
    Can any one tell me is there any SAP configurations done in order to maintain the records in the standard Smartform related tables as specified above?
    <removed by moderator>
    Ashwini
    Edited by: Thomas Zloch on Oct 25, 2010 11:52 AM

    Thanks for ur responce.
    Well let me give more info to you reg the problem. Since we upgraded our system.So after upgradation we are facing this problem.
    So i just want to know is there any standard settings/ configurations done in order to mailtain the entry automatically when SAP generates the FM for smartform?
    Regards,
    Ashwini

  • Picking Individual Records in a loop

    Hi,
    Can any one suggest me how to pick and display individual records within a loop.
    The records are inputed as a Collection and I want to pick the records one by one from the collection

    After follow the suggestion the AshishSharma to manipulate individual records through the index, example:
    bpws:getVariableData('SelectAllLegado_OutputVariable','FornCollection',concat('/ns3:FornCollection/ns3:Forn[',bpws:getVariableData('count'),']/ns3:cdForn'))
    The count is variable the control while.
    The cdForn is data recovered.
    This is recovered with a assign.

  • Assign value to a record in a loop?

    I have the record as following:
    TYPE Curr_Select_Rec IS RECORD
    ser_date date,
    blk_route varchar210)
    p_select Curr_Select_Rec;
    How do I assign value to it in a loop?
    I know I can do this
    p_select.blk_route := 'aaaa';
    but in the loop
    Loop
    How??????
    end loop;
    NEXT, LAST, FIRST Did not work
    null

    Hi,
    here a little package I wrote to select a table into a plsql_table and to work with the pl/sql table .
    Package STIL_utils
    IS
    type r_export_tags is record
    (bezeichnung stilvorlagen.bezeichnung%TYPE,
    start_tag stilvorlagen.text_beginn%TYPE,
    end_tag stilvorlagen.text_ende%TYPE);
    type t_export_tags is table of r_export_tags
    index by binary_integer;
    procedure fill_tag_table(p_export_tags in out t_export_Tags,
    p_export_typ in varchar2);
    procedure show_tag_table(p_export_tags in t_export_Tags);
    procedure find_tag(p_export_tags in out t_export_tags,
    p_export_typ in varchar2,
    p_tag_typ in varchar2,
    p_start_tag in out stilvorlagen.text_beginn%TYPE,
    p_end_tag in out stilvorlagen.text_ende%TYPE);
    END; -- Package Specification UTL_STIL
    Package Body STIL_utils
    IS
    -- Stilvorlagen Array
    procedure show_tag_table(p_export_tags in t_export_tags)
    is
    v_index number;
    v_index_last number;
    begin
    v_index := p_export_tags.first;
    v_index_last := p_export_tags.last;
    loop
    dbms_output.put_line(p_export_Tags(v_index).bezeichnung);
    dbms_output.put_line(p_export_Tags(v_index).start_tag);
    dbms_output.put_line(p_export_Tags(v_index).end_tag);
    exit when v_index = v_index_last;
    v_index := p_export_Tags.next(v_index);
    end loop;
    end;
    procedure fill_tag_table(p_export_tags in out t_export_Tags,
    p_export_typ in varchar2)
    is
    cursor tags is
    select bezeichnung,text_beginn,text_ende
    from stilvorlagen
    where bezeichnung like p_export_typ&#0124; &#0124;'_%'
    and loesch_kz is null;
    v_count number := 0;
    --Prozedur zur Ermittlung welche Tags verwendet werden sollen.
    -- Aus der Tabelle Stilvorlagen wird ein Array mit den Start und
    --Ende Tags des entsprechenden Export Typs gef|llt.
    begin
    for rec in tags
    loop
    p_export_tags(v_count).bezeichnung := rec.bezeichnung;
    p_export_tags(v_count).start_tag := rec.text_beginn;
    p_export_tags(v_count).end_tag := rec.text_ende;
    v_count := v_count + 1;
    end loop;
    --show_tag_table(p_export_tags);
    end;
    procedure find_tag(p_export_tags in out t_export_tags,
    p_export_typ in varchar2,
    p_tag_typ in varchar2,
    p_start_tag in out stilvorlagen.text_beginn%TYPE,
    p_end_tag in out stilvorlagen.text_ende%TYPE)
    is
    v_index number;
    v_index_last number;
    v_bezeichnung stilvorlagen.bezeichnung%TYPE;
    begin
    v_index := p_export_tags.first; --Arrayindex setzen
    v_index_last := p_export_Tags.last; --Abbruchkriterium ermitteln
    p_start_tag := null;
    p_end_tag := null;
    loop
    v_bezeichnung := p_export_tags(v_index).bezeichnung;
    -- Ist das der richtige Tag?
    if v_bezeichnung = p_export_typ&#0124; &#0124;'_'&#0124; &#0124;p_tag_typ then
    p_start_Tag := p_export_tags(v_index).start_Tag;
    p_end_Tag := p_export_tags(v_index).end_Tag;
    -- Tag gefunden also raus
    exit;
    else
    -- Wenn alle getestet, dann raus
    exit when v_index = v_index_last;
    -- Ndchstes Feld aus Array
    v_index := p_export_Tags.next(v_index);
    end if;
    end loop;
    end;
    END; -- Package Body UTL_STIL
    Hope that helps
    Detlev
    null

  • How to display more than one Record in a Loop

    Hi ,
    This procedure will return more than one data .
    so please tell me how can i write a loop to display all the records of a Table .
    This is my procedure :
    create or replace procedure getEmpName
    V_EMPID IN employee.EMPID%TYPE,
    V_EMPNAME OUT employee.EMPNAME%TYPE
    is
    begin
    select empname into V_EMPNAME from employee where empid='2';
    end ;
    This is my block : How to write a loop here to display all records of my Table
    declare
    v_EMPNAME EMPLOYEE.EMPNAME%TYPE;
    begin
    getEmpName(2, v_EMPNAME);
    dbms_output.put_line(v_EMPNAME);
    end

    user10503747 wrote:
    so please tell me how can i write a loop to display all the records of a Table .hi,
    given procedure will display all records of emp table...
    CREATE OR REPLACE PROCEDURE Testloop
    AS
    CURSOR test1
    IS
    SELECT EMPNO, ENAME FROM EMP;
    BEGIN
         FOR i IN test1
         LOOP
         DBMS_OUTPUT.PUT_LINE ( 'Emp - '||i.empno ||'-'||i.ename );
         END LOOP;
    END;
    Thnx
    MB

  • Problem in moving to next record in  For Loop end loop construct

    Hi friends i have the followind code in my stored proc. I am reading each row in the temprec and then based on the variable "i_copy_notes" processing the record. If the value of the I_copy_notes" varialble is 1 then i need to move to next record. when I am using "Next" then the compiler is telling me that the "NEXT" must be declared. Please advise.
    FOR TEMPREC IN
    SELECT
    DP_SER,
    GRD_POS,
    TS_POS,
    ASG_ID,
    DESCS,
    GRD_ID
    FROM DCGRD_POS
    WHERE CLLI = i_FROM_CLLI AND SUBSYS = i_SUBSYS AND BAY_ID = v_OLD_BAY_ID ORDER BY GRD_ID
    LOOP
    IF v_OLD_GRDID = TEMPREC.GRD_ID THEN
    v_NEW_GRDID := v_NEW_GRDID;
    IF i_COPY_NOTES = 1 THEN
    Next;
    END IF;
    ELSE
    v_OLD_GRDID := TEMPREC.GRD_ID;
    SELECT DCGRD_POS_GRD_ID.NextVal INTO v_NEW_GRDID FROM DUAL;
    END IF;
    INSERT INTO DCGRD_POS VALUES
    i_TO_CLLI,
    DCGRD_POS_ROW_SER.NextVal,
    TEMPREC.DP_SER,
    v_NEW_GRDID,
    v_NEW_BAY_ID,
    TEMPREC.GRD_POS,
    DECODE(i_COPY_NOTES,1, TEMPREC.TS_POS,''),
    TEMPREC.ASG_ID,
    DECODE(i_COPY_NOTES,1,TEMPREC.DESCS,'UASGN'),
    i_CURRENT_ISSUE,
    -1,
    i_SUBSYS,
    SYSDATE,
    i_USERID
    END LOOP;
    Line # = 315 Column # = 10 Error Text = PLS-00201: identifier 'NEXT' must be declared
    Line # = 315 Column # = 10 Error Text = PL/SQL: Statement ignored
    ----------------------------------------------

    Personally, I'm not a big fan of this technique but you can use a goto ...
    begin
    for i in 1.. 10 loop
       if i < 5 then
         goto end_of_loop;
       end if;
       dbms_output.put_line(i);
       <<end_of_loop>>
       null;
    end loop;
    end;

  • Is it possible to remove effects recorded in Apple loops?

    Hi there,
    I'm using a piano loop Classic Rock Piano09 which is blue and I want to take off the delay they've put on it.
    I'm guessing because it's a 'blue' loop then I can't, but am hoping that I can somehow convert it to midi notes or maybe even a notated score that I can then put in any of the software instruments like a piano with no effects.
    Annoying that you don't have the option to take effects but I suppose that adds a lot more complexity.
    Thanks for your help.

    if there isn't a delay plugin being used then no, you cant remove the delay because it is recorded along with the sound as part of the audio file..
    That would akin to unboiling an egg....... which normally is impossible unless...
    http://www.livescience.com/49610-scientists-unboil-egg.html

  • How to insert all the records using below loop

    I am iterating value from hash map and store the values in database.
    Below loop structure, the values from hashmap are inserted fine.
    But inside while(rs.next()),first record from db only inserted for all the records
    while(itr.next()){
    Integer key=(Integer)iterator.next();
    String Value=(String) orderNumberMap.get(key);
    while(rs.next()){
    String firstName=rs.getString("fname");
    String lastName=rs.getString("lname");
    insert into tbl values('"+key+"','"+Value+"','"+fname+"','"+lname+"');
    Regards

    Thanks for ur reply. The below is a scenario
    I am having 3 records in a resultset
    firstname= shadik
    lastname frank
    firstname= felix
    lastname sha
    firstname= williams
    lastname= scoot
    To insert above records with key, values retrieved from hashmap as follows
    Number 1
    empid 101
    Number 2
    empid 102
    Number 3
    empid 103
    I need to insert above values in a table and expect a output as follows..
    Number empid firstname lastname
    1 101 shadik frank
    2 102 felix sha
    3 103 williams scoot.
    But output will be displayed as follows
    Number empid firstname lastname
    1 101 shadik frank
    2 102 shadik frank
    3 103 shadik frank.
    Values from HashMap are inserted fine. But retriving from resultset shows only first records for all the rows.

  • How to find the next record b4 the loop end

    hai all
    i have suffering big problem... i have the  internal table  call IT_ITAB.. so i can go to the rerecord by record using loop comand..
    example:
    loop at IT_ITAB.
    1.record1
    2.record2
    3.record3
    4.record4
    endloop.
    Allways end of loop go to next record...... my problem is before end of the loop i want to check the next record... how should i do it... please help me...
    regard
    nawa

    Hi,
    One approach u can follow is that copy the data of the internal table into another one.
    Maintain an integer type variable which will contain the index value of the loop. Check the entry from other table.
    e.g.
    Loop at itab1.
    ctr = sy-tabix + 1.
    read itab2 index ctr.
    This way u can check the next record while u r still in loop.
    Hope it helps.
    Regards,
    Himanshu

  • Creating new tracks when recording in Cycle (loop) mode

    I'm having an issue when recording in cycle mode.. I'm able to record (in seperate tracks) in cycle mode. however I can only play the first take (first track) I recorded, however all the subsequent tracks that were recorded do not play. Even when I try 'soloing' them they still don't play. You can see in the arrange window that audio data was recorded on those tracks however they have a "faded" effect to them. They're also not muted. Am I missing a setting?

    The issue you describe when recording in cycle mode was a huge frustration for me until I discovered that I was not aware of a simple principle that made all of the difference... I am wondering if the following explanation may be part of the problem that you are experiencing.
    The principle is that muting a region, muting a track, and muting an audio channel are three distinct and separate functions. Until I got my head around that principle, I continued experiencing the same frustration that you are having with recording in cycle mode.
    Recording in cycle mode results in muting the regions below the last take at the top. When trying to unmute the "tracks" below the top region to listen to the other takes, hitting the mute button results in ALL of the "tracks" either being muted or unmuted, yet the separate regions below are still muted!
    The key is to unmute the REGION that you want to listen to (and not the track or the channel). The way to do this is to hit the escape key to bring up a local tool box menu wherever your cursor is... then click on the mute tool which changes the cursor into a mute tool, then click on whatever regions you want to unmute...
    Hopefully the above will help.
    Power Mac G5   Mac OS X (10.4.8)  

  • Saving 100,000 records in a loop too slow

    I have an explicit cursor then a for loop on it and an update statement inside the loop it works but it does 100,000 individual updates which is not good for performance speed, any ideas to speed that up
    My loop is
    FOR code_rec IN cur_codes_table
    LOOP
    code_loop := code_loop +1 ;
    UPDATE <table name> T1
    SET T1.error_indicator = 'Err?'||main_rec.REC_ROWNUM
    WHERE T1.REC_ROWNUM = main_rec.ROWNUM ;
    END LOOP;

    You haven't really provided us enough information to go on but I would suggest removing the FOR LOOP logic altogether and using a SINGLE UPDATE statement.
    If you can provide CREATE / INSERT scripts to describe your situation as well as desired result the folks here can probably develop a solution for you.
    Here is an example, it may or may not apply to your situation:
    UPDATE  TABLE_T T1
    SET     ERROR_INDICATOR = (
                                    SELECT  'Err?'||REC_ROWNUM
                                    FROM    MAIN_TABLE MT
                                    WHERE   T1.REC_ROWNUM = MT.REC_ROWNUM
    WHERE   EXISTS
                    SELECT  NULL
                    FROM    MAIN_TABLE MT
                    WHERE   T1.REC_ROWNUM = MT.REC_ROWNUM
            );

  • How to update multiple records using for loop

    Hi I want to update a particular column of few rows in database i had written followin code after that few lines of code and calling action from the task which having commit return ,still it's not updating particular colum.I had debug the code loop is running fine but still changes are not reflecting to database.Let me know if there is any prob with following code snippet.
    RealEstatePropertyUnitDetailsVOImpl realEstatePropertyUnitDetailsVO = RealEstatePropertyUnitDetailsVOImpl)realEstateService.getRealEstatePropertyUnitDetailsVO();
    for(Row row : realEstatePropertyUnitDetailsVO.getAllRowsInRange())
    if("N".equalsIgnoreCase((String)row.getAttribute("RlstdSellYn"))
    || "false".equalsIgnoreCase((String)row.getAttribute("RlstdSellYn")))
    row.setAttribute("RlstdAvlblYn", "Y" );
    System.out.println("RlsthId "+row.getAttribute("RlstdRlsthId"));
    System.out.println("AvlbYN "+row.getAttribute("RlstdAvlblYn"));
    System.out.println("RlstdUnitId "+row.getAttribute("RlstdUnitId"));
    }

    Vishwesh,
    I'd start with something along the lines of ...
        RowSet vo = (RowSet)getRealEstatePropertyUnitDetailsVO();
        vo.reset();
        while (vo.hasNext())
          Row row = vo.next();
          row.setAttribute("Attribute", value);
        }getAllRowsInRange() may exclude some rows outside the "range". Also, the vo.reset is needed since your View Object currency may not be at the beginning of your RowSet.
    Hope that helps.
    Will

  • Treating loops as a whole, not separately - Smartform

    Hi,
    In a smartform, each table and it's loop is treated separately.
    For example, if a table has a loop into a structure, the table will process each record of the loop.
    How do you treat the loops as a whole of several tables? For example,
    table 1 loops into a structure for record 1. That record is processed.
    Then table 2 loops, with its 1st record having a key that ties it to the 1st record in table 1.
    Here is a better diagram:
    - Section unrelated to Line items, dealing more with the PO
    - Line Item 1 – some general details in a table
    >>> Table 1 about the line item, dealing with data about it
    >>> Table 10 about the line item, dealing with data about it
    - Line Item 2 – some general details in a table
    >>> Table 1 about the line item, dealing with data about it
    >>> Table 10 about the line item, dealing with data about it
    - Section unrelated to Line items, dealing more with the PO
    Thanks,
    John

    Hi John,
    Are you looking for nested loops, you can't nest tables, but you can define a loop within a table.
    Table 1 would be defined as a table node, then table 2 within it as a loop.  This loop for Table 2 will use the line types defined for table 1, but as you can define an number of line types this doesn't create a problem.  In order to limit your table 2 entries to just those relevant to the current entry of table 1 use the where condition of the loop.
    Regards,
    Nick

Maybe you are looking for