How to print table items in column in smartform in 4.6c version.

Hi Experts,
I want to print the items i have in columns (like name invoice number) in smartforms but when i create table in main window there no options for header footer and main area, i have created the template for header and footer but how i print the items in columns. Pls reply ASAP.
Thanks in advance,
Abhishek Pandey.

Hi
create a table under main window
Under the Header create a Row or Line
Under the Row create a Cell and Under that Cell create a text field
In that text you can write what ever field name u want to write
Reward if it is helpful to you
Thanks
Krushna

Similar Messages

  • Printing line items in next line smartforms

    how to print line item description in next line...
    suppose
    i have line item description as
    "this is description of line item"
    then i need to print as
    "this is"
    "description of line item"
    in two lines......
                so that no trunkation takes place please reply me ....

    Use offset
    v_text(20)
    in the second line use
    v_text+20(40)
    If this does not work
    then declare two more fileds
    and write the code
    v_text1 =  v_text(20)
    v_text2 = v_text+20(40)
    and print the new fields
    Reward points if useful,
    Regards,
    Nageswar

  • How to print line item 2times in two different main window in Sap Script

    Hi,
    I am designing check printing form using Sap script. I need to print line items 2times in different 2main window.can yu pls explain  how print like this.
    JK

    i cud not get ur query..pls elaborate

  • How to Print an Icon (ICON_CHECKED) in the Smartform's Main Window's Table

    Hi Smartform Gurus ...
    I'm encountering a problem in Smartform. I'm creating a smartform for QM Module & I have to show the ACCEPTER & REJECTED Lots in that . At the Place of ACCEPTED, I want to show TICK MARK ICON (ICON_CHECKED in the table ICON) & at the place of REJECTED, I want to show CROSS ICON (ICON_INCOMPLETE in the table ICON) ... in SMARTFORM -> MAIN WINDOW -> TABLE ->MAIN AREA.
    My mail id is : [email protected]
    Please help asap.
    Regards,
    Mohit Grover.

    I am not talking about only these two icons, i.e. CHECKED & UNCHECKED. I am asking generally about how to print any icon in smartform's table, as I want to print some more icons & I don't want to upload graphics first, through SE78 & then shows those as graphics instead of ICONS, because by using this practice, it'll not be used as a general purpose form that can be used with any client/customer.
    Please help.
    Regards,
    Mohit Grover.

  • Smartforms  how to print Table rows on to the next page automatically

    if this question is answered pls point to the the link
    SMART forms:
    layout :  Half of my A4 page is filled with templates, a small portion is footer, the middle portion is Table.
    Note: i have set the condition for the footer as (tick the check box) "only after end of main window"
    Output:
                       the template is displayed the table is populated on the first page, no footer on 1st page,
                    on page 2 the table rows are printed (table rows were a lot) and finally footer got printed every thing as per normal
    what i want is:
                     instead of the table lines printed in the middle of page 2 (bcz my main window table is in the middle, top is templates)
                     i want the table lines (after filling the main window table lines in the 1st page) to continue to print from the
                     top of the page on page 2 and immediately after the table rows finish. footer must be printed....
    what should i be doing to get this output

    dear bob,
    yes i have done that already as u said, when i do it......
    i created a new page (next page) directed first page to next page
    on the next page my layout is like below
    removed all the templates dragged the main window to the top of the page...... 
    when i check the result, there is an empty line as the first line in the table (2nd page)
    and also the footer (again a template) on the first page, which is ticked as ( print after end of main window) is NOT displaying.

  • How to update table which has column name as Oracle keyword?

    Hi All,
    Somebody has created one table which has column name as "OPTION", now i am trying update this table column value and its throwing an error. "Invalid Identifier".
    Could you please help me in this?
    Thanks in advance.
    Regards,
    Ganesh Patil

    check this :
    batch@DOLN1> create table "from" ("select" varchar2(10));
    Table created.
    batch@DOLN1> desc "from";
    Name                                                                                                  Null?    Type
    select                                                                                                         VARCHAR2(10)
    batch@DOLN1> update "from" set "select" = 'hello World';
    0 rows updated.
    batch@DOLN1> insert into "from" values('hello World');
    insert into "from" values('hello World')
    ERROR at line 1:
    ORA-12899: value too large for column "TCM_BATCH"."from"."select" (actual: 11, maximum: 10)
    batch@DOLN1> update "from" set "select" = 'hello';
    0 rows updated.
    batch@DOLN1> insert into "from" values('hello');
    1 row created.
    batch@DOLN1> commit;
    Commit complete.
    batch@DOLN1> update "from" set "select" = 'World' where "select" = 'hello';
    1 row updated.
    batch@DOLN1> select * from "from";
    select
    World

  • How to print text in paper format iin smartforms

    Hi all,
      I want a question that  how to print text in paper format like  paper divides into 2 parts and if the firstpart is full of text i.e., it exceeds the first page the text will be displyed in the second part of the first page.
    Usefull answers will be awarded.
    Thanks all...

    Hi,
    U create two windows in the page and same as like second page.
    but in first page first window select the condition print only on first page.
    in second window select conditin print only on second page.
    first try without creating a secondpage. if that doesn't workout create secondpage and try.
    Assign points if useful.
    Regards
    (YUGANDHAR.P)

  • How to: Print table on first page, use second page (back) for text only

    Hi, I am looking for a clear document on how to use pagination and the Odd and Even pages.
    We need to print a table over several pages, but only on Odd pages.
    On the back of each page we need to print "Terms and Conditions". Is that possible? Can it be done without scripting
    We are on ADOBE version 8.1
    In the file properties, double sided is switched on, and version set to 8.1 and higher.
    I created two Master pages, a FrontPage with ContentArea1and a BackPage with ContentArea2.
    FrontPage is used for uneven pages, BackPage is used for the even pages. The masterpages are printed correctly (alternating properly).
    Two pages were created for the content area's:
    ITEMS: contains item data (table with header and footer). Place is "On Odd Page". After "Goto page BackPage". And if the table needs to be paginated it goes to BackPage with overflow leader "Conditions".
    CONDITIONS: contains a textfield (Terms and Conditions). Place is "On Even Page". After "Goto page FrontPage". No overflow.
    What should happen is that on the front pages the item table is printed. If there are too many lines it should overflow to page number 3 then 5 etc. All the even pages should display the text.
    What actually happens is that the item table also gets printed in the content area for the Condition text...
    Also the "Conditions" are not printed on the last back page. But only once before it...
    Cheers,
    Edwin.

    Fixed it... After a lot of creating, deleting, playing around with pagination and the inevitable cursing...
    I have created 5 pages:
    1. FirstPage
         - Odd/Even: Odd (Front) Pages
         - Placement: First page (In page set)
    2. FrontPage (For Odd pages)
         - Odd/Even: Odd/Front Pages
         - Placement: Rest of Pages
    3. BackPage (For Even pages)
         - Odd/Even: Even (Back) Pages
         - Placement: Rest of Pages
    4. LastPage
         - Odd/Even: No Odd/Even Restrictions
         - Placement: Last page (In page set)
    5. DummyPage
         - Odd/Even: Blank pages
    The 'Terms and conditions' are located on the BackPage and LastPage (as a text).
    The table that is printed is (of course) located on a normal page (flowed subform).
    Pagination tab: Placement = Following previous, and After = "Continue filling parent". No overflow... Basically, it's all default.
    The table lines will now start on the first page and if there are more lines than can be printed on this page, it will continue in the next content area. That will be on the FrontPage.
    The trick is that each master page must have a content area (mandatory). Except for Blank pages, but these cannot be used... Blank pages would only be used once, after the first page.
    What I discovered is that you can drag a content area away from the Master page and attach it to a different master page.
    Logically, if there is no content area on a page, then data cannot be printed there. So, I created a Dummypage. On this page I dumped the content areas from the LastPage and the BackPage. As a result, content cannot be printed anymore on the back of pages. Only the standard text (a text field) is printed there. When the data from the table is overflowing, it will automatically overflow from the FirstPage to the next content area. Which is located on the FrontPages only.
    The DummyPage is NOT used anywhere.
    The result is that the records can only be printed on the content areas that exist on the First and Front pages. The back pages are now skipped.
    Duplex printing is now working correctly, and the text is printed on the back of all the pages.
    Cheers,
    Edwin.

  • How to print multiple items in SAPScripts

    Hi gurus,
    I have a list of items to print out in SAPScript but I can implement it. I've searched this forum for over a day and I can't find the correct answer. I post my code here. Hope you can help me. Thanks in advance.
    __P/S:__ I found that someone here solved this by using index. Can you tell me how to implement it?
    DATA: BEGIN OF ITAB OCCURS 0,
           Elements here
          END OF ITAB.
    DATA: BEGIN OF XTAB OCCURS 0,
           Elements here
          END OF XTAB.
    DATA: WA_XTAB LIKE XTAB.
    DATA: ZOPTIONS LIKE ITCPO OCCURS 0 WITH HEADER LINE.
    DATA: ZPAGE TYPE I.
    START-OF-SELECTION.
      PERFORM PREPARE.
      PERFORM FORM_OPEN.
      PERFORM FORM_WRITE.
      PERFORM FORM_CLOSE.
    FORM PREPARE.
    Add data to itab & xtab.
    ENDFORM.
    FORM FORM_OPEN.
      CLEAR : ZOPTIONS.
      ZOPTIONS-TDDEST    = 'LOCLSVC'.
    ST_OPTIONS-TDPRINTER =
      ZOPTIONS-TDPREVIEW = 'X'.
      ZOPTIONS-TDIMMED   = 'X'.
      ZOPTIONS-TDDELETE  = 'X'.
      ZOPTIONS-TDPROGRAM = SY-REPID.
      ZOPTIONS-TDTELELAND = 'VN'.
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING
                DEVICE   = 'PRINTER'
                FORM     = 'ZF_CC_CI'
                LANGUAGE = SY-LANGU
                OPTIONS  = ZOPTIONS
           EXCEPTIONS
                CANCELED = 1
                DEVICE   = 2
                FORM     = 3
                OPTIONS  = 4
                UNCLOSED = 5.
      IF SY-SUBRC <> 0.
        MESSAGE E001 WITH 'Output was cancelled'
                          'by the user.'.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.                    " FORM_OPEN
    FORM FORM_WRITE.
      CLEAR ZPAGE.
      LOOP AT ITAB.
        ZPAGE = ZPAGE + 1.
        PERFORM FORM_START.
        PERFORM WRITE_TITLE.
        PERFORM END_FORM.
      ENDLOOP.
    ENDFORM.
    FORM FORM_START.
      CALL FUNCTION 'START_FORM'
           EXPORTING
                FORM     = 'ZF_CC_CI'
                LANGUAGE = SY-LANGU
               PROGRAM  = SY-REPID
           EXCEPTIONS
                FORM     = 1
                FORMAT   = 2
                UNENDED  = 3
                UNOPENED = 4
                UNUSED   = 5
                OTHERS   = 6.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.
    FORM WRITE_TITLE.
    DATA: NCOUNT TYPE I,
          NI TYPE I.
        NI = 1.
        DESCRIBE TABLE XTAB LINES NCOUNT.
        DO NCOUNT TIMES.
          CLEAR WA_XTAB.
          READ TABLE XTAB INTO WA_XTAB INDEX NI .
          CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                ELEMENT = 'ITEM'
                TYPE    = 'BODY'
                WINDOW  = 'ITEM'.
          NI = NI + 1.
        ENDDO.
    ENDFORM.                    " WRITE_TITLE
    FORM END_FORM.
      CALL FUNCTION 'END_FORM'
           EXCEPTIONS
                UNOPENED                 = 1
                BAD_PAGEFORMAT_FOR_PRINT = 2
                SPOOL_ERROR              = 3
                OTHERS                   = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " END_FORM
    FORM FORM_CLOSE.
      CALL FUNCTION 'CLOSE_FORM'
           EXCEPTIONS
                UNOPENED                 = 1
                BAD_PAGEFORMAT_FOR_PRINT = 2
                SEND_ERROR               = 3
                OTHERS                   = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " FORM_CLOSE

    Hi Le Khanh Vinh ...
    In Script have You declare Two pages... Let say there is Two pages with names like ..FIRST and Second.
    In Standard Attributes of First Page give Next Page as Second.
    and for Second Page Standard Attributes give Next Page as Second only.. This will resolve for more Line Items thats it..
    Any Info need plz do reply ..
    Regards,
    Sg

  • How to print selected item of list?

    Hello everybody! 
    I'm new to Sharepoint, I just installed an entire environment to test it. I installed Windows Server 2012 R2, SQL Server 2012 and Sharepoint 2010 (my customer's version).
    What I'm trying to do is have a easy way that my customer will select an item on a list and then print it. As they have a lot of list, they want to create the layout of the printing themselves. They want the company logo on the page, they also want to customize
    the background of some items like color, fonts, etc.
    Please, I don't want to seem like asking for the solution out of the box. I just need to know if this is possible, and how.
    I've been searching and found SQL Reporting services, or even printing from Access. Is it the way to go?
    Any help will be much appreciated.
    Thanks.

    there are different ways to get it done.
    export the files to excel and print from there
    use the 3rd party tools to get this done. Free from Code Plex, which use the Print List.
    SharePoint 2010 Sandboxed Solutions
    see these blogs for helpful script.
    http://www.coolwriteups.com/print-a-list-item-in-sharepoint-2010/
    http://sharepointdragons.com/2012/05/05/print-friendly-list-items/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How to print selected Item rows in AR Invoice under PLD?

    Hi,
    Customer is running on 2007A PL30. They are distributing drugs to clinics and hospital.
    Eg. In AR Invoice, they are selling 10 items to customer. The 10 items will be printed out in AR Invoice. Assume out of these 10 items 2 of it are poison.
    Customer wants to print out poison report to the government for same invoice but only appear 2 items rather than all the 10 items.
    May I know how to incorporate filtering in PLD to print out the 2 item only. FYI, we are going to use a marker in Item Master Data to indicate whether the item is poisoneous.
    How to derive poison report in this scenario?
    Regards
    Thomas

    Hi
    It will be possible to filter the rows (poison only) to show on a separate layout using the flag on the item master.
    You will need the flag field in the repetitive area as well as a formula field. You link your fields in the repetitive area to this formula field to determine whether a line in the invoice will show in the print or not.
    Have a look at the system layout 'Invoice_Item Type and Details (system)' - repetitve area which will give you a good idea of how this can be done.
    Regards

  • How to print table contents?

    hi @,
    I am having a view which is dsiplaying data fetched from the R/3 through Adaptive RFC in a table. This table need to have a print functionality to print on the client.
    How to do this I am not having any function / UI to do this.
    Any help.
    Regards

    Hi,
    Try This:
    When the user click on Print button, launch a new window as below:
    public void onActionPrint(com.sap.xyz.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionPrint(ServerEvent)
              StringBuffer strB = new StringBuffer("/webdynpro/dispatcher/xyz.com/(component name space) ab~xyz~testprint/(application name)PrintTestApp");
              IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(strB.toString(), "Print");
              window.show();
        //@@end
    The above code helps to launch a new window with your Web Dynpro application. The application is sepecific to print functionality.
    ThePrintTest App should have the content with format what exactly you would like to print. (Users use the browser standard print functionality to print the table content).
    This is a kind of work around and as of NW 7.0 there is no standard print functionality available in Web Dynpro.
    Thanks
    Krishna

  • [Urgent] How to print Line items Twice in Check Printing ??

    Hi <b>Experts</b>,
    We have got a requirement of printing the vendor invoice info(Line Items) above and below the actual check.
    Eg.
    Page 1
    1-8 Line Items
    Voided Check
    <b>1-8 Line Items</b>
    Page 2
    9-16 Line Items
    Voided Check
    <b>9-16 Line Items</b>
    Page 3 ..... (last Page)
    17-20 Line Items
    Actual Check
    <b>17-20 Line Items</b>
    Now, All the things are printing fine except dual printing of the Line items at the below of Check.
    Please help me..... i am using Check print program <b>RFFOUS_C</b>.
    If anyone can has done something like this before than please send me the code for it.
    If someone requires more clarification, please ask me.
    Regards,
    <b>Abhishek</b>

    Hi Abhishek,
    we have done check printing here. but can u pl tell me why is the line item required to be printed below the check also??
    u must have observed that in the check sapscript ( F110_PRENUM_CHCK), the main window is situated above the check window.. n the line items are coming within the main window...since the line items are dynamic data( not fixed), u have to create a window below the check n that has to be a MAIN window again for it to display multiple data.. so wen ur last page is getting called ( u need to find that out that wen is the last page getting called ), u can insert a write_form for this new main window along with the other write_form( for the earlier main window).
    it can get very complex though as i dont know if this will certainly work...
    is the requirement reaaly to print the line items below the check or anything else will do?? as it wud greatly reduce ur headache...

  • How to print table twice (and more)

    Hi,
    I have a problem with interactive form placed into WD4A. I have a table in it and I want to print this table on all my 4 pages. But table is printed only on first one, others are emty. What should I set to print the same table on all pages of my form?
    Many thanks for answer!

    Hi,
    your suggestion is solution, but only workaround (many thanks for it!).
    If I have binded only field (no table) for textfield on more pages, content of this field is printed on all pages, I think behaviour for tables should be the same, because sending same data 4times is nonsense. Isn't there any javascript to "reset" table after print?
    Many thanks for any answer!

  • How to print Table with fixed height?

    Hi,
    I am developing an invoice. I am printing the invoice lines in a table and the number of lines may vary.
    I am using the table to print the lines in word rtf template. The table cells don't have the border.
    I am facing the following problems:
    1. The table height varies based on the number of invoice lines. I don't want that. I want to fix the table height. I can draw the line and create the table, that may solve this problem for 1 page invoice, but that doesn't solve next issue i.e. issue #2.
    2. If the invoice goes beyond 1 page, then the table continues and on the 1st page the table is open from the bottom, as I have table without the internal cell border. I want close the table on the 1st page and rewrite the table in the 2nd page.
    Please let me know, if you have any solution for these issues.
    Thanks!!
    Edited by: Sanket_Bhabad on May 17, 2013 8:01 AM

    Take a look at this blog post: https://blogs.oracle.com/xmlpublisher/entry/anatomy_of_a_template_i_fixed
    Thanks,
    Bipuser

Maybe you are looking for