Loop on line type in smartform ..!!

Has anybody ever observed that, we can loop on a line type in smartform? (i am not talking about looping option on main table)
the option will be like.. "Repeat Processing".
  If anybody has worked on this, Please share the knowledge.....
Thanks.

From what I have seen the only loop you can use in a SmartForm is a loop over an internal table. Can you provide more information on the "Repeat Processing" you talk about?
Che

Similar Messages

  • Line types in smartforms

    Hi all,
    I created a template in smartforms with three line types. but wen i executed, only the template frame is displayed.
    the line type name is not displayed.
    how can i display  the text in the template frame. please explain. I am new to smartforms.
    Thanks in advance.
    etienne.

    Hi,
    You have create the text element first and then in yhe output options tab of this text element
    give the line and column according to the line types you have created for the template...
    Thanx

  • Printing double line in Column label Box/Table Line Type of smartform

    Hi,
    In MAIN window, in ITEM table, the header box, (where column labels are printed), one double lines r printing!! it looks like (not exactly) instead of single line (________) its printing double lines (======), so, pls. let me know, Wht culd be the reason?
    Thank you

    Hi,
    Check that if you used table borders in attributes of line types.
    And also check if you are using sy-unline...
    Regards,
    Shankar.

  • Spacing between two line types in smartform

    I have data in two different line types as below
    line type1
    linetype2
    but what my requirement is
    line item1
    line item2
    i had tried by changing the smart style but it dint work. Please help me out in reducing the space between the datas of the line types.

    Hi
    Go to your smartstyle.
    Go to your paragran format.
    Click on tab Indents and Spacing.There you will see a field named LINE SPACING.In that you can adjust the spacing between two lines.
    Regards
    Khushboo

  • In "LOOP ... WHERE ..." the line type of the table must be statically defin

    Hi All,
            I have written the code, for greater than (GJAHR) 2007 and restricted company codes ( table name = ZGLCCODE).
         Here I have written the following the code which is giving an error
    In "LOOP ... WHERE ..." the line type of the table must be statically defin
    ZGLCCODE Contains only restricted company codes.
    Code is as follows
    TABLES : ZGLCCODE. 
    DATA : LT_DATAPACKAGE TYPE TABLE OF DTFIGL_4.
    DATA : LS_PACKAGE TYPE DTFIGL_4.
    TYPES: BEGIN OF LS_TZGLCCODE,
           ZBUKRS type BUKRS,
            END OF LS_TZGLCCODE.
    DATA : LT_ITZGLCCODE TYPE LS_TZGLCCODE OCCURS 0 WITH HEADER LINE.
    DATA : LI_NUM TYPE I,
           LC_ZGJAHR TYPE BSEG-GJAHR VALUE '2007'.
    SELECT ZBUKRS INTO TABLE LT_ITZGLCCODE FROM ZGLCCODE.
    Note:  "C_T_DATA" dynamic structure = "DTFIGL_4" structure
    *-  Remove from the DataSource Company Code -
    LOOP AT C_T_DATA INTO LS_PACKAGE WHERE GJAHR GE '2007'.
    READ TABLE LT_ITZGLCCODE WITH KEY ZBUKRS = LS_PACKAGE-BUKRS.
    IF SY-SUBRC <> 0.
       APPEND LS_PACKAGE TO LT_DATAPACKAGE.
    ENDIF.
      CLEAR LS_PACKAGE.
    ENDLOOP.
    IF LT_DATAPACKAGE[] IS NOT INITIAL.
    DESCRIBE TABLE LT_DATAPACKAGE LINES LI_NUM.
    IF LI_NUM GT 0.
       REFRESH C_T_DATA.
       APPEND LINES OF LT_DATAPACKAGE TO C_T_DATA.
       REFRESH LT_DATAPACKAGE.
       FREE LT_DATAPACKAGE.
    endif.
    ELSE.
       REFRESH C_T_DATA.
    ENDIF.
    Please give me your valuable suggestions.
    Thanks
    Ganesh Reddy.

    Hi Ganesh,
    whatever you do, you can try like this:
    1 - any code posted should be wrapped in \
    then try something like this:
    field-symbols:
      <tabrec> type any,
      <field>   type any.
    sort ITZGLCCODE by bukrs.
    LOOP AT C_T_DATA ASSIGNING <tabrec>.
      ASSIGN component 'GJAHR' of structure <tabrec> to <field>.
      check <field> <= 2007.
      ASSIGN component 'BUKRS' of structure <tabrec> to <field>.
      READ TABLE LT_ITZGLCCODE WITH KEY ZBUKRS = <field>
        BINARY SEARCH TRANSPORTING NO FIELDS. "speed up the volume.
      IF SY-SUBRC 0.
        MOVE-CORRESPONDING <tabrec> to  LS_PACKAGE.   
        APPEND LS_PACKAGE TO LT_DATAPACKAGE.
      ENDIF.
    ENDLOOP.
    Regards,
    Clemens

  • Smartform : line type not working fine when used on Next page

    Hi ,
    Please help on below :
    I have a smartform and have line type which is used in printing the items.
    When I use this line type on very first page , it works fine.
    But for the next page which is the exact copy of first page ,
    the line type does not work fine with printing first line item on next page,
    it refreshed the work area which i am printing. so on the next page very first element gets all the values 000
    But on the next iteration it works fine and does not refresh work area.
    Please see why is such abnormal behavior happening.
    Regards,
    Uma Dave

    Hi Ameya
    there might be syntax error. Try to get what exaclty is an error using following code.
    CALL FUNCTION <smartform>
        EXCEPTIONS
        IF SY-SUBRC  0.
           CALL FUNCTION 'SSF_READ_ERRORS'
                IMPORTING
                     ERRORTAB = IT_ERRORLIST.
         ENDIF.
    In IT_ERRORLIST you will get error message.
    Regards
    Sachin G Patil

  • Smartform Table Line types duplicate entries problem

    Hi ,
    I am getting one strange problem in Smartforms. i tried for information in SDN but i did not get any usefull ones.
    I have created my main window with particular width. I created two different Line types. On particular condition i need use these line types.
    First line item will have 6 columns in that one column is empty.
    Second liitem will have 5 columns.
    When i am generating the output, the last item data of the first line type is repeating twice, i.e with first line type and the second line type.
    Can anyone give me the inputs to solve this.
    Thanks,
    Srinivas Bhavanam

    Did you check SAP notes?
    I don't understand what you get exactly:
    For the last line of the internal table, you would like to get this:
    A B C D E F
    G H I J K
    But you get that:
    A B C D E F
    A B C D E F
    Did I understand correctly?
    Did you use something special? (header, footer, conditions, ...)

  • Insert new line type at ctrl break in Smartforms

    Hi Guys
    I am developing a timesheet in smartforms.
    In the Smartform my table contains data for two weeks, but I need to bifurcate it on a weekly basis. So when the form starts I print e.g Weekly record:- 01.01.08 to 01.07.08
    Now I want that as soon as the control reaches 01.08.08 A new line type should get inserted saying
                  Weekly record:- 01.08.08 to 01.14.08
    Please guide me how this can be done.
    Thanks a lot.

    Create your internal table in such a way that it contains the data as per your printing requirement.
    E.g.
    01.01.08   01.07.08    XXX.XX   123.45
    01.08.08   01.14.08    XXX.XX   123.45
    Now, if your smartform just create a table node under the MAIN window and prints this values.
    Regards,
    Naimesh Patel

  • RFQ smartform /SMB40/MMRFQ_L line type DUNNING_INFO

    How can there be line type DUNNING_INFO for table TABLE_DATA when it is not defined in table tab of TABLE_DATA.  in node  SCHED_DUNNING_S of node DELIVERY_SCHEDULE_S of node ITM_DLV_SCHEDULE the text node QTY_URGED_S is referencing line type DUNNING_INFO.
    If you are NOT a SMARTFORMS expert please do not attempt to answer the question. 
    I found that I could add a line type TEST to the table and then add a TEXT node and assign the line type TEST.
    I then delete line type TEST and activated the SMARTFORM.  Voila!  QED!!!   But is this good practice???

    check this thread here a program is given to convert spool to doc use that and then attech the file to mail
    Convert a spool id into a word document
    кu03B1ятu03B9к
    Edited by: kartik tarla on Mar 5, 2009 12:42 PM

  • 2 line types to be on same page in a table in smartform output

    Hi,
    In smartforms i have created a table with 2 line types. These 2 linetypes i hav used in the main area of the Table. The data is coming as wanted, but the problem is if there is more data to span to the next page also, then it happens that one line comes in the previous page and the next line comes in the next page. But i want both lines to be on same page. Between them there should not be a break.
    Please help me on this.
    Thanks

    Hi ,
    I will give you the suggesstion and code as well by tomarrow.

  • Looping the complete page in Smartforms

    Hi,
    How can I loop the entire page in smartforms which contain multiple windows?

    Hi Shah Kunal
    A Simple Smartform Tutorial 
    SAP Smartforms can be used for creating and maintaining forms for mass printing in SAP Systems. The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output). 
    According to SAP, you need neither have any programming knowledge nor use a Script language to adapt standard forms. However, basic ABAP programming skills are required only in special cases (for example, to call a function module you created or for complex and extensive conditions). 
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    *2. Define looping process for internal table  *
             Pages and windows *
    First Page -> Header Window (Cursor at First Page then click
    Edit -> Node -> Create) *
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)&*   (Total Page)* 
    *Main windows -> TABLE -> DATA  *
    In the Loop section, tick Internal table and fill in 
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
               lobal settings :
               Form interface
               Variable name    Type assignment   Reference type
               ITAB1               TYPE                  Table Structure
               Global definitions
               Variable name    Type assignment   Reference type
               ITAB2               TYPE                  Table Structure 
    4. To display the data in the form 
        Make used of the Table Painter and declare the Line Type in Tabstrips Table
         e.g.  HD_GEN for printing header details,
                 IT_GEN  for printing data details. 
         You have to specify the Line Type in your Text elements in the Tabstrips Output options.
          Tick the New Line and specify the Line Type for outputting the data.
          Declare your output fields in Text elements 
          Tabstrips - Output Options
          For different fonts use this Style : IDWTCERTSTYLE
          For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program 
    REPORT ZSMARTFORM. 
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by :  SAP Hints and Tips on Configuration and ABAP/4 Programming
                        http://sapr3.tripod.com
    TABLES: MKPF. 
    DATA: FM_NAME TYPE RS38L_FNAM. 
    DATA: BEGIN OF INT_MKPF OCCURS 0.
            INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF. 
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001. 
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
       MOVE-CORRESPONDING MKPF TO INT_MKPF.
       APPEND INT_MKPF. 
    ENDSELECT. 
    At the end of your program.
    Passing data to SMARTFORMS 
    call function 'SSF_FUNCTION_MODULE_NAME'
      exporting
        formname                 = 'ZSMARTFORM'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
      IMPORTING
        FM_NAME                  = FM_NAME
      EXCEPTIONS
        NO_FORM                  = 1
        NO_FUNCTION_MODULE       = 2
        OTHERS                   = 3. 
    if sy-subrc <> 0.
       WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif. 
    call function FM_NAME
    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
        GS_MKPF                    = INT_MKPF
      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.
    Reward if helpful
    Regards
    Lakshman

  • Defaulting Rules on Line Type

    Hi,
    I have set up a Defaulting rule based for line type. This defaulting rule calls a custom package on the database to retrieve the correct value. Everything works fine when creating a manual order, but when an order is created automatically via Workfklow then the rule is not applied.
    I added a dependency using the OE_Dependencies_Extn package as documented by oracle, in here I link g_inventory_item to g_line_type as follows:
    x_extn_dep_tbl(l_index).source_attribute := OE_LINE_UTIL.G_INVENTORY_ITEM;
    x_extn_dep_tbl(l_index).dependent_attribute := OE_LINE_UTIL.G_LINE_TYPE;
    x_extn_dep_tbl(l_index).enabled_flag := 'Y';
    l_index := l_index + 1;
    I can see from some logging I put in that when the custom package is called to determine the line_type that the item_id is not populated correctly!
    Anyone have an idea how to resolve this?

    From what I have seen the only loop you can use in a SmartForm is a loop over an internal table. Can you provide more information on the "Repeat Processing" you talk about?
    Che

  • Create a new line in the smartforms

    Hi Guys,
    Please let me know to create a new line in the smartforms.
    I tried creating a window with the height length is 0 cms.
    It is allowing to create a line.

    Hi,
    First I need to include the LOGO and next line I need to make a line.
    What do you mean by 'making a line '?
    Is it an empty line?
    If it is just a blank line, while creating the text below the logo just give one line space and then type in your text.
    Regards,
    Shailaja

  • Mapping Line type Data to table data

    Hi,
    I am trying to refer to a data element present in the line type of a table type which belongs to an import parameter of a smartform. How will i access the data element to use in the where clause of a select statement.
    For Eg:
    Import Parameter name: PARTNER_H
    TYPE: CRMT_OUTPUT_PARTNER_H_COMT  (table type)
    The line type attached to this table type is CRMT_OUTPUT_PARTNER_H_COM.
    This line type is the structure that contains the data element that i need to use. the details are as below:
    Component: RELATION_PARTNER
    Component type: BU_PARTNER_GUID
    I have written a select statement as below:
    SELECT SINGLE * from BUT000 into I_FS_BUT000 where
      PARTNER_GUID = PARTNER_H-RELATION_H.
    I have given the input parameter as  PARTNER_H.
    It throws me an error that "PARTNER_H" is a table without a header line and therefore has no component called "RELATION_H".
    Is this the correct way to access the data element?Please help.

    Hi Neena,
                   Since PARTNER_H is an internal table it may have multiple values. If you want only a single entry from BUT000, you ll have to determine which entry from PARTNER_H you need in select query.
    If it is always going to have only a single value then , this will work :
    data: wa_partner_h type line of CRMT_OUTPUT_PARTNER_H_COMT.
    Read table partner_h into wa_partner_h index 1.
    if sy-subrc is initial.
    SELECT SINGLE * from BUT000 into I_FS_BUT000 where
    PARTNER_GUID = WA_PARTNER_H-RELATION_H.
    endif.
    Regards,
    Arun

  • Loop not working correctly in smartform

    Hi Experts,
    I have developed a smart form wherein,  the import params of form is a table (multiple records).The design of the form is, the first 10 lines is populated with a static text followed by the import table and follwed by a conclusion text. in simple words the design is, in the header a static text (hard coded text) will be populated in the main body an internal table will be populated and in the footer a static text (hard coded text) will be populated.Initially I have created three seperate windows for header, main body and footer, this was working fine for few records (import table) sometimes it happened the records were very huge and table entries over lapped the footer text. How to handle this kind issue? Can we increase the page size dynamically?? and also as per the user requirement the output of the form should have a provision to download the form on thier desktop in word format. Can some one help me in building this functionality.
    Thanks and Regards,
    Srini...

    Hello Mr. Srinivas,
    There is no provision to download the form in word format, but if you want to still download the form in real means open smartforms --> Utilities(M) --> download form.
    this will download the whole program wahtever you hvae chnge made in this. Make the back copy of form and after edition in form make down load again this form and than find out the differnce. May be this will be helpful. And also if yr loop is not working with smartform. Do write the similar code in yr driver program for the loop this will definetely helpful.
    Regards,
    Akg
    Edited by: akg.amit on Mar 25, 2011 10:08 AM

Maybe you are looking for

  • Can I run two external displays off a MacBook?

    Hi there. I would like to run two external 20" Acer (VGA) displays off of my MacBook. I already use one 20" in addition to my MacBook screen but would like to have two full sized screens to work off and would not need the 13" from the MacBook. The Ma

  • Building jtree from database query

    I am trying to build a JTREE from a database result-set. The resultset is listed below. I'm thinking I can somehow build a dynamic array of objects to build a TreePath, then use that to build the JTREE. Any input is appreciated. ResultSet Output: Her

  • Wireless security best configuration

    I would like to know if the usage of "LEAP + MAC address authnetification + broadcast key rotation or TKIP" is sufficient to provide the minimum of security in wireless areas. If yes the key rotation must be managed by which components : Radius serve

  • Buying iPhone 5 from third party retailer w/ unlimited data

    I ordered an iPhone 5 in-store on the 21st since I couldn't find a way to pre-order and keep my unlimited data, even though I was paying full retail. My ship date isn't until October 19th, and that's a long time to wait. But I did find a local Radios

  • Safari is freezing up when use two finger swipe to move from one page to another

    I think this is a software issue since ii did thew last update this has been happening'