SMARTFORM:  How to print on document per row in an internal table

Hi.
I have created a SmatForm that is a one-page document to be printed once for every row in an itab I'm sending it via the Table Interface.
I hope I didn't waste my time designing this form but I created several Windows for each section (header, recipient address, summary of coverage, detail coverage information, disclaimer, etc.).  I arbitrarily chose the header window as the "main" window (mainly because I couldn't find out what the difference between  the different choices was).  I've got the form laid out exactly how I want it.
If I test the SmartForm and pass in 2+ records via the test screen only the first one prints. 
I thought about trying a LOOP but since you have to place the text within the loop that means all the Windows I have defined won't "get" any of the data.
I thought about looping in the driver ABAP program and just calling the SmartForm once per row but that seems horribly inefficient.
PLEASE HELP!  Can I salvage what I've done already?

Valter:
OK.  I'm trying this and running into a snag.
In the Form Interface section I have a table interface parameter defined as this: 
P_CERTIFICATES_IN TYPE ZBNTT_LIFECERTIFICATE
next I declared a variable named "IT_CERTIFICATES LIKE LINE OF P_CERTIFICATES_IN" in the "Global Definitions" section and on my LOOP element (under my new MAIN window) I have "[X] Internal Table" checked and
"P_CERTIFICATES_IN" "INTO" "IT_CERTIFICATES"
but the compiler says "Global Definitions     Field "P_CERTIFICATES_IN" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement . . . . . .".
Why can't the Smartform "see" P_CERTIFICATES_IN?

Similar Messages

  • How to print material document in header level?

    Hi Guys,
    How to print material document from header level. I can only print them in item level. But i want that in header level. For example, I have 4 movements inside a material document and I want to issue only one output from the header level.
    I can see the option Goto -> Additional Function -> output, but it is disabled. Please let me know hot to acheive this and if you need further info on this. Please throw some light on this.
    Thanks
    Yasin.

    HIi
      Your question is not clear.  What exactly you want to be.
    1.  To print material header in your smart form / Sap Script what is the problem. Itu2019s quite easy you can do it. Let me know what problem you are facing.
    2. The option is disables because of business functionality ask your functional guys to help you on the same.
    Regards
    Swati

  • How to print a document in Pages

    just got iMac computer and downloaded Pages.  Can not work out how to print a document I just created

    Hi LL,
    There's a great piece of free documentation for Pages called the Pages User Guide. It can be downloaded from the Help menu. I suggest that you read the well-written guide some quiet evening. It will get you off and running with your new computer and Pages.
    Printing documents on a Mac is the same as on a Windows system: File > Print.
    Jerry

  • How to print PDF documents on Unix(Solaris)

    Hi ,
    I wanted to know how to print PDF documents on Unix(Solaris)?
    Is there a document or white paper that i can refer to start printing PDF document.
    What kind of drivers/utilities will be required to achieve the objective?
    Kiran

    Have you tried FOXIT? I think there is a trialversion. I tried Adobereader 2.5 but there is still no option to print.
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • PLD: How to print 1 document to 2 printers

    Dear All,
    Can someone tell me how to print 1 document to 2 different printers? I need this for my delivery documents. 1 copy goes to 1 printer with normal A4 paper (return with signature copy) and the other needs to go the the other printer which has pre-printer paper with a logo and different color paper (for client to keep copy).
    Can this be done with normal functionality or does this require an add-on?
    Thanks!

    Hi,
    This can be done using a UDF.
    If Value of UDF is 1 then all the field related to the Deliver document has to Print
    If Value of UDF is 2 then all the field related to the Pre-printed format has to print
    This can be done by changing the UDF whenever your are taking the print out you have to select the UDF so that they can take the Delivery Document and Pre-printed document by using Formula field in the Single Print Layout.
    But you have to customize the report according to that.      I Had done the same for my client.
    Once the Problem is solved please close this issue.
    Regards
    Chidambaram

  • How to print a documents

    po

    Hi,
    Firstly what is your document and what is your printer ? Where do you print from ? Nearly all applications have a Print function and when we click Print, the document will print to the default printer. BUT that's very general. We need more information before we can answer the questtion "How to print a document".
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to process a block for each row in an internal table....

    Hi experts....
    In po approval workflow the scenario is like this.... for each po there may be more than one approver. approvers list i am maintaining in the ztable. list of approvers(no of approvers) is decided by the po value. I have collected these approvers into internal table. now i have to process a block ( approving or rejecting the po... )in the workflow for each row in the internal table.
    how can i do this. based on the decision of the 1st approver  approves the po then it should go to next approver in the internal table...otherwise end the workflow.....
    Please help me......

    i have created an internal table in the workflow container in which i am getting the list of approvers....
    how can i loop the internal table in the workflow...?
    how can i know the index of the loop in the workflow.....(will sy-index work here....? so that i can use loop until step in the main workflow to call the subworkflow..so that if sy-index is greater than no of entires in the itab then i can come out of the loop)

  • Merging of multiple rows in an internal table as a single record

    Hi All,
    I have an internal table which has the following columns:
    text, date, time, user.
    it stores notes in the internal table.
    The problem is...when I save a note with multiple lines and spaces it saves each line of the note as a row in the internal table.
    Thus i get more no. of rows in the internal table compare to the no. of rows!
    I need to store each notes as single row in the internal table.
    Please advise how to approach this?
    Helpful answers will be rewarded.
    Thanks & Regards,
    Anshumita.

    You can create a deep internal table. You can declare one Column as an internal table and store the NOTES in that Internal table for each row.
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm
    you can check the example in the link
    regards,
    abhishek

  • Read first row of the internal table

    Dear All,
    Please let me know how to read the first row of the internal table?
    I used following read statement but it is not working
    READ TABLE t_cdhdr INDEX 1.

    Hi,
    i think you are not reading an internal table
    according to your code i think you are reading a type
    which may be declared as types...
    types are declared just for reference
    eg
    types: begin of t_cdhdr .
    include strucuture  cdhdr .
    types: end of t_cdhdr .
    types: t_it_cdhdr type standard table of t_cdhdr.
    data: git_t_cdhdr  type t_it_cdhdr.
    data: gwa_t_cdhdr type t_cdhdr.
    now have to fill the iternal table
    and
    read table git_t_cdhdr into gwa_t_cdhdr index 1.
    reward points if helpful
    thanks & regards,
    venkatesh

  • No. of  Rows in an internal table

    Dear Friends,
    Please let me know which ABAP System Field shall give me the no. of rows in an internal table. If it is sy-dbcnt kindly provide an example on how to use it in a program.
    Regards,
    Alok.

    Hi Alok,
    Use the Describe Statement.
    Sample Program :
    *TABLES ZVIJIRANK.
    *DATA : BEGIN OF IT OCCURS 10.
    *INCLUDE STRUCTURE zvijirank.
    *DATA : END OF IT.
    *data : lines1(4) type n,
          knd type c,
           n type i.
    *select * from zvijirank into table it.
    **describe table zvijirank lines lines1. -
    > Describe statement is only used for Internal Tables.....
    *write : / 'BEFORE DESENDING'.
    *LOOP AT IT.
    *WRITE : / IT-REG_NO , IT-NAME.
    *ENDLOOP.
    *ULINE.
    *describe table it lines lines1. "-----> To find No Of lines
    Write : lines1.
    Thanks.
    Message was edited by:
            Viji

  • Count rows in an internal table

    Anybody how knows how I can count rows in my internal table?

    Hi,
    Data: lines like sy-tabix.
    DESCRIBE TABLE ITAB LINES LINES.
    where itab is your internal table.
    This will work out.
    Please award sutiable points .
    Regards,
    Irfan

  • Delete row in an internal table

    Hi,
    with key1 and key2 how do I delete a row in an internal table itab?
    I want to do something like (but dont succeed) this:
    DELETE itab WHERE x = key1 AND y = key2
    thanks in advance

    Hi Baran,
    Please try like this.
    DELETE TABLE itab WITH TABLE KEY x = key1
                                     y = key2.
    Regards,
    Ferry Lianto

  • How many records are  fetched my query into my internal tables

    Hi
    I am in the debugger, would like to know, how many records are  fetched my query into my internal tables. How do I  find out ?
    thanks
    siva

    Hi,
    Do the following,
    Step 1:
      Fill your internal table with select query.
    Step 2 : Use DESCRIBE statement with LINE addition to get the no of rows in the internal table.
    for further informations, check
    http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3798358411d1829f0000e829fbfe/content.htm
    Regards,
    Anirban

  • How to find the number of columns in an internal table DYNAMICALLY ?

    Hi,
    How to find the number of columns in an internal table DYNAMICALLY ?
    Thanks and Regards,
    saleem.

    Hi,
    you can find the number of columns and their order using
    the <b>'REUSE_ALV_FIELDCATALOG_MERGE'</b>
    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
       I_PROGRAM_NAME               = sy-repid
       I_INTERNAL_TABNAME           = 'ITAB'
       I_INCLNAME                   = sy-repid
      changing
        ct_fieldcat                  = IT_FIELDCAT
    EXCEPTIONS
       INCONSISTENT_INTERFACE       = 1
       PROGRAM_ERROR                = 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
    now describe your fieldcat . and find no of columns.
    and their order also..
    regards
    vijay

  • SWAP COLUMNS AND ROW IN AN INTERNAL TABLE to display in ALV

    Hi ,
    I want to swap all the rows in an internal table with the column of the internal table to display it horizontally in ALV grid.
    e.g
    1     2   3  (field names)
    A    P   X
    B    Q   Y
    C    R    Z
    should look like :
    D       A   B     C
    E      P   Q    R
    F       X    Y    Z
    Where D , E, F in first column is already apended in new table.
    Or else is there a way to rotate the ALV grid so that it can display rows as columns & columns as rows.
    regards

    hi,
    i have an internal table which is like
    f1  f2 f3  f4 (column header)
    A  1  2   3
    B  4  5   6
    C  7  8   9
    the values in o/p table should be
    A B C  ( column header)
    1  4 7 
    2  5 8
    3  6 9
    Please help!!

Maybe you are looking for

  • Web Page Appears Different

    My web page appears correct in Windows 2000 but in XP the graphics appear outside of their border and there is a horizontal colored line through the middle of the screen. Is the problem on my end?

  • Skinning combobox rectBorder class... only!

    preface: I have experience skinning components. Issue: trying to change the rectBorder class ONLY on the combobox instances. no others. can anyone help me with this? I've changed the rectBorder for entire documents before, but have never been able to

  • How to retain selected value in apex_item.select_list?

    Hi, I've a report region query- select distinct col1, col2, APEX_ITEM.HIDDEN(2,col3)|| APEX_ITEM.SELECT_LIST(1,'No_Action','Valid;Y,Invalid;N') Action from <tab1> When 'Y' (valid) selected from the select list and SUBMIT is clicked - a validation and

  • Unable install Japanese Font Pack to Win7 English

    Dear Experts, I need to install Japanese Font Package on Windoes 7 English, however I could not install the font pack FontPack1000_ja_JP.msi due to the error, "This installer requires Adobe Reader X installed on your system. Please install Adobe Read

  • How to make OC4J and IIS on diffrent machines ?

    Hi, How to make OC4J and IIS running diffrent machines. following document tells use "standalone ONS daemon",Can anybody tell what standalone ONS daemon means and steps to be done to make IIS working on diffrent machine http://download-west.oracle.co