Issue with printing of header text

hii frnds ,
my problem is i am   getting the header text printed properly but the text is not getting displayed whenever the user enters a numeric value without any gaps ... i have seen while debuging that the text is properly getting fetched and the cursor is also passing through the text field but the text is not getting printed in my layout . i am using a script for this .
thanking you
rohit gupta

Use Below code to get your text..
data: begin of int_rtline occurs 0.
          include structure tline.
  data: end of int_rtline.
data : rheat type string.
data : itab_r  like swastrtab    occurs 0 with header line.
Get the Heating and Cooking Instruction
get material heating instructions from material master
  call function 'READ_TEXT'
       EXPORTING
            client                  = sy-mandt
            id                      = 'IVER'
            language                = sy-langu
            name                    = tdname
            object                  = 'MATERIAL'
       TABLES
            lines                   = int_rtline
       EXCEPTIONS
            id                      = 1
            language                = 2
            name                    = 3
            not_found               = 4
            object                  = 5
            reference_check         = 6
            wrong_access_to_archive = 7
            others                  = 8.
  loop at int_rtline.
    if rheat = space.
      concatenate 'COOKING INSTRUCTIONS: '
                  rheat int_rtline-tdline
                  into rheat.
    else.
      concatenate rheat int_rtline-tdline
          into rheat separated by space.
    endif.
  endloop.
Depends on ur Layout Width for each line print number of charcter,here i mentioned 92 char.
  IF NOT rheat IS INITIAL.
    CALL FUNCTION 'SWA_STRING_SPLIT'
         EXPORTING
              input_string                 = rheat
              max_component_length         = 92
         TABLES
              string_components            = itab_r
         EXCEPTIONS
              max_component_length_invalid = 1
              OTHERS                       = 2.
    IF sy-subrc <> 0.
    ENDIF.
LOOP AT itab_r.
Print ur data.
Endloop.
Reward Points if it is helpful
Thanks
Seshu

Similar Messages

  • Issue with printing of multiple text elements in main window

    Hi experts,
    I have developed a sales order form in SAP script.
    I hv got two text elements in the main window. n i m calling these two text elements by using two write form functions in d print program.
    The first text element is gettin called n d relevant fields in dat particular text element is being displyed. (Window - Main)
    My problem is dat the second text element for the same main window is not gettin called n its relevant fields r not gettin displayed.
    Plz help me to solve the querry.
    Its urgent.
    Thanks n Regards,
    Purva

    Hi,
    Are you testing that from in same client where you developed, else make sure that after each change you need to transport the form to testing client.
    second thing is check with code did you mention the same text element in window editor and in the program.
    Reward if useful,
    Thanks,
    Sreeram.

  • Acrobat 9 Pro issues with printing and now updating  !!! :(

    hello
    I had an issues with printing from my gmail account or from windows live mail
    so I made a complete re-installation
    now I am stuck with version 9.3.0 and when I check for updates I get a message
    UPDATER IS ALREADY RUNNING
    only... it's not running and nothing is updating !
    I made a restart... just in case... it did not change anything
    as to the printing issue, in case some of you have met it and cleared it...(hope)
    this was with version 9.5.0
    I get no error message but no pdf is created, only a text document with this :
    %%[ ProductName: Distiller ]%%
    %%[Page: 1]%%
    72gmvi not found, using Courier.
    44dcmta not found, using Courier.
    %%[ Error: invalidfont; OffendingCommand: xshow ]%%
    Stack:
    [96 96 97 72 96 42 64 0]
    %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    %%[ Warning: PostScript error. No PDF file produced. ] %%
    not a good start for my week... I hope yours is nicer
    I'm running Win7 Ultimate x64

    thanks Mylenium
    the font association problem is something recent though, since I used acrobat to print mails directly from my gmail account previously...
    it's galling but I installed a free pdf printer which does the job, I needed copies of these mails urgently !
    as to the update issue, I see no aum.exe, msiexec.exe or setup.exe running... but that's quite above my head... do I look for those exact processes or are they generic names for processes ?
    does my question make sense ????

  • Printing Form Header Text in Smartforms

    Hi,
    I have created smartform for SD module.I am printing Form header text in a window by using loop.I am getting the text with the help of READ_TEXT  function module.It comes as we type in Form header.But the problem is if they type more than 15 lines it is not printing.I want to print the rest of the lines in next page.How to do this?

    Hi,
    In smartforms, only the main window is a dynamically varying one.
    So give your include text concept in the main window..
    so that if your text increases more than a page, it will be printed in the next line..
    You can maintain your text in so10 transaction.. with text id and text name..
    using include text u can simply give the Id and text name in forms, you will get the enetered text.
    regards,
    vijay.R

  • Print Invoice Header Text In Main Window of Smartforms

    Helo Gurus !!!
    I want to print Invoice header text in main window of smartform.
    There are total 5 columns.
    Item    Quantity          Description          UnitPrice       Amount
    Now what I want is to print header text below Description column, there is a loop on the table in main window.
    This header text will be printed only once. This is a standard header text
    How to get this?
    Points are assured !!!

    Hi Anay Kulkarni,
           I understood that u need to print this header text
    Item Quantity Description UnitPrice Amount
    So please use TABLE instead of LOOP  in the table we can prin header, main area, footer.
    place the header text in header area in table...  i am sure this can resolve it.....
    feel free to contact me if issue is not resolved/.....
    dont forget to reward points....
    all the best...
    Regards,
    Sreeniasa Sarma K.

  • Issue with  print image in air

    hey frnd,
    plz check this link
    http://livedocs.adobe.com/flex/3/html/help.html?content=printing_5.html
    hey frnds,
    while using this multiple print datagrid code, getting 1 issue with
    print image in printheader mxml file.
    I'm adding 1 image tag and runtime getting image path in variable and
    want to print tht image in header ,
    but it is not get printed but if i'm giving @Embed image as a source
    then it is print.
    Is any way there to print runtime image after adding in printheader
    file ?
    thx in advanced,
    [email protected]

    is any solution there ?

  • Table to print PO header text

    HI:
    I would like to do query to print PO header text.
    I have try STXH but no PO number to link to and no text line.
    Pls advise.
    Moderator message: Basic frequently asked question - Please search forum for answers and read the docu in help.sap.com 
    See as well our rules of engagement: http://scn.sap.com/docs/DOC-19331
    A good way to search the forum is with google. See this blog with details for a good search
    http://scn.sap.com/community/support/blog/2012/04/16/getting-the-most-out-of-google-optimizing-your-search-queries
    This blog describes how to use the SCN search: http://scn.sap.com/community/about/blog/2012/12/04/how-to-use-scn-search
    Thread locked
    Message was edited by: Jürgen L

    Hi,
       It wil be easy with an abap report using Function Module READ_TEXT.
    Regards,
    AKPT

  • Issues with printing purchase order

    Dear friends,
    I'm having some issues with printing purchase orders.
    Normally when I create a purchase order via ME21N and then when I save the purchase order it then gets automatically printed.
    Suddenly it is not anymore working. I have created a purchase order this morning and it did not get printed. I get the message "frontend is not available"when i check the spool in SP01
    The funny think is if i call up the spool nr via SP01and then do a reprint then i'm able to reprint.
    What can be possibly the issue that I can't print the purchase order when I create the purchase order via ME21 when I save the purchase order? Can you help me with any guide on where I need to check why the PO is not printing immediatelly when i create the PO via ME21N?
    kind regards,
    Camilla

    hello all,
    thanks so far for your reply.
    i have checked today my user settings and that shows that my prints should go to LOCL (local default printer)
    The output conditions fpr purchase order have also LOCL (local printer)
    The weird thing is that I can print other reports to the default printer without any issues. The issue arise when I create a purchase order via ME21N. Normally when I save the PO it automatically prints. So no manual print instructions are required from my side. Because if I give manual instructions then I'm able to print the purchase order.
    Is it possible that the automatic printing is switched off and that it only prints when I hit manually the print button?
    Is the automatic printing something that is maintained in SPAD?
    kind regards and thanks for your help sofar

  • Issue with printing production order after changes through CO02

    Hi,
    Currently I have one issue with printing production order changes through CO02. If I go for print, all the operations are captured in printout. But after the print, if I add any new operations to this production order, and then go for print, its not capturing the newly added operations. Also, there is information popup coming "Copies will be printed for order. Original list already printed". This message effectively means, even after changes, when I go for print functionality, its just going for printing copies of original printed list.
    Can anyone help me out to get the newly added operations reflected in the print through CO02 ?
    Regards,
    Shiva

    Hi Shiva,
    Refer SAP note 28887.
    Source: http://www.sapfans.com/forums/viewtopic.php?f=9&t=308577
    Please search /google before posting queries.
    Regards,
    SuryaD.

  • Issue with printing newly added operations in Production Order through CO02

    Hi,
    Currently I have one issue with printing production order changes through CO02. If I go for print, all the operations are captured in printout. But after the print, if I add any new operations to this production order, and then go for print, its not capturing the newly added operations. Also, there is information popup coming "Copies will be printed for order. Original list already printed". This message effectively means, even after changes, when I go for print functionality, its just going for printing copies of original printed list.
    Can anyone help me out to get the newly added operations reflected in the print through CO02 ?
    Regards,
    Shiva

    Hi,
    1) Go to Tcode "OPK8"
    2)Select LG02 "Op Control Ticket"
    3) Double click on :List Control for Transactions" in the left hand menu tree
    4) In front of ur desired t code "co02" make the changes ( Number of prints- u can increase) 6th column.
    Try this.

  • Issue with printing to a network photocopier

    We are a small school where the teachers all have Macbook Pro laptops. For a while we have been having intermittent issues with printing to the Photocopier, today is an example.
    Teacher tried to print, worked fine, then tried again 15 min later, received message Printer is in use (I was standing next to it and it wasn't in use!) tried again 10 min later, printed fine.
    Teacher tried to print, spooled for about 5 min then printed, tried again, printed fine.
    From the CUPS error log there are the following:
    - The Printer is in use
    - ICC Profile "/Library/Printers/Sharp/Profiles/SS0HIN0.icc" does not exist.
    - Remote host did not accept data file(32)
    - The printer did not respond
    - Stopping unresponsive job
    - The printer is not responding
    They are all on wireless. There is no network issue as I can ping the photocopier, get onto the Internet etc.
    They don't print via a server, they all have the photocopier installed on their macbooks as an IP printer using LDP.
    Thanks

    You'll need to manually create the folder and install the profiles. From the finder select Go, Go to Folder. Enter "/Library/Printers/Sharp/Profiles" without the quotation marks, Go. You might have to manually create the Profile folder. You can download this disk image from Sharp that contains the icc files here; http://www.sharpusa.com/ForBusiness/DocumentSystems/MFPsPrinters/MX4110N.aspx?vi ew=drivers
    Drag and drop the icc files from /MX-C26/Profiles to /Library/Printers/Sharp/Profiles
    Also make sure you install the drivers from MX-C26 for the appropriate version of OS X you are running.
    Hope this is clear.

  • Issue with printing of Currency Value.

    Hi,
    I have an issue with printing of Currency Value.
    ( Pleae let me know if any thread available already  I searched it before posting but not found).
    The Problem is as follows:
    I have a field  s_value TYPE  MARM-SALK3.  (which is of currency type).
    The value of field is actually 1664.1450.   Currency USD
    But when I print this variable in ALV report it prints as  166414.50  though I used the same data type. (SALK3).
    Pleaes help me to fix this.
    Regards,
    Venkat

    Hi,
    If you use ALV to display currency value, you must sure that currency amount links with currency unit. You can archive this by using ALV fieldcat:
    wa_fieldcat-fieldname = 'SALK3'.
    wa_fieldcat-tabname = 'ITAB'.
    wa_fieldcat-cfieldname = 'WAERS'.
    wa_fieldcat-ctabname = 'ITAB'.
    append wa_fieldcat to gt_fieldcat.
    Please check,
    Regards,

  • Error with sales order header text

    Hi All,
    I am getting 3 texts from 850 IDOC on to Sales order header texts. I created 3 new textid's for them. This is working properly in Dev system and I just moved them to Test system. I created a sales order by using the IDOC. I tried to go to order header texts and it is giving me the error saying 'Error in opening text file'.
    "The SD_WORD_PROCESSING function module is for creating the "Maintain Text" dialog box. You have called up the function module with the wrong values so it is not possible to edit text properly.
    Check the parameters for the SD_WORD_PROCESSING_PUT function module."
    Please help me to solve this issue.
    Thanks,
    Veni.

    Hi Naren,
    I was just checking my Transport organizer and found that there is one customizing request which is still in modifiable mode, not released yet. It is related to Access Sequence for text id's. I forgot to move this, is this the one causing the error.
    Thanks,
    Veni.
        5  View Cluster Maintenance: Data          
            5  VC_SHPH                                                                               
    5  TTXERN                                                                               
    400VBBK      BZ20021009     
                       400VBBK      BZ20022010     
                       400VBBK      BZ20023011     
        5  IMG Activity  Define Text Types         
            5  View Cluster Maintenance: Data      
                5  VC_ORDH                                                                               
    5  TTXERN                                                                               
    400VBBK      AZ10021009 
                           400VBBK      AZ10022010 
                           400VBBK      AZ10023011 
                    4  TTXZ                        
                    4  TTXZT

  • Issue while printing ' & ' in the text

    Hello,
             In a particular transaction there is a text field where the user could enter unlimited text. I have developed a smartform to display the texts. I wud explain the problem with an example.
    Text :  " On the Insert tab, the galleries include items that are designed to coordinate with the
    A&B etc "
    Print Preview : " On the Insert tab, the galleries include items that are designed to coordinate with the
    A<(>&<)>B etc "
    Has anybody come across such an issue earlier??
    Cheers
    Nayan

    Hi Florian,
                    Tried your option.
    Here's the output : " A<(><<)>(><(>&<)><(><<)>)>B "
    Cheers
    Nayan

  • IPhone 6 with iOS 8 Issues with Exchange Mail Header

    Multiple users report issues with Headers in the Apple Mail Client
    Condensed/Squished Text (in the Message Header)
    Blank Headers (in the Message Previews)
    Touch Calibration - Off by 2cm after attempting to interact with blank messages
    Has anyone else been experiencing these issues... any fixes?

    Did you find a solution for this problem yet?
    We are haveing the same problem where I work.
    Also using Exchange server and IOS devices.
    Are you using a VPN tunnel on the IOS devices?
    A few Days ago I had this problem on my own device (iPhone6, IOS8.3)
    I was Reading emails on my way to work.
    When I got to work and started the computer ONE of the emails was marked unread in Outlook.
    On the device it was marked as "read".
    One thing that I remember is that I had bad Connection at the time I was syncing emails and I got
    the popup message: "Can not get emails - Connection to server failed" (my translation from Swedish)
    I have a feeling that the error message and the problem with unread emails are connected somehow.
    Also, when I turn off the email account for my iPhone (to remove all emails) and turn it back on (reload all emails)
    the mail that was set as "read" is now "unread" again on my iPhone.
    This means (speculatinos) that sometimes the device mark emails as "read" but for some reason it does not
    tell the server that it is "read". So the server still Thinks that the email is "unread".

Maybe you are looking for

  • IPod not recognized in windows or itunes please help

    Hey I have had my ipod since last december and around april it stopped working and responding to my computer. it does charge but now it can only hold a charge for a certain amount of time. Can sum one help me?

  • Dvd player does not read burnt dvds

    i burnt 2 dvds on my macbook pro (leopard). they both play fine on my macbook pro and my toshiba dvd player. they will not play on my macbook and powermac g4 (tiger). is this a problem with the dvd player in tiger? if so, any way to update it or down

  • Css text & background positioning in one statement ?

    When I use the code below the text is not centered vertically, but is more toward the top. Can I move the text down without using 2 selectors? One for the box and another for the text ? thanks

  • I need to disable from my home screen:"Will you help imporve Mozilla Firefox by sending info etc.

    At the top of my home page. Shows Will you help imporve Mozilla Firefox by sending information about performance, hardware, etc. Then buttons of Yes, I want to help or No. How can I disable this line? I cannot have this line show on the screen at all

  • LaCie DVD burner almost a waste of money?

    Has anyone with OSX 10.3.9 got a LaCie 22x d2 DVD +/-RW Drive to write DVDs from the Finder? I have an Apple iBook Power PC G4 with an  internal drive which writes only CDs. I bought the LaCie d2 Drive [ Product code 301484EK ] so I could write DVDs.