Smartforms-Text not printing completely

Hi!
In my invoice printing one of the item columns which shows the text for the material description is getting trunctaed. Those ar elong texts but when we print it only 70 caharactrs appear and the rest gets cut and dosent show on the form . The text is stored in a variable g_kdmat whose associated type is TDLINE whose lenght is 132 but I dont understnd why only 70 characters appear in my invoice printing. Can anyone help me out with this please. Urgent please.
Thanks

My coding for extracting the text is as folows:
data: l_werks like vbrp-werks,
      l_hlmat type ZHLMAT,
      l_kunnr like vbak-kunnr,
     l_vbeln like vbrp-vbeln,
     l_posnr like vbrp-posnr,
      l_product_key type TDOBNAME,
      lt_lines type table of tline,
      ls_lines  type tline.
Get kdmat, not exist then get material sales text, not exists then Material
description
**get from kdmat
fill g_hlmat
if gs_gen_del-uepos = '000000'.   "BOM Main
   g_hlmat = gs_gen_del-material.
   l_hlmat = ' '.
else.
   l_hlmat = g_hlmat.
endif.
get g_kdmat, g_kdmtx
select single werks  into l_werks from vbrp
     where
     vbeln = gs_vbap-vbeln and
     posnr = gs_vbap-posnr.
get sold to
select single kunnr into l_kunnr from vbak where
    vbeln = gs_vbap-vbeln.
select kdmat kdmtx into (g_kdmat, g_kdmtx) from zcustmat
    where
    parvw = ' ' and
    kunnr = l_kunnr and    "sold to
    matnr = gs_gen_del-material and
    werks = l_werks and
    hlmat = l_hlmat.
endselect.
check sy-subrc <> 0.
get material sales text
concatenate gs_gen_del-bil_number gs_gen_del-itm_number into l_product_key.
call function 'READ_TEXT'
    exporting
      name = l_product_key
      object = 'VBBP'
      id = '0001'
      language = sy-langu
     tables
       lines = lt_lines
     exceptions
       not_found = 1
       ohters = 2.
if sy-subrc = 0.
    read table lt_lines into ls_lines index 1.
       move ls_lines-tdline to g_kdmat.
Remove sapscript special characters
       replace: '<(>' in g_kdmat with ' ',
                '<)>' in g_kdmat with ' '.
       exit.
endif.
get Material description
select single arktx into g_kdmat from vbrp where
     vbeln = gs_gen_del-bil_number and
     posnr = gs_gen_del-itm_number.
   vbeln = gs_vbap-vbeln and
   posnr = gs_vbap-posnr.
if sy-subrc <> 0.
g_kdmat = 'No Product service !!!!!'.
endif.
I fail to understand why the entire text is not coming , when the window size is ok and text has place to flow into subsequent lines. Is it something to do with the associated type in global data or somet8ing else.
Thanks

Similar Messages

  • Smartform - text not printed bold

    Hey guys, hope anyone can shed some light on this.
    We have invoices with a smartstyle attached, using font Verdana.
    Some texts are marked as bold in the smartforms.
    Now, my problem:
    When printing from any environment (DEV, PRD) using one of the printers configured in SAP, text marked as bold is not printed in bold.
    When printing the same invoice using LOCL, and sending it to the exact same printer from windows, text marked as bold is printed in bold.
    So I guess it's not the form, it's not the style, it's not even the printer: just the printer settings in SAP.
    In many ways, it  is very similar to the issue addressed in this thread:
    [Printer Setting|Printer Setting] , except that when previewing the text doesn't show as bold.
    My question is two-fold:
    - How likely is it that this issue is related to the printer configuration (and thus, basis config)?
    - If yes to the above, how do I verify this? I need something solid, since the SAP basis guys aren't very cooperative and keep pointing out that it's either the smartform or the smartstyle - without researching themselves
    Thanks in advance.

    Hi,
    I think its the issue of the basis people,they need to make the settings. We had a similar problem here,we had to change the printer settings in SPAD,affter the basis peole had made the settings for us, for taking printout in hindi.
    Thanks.

  • SmartForm Text not printing from SAP printer but prints on LOCL

    I have a smartform that looks great on the screen and if i print locally ( default printer). When i print it on an SAP printer the text is not readable. It looks like barcodes or that the text is stretched about 1 inch high. The data that doesnt print is only in the table sections. if i increase the font size to 10.0 it prints but is too large for the form. Any suggestions? I could send a PDF of the document if you wish.
    Dave Baxandall

    Hi,
    What is the printer model and what devce type is defined in the output device for the SAP printer? Perhaps the device type used doesn't support the font size. Check via SE73 -> Printer Fonts -> < Device type>.
    Regards,
    Aidan

  • HP LaserJet Pro 400 Printer M401a (CF270A) is not printing complete statement on letterhead

    Dear
    i have supplied printer HP LaserJet Pro 400 Printer M401a (CF270A)Qty 10 to my customer but its not printing complete statement there is missing ink in the words and also spots are coming on the page.
    the page is letterhead of the company.
    could you please advise what will be reason.
    Waiting for your reply.
    Regards
    Faisal Farooq

    VII,
    This seems to be a commercial product. For the best chance at finding a solution I would suggest posting in the forum for HP Business Support!
    You can find the Commercial Laserjet board here:
    http://h30499.www3.hp.com/t5/Printers-LaserJet/bd-p/bsc-413
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Info record Po text not printing in Po

    Hi all,
             Info record po text not printing in po print out. Info record po text showing in po at item level but it was not printing in po. In info record No matl text checked. In material master no text maintained. please help on this
             Thanks in advance for your help

    Hi Mahesh,
    Follow the path:
    SPRO--> MM --> Purchasing --> Messages --> Texts for Messages ---> Define texts for Purchase Order
    Double click on "Texts for Document Item" under Dialog Structure
    Click on new entries and then Fill the following fields:
    Pur. Doc. Category: Purchase Order
    Print Operation: New
    Doc. Type: NB
    Item Category: Standard
    Text Object: Purchasing Doc. Item texts (EKPO)
    Text Id: Info Record PO Text (F02)
    Print Sequence: 2
    Print Priority: 1
    and then Save
    Hope this helps
    Thanks,
    Ankur

  • Printer not printing completely

    I purchased an HP2540 all in one printer yesterday, hooked it up to my Dell computer, running Windows Vista.  I did the complete set up, downloaded software, registered the printer online, etc.  Everything seemed to be okay until I tried to print the first document.  The page did not print completely. At approximately every inch part of a line  did not print correctly.  The printed line looked faint and only partially printed.  The document did this throughout.  Any solutions?

    Hi, take a look at this link for a possible solution.
    Please mark the post that solves your issue as "Accept as Solution".
    If my answer was helpful click the “Thumbs Up" on the left to say “Thanks”!
    I am not a HP employee.

  • Right side Text not printing in Dot Matrix Print

    Hi Gurus,
    When i take print of the smartform with Laser Jet Printer its comming fine , but when i print using Dot Matrix Printer the text at right side is not printing.
    Printer model : Epson DFX-5000+
    Can any one tell me how to resolve this..
    Thanks
    Ganesh

    hi ,
      SAPWIN Drivers which support those Epson printers  check in SAP (windows support )
      These will solve your Problem  .
    Regards
    Deepak.

  • Smartforms lines not printed

    Hi,
        I am using 4.6c.I have designed a smartform using templates.I have choosed the frames patterns in templates.In print preview everthing is perfect,but when i try to print this,Its showing only the texts.The lines were not printed.Its a complex format,So i used templates to do that.
    Actually we dont know whether this an ABAPER problem or basis problem.
    Cany anyone help me with step by step procedure what to do this.Because this is urgent.I have taken a copy in laser printer,Dot Matrix printer too.
    But in no printers the lines are coming

    hai,
         i also faced the same problem.
         i think basic problem..
    anyway i will say how i managed,
    1. just create window (width of the window should be .04)
          in output option of window  -->in preview select the one sided line(right or left).
    2.create a text in that window with simple dot(.) in text editor (window will not appear without any content in it so to provide some text we have provided dot(.) ).
    3. place the window where u want line.
    shan.
    Edited by: shan palani on Sep 30, 2008 2:53 PM

  • Header text not printed for scheduling agreement

    Hi All,
    I have issue with header text print out for scheduling agreement (SA).
    In SA when I am manually writing some note and then taking print out, system is giving me correct output with maual note.
    I have one standard text (ST) which I need to be printed in evry SA, so in SPRO I created new head text for vendor and in copying rule for text for SA, I created linkage of SA header text with Vendor head text.
    In vendor master, I inserted ST in newly created vendor header text.
    So now when ever I create new SA for vendor system will determin header text from vendor master.
    Now after creating SA when I check the SA, I am able to my ST in SA, but at the time of print out this ST in not printing.
    Please let me know what could be the reson.
    Regards,
    Sameer

    I dont understand about what you mean by expand.
    When you a print PO, PO text  (header or item) it will check to the configuration setting.
    The system didnt care if its adopted from vendor master or info record, or whatever you make in the copying rule.
    In your case : you create a standard text then it get copied into PO , then you set the standard text to the PO for print out, example the standard text : word is
    "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    Then in the PO the text appear will be like below(the same, because it get copied)
    "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    If you configure it in define text for SA, then it the print out it will also (the same)
    "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    So what text need to expand?

  • SAP SCRIPT: Header text not printing - Custom Purchase Order.

    Hello Experts,
    I have used the standard MEDRUCK and copied to ZMEDRUCK. I want the PO header text to print in my form.
    I have used subroutine-pool and called it in the form.
    Here is my subroutine
    FORM fetch_table_data TABLES in_tab STRUCTURE itcsy
                                 out_tab STRUCTURE itcsy.
      TABLES EKKO.
      DATA: BEGIN OF header OCCURS 0,
              ld_txt1(163),
              ld_txt2(163),
              ld_txt3(163),
            END OF header.
      DATA: li_lines LIKE STANDARD TABLE OF tline WITH HEADER LINE,
            ID like THEAD-TDID,
            TNAME LIKE THEAD-TDNAME,
            TDOBJECT like THEAD-TDOBJECT.
      DATA  HTEXT LIKE EKKO-EBELN.
    *  HTEXT = EKKO-EBELN.
      READ TABLE in_tab WITH KEY EKKO-EBELN.
      if sy-subrc = 0.
      TNAME = in_tab-value.
      ENDIF.
    TNAME = EKKO-EBELN.
    *CONCATENATE EKPO-ebeln EKPO-ebelp INTO v_item_text.
    *MOVE v_head_text to HNAME.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        id                            = 'F01'
        language                      = 'E'
        name                          = TNAME
        object                        = 'EKKO'
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        = TNAME
      tables
        lines                         = li_lines
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
    *   WRONG_ACCESS_TO_ARCHIVE       = 7
    *   OTHERS                        = 8
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CLEAR out_tab.
    out_tab-VALUE = TNAME.
    CONDENSE out_tab-VALUE.
    MODIFY out_tab TRANSPORTING VALUE WHERE NAME = 'TNAME'.
    ENDFORM.
    And my script in the form is
    PERFORM FETCH_TABLE_DATA IN PROGRAM ZMEDRUCK_SUBP2
    USING &EKKO-EBELN&
    CHANGING &TNAME&
    ENDPERFORMpar RECEIVED FROM M/S     &TNAME&
    The header text is still not flowing in my form.
    What mistake i'm I doing here ?
    How can I resolve this ?
    Pls help !

    Hi,
    Data is li_lines internal table. 1st you have to read the text form the internal table line by sy-tabix.
    At last you have to concatenate these variable into the out tab value.
    you can use the following code
    ORM fetch_table_data TABLES in_tab STRUCTURE itcsy
                                 out_tab STRUCTURE itcsy.
      TABLES EKKO.
      DATA: BEGIN OF header OCCURS 0,
              ld_txt1(163),
              ld_txt2(163),
              ld_txt3(163),
            END OF header.
      DATA: li_lines LIKE STANDARD TABLE OF tline WITH HEADER LINE,
            ID like THEAD-TDID,
            TNAME LIKE THEAD-TDNAME,
            TDOBJECT like THEAD-TDOBJECT.
      DATA  HTEXT LIKE EKKO-EBELN.
    READ TABLE in_tab WITH KEY EKKO-EBELN.
      if sy-subrc = 0.
      TNAME = in_tab-value.
      ENDIF.
    ALL FUNCTION 'READ_TEXT'
      EXPORTING
      CLIENT                        = SY-MANDT
        id                            = 'F01'
        language                      = 'E'
        name                          = TNAME
        object                        = 'EKKO'
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
      tables
        lines                         = li_lines
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
      WRONG_ACCESS_TO_ARCHIVE       = 7
      OTHERS                        = 8
    IF sy-subrc  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    data : f_lines TYPE i,
    DESCRIBE TABLE li_lines LINES f_lines.
    data: lstr type String,
          lstr1 type string,
          lstr2 type string,
          lstr3 type string,
          lstr4 type string.
    read table li_lines index 1.
    lstr = li_lines
    condense lstr.
    clear li_lines
    read table li_lines index 2.
    lstr1 = li_lines
    condense lstr.
    clear li_lines
    read table li_lines index 3.
    lstr2 = li_lines
    condense lstr.
    clear li_lines
    if f_lines GT 3.
    ead table li_lines index 4.
    lstr3 = li_lines
    condense lstr.
    clear li_lines
    ead table li_lines index 5.
    lstr4 = li_lines
    condense lstr.
    clear li_lines
    endif.
    data : v_text type text.
    concatenate  lstr1 lstr2 lstr3 lstr4 into v_text separate by ' '.
    CLEAR out_tab.
    READ TABLE out_tab WITH KEY name = 'TNAME'.
    out_tab-value = v_text
    MODIFY out_tab INDEX sy-tabix.
    Regards
    Nayan Kumar

  • Smartform is not printing in portal

    Hi Experts,
    I have developed one smartform. As soon as user execute one transaction, I am sending the samrtform to default printer without any print preveiw.
    This is working fine in SAP.
    The same transaction we are calling in portal. when user click on execute button in web prortal, document is not sending to printer. i mean no document is printed and SY-SUBRC showing other than zero of the smartform function module.
    Pls help me.
    Anything I need to do in portal...?
    Thanks in advance.
    Raghu

    Firt of all ... it is failing the function module. Because I am getting message as Failed. I check in SAP. It is working fine. I mean .. it is printing in SA. But not printing through portal.
    I have written the code like...
    After calling FM (Smartform FM)...
    IF SY-SUBRC EQ 0.
      MESSAGE XXX 'Success'.
    ELSE.
      MESSAGE XXX 'Failed'.
    ENDIF.
    Pls suggest me... Any OSS note we need to implement?
    Thanks

  • IPhoto 6.0.6 text not printed on cards and book

    I bought via iPhoto cards and entered texts. The text was not printed when I received it. A few days later ordered a hardcopy book : same problem.
    All texts are missing except the text on the cover of the book. What can it be ?
    Message was edited by: mardge

    Mardge
    Welcome to the Apple user discussion forums
    Report the problem to Apple - they will refund your cost and may have a solution
    US page - you probably should search for the returns page for Belgium - http://www.apple.com/support/photoservices/returns/
    Did you preview the book and the card before sending - http://support.apple.com/kb/HT1040 ?
    Doe the preview show the text?
    Is there anything unusual about the text that did not print?
    LN

  • Some text not printing when printing from FM8 to Pdf

    We have recently upgraded to Acrobat 9 and now have problems with some Helvetica text not showing up in the pdfs.  If we change the text to Arial it prints.  Changing/substituting Arial for Helvetica is not an option since these files are structure using modules built by a 3rd party.  This is obviously an issue with Framemaker8 and Acrobat 9 so my hopes are that someone else has had this issue and has a fix.

    Thanks Art. Sorry, I looked through the forum and didn't see any Q&A on missing text in Pdfs.  We are on Windows XP working files from our desktop and our server.  Our normal method of producing pdfs is through File>Print using our minor customized pdf settings for screen viewing and hires printing (we've used these settings for years).  Since our upgrade to Acrobat 9 we are now using Distiller 9.2.0.124.  I've also found out since I first posted my question that we are not on the latest version of Framemaker8.  I will run the updates to get us to the latest version of 8 and see if that fixes what seems to be an incompatiblity issue between FM8 and Acrobat 9.  I say that because this problem started when we upgraded to Acrobat 9.  If that doesn't fix the problem, I'll get back to you to find out more about the Microsoft printer Hotfix.  Unless you know for a fact that FM8 is not compatible with Distiller 9.2.0.124, in that case we'll need to upgrade to FM9.

  • MS Word text not printing on my HP Printer.

    I installed MS Word 7 and I cannot get it to print text.  Everything is hook up correctly and the printer will print the screen.  I have checked everything, any suggestion?

    Hi @Barbiegirl17 and welcome to the HP Forums!
    I'm sorry to hear you've had issues printing black with your Photosmart 6510 printer, but I will absolutely do my best to lend a helping hand
    I will suggest that you try the steps within this Printer Does Not Print Black Ink or Color Ink, or Prints Blank Pages document first. If that doesn't resolve the issue can you please let me know whether it's in or out of warranty and what country you reside in? Thanks!
    Hope to hear back from you soon!
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • Text not printed

    does not print any text

    Hi Jimmy,
    Do you mean on screen, in some App, or when Printing to a Printer?

Maybe you are looking for

  • IPhone 6: Where's the status bar in landscape mode?

    I just got the iPhone 6 (I believe iOS 8.1) and my only problem is that it removes the status bar in when in landscape mode. I find it extremely annoying that I can no longer see the time, monitor my battery life, check whether if I'm even receiving

  • Linear Fit using Bisquare method fails on certain data sets.

    I noticed some behavior that I didn't understand, so I thought I'd post it.  I'm using Linear Fit.vi in LabVIEW 8.2 to calculate a slope and offset.  This VI has a method input that accepts an enum.  When I select the "Bisquare" method on some data s

  • All about a Transport! (ver y urgent)

    Hi all,       Can anyone help me knowing all the possible transaction codes helpful while doing or dealing with a transport. Any tables which reveal the effect of a transport , and is there a way to roll back the effect of a transport which has been

  • How to unhide a photo

    How can u unhide a photo in iPhoto there's no option to go to it and unhide the photo you hide

  • Project Control settings

    According to all the tutorials and documentation I have, the project controls should be at the top of the project window: sample rate, tempo, key, time signature. But all I have at along the top of the project tab is the sample rate. Is there a setti