How to use loop in smartforms???

hi experts,
              I have an internal table with three values .i am passing it into new itab inside smartforms .while displaying it is displaying only the third data .i think i must use loop condition .but i dont know where to use it .pls help me.if i select only one data it is coming .if i select multiple data using select statement .only the final thing is coming .

On your smartform, you should have a table set up.  Go to transaction SMARTFORMS, enter your form name, and display it.  Now navigate to the table on your form and double-click it.  Go to the Data tab.  Under "LOOP", make sure that you have checked "Internal table".  Next to that should be the name of your internal table, then "Into", then a work area.  The work area needs to be defined under "Global Definitions" (under Global Settings, check the tree for your form).  Your work area should be defined as TYPE, with the associated type being your internal table.  Your internal table should actually be defined as a structure where each component is one item that you want to include in your row.  I hope this helps.
- April King

Similar Messages

  • How to use LOOP(Until) step in a Workflow

    Hi,
    How to use LOOP(Until) step in a Workflow?
    What are the steps involved in using the step LOOP(Until).

    Hmmm... using it is just like using a LOOP UNTIL statement in any programming language. You get at least one loop iteration, as opposed to a WHILE loop which may give you zero iterations.
    You simply insert a node of this type in the workflow, and magically there will be a loop inside which you can insert the steps you want to execute in the loop, and by double-clicking at the end node of the loop you can enter the condition for exiting.
    What exactly is it you are having trouble understanding about the use of it?

  • How to use Read_Text  in Smartforms

    Hi Experts,
    I am developed smartforms .My probelm is i need to use the read_text in smartforms . i am fetch the text in print program how to use this text in smartform.
    Pls suggest me.
    This is my print program .
    REPORT  zsd_invoice_text.
    PARAMETERS : p_vbeln TYPE vbrk-vbeln.
    DATA : fname TYPE rs38l_fnam.
    DATA:BEGIN OF i_vbrk OCCURS 0,
         vbeln type VBELN_VF,
         END OF i_vbrk.
    DATA: lt_lines  TYPE STANDARD TABLE OF tline,
          wa_lines  TYPE tline.
    DATA: ld_text(18) TYPE c.
    *DATA: tdobname TYPE tdobname.
    CONSTANTS: c_id TYPE thead-tdid VALUE  '0002',
                          c_object TYPE thead-tdobject VALUE 'VBBK'.
    DATA: lv_name TYPE tdobname.
    select vbeln from vbrk into table i_vbrk where vbeln eq p_vbeln.
    loop at i_vbrk.
    read table i_vbrk with key vbeln = i_vbrk-vbeln.
    endloop.
    lv_name = i_vbrk-vbeln.
    CALL FUNCTION 'READ_TEXT'
        EXPORTING
          id        = c_id
          language  = sy-langu
          name      = lv_name
          object    = c_object
    *  IMPORTING
    *    header    = ld_header
        TABLES
          lines     = lt_lines
        EXCEPTIONS
          id        = 1
          language  = 2
          name      = 3
          not_found = 4
          object    = 5.
        IF sy-subrc <> 0.
        ELSE.
          LOOP AT lt_lines INTO wa_lines.
            CONCATENATE ld_text wa_lines-tdline INTO ld_text.
          ENDLOOP.
        ENDIF.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname                 = 'ZSD_INVOICE_TEXT'
    *   VARIANT                  = ' '
    *   DIRECT_CALL              = ' '
    IMPORTING
       fm_name                  = fname
    EXCEPTIONS
       no_form                  = 1
       no_function_module       = 2
       OTHERS                   = 3
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL FUNCTION fname
      EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
    *   CONTROL_PARAMETERS         =
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
    *   OUTPUT_OPTIONS             =
    *   USER_SETTINGS              = 'X'
        p_vbeln                    = p_vbeln
    * IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
    *   JOB_OUTPUT_INFO            =
    *   JOB_OUTPUT_OPTIONS         =
    EXCEPTIONS
       formatting_error           = 1
       internal_error             = 2
       send_error                 = 3
       user_canceled              = 4
       OTHERS                     = 5
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Thanks in Advance
    purnaneelu
    Edited by: Purnaneelu on Jun 9, 2009 7:11 AM

    Hi,
    Used below code:
    1) Call FM READ_TEXT and pass
    DATA :
    T_LINES
    TYPE TABLE OF
    TLINE
    W_TDLINES
    TYPE
    TLINE
    V_WORK
    TYPE
    CHAR255
    CALL FUNCTION 'READ_TEXT'
       EXPORTING
        CLIENT                         = SY-MANDT
         ID                                = 'Z038'
         LANGUAGE                 = sy-langu
         NAME                         =  BIL_NUMBER
         OBJECT                      = 'VBBK'
       TABLES
         lines                            = T_LINES
    IF sy-subrc = 0.
    loop at t_lines INTO W_TDLINES.
       CONCATENATE V_WORK W_TDLINES-TDLINE INTO V_WORK SEPARATED BY SPACE.
       CONDENSE V_WORK.
       CLEAR W_TDLINES.
    ENDLOOP.
    REFRESH T_LINES.
    ENDIF.
                                                                          OR
    2 ) See below attached screen shot

  • How to use parameters in smartform genrated  function module

    i executed smartform one functional module is genrated  '/1BCDWB/SF00000002'
    now the problem is that  i want to send  output of this smartform through email
    now how to use ' MAIL_RECIPIENT   '      and  ' MAIL_SENDER   ' to send smartform output through email .
    please check following module which generated by smartform.
    plz suggest me  .
    CALL FUNCTION '/1BCDWB/SF00000002'
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        ITAB_PA0001                =   ITAB_PA0001
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    Hi
    You can do it while passing these parameters in the CONTROL_PARAMETERS.
    data: ls_CONTROL_PARAMETERS type SSFCTRLOP.
    ls_CONTROL_PARAMETERS-DEVICE  = 'LOCL'.
    ls_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
    ls_CONTROL_PARAMETERS-PREVIEW = ' '.
    Pass this ls_CONTROL_PARAMETERS to the importing parameter of the FM .
         CALL FUNCTION LF_FM_NAME
               EXPORTING
                          CONTROL_PARAMETERS   = LS_CONTROL_PARAM
    In addition to this, you might also want to set the print immediately field on the same structure to 'X'.
    Generally you leave the device field empty, the user master record default printer will be used

  • How to use loop in BPEL Process

    Hi friends
    I have done a bpel process which picks up XMl file using File Adapter and imports the data from the XMl file to oracle db table using DB adapter....
    But here the XMl file which have only one row ..if i want insert the XML file which have two or more rows i want to use loop in my BPEL process how to use the loop in my bpel process ?
    In my BPEL process i have used receive ,transform , and invoke activity where can i use loop in my BPEL process
    Advance Thanks
    AT

    Hi Friend thanks
    Hi Oracler how to make use of transform activity and use a for each in it.?
    iam not getting i try can u please explain some more in brief
    Thanks
    AT

  • How to use loop in premiere elements 8?

    Hi,
    Using pre elements 8 and I don`t know how to set or use loop option in premiere elements 8
    Please help
    Vinay

    For an authored DVD, there is no capability to Loop that DVD, created in PrE. There are other authoring programs, like Sony's DVD Architect, and Adobe Encore (available only with PrPro), that allow this to be done easily.
    The way to do similar in PrE is to do an AutoPlay DVD and then this use the Repeat button on the DVD player.
    Good luck,
    Hunt

  • How to use loop

    Hi
    I have one control block in form of Grid and now I want clear my grid when button pressed for new selection.
    So any one let me know how can I use loop for these field
         :ADVANCES_SCHEME.TXT_MONTH := '';
              :ADVANCES_SCHEME.MONTH_VERIFIED := '';
              :ADVANCES_SCHEME.CK_VERIFIED := 'N';
    Thanks in advance...
    Regards

    Thanks every one. I have solve my problem, just put this statement in begin clause
         Clear_Block(No_Validate);
    this statement clear my grid.
    Regards

  • How to use loop controllers...

    hi i'm a new user for jmeter, now i want to test my site which has login details, i don know how to use foreach or other loop controllers to check my site.
    please anyone give me step by step procedure to test my site..
    regards,
    kumar

    Hmmm... using it is just like using a LOOP UNTIL statement in any programming language. You get at least one loop iteration, as opposed to a WHILE loop which may give you zero iterations.
    You simply insert a node of this type in the workflow, and magically there will be a loop inside which you can insert the steps you want to execute in the loop, and by double-clicking at the end node of the loop you can enter the condition for exiting.
    What exactly is it you are having trouble understanding about the use of it?

  • How to Use Loop in BPM?

    Hi,
    I would like to use LOOP functionality in BPM until all the records are processed.
    Any Help would be appreciated.
    Regards,
    Ganesh Karicharla

    hi,
    what does it mean all records
    by payload loop, time loop?
    this page presents all sorts of loops jut check it:
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How to use loop in VBAK table using BDC RFC connection through excel vba ?

    Hello,
    I am trying to extract data from VBAK table using rfc connection with Excel VBA. where i can able to pull data first time, when i tried to use the same set of code using loops, it throws an error like BAD INDEX.
    Any help appreciated.

    Hello,
    I am trying to extract data from VBAK table using rfc connection with Excel VBA. where i can able to pull data first time, when i tried to use the same set of code using loops, it throws an error like BAD INDEX.
    Any help appreciated.

  • How to use loop inside mx:webservice tag

    Hi to all,
    I'm using some webservices. i just want to pass XMLChildren
    to the request element of webservice tag.
    for that,
    <mx:WebService id="WES3" destination="applicantws"
    useProxy="true" fault="Alert.show(event.fault.faultString) ,
    'Error'" >
    <mx:operation name="ZhrFunApplicantCreate"
    result="onResult2(event)" resultFormat="e4x" >
    <mx:request>
    <education>
    { samplexml.children() }
    </education>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    but the problem is samplexml contains many children when i
    embed that samplexml inside websrvice it is taking only the
    firstchild of that samplexml.so i need to loop through the
    samplexml inorder to fetch & bind all the childs of that
    samplexml.
    How do i do that??
    can anyone please please please bring me the solution...
    Thanks in advance..
    regards,
    Thenmalar. v

    Hi,
    You can achieve this by UDF,
    inputs are E1IDB02 BA-FIIKWAER,E1EDKA1 BE-NAME1
    yes then suggest MIDE(E1EDKA1 BE - STRAS,1,35)
    IF E1IDB02 BA-FIIKWAER = CNY
    then MID(E1EDKA1 BE-NAME1,12,11)
    IF E1IDB02 BA-FIIKWAER <> CNY and LEN(E1EDKA1 BE-NAME1)<=35
    then MID(E1EDKA1 BE-STRAS,1,35)
    IF E1IDB02 BA-FIIKWAER <> CNY and LEN(E1EDKA1 BE-NAME1)>35
    then MID(E1EDKA1 BE-NAME1,36,35)
    Regards
    Chilla

  • How to use loop to commit each 1M records?

    oracle 9i
    40M records need to be insert the table. Need to commit each 1M. But I don't want to loop each record and commit. I like to select 1M records and commit. Then select another 1M, then commit; How to do it? use savepoint?
    Appreciate any ideas.
    Thanks
    S.

    You can achieve that using anonymous block using a for loop and couter but it not a good idea to commit after 1 million or 100k as you will be putting more overhead on your system and performance will be down.
    Regards

  • How to use loop inside table in smart form

    Hi All
    i have to use page break at the end of each pernr. i got table in smart form and print cells on event on sort begin. it is working ok . i have an other itab in  as well .which i want to the same page with respect to the pernr no.
    but the problem is as i loop the 2nd itab. it prints all the record what it has.
    e.g  i have two pernr 54 and 55.
    the records of itab1 prints on page1 and page 2 properly. now i loop at itab2 it also have relevent records of above said pernrs. but i m unable to control those pernrs and loop print all the records on both pages.
    if u get some thing out of it kindly help me
    Regards
    ammad

    hi,
    Place the second loop ie. itab2 inside the first loop of itab1.  And in the conditions tab of looping itab2 give the condition for checking the pernr.
    try to implement this logic.
    loop itab
      at new pernr
        new-page
      endat.
        loop at itab2 where pernr eq itab-pernr.
       endloop.
    endloop.
    revert back for further queries.
    regards
    Rajitha.

  • How to use loop in RuleBase

    Hi,
    I have a scenario where i have a set of values(say 10) and i need to verify if 2 of them are same.
    How can i write rule around this scenario?
    Please help me!!
    Thanks.

    Not sure I am following your scenario. The best approach is almost always to 1.) clearly identify the determination/decision(s) you are trying to make (i.e. is something valid, eligible, etc.) Note it is best to express the meaning of the conclusion, not the technical (i.e. Good-> product X's incompatible options include ... vs. cryptic-> product X can't be sold with options whose ID's begins with "Y") 2.) write out your policies that define the conditions under which each conclusion can be reached. Use complete sentences and structure them to deal with more complex logic. Focus on meaning not implementation specific expressions.
    With this top down approach the business level policies should be clearly expressed and easier to understand. At that point, the focus can shift to any specific phrasings or syntax that is necessary for the business policies to be understood or deduced from implementation specific details such as codes, ID's etc.
    Applying this approach to your scenario may require answering some of the following questions:
    - What does a base represent?
    - What does a SKAC represent?
    - What does the relationship between base and SKAC mean in business terminology? (i.e. is one a subaccount of a main account)
    - What decision(s) about base accounts or SKAC accounts are you trying to make?
    - What, if any, information is preexisting vs. being selected or provided as part of a transaction? (this isn't usually necessary for expressing business policies, but will eventually impact how business policies ground out in the data being provided in order to make a determination)
    Hope this helps get you moving forward!

  • How to use loop in a flow ruleset?

    In a flow ruleset of BRM, activity has a "loop" checkbox in property. When I check it,I don't know how to select values in "For each" and "in" drop-down menus. Who can help me?

    hi, i just try my code again this morning, and noticed i can get setPropertyActionListener to work if i pass String instead of a "Item" object under target attribute. however, the value attribute won't take an expression.... it seems like i can only pass a literal string???
    this work...
    menuItem are now type String instead of type Item,
    <c:forEach items="${sessionScope.ServiceManager.menus}" var="menu">
         <p class="formTitle">${menu.stapleType}:</p>
         <table class="displayData">
              <c:forEach items="${menu.items}" var="item">
              <tr>
                   <td class="leftCol">${item.name} ($${item.price})</td>
                   <td class="rightCol">
                        <h:commandLink value="Edit" action="#{menuBean.editRow_click}">
                        <f:setPropertyActionListener target="#{menuBean.menuItem}" value="lalala"/>
                        </h:commandLink>
                   </td>
              </tr>
              </c:forEach>
         </table>
    </c:forEach>when clicking the edit link, i'll get "lalala"
    public void editRow_click(){
              System.out.println("edit row click: "+ this.getMenuItem());
         }if i switch to expression, this won't work:
    <f:setPropertyActionListener target="#{menuBean.menuItem}" value="#{item.id}"/>when click edit link, i'll get a empty string
    if i switch to jstl expression, this will cause run time error:
    <f:setPropertyActionListener target="#{menuBean.menuItem}" value="${item.id}"/>
    org.apache.jasper.JasperException: /WEB-INF/formDataView/menu_view.jsp(15,4) According to TLD or attribute directive in tag file, attribute value does not accept any expressions

Maybe you are looking for

  • Send a page as an email

    I have a link in Jsp page like " Email this page " .So I have to send the jsp page as it is to some email address.

  • Migrating 6i forms / reports to 10g (Urgent)

    Hi, We have 6i versions of forms and reports running in a client/server environment, and are planning to upgrade them to 10g. I need to give an estimate to my manager on the effort involved in migrating the existing objects to 10g. To provide an esti

  • How to transfer Effects Presets from 5.5 to 6 ?

    This must be simple, but i don't know where Premier saves my presets...i can easily go to effects and then select import preset...but can anyone tell me where my 5.5 presets are installed? I have PILES of them and would like to just easily bring them

  • Little plastic piece that the nano fits in but what is it for??

    Ok, I give up. I feel like I'm on candid camera or something trying to figure out what this random piece of plastic included with the nano is for. The nano fits in one side at a slight angle which is cool, but the underside is configured for somethin

  • IMac 24" 2.93 shuts down randomly

    iMac 24" 2.93.  Boots fine and runs for a while and then abruptly shuts down.  Does not appear to be overheating in any area?  What are the components to look at?  Could it be the power cable or the logic board?