We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

[sap-dev] The Non Editable Text is Appearing Truncated

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Question from broy2005 on Sep 25 at 12:26 AM
The non editable text is appearing truncated. How to avoid it ? Please see the screen shot of a typical text capturing screen. let me tell you the back ground and the relevant program i wrote.


BACKGROUND : The text objects are saved in stxh tables and the data can be retrieved or entered into the above tables using apap functions modules such as :

1) For reading text data : use function module : READ TEXT : See an example

CALL FUNCTION 'READ_TEXT'
EXPORTING

id = 'ST'
language = 'E'
name = l_tdname
object = 'TEXT'

TABLES
lines = itab_text
.

IF sy-subrc = 0.

ELSE.

ENDIF.
2) For creating text : use function module : CREATE TEXT :

There are two ways of creating text.
AA) The first way is simple. collect all the text into an internal table ( like structure tline) and save using function module 'CREATE TEXT'. See an example and carefully note the export parameters. The entire process is shown by step by step procedures.
i) Take the entire text matter into an internal table , say itab_text_send ( text internal table is a data like the structure of tline you can see 'tline' using SE11)
ii) The typical export parameters like fid, flangugae, fname and fobject and table parameter i.e an internal table ( itab_text_send that contain the text entered by user ) are passed into the following function module for creating text as follows :

CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = 'ST'
flanguage = 'E'
fname = l_zz_ag_comm
fobject = 'TEXT'

TABLES
flines = itab_text_send

IF sy-subrc <> 0.
ELSE.
ENDIF.

BB) The Second way is slightly different. Here some texts will have to be shown to the user in non editable form on the top of the screen and wait for the user to enter fresh text below the non editable text. The format of non editable text is different from the format of the editable text. This is how the editable text can be picked up for creating text object for the fresh text entered by the user. See and example : Text Function module gives format parameters as export parameters like the following:

CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = 'ST'
flanguage = 'E'
fname = 'SENDING_COMM'
fobject = 'TEXT'
save_direct = 'X'
fformat = '>X'
TABLES
flines = itab_text
.
IF sy-subrc <> 0.
ENDIF.
In the above function module, itab_text has some text in non editable format ( denoted by '>X ') . The text created has a name 'SENDING _COMM'. After creating the text , the text has to be displayed using another function module to capture fresh text from user unlike the first case where the blank screen was not shown to the user for capturing text.

Use the following function module for displaying blank screen for capturing text from user:

CALL FUNCTION 'FI_CALL_STANDARD_TEXT'
EXPORTING
tdid = 'ST'
tdname = 'SENDING_COMM'
aktyp = 'E'.

During running the program, the blank screen appears with some text displayed in non editable form ( please see the screen shot of the screen displayed by the SAP for capturing text from users ).

Once user enters all the text, the editable text are separated into another internal table using a if clause ( if the text format is not >X, take the text other ignore ) for creation of the exclusive comments of the user.
 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Ziff Davis, Inc. and message author.
Ziff Davis, Inc. 28 E 28th Street New York, NY 10016
broy2005  
 
View this online
Ask a new question
 
In the Spotlight
Toolbox.com for iPhone & Android: Ask Questions & Get Answers Anywhere. Download the Free App

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language