Smart Form Long Text

Dear Guys
I am trying to print long text stores at line Item of ME 23n Text Editor, in Smart From.
I am calling a BAPI for reading Purchase requistion details. The itab is also showing complete paragraph of text. But when I write it on smart from, previw is not showing complete paragraph. Infact many space is still left in smart form column.

Thnx Subramanian PL for replying.
When user writes text in ME23N text field, he normally use Enter Key many times to go to next line but while displaying it on a smart form using a loop the text also breaks unexpectedly due to those Enter Key press by user,while still there is more space to write the text in a sigle line on smart form.
To avoid above problem I first store all the text belong to a single papragraph in a variable string of smart from. But now when I try to display this text on smart from it is missing few last lines. Infact while debugging it, I can see that text is stored completely in variable.
Message was edited by:
        Adnan Maqbool

Similar Messages

  • Smart form - Long text in all the items?

    Hello gurus,
    We are using something similar to smart form (I don't know the exactly name, like pretty form).
    So, we are using a long text in the "Item text" by item.
    Sometimes the item can be more than 20 lines in the "Item text" as long text and sometimes not.
    Example: I have a PO with 4 items:
    Item 1 - Without Item text.
    Item 2 - With 20 lines in the Item text
    Item 3 -With 1 line in the Item text
    But, when the PO is printed, the PO form has to all the items 20 lines by item.
    That's mean that if in the first item I don't have item text, the first item is showed with a very long space in blank (space of 20 lines).
    The secont item is showed correctly.
    The third item has one line wrote and 19 lines in blank, like a long space in blank.
    How we can manage this situation in the format?
    How we can program these spaces to see in the format to the first item without the space in blank and to the third item only 1 item and the other 19 lines without being shown?
    Can you help me please a.s.a.p.?
    Thanks for your time and I will wait the answer.
    Regards,
    Sandra Palomo

    Hi ,
    Can you please let me know the solution implemented ?

  • Smart forms include texts form me23n to smart forms

    Hi,
    I have built a smart forms and included standard texts from me23n into my smart forms using include text.
    my problem is that if my text is not maintain for that particular header the heading should not get displayed for ease i'm writing my code:-
    item text: include text ( itemno+ebelp)                              "this item text is built up using create ->text.
                                     ( ekpo)
                                     ( f 01)
                                     (lanuage)
    item po text: include text ( itemno+ebelp)                          "this item po text is built up using create ->text.
                                     ( ekpo)
                                     ( f 01)
                                     (lanuage)
    materail po text: include text ( itemno+ebelp)   
                                     ( ekpo)
                                     ( f 01)
                                     (lanuage)
    if the text is not maintained for item text then it's heading that is "ITEM TEXT OR ITEM PO TEXT OR MATERIAL PO TEXT " should also be not diplayed in smart forms.
    my code is able to get the data from me23n but i just want to put a condition for not displaying it's text heading also if it's data is not maintained

    You can write a Select on STXH and check whether the text is available or not.
    SELECT SINGLE * from STXH
      INTO wa
    WHERE  TDNAME = ( itemno+ebelp)  
       AND TDOBJECT = 'EKPO'
       AND TDID = 'F01'
       AND TDSPRAS = LANG.
    IF sy-subrc = 0.
      gv_text = 'X'.
    ENDIF.
    Then in Output conditions you check for this flag and display the text.
    Thanks,
    Shambu

  • Call text element and command in smart forms

    Hi, I have create a smart form that have one text element and one command. The command is for do a page break.
    I have seen that you can call the smart form from a program doing:
    1.-'SSF_FUNCTION_MODULE_NAME'
    2.-call function fm_name
    That is not ok for me because I want to call to the smart forms manually as befores it done with sap-script, open form, write , close form...
    What function Have I to use to call to the text element?
    What function Have I to use to call to the command?
    Someone have and example calling a smart form from an abap.
    Thanks in advance.
    MANUEL

    Hi Vinod, I do not understand very good that you propose.
    I explain more details of I have to do:
    I have a abap program that read and write some data, I want to pass every line of the report to smart form, and in some lines comes a break page that I have to force also in the smart form, the idea
    LOOP AT ITAB.
       IF ITAB-LINE EQ '<BREAK>'.
    BREAK PAGE IN SMART FORM
       ELSE.
    PASS ITAB-LINE TO SMART FORM
       ENDIF.
    ENDLOOP.
    In order to do that I have created in the smart forms one text element X_LINE that represents every line and a command NEWPAGE that force page break.
    Is possible to do that I want by the way that you propose?
    Thanks in advance.
    MANUEL

  • Urgent : pROBLEM IN CONDITIONS in smart forms

    Hello abapers
    I am giving condition for displaying of a text in smart form . the text is in secondary window. Previously I have given 3 conditions as var1 = value or val2 = value or val3 = value.
    but now when i am adding 4th condition i am getting wrong format while generating smartform.
    please suggest some solution
    Thanks
    Madhumati

    Hi Venkastesh,
    There are two issues. If your entry is like this....
    location="microDS"
    xa-location="jdbc/xa/MicroXADS"
    ejb-location="MicroPool"
    ...then use ejb-location for database calls through ejb and location when you try to get through normal java client.
    This will help you.
    regards,
    Vijay
    null

  • Purchase requisition header text in smart forms

    Dear Experts,
        i want to pick the header text in smart form from purchase requisition ( Transaction code me52n).Can any one tell me from which table i can find out the header text of purchase requsition. please tell me table name objectid for include.
    Thanks in advance.
    Regards
    Maqsood Ahmed

    Hi,
    Go to the screen where the long text is placed, From menu bar go to the header you will get the Object details.
    Use FM READ_TEXT by passing those object details you will get the text.
    Have a look in this link to use READ_TEXT
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap+general&
    Regards,
    Satish

  • Use of SAP Smart Forms - Text Modules

    Hi!
    One or two questions regarding the SAP Smart Forms text modules.
    First: In which table the text name is saved? Is there something like the STXH table for SapScript Objects?
    Second: Is it possible to use SmartForm text modules in the text determination for SD (Invoice e.g.)?
    I´m looking forward for many answers
    Greetings
    Mark

    Hi,
      From STXL table u can get the text object, id n name pertaining to a text .These things put in FM 'READ_TEXT'. u get the long text...
    Instead in smartforms, u can directly include texts using Create-Text, Type Include text...enter the id, name ,lang and object....
    Also, for text names, objects and ID..u go to the place where long text has been entered, enter the sapscript editor from there, goto Header...u ll get all the detaails..
    hope it helps,
    Regards,
    Bikash

  • Text inversed in the smart form table

    Dear all,
    I'm new in ABAP and working on a smart form which has a cell in table shows an article description in both Arabic & English
    but the Arabic text appears in reversed sequence  in the print preview and after printing it shows like this ##### #########.
    any idea how to solve this problem
    thanks

    Hello,
    Please see the following SAP Note about printing Arabic:
    587150 - Support of Arabic-script languages
    For your Unicode system, then you should be able to print Arabic
    characters via device type ARSWIN or device type SWINCF.
    The Unicode cascading fonts solution with the device type SWINCF
    described in the following SAP Note:
       812821 - Cascading Font settings
    So you need to configure a Frontend output device that uses device type
    ARSWIN and use this to create the print with the Arabic characters.
    Regards,
    David

  • Text element not gettin refreshed in smart form

    Hi
    Text element does not get refreshed in the smart form preview. 
    I have a selection screen on which i have a few selection parameters and three application
    toolbar buttons. "Save" , "Preview" and "Print". At the end of selection screen I have a
    button "text" which when clicked takes me to the text element editor(FM  'TEXT_EDIT' )
    I have to enter a project number on the selection screen, enter all other details and
    then click on the "Text" button. I would then change /edit some text etc and come back
    to sel screen. Now i click on preview , the smart form shows up and the text gets dispalyed
    with the modified text. 
    I am passing the text name by appending "sometext" + project number to the TEXT_EDIT
    and while eiditing and as a parameter to the smart form. In the smart form i have given the variable in the "include text".
    Now Herez the problem.
    I am still in selection screen and clik on the "text" button and it takes me to the
    text editor. Now i add more lines, save and come back. Now i clik on preview
    button and it displays the old text data.
    When i come out of the transaction and renter , clik on the preview it displays data
    correctly. Now if i repeat the steps
    1.edit text button , add a few lines
    2.preview button, shows data as entered in step 1.
    3.edit text button, add few more lines
    4.preview button .. the text displays is from step 1 and not 3.
    I am not sure if this is lot of info for anybody to write an answer straight away but
    if u need more info i can provide. I can do a read_text in the smart form but its toooooo
    much of a pain for the data i need to display. million adjustments to be taken care of.
    What could be the problem ? I have given all the basic settings like save parameter
    in edit_text fm , checked all the print preview options in sdn.
    Here are my questions
    1. Why is the text element not getting refreshed.
    2. After a form is displayed for preview , will it store anywhere in the buffer ? if yes
        is there any method to clear it ?

    Hi,
      The problem is not with text elements, it might be your size of window which you are using to display the text elements. Check your window size and modify that accordingly.
    Cheers,
    Bujji

  • How to add internal table fileds in Text module in smart forms

    Hi Friends,
        How to add internal table fileds in Text module in smart forms?
    Thanks & Regards,
    Vallamuthu.M

    Hi Vallamuthu ,
    how did you solve your problem?
    thanks,

  • How to show long text in TextView control in formatted form?

    Hi,
    I have requirement to show long text from backend text edit control to WD application. I am using READ_TEXT Fm to read the long text and passing it to text view UI element.
    The text is shown in simply one long line but I want it to show in the same format as stored in backend textedit control.
    If I take textedit UI control then it shows the text in formatted form.
    Could you please let me know how to achieve these for TextView control? My requirement is that I have to use only TextView control.
    Thanks,
    Chandra

    Hi,
    The Problem solved to some extend but still the exact formatting is not happening though i am using cl_abap_char_utilities=>newline.
    for eg. if the long text is as below.
    "To display the external component, you can now embed an interface view of any window of this component in a window of your current embedding a view of oneu2019s own component. By setting up navigation from one outbound plug of a view of your inbound plug of the inter external component, you enable the external component to be displayed. New line ."
    and if in backend the Last line " New line ." is on next line, on WD it is not displayed on next line.
    Thanks,
    Chandra

  • How to drag global data in text editor in smart forms

    Hello friends,
    I am doing a smartform. I tried to drag the global data from field list and drop it in text editor but its not working.
    can you please help me how to do that or is it need any extra settings?
    Please help me friends.
    Thanks,
    Manisha
    Edited by: PATIL MANISHA on Apr 23, 2010 12:14 PM

    Hi Manisha,
    It is looking very strange. But still try to do following may be helpfull.
    1. First activate your smart form after declaring the variable in Global definition. Then try to drag n drop from Field list
    2. Or else click on Editor tab of Text node, Then Goto-> change editor (You will get a editor same as Sapscripts)
    put the variable like that:
    HT : &W_TOTAL-MASSG&
    Try this. Best luck...
    Regrads,
    Lokesh.

  • How to display TEXT vertically in SMART FORM

    Hai,
    I need to display the column name of a table vertically (readable from bottom to top) in smart form.
    Could any one please tell me how to do this?
    Thanks & Best Regards,
    Maniyam Bhaskar.

    Hi,
    Go through these threads for the discussions happened on similar issue... hope it helps you..
    how to print text vertically in smart forms
    vertical and horizontal printing in same page with smartforms or sapscript
    Good luck
    Narin

  • How to call text editors in smart forms?

    In my module pool program,I included text editors for three fields.I want that fields in smart forms too.I need to know how these text editors are called in smart forms?

    Hi achu,
             Any text that gets saved has a corresponding entry in table STXH table. It usually has the following parameters : TDOBJECT,TDNAME,TDID and TDSPRAS.
    What you have to do is create a new text element and under general attributes ---> Type  - give Include Text.
    And in the include text you give the above four parameters which correspond to the text you want to display.
    P.S. Do not forget to check the 'No error if no text exists' checkbox.
    Hope this helps.
    Regards,
    Arun

  • Text issue in Smart form

    Hi All,
    I have an Custom smart form, and under the pages and windows i have 2 Pages First Page and Next page.
    The First Page  next page is set as Next Page and the second page next page is also set as Next page.
    Now when the Smart form is displayed in the PDF Format then only the first page Header comes in the proper way but the 2nd , 3rd and so on pages depending upon the data the Headers are all coming as an Junk text (Not some other language but the overlapping of characters).
    The Header texts are all in the Table in the header field and also some texts are dynamically populated by the OTR and some are static.
    I am not sure why is this happening can any one give me some inputs?
    Regards,
    Dipu

    Exactly thats what i am using now but want to know whether is it possible by using TEXT instead of creating Graphics node.
    In graphics we can use both .bmp as well as .tif files but not text.So what is the solution of using TEXT Ids in Smart forms.
    Thanks for all your answers but still i didn't get the solution to my problem.
    Regards,
    Chandra

Maybe you are looking for

  • In address book how do I move all cards from my 'last import' smart group into a new group?

    In Address Book, how do I move all cards from my 'last import' smart group into a new group that I will create? So far I am not being allowed to Edit Smart Group! Thank you x

  • How do I install Photoshop on my new computer?

    My old computer broke and I bought a new laptop.  When I tried to install Photoshop on my new computer, I got an error message because it had been registered to my old computer.  Can you help me with the installation on my new computer?

  • Problems with Passbook-. whats up?

    Was checking out the phone, I have a 4s, and downloaded the iOS6 update.  The Passbook portion wont connect to the iTunes store nor will it let me see what it is about... A cure any one?

  • Auto generate the primary key value for eah valid insertion

    i have a table EMP having emp_id, name and age. EMP; E1 John 23 E2 Mary 25 created a form/report page on the table. the report page displays all the columns. while creating new entry, the emp_is hidden and the name , age are displayed. on successful

  • HR Compare employees on 2 different boxes

    Greetings. I have a requirement where I have to compare all employees on 1 box against the employees on a different box based on company code. HR has it's own box. The other modules FI, MM, SD etc...sit on another box. There's an interface that sends