Skip to Content
author's profile photo Former Member
Former Member

plz help production issue(smartform)

hi experts plz help its a production issue

i have a box in my smartform in which in one line i can only show 50 characters .and i have a text of 70 characters but i only have to show 50 characters from 70 characters .

now wat i did i stored 70 characters variable into 50 char variable abd displaying it .

but the issue is

if i want to print .

hi this is sdn and here u can get all the information about sap .

now lets say

i of information is the 46th character of my line

now what is happening it is coming like

hi this is sdn and here u can get all the

infor

its showing 50 character only but if word is not completed it is printing it in next line.

it should print like

hi this is sdn and here u can get all the infor

plz help how to do it

thanx in advance .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 05:24 AM

    code i am using is ::::::::::::::::::::::::::::::::::::::::::::::::

    data : TEXT_3I56(50) type c .

    move is_bil_invoice-hd_gen-bil_number TO textname.

    CALL FUNCTION 'READ_TEXT'

    EXPORTING

    CLIENT = SY-MANDT

    id = '0002'

    language = is_nast-spras

    name = textname

    object = 'VBBK'

    • ARCHIVE_HANDLE = 0

    • LOCAL_CAT = ' '

    • IMPORTING

    • HEADER =

    tables

    lines = t_lines_3156

    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.

    *

    *describe table t_lines lines n.

    *

    *if not n is initial.

    *bank_note = 'X'.

    *endif.

    READ TABLE T_LINES_3156 INDEX 1 .

    IF SY-SUBRC = 0 .

    TEXT_3I56 = T_LINES_3156-TDLINE .

    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Amit,

      are u sure u can accomodate ur required 50 characters in ur smartforms?...

      If not..

      To reduce font size :

      Create a new style in smartforms. In that create a Character format(say C1) in which u can reduce the font size(second tab ) as required size to u so that u can accomodate 50 char.

      Assign the style to the smartforms in the Output options > style.

      Now in the general attribues assign C1 in character format.

      Hope it solves ur query

      Gowri

      was edited by gowri

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 05:39 AM

    Hi,

    You can try to reduce the font size then you can able to see all the 70 characters.

    Cheers,

    Bujji

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 06:35 AM

    HI Anit....

    I think there is not Problem wih your Decleration...Try the follwoing steps..

    Double click on Table window.

    Then Go to Table Painter..

    There select the draw symbol and with this you can change the size of the different cells in the Table.

    Now here you can increase the Size of the Cell where your text is coming....

    ............Hope this will solve your problem...

    Reward if Useful...

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.