Alignment problem in Smartform table

Hi,
      I have a table having four columns no rows. In the first column I have text and in the second, third and fourth I have to display Amounts. The text in the first column changes.
I am facing the problem when the table goes to second page here the alignment to a particular Text of the first column and the amount in corresponding columns are not aligned properly. In the second, third and fourth columns the amount fields may be or may not be there. The problem comes only when the amount field is not there at the page break.
Regards,
Ramu N.

Hi,
I have tried printing the borders. The problem comes only when there is no amount field at the page break other wise it is working fine. When there is no amount field at the page break the amount field which is to be printed next is coming down than the actual place where it has to be printed.
Here I have only 1 row but the number of lines in that row are many.
Regards,
Ramu N.

Similar Messages

  • Problem in Smartforms table printing

    Hi Friends
    I have a weird problem with printing the smartforms table.
    The problem is as follows.
    Suppose there are 10 rows (entries/records) in the table and the page can accomodate only first 5 rows, it automatically overflows into the next page. Now typically the table should print the next 5 entries. But, instead, only the 6th row is printed and the rest 4 rows are not printed.
    Please advice.
    Thanks
    sam.

    This is due to some technical reason in the ABAP. If you are passing the sorted table, you have to declare it as already sorted.
    please read this
    If in the form interface a tables was passed that was sorted before by the application, and it is now processed in the loop of a data node, you must again list the sort fields explicitly and, in addition, mark the checkbox "already sorted".
    Due to technical reasons in ABAP, it is not possible to automtically pass the sort fields.

  • Problem with smartform table node

    hi i am working on smartform,
    requirement is to put lot of barcodes , with a horizontal line separating them,
    so i felt, displaying a table pattern inside a loop was the way to go,
    but when i am setting table parameters in the details part,
    i was giving the following and it was giving error saying
    the width of matnr and barcode doesnopt correspond to the total width of the table
    the total table width is 16 CM,
    MATNR         15.50     MM     30.50     MM
    BARCODE    15.50     MM     30.50     MM
    what ever value i am giving in  these columns, it continuosly giving errors,
    if some budy has a sample parameters which worked with them, please give me,
    i shal;l make necessary changes.
    when i increase the table width it says doesnt fit in the page, page is DINA4 with portrait format.
    please help.
    rgds.

    hi check this for bar codes in smartforms..
    http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm
    http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
    regards,
    venkat

  • Problem in Smartform Table/window Line Using Dot Matrix Printer

    Dear Experts,
    I faced issue in printing smartform using dot matrix printer. In the print result, the table line (horizontal and vertical) is not printed. I already search the forum but none can solve my issue. I already changed the table line width into 30 or 40 TW but still not work. Everything is OK in the print result, except the table line.
    If i manually print/write '__' (underscore), it appear in the print result, but to write horizontal line and vertical line manually in the smartform will be huge effort.
    I used device type EPESCP9 for the output device.
    Can you tell me what i need to do?
    your help will be appreciated.
    Thanks

    Hi,
    Check your device type.
    http://forums.sdn.sap.com/thread.jspa?threadID=2016838
    Jshree

  • Alignment problem in converting smartform printpreview into PDF

    Hi all,
    I am getting some alignment problem in converting smartform printpreview into PDF format, i.e the format of PDF is different from printpreviw of smartform.
    kindly suggest something so that alignment is not changed while converting to PDF.
    Regards,
    Sumalatha

    use below f.m to convert it into 255 characters....
         CALL FUNCTION 'QCE1_CONVERT'
            TABLES
              t_source_tab         = i_tline
              t_target_tab         = so_ali[]
            EXCEPTIONS
              convert_not_possible = 1
              OTHERS               = 2.

  • 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, ...)

  • Character Problem For SmartForms to Pdf .

    Hi Experts ;
    my problem about smartforms . I have a custumer list. I use smartform for output. Customer list of smartform ok . Have any problem . But I convert this output to PDF . Some Characters  are overlapping . My main language Türkçe(Turkish) . Characters is incorrect for  struct of laguage .( smartform output has no problem but pdf output have problem )
    My Code :
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETER: p_date LIKE sy-datum.
    PARAMETER: p_rea TYPE char255.
    SELECTION-SCREEN: END OF BLOCK b1.
    DATA:      ws_ucomm LIKE sy-ucomm.
    DATA: gt_intab  TYPE ZSMRT_DNM_T WITH HEADER LINE.
    INITIALIZATION.
    SET PF-STATUS 'GUI'.
    PERFORM get_data.
    AT SELECTION-SCREEN.
      ws_ucomm = sy-ucomm.
      CASE ws_ucomm.
        WHEN '&PDF'.
          PERFORM f1000_download_form.
          EXIT.
        WHEN '&BACK'.
          LEAVE TO SCREEN 0.
          EXIT.
        WHEN '&EXIT'.
          SET SCREEN 0.
          EXIT.
        WHEN '&canc'.
          SET SCREEN 0.
          LEAVE TO SCREEN 0.
      ENDCASE.
       f1000_download_form
    FORM f1000_download_form.
      DATA: form_name TYPE rs38l_fnam.
      DATA: wa_ctrlop TYPE ssfctrlop,
            wa_outopt TYPE ssfcompop.
      DATA: t_otfdata  TYPE ssfcrescl,
            t_pdf_tab  LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA: t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE.
      DATA: w_filesize TYPE i.
      DATA: w_bin_filesize TYPE i.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname                 = 'ZDNMSMRT'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
       IMPORTING
         fm_name                  = form_name
       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.
      wa_ctrlop-getotf = 'X'.
      wa_ctrlop-no_dialog = 'X'.
      wa_ctrlop-DEVICE = 'I9SWIN'.
      wa_outopt-tdnoprev = 'X'.
      CALL FUNCTION form_name
        EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
         control_parameters         = wa_ctrlop
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
         output_options             = wa_outopt
         user_settings              = 'X'
         mydate                     = p_date
         reason                     = p_rea
         ADRNR                      = '23713'
       IMPORTING
      DOCUMENT_OUTPUT_INFO       =
         job_output_info            = t_otfdata
      JOB_OUTPUT_OPTIONS         =
       TABLES
         RTAB                      = gt_intab[]
       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.
      t_otf[] = t_otfdata-otfdata[].
      CALL FUNCTION 'CONVERT_OTF'
       EXPORTING
         format                      = 'PDF'
         max_linewidth               = 150 "132
      ARCHIVE_INDEX               = ' '
       IMPORTING
         bin_filesize                = w_bin_filesize
        TABLES
          otf                         = t_otf
          lines                       = t_pdf_tab
       EXCEPTIONS
         err_max_linewidth           = 1
         err_format                  = 2
         err_conv_not_possible       = 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.
      CALL FUNCTION 'WS_DOWNLOAD'
       EXPORTING
         bin_filesize                  = w_bin_filesize
      CODEPAGE                      = ' '
         filename                      = 'c:     est.PDF'
         filetype                      = 'BIN'
      MODE                          = ' '
      WK1_N_FORMAT                  = ' '
      WK1_N_SIZE                    = ' '
      WK1_T_FORMAT                  = ' '
      WK1_T_SIZE                    = ' '
      COL_SELECT                    = ' '
      COL_SELECTMASK                = ' '
      NO_AUTH_CHECK                 = ' '
       IMPORTING
         filelength                    = w_filesize
        TABLES
          data_tab                      = t_pdf_tab
      FIELDNAMES                    =
       EXCEPTIONS
         file_open_error               = 1
         file_write_error              = 2
         invalid_filesize              = 3
         invalid_type                  = 4
         no_batch                      = 5
         unknown_error                 = 6
         invalid_table_width           = 7
         gui_refuse_filetransfer       = 8
         customer_error                = 9
         OTHERS                        = 10
      IF sy-subrc <> 0.
        MESSAGE i003(z00) WITH 'File not downloaded succesfully'.
      ELSE.
        MESSAGE i003(z00) WITH 'File Test.pdf downloaded succesfully '
                                                'under C drive'.
      ENDIF.
    ENDFORM.                    " F1000_DOWNLOAD_FORM
    *&      Form  GET_DATA
    FORM GET_DATA .
       SELECT kunnr belnr gjahr from bsid
             INTO CORRESPONDING FIELDS OF TABLE gt_intab
             WHERE bukrs = '4000' and gjahr = '2007'.
       LOOP AT gt_intab.
          SELECT SINGLE name1 from kna1
            INTO (gt_intab-name1)
            WHERE kunnr = gt_intab-kunnr.
          MODIFY gt_intab INDEX sy-tabix.
       ENDLOOP.
       SORT gt_intab by kunnr.
    ENDFORM.                  " GET_DATA
    Regards .

    Try following logic:
    DATA: lt_data TYPE TABLE OF tline,
          lt_data1 TYPE TABLE OF tline,
          lt_objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    Convert OTF to PDF
            REFRESH: lt_data.
            CALL FUNCTION 'CONVERT_OTF'
              EXPORTING
                format                = 'PDF'
                max_linewidth         = 132
              IMPORTING
                bin_filesize          = l_binfilesize
              TABLES
                otf                   = la_jobout-otfdata[]
                lines                 = lt_data[]
              EXCEPTIONS
                err_max_linewidth     = 1
                err_format            = 2
                err_conv_not_possible = 3
                err_bad_otf           = 4
                OTHERS                = 5.
            IF sy-subrc <> 0.
    Error during conversion from OTF to PDF.
            ELSE.
    Creation of the document attachment
              REFRESH: lt_data1.
              CALL FUNCTION 'TABLE_COMPRESS'                    "#EC *
                TABLES
                  in             = lt_data[]
                  out            = lt_data1[]
                EXCEPTIONS
                  compress_error = 1
                  OTHERS         = 2.
              IF sy-subrc <> 0.
    Error during compress operation of the data
              ELSE.
                REFRESH: lt_objbin.
                CALL FUNCTION 'TABLE_DECOMPRESS'                "#EC *
                  TABLES
                    in             = lt_data1[]
                    out            = lt_objbin[]
                  EXCEPTIONS
                    compress_error = 1
                    OTHERS         = 2.
                IF sy-subrc <> 0.
    Error during decompress operation of the data.
                ENDIF.
           ENDIF.
    ENDIF.
    Pass table lt_objbin[] to WS_DOWNLOAD function module. It should work.
    Thanks
    Amol Lohade

  • Alignment problem on abap report after Unicode conversion

    Hi,
    I've recently convert my system to unicode. Now my user is complaining the aged debtor report (ABAP) is having a column alignment problem when displaying the Japanese character.
    I'm not sure what to do now. Have anyone experience this and let me know how can I sove the problem?
    /Eida

    Hi,
    you need to regenerate the data
    For this regeneration, you start the program RKETREGP with the parameter
    application class 'KK', subclass '01' and table name 'KKROBJ'.
    br, Guido

  • Alignment problems in JSF datatable

    Hi,
    In my JSF data-table, i have few alignment problems.
    For Example, I have 4 columns, Emp-Id, First-Name,Last-name and Age.
    What happens is, sometimes, the value in the First-Name cell moves into the Last-Name cell, leadiing to alignment problems. But this is not happening always. Occasionlly this happens.
    I tried with iFrames and also by having fixed width for each cell, then also this problem is persisting.
    Is it something to do with the datatable display in JSF?
    Any suggestions/ideas on how to resolve this problem would be of immense help.
    Thanks

    Hi
    What happens if you delete the text and retype in and change alignment ?
    Does the same issue happens with all sub menu items ?
    Please provide the site url.
    Thanks,
    Sanjit

  • Problem in Assigning  table to access sequence

    Dear All,
    i am facing problem in assigning table to access sequence for billing output type.
    I have created 1 table B902 with the combination of Sales org,plant ,Division,Billing doc type.
    but if i am going to assign with access sequence system is taking for Billing type & division & for other its showing red marks & errorr.Access sequence->Aceessess->Field.if i am clicking on field in I/O column for plant its displaying negative.
    bcause of this i am not able to make condtion record.
    Message is Select a document field for WERKS
    Regards
    ajit
    Edited by: SAP SD AJIT on Mar 1, 2010 3:18 PM

    Hi SAP SD AJIT ,
         Go to IMG --> Sales and Distribution --> Basic Functions --> Output control --> Output Determination --> Output Determination using condition technique --> Mantain  output  Determination for billing document --> Mantain condition table,  in the pop-up choose the option "Field catalog: Messages for billing documents", there you can add standard field into the catalog, so you can add WERKS and the other one "document structure" I don't know what field it is, but if it is and standard field you can add it. If you have a Z field you need ABAP help to add the Z field to the structure "KOMKBZ5" and then you can add it to the catalog.
    Regards,
    Mariano.

  • Problem in creation table for sap 4.6

    hello evrybody
    i have just a problem in creating table with se11;after saving and activite those table and zhen i select icon  of contents it bloocks and shoz this  error message :
    Error reading table TMCNV; RC = 4
    Message no. BMG 135
    thank you for your help
    Edited by: Rob Burbank on Apr 6, 2010 10:20 AM

    Seems like you have a material number field (domain with conversion routine MATN1 or alike) and table TMCNV does not have the entry with key 'MATCONV', check the where used-list of message BMG 135. I assume this entry comes delivered by SAP, so try to restore it.
    Also search for OSS notes with "TMCNV" or "BMG 135".
    Thomas

  • Problems with a table in PDF`S footer

    Dear sirs,
    We are having problems when trying to run a PDF with Adobe LiveCycle Designer tool.
    We are working with a PDF which is composed of a header, the main body and a footer. We have created a table (table1) at the footer and
    another one at the main body (table2). This last table (table2) may overflow therefore it will genarate two pages for our PDF.
    On both pages appear the header and the footer correctly but in the last page it does not write the data from the table included in the footer (table1).
    We have no problems with the table included in the main body
    In the attachments, I send you the screenshots of both pages in which I have marked in red the part where we have error.
    May you help us to solve our problem?
    Thanks in advance your help.
    Edited by: emgaitan on Mar 16, 2010 2:18 PM

    Wardell,
    Check the data in RSA3 for the extractor that you use to bring data .
    You must be using the data source 0CO_OM_CCA_09. Check the data and reconcile and you will get it.
    Let me know if you need anything else.
    Thanks
    Ravi Thothadri
    [email protected]

  • In smartform table data is repeating

    in smartform table, data is repeating and filling the page...
    actual data is only 3 rows...
    but it repeats and fills the page...how can i stop this...

    Hi Rajkamal
    You can easily debug the smartform; try hardcoding the break-point for your user ID.  (Break <ID>)
    Please check the number of entries in your table.
    If the number of entries are correct it can be only some loop in smartform - happy hunting !!
    Neer

  • Problem in joining tables

    Hi All,
    Here I am facing the problem in Joining table I have S031,s032,makt,marc,I need a field ATWRT field from CAWN table,I did't find any link for this above from tables, any one please help me how to find out.
    REPORT  ZMMTEST.
    tables:s031,s032,makt,marc.
    DATA : BEGIN OF itab1 OCCURS 0,
           matnr TYPE s031-matnr,
           lgort      TYPE s031-lgort,
           werks      TYPE s031-werks,
           spmon      TYPE s031-spmon,
           magbb      type S031-magbb,
           wagbb      type S031-wagbb,
           azubb      type S031-azubb,
           aagbb      type S031-aagbb,
           END OF itab1.
    DATA : BEGIN OF itab2 OCCURS 0,
           matnr like makt-matnr,
           maktx like makt-maktx,
           END OF itab2.
    DATA : BEGIN OF itab3 OCCURS 0,
           matnr TYPE marc-matnr,
           werks type marc-werks,
           ekgrp type marc-ekgrp,
           END OF itab3.
    DATA : BEGIN OF itab4 OCCURS 0 ,
           matnr   TYPE s032-matnr,
           lgort   TYPE s032-lgort,
           werks   TYPE s032-werks,
           mbwbest type s032-mbwbest,
           wbwbest type s032-wbwbest,
           END OF itab4.
    data : begin of itab5 occurs 0,
          objek   type ausp-objek,
           atwrt   type cawn-atwrt,
           end of itab5.
    DATA : BEGIN OF itab_final1 OCCURS 0,
           matnr      TYPE s031-matnr,
           lgort      TYPE s031-lgort,
           werks      TYPE s031-werks,
           spmon      TYPE s031-spmon,
           magbb      type S031-magbb,
           wagbb      type S031-wagbb,
           azubb      type S031-azubb,
           aagbb      type S031-aagbb,
           maktx      TYPE makt-maktx,
           ekgrp      type marc-ekgrp,
           mbwbest    type s032-mbwbest,
           wbwbest    type s032-wbwbest,
           END OF itab_final1.
    DATA : BEGIN OF itab_final OCCURS 0,
           matnr      TYPE s031-matnr,
           lgort      TYPE s031-lgort,
           werks      TYPE s031-werks,
           spmon      TYPE s031-spmon,
           magbb      type S031-magbb,
           wagbb      type S031-wagbb,
           azubb      type S031-azubb,
           aagbb      type S031-aagbb,
           maktx      TYPE makt-maktx,
           ekgrp      type marc-ekgrp,
           mbwbest    type s032-mbwbest,
           wbwbest    type s032-wbwbest,
           atwrt      type cawn-atwrt,
           END OF itab_final.
    select-options:s_matnr for s031-matnr.
    start-of-selection.
    select matnr lgort werks spmon magbb wagbb azubb aagbb
            from s031 into  table itab1
            where matnr in s_matnr.
    if not itab1[] is initial.
        select matnr maktx from makt into table itab2 for all entries in itab1 where matnr = itab1-matnr.
    if not itab2[] is initial.
       select matnr werks ekgrp from marc into table itab3 for all entries in itab2 where matnr = itab2-matnr.
    if not itab3[] is initial.
       select matnr werks mbwbest wbwbest from s032 into corresponding fields of table itab4 for all entries in itab3 where matnr = itab3-matnr.
    *if not itab4[] is initial.
       select atwrt from cawn into corresponding fields of table itab5.*
         endif.
       endif.
    endif.
    endif.
    end-of-selection.
      loop at itab3.
       itab_final-matnr = itab3-matnr.
       read table itab2 with key matnr = itab3-matnr.
       if sy-subrc = 0.
        itab_final-maktx = itab2-maktx.
       read table itab1 with key matnr = itab2-matnr.
       if sy-subrc = 0.
        itab_final-lgort = itab1-lgort.
        itab_final-werks = itab1-werks.
        itab_final-spmon = itab1-spmon.
        itab_final-magbb = itab1-magbb.
        itab_final-wagbb = itab1-wagbb.
        itab_final-azubb = itab1-azubb.
        itab_final-aagbb = itab1-aagbb.
      endif.
       endif.
       itab_final-ekgrp = itab3-ekgrp.
      read table itab4 with key matnr  = itab3-matnr.
      if sy-subrc = 0.
      itab_final-mbwbest = itab4-mbwbest.
      endif.
    itab_final-wbwbest = itab4-wbwbest.
      append itab_final.
      clear itab_final.
      endloop.
    WRITE: /2 'material', 23 'storagelocation',29  'plant',35 'date',44 'val.stock.issue',66 'val.stock.issue.value',86 'no.of.stock.receipts',97 'no.of.stock.issues',150 'material.des', 160 'pur.group',190 'stock.val',210 'stock.quan'.
      ULINE.
      loop at itab_final.
      WRITE: /2 itab_final-matnr, 23 itab_final-lgort,29  itab_final-werks,35 itab_final-spmon,44 itab_final-magbb,66 itab_final-wagbb,86 itab_final-azubb,97 itab_final-aagbb,
               150 itab_final-maktx, 160 itab_final-ekgrp,190 itab_final-wbwbest,210 itab_final-mbwbest,itab_final-atwrt.
    ENDLOOP.
    Thanks&regds,
    Sree.

    Hi sree,
    take join between s031-sptag ,ausp-datuvthen fetch records based on this condition.(itab1)
    After retrieve records based on join condition between
    ausp-atinn,ausp-adzhl and cawn-atinn,cawn-adzhl.(itab2)
    Retrieve records using for all entries bet first join condition and second join condition.
    use for all entries between itab1 and itab2.
    it will work surely.
    reaward points

  • Problem in smartform in main window

    Hi All ,
      We are puttning a table in main window,The problem is the table in main window is extending according to the number of records in internal table.I want the table in fixed lenth always .Please suggest

    1) Do not draw any lines in TABLE.
    2) Place a TEMPLATE exactly over the TABLE (same left, top, height and width). Draw line in this TEMPLATE.
    3) This TEMPLATE will not have any data. It will just draw line.
    Now with this configruation drawing of line will be independent of data in your TABLE. Hope this will work as it worked for me some time back.

Maybe you are looking for

  • Problem regarding HRMD_A IDoc as outbound posting

    Hi, I have a requirement to post the data for HIRING (PA40 - hiring action) as IDOC, for which i am using HRMD_A. Client's specific requirement is to Post the data, as soon as the user completes with the hiring of the employee through PA40. I tried t

  • Tomcat shutdowing when remote object is calling secondtime from flex to blazeds

    Hi All, I am new to flex and started working on that.now i called one remote object from flex through blazeds.its working fine but when i call second time tomcat is  shutdowing .again if i start tomcat it is working fine. what is the problem does any

  • Planned activity & actual acitivity

    We are developing a Z-report.could you please help me on how to retrieve the information pertaining to planned activity type like machine hrs . We are able to retrieve the information of actual machine hours. What i understand is that planned machine

  • Pause slide in captivate 8 using javascript

    how can i pause the slide (html5) using javascript? its working when i used pasue button trigger (jquery) but when i view it in mobile, its not working. thanks.

  • Replacement for dvd burner Optiarc ad-7530a

    Does anyone know of a replacement for dvd rom drive ad-7530a, which came installed in my laptop? Machine:  HP Pavilion Entertainment PC - Model: dv9334us Original OS: Vista 64 bit  (Crappy OS!! and no 3rd-party 64bit support) Current OS:  XP Pro + sp