Hi All,
One small doubt regarding this question.
i.e in sO10 there is a standard text contains data 2 pages.my requirement is just display 1000 charecters only from that standard text.
If i use READ_TEXT is it possible?
One more doubt is T_lines table contain 2 fields with 132 charecters?
Please clarify this..
Regards,
Kishore.
To my knowledge u cannot use read_text to read it from so10.What i suggest u is create ur own standard text by copying from the existing one and make the required changes and display it in ur script.
Ya tlines table contain 2 fields in which tdline will have the text,so u have to pass this tdline to a varible and then dipslay it in the script.
Let me know if u require any other details.
Regards
Hi
READ_TEXT is used for this purpose. Refer to SAP examples how this function module is used anywhere in other standard programs.
your doubts will be resolved.
Important thing to notice while using READ_TEXT function module is that
TEXT-ID field needs to be properly created based on Order number, Item no, Slaes Org, Distribution channel etc.
Most of the time You will find that Sales organization field is of 4 characters lenght, (Say 0001) in this case Since SAP discards first 3 zeroes of the number to blank spaces, you need to append zeroes to the final text-id field making it of required 20 characters key field (Say).
Therefore, you need to take care of append zeroes, shift spaces, concatenate command, etc. which depends on your scenario.
you have to check the following parameters
ID: this textid
language:language u maintained the text,this also important
name: The no in which text-id is maintained
Usually we make mistake here,the no is combination of purchase order no and item no.
Example:420000210000010(Puchase orderno:4200002100 item no:00010)
Object:it change based on the text-id so u can check it the document no.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = p_var
language = g_f_langu
name = g_f_tdname
object = g_f_obj
TABLES
lines = g_t_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.
Hope this definitely help.
Regards
- Atul
Add a comment