on 05-06-2009 7:05 PM
Hi Experts,
I need to print Long Text maintained for a record in sap.
I have the Text ID and Text Object but don't know about the Text Name
and I have to print this Long Text in my SAP SCRIPT to be shown on the Form and i am not doing changes in standard print program instead using the subroutine pool.
Please tell me in Detail how can i achieve this.
And one more query, i also have to print Digital signature for a document.
Please tell me in Detail how can i get the details for a Digital signature (for a particular record) and get them printed in SAP Script.
Thanks
as suggested above u can use READ_TEXT fm but u would be needing text name as it is mandatory,
if dont have it then check entiries of table stxh giving ur text id and text object u'll get the text name from there
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
forget about read text, its not neccesary here.
all you need is the INCLUDE statement described some posts above.
Of what "record" are you talking? the textname is normally the recordnumber of the record which holds the text.
If this record is an item, the textname mostly is recordnumber and itemnumber.
In case of a sales order item your textname of your item text would be VBELN+POSNR.
While for the header text it is just VBELN.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1) Use READ-TEXT function module to read the text
Get the long text
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt "Current Client
id = p_tdid "Object ID
language = c_e "Language
name = w_tdname "Object name
object = p_object "Application Object
archive_handle = 0
TABLES
lines = t_text "Long Text
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
2) regarding digital signature
first upload the digital signature image into SAP by using SE78 transaction
and include that image into a window call signature in SAP script
Regards
Krishna
Edited by: Krishna Gowrneni on May 6, 2009 11:41 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishna,
thanks for your reply, but i have some doubt like i am using: include TEXTNAME object OBJECT id TEXTID paratraph PH command in my script how can i use that for it. And if i'll be using READ TEXT FM then how can i define the T_TEXT (incoming table for long text) in my sap script, because i have to use perform in program (subroutine pool) for it. and how to use it in my script editor to display long text.
And for digital signature, I am not required to show the signature itself but i need to show the Name of the person who's signature it is and , Date and Time of the signature and any comments if any he has given.
There is one table SIGNS which is having this information but i need the SIGN_ID SIGN_PROC SIGN_INDEX
for it to be passed. how can i came to about these fields.
i'll appreciate your quick reply.
Thanks
Edited by: Sandeep Sharma on May 7, 2009 5:18 AM
hi,
instead of read_text use the sap script command INCLUDE
like this
/: INCLUDE &<textname>& OBJECT &<object>& ID &<td id>.
http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db7cc494511d182b70000e829fbfe/frameset.htm
Hi,
data: T_TEXT like tline occurs 0 with header line.
IF NOT thead_011 IS INITIAL.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = thead_011-tdid
language = thead_011-tdspras
name = thead_011-tdname
object = thead_011-tdobject
TABLES
lines = T_TEXT
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
T_TEXT is an internal table and contains the all the text which is there in ur transaction.
now, u Loop the table T_TEXT and call WRITE_FORM fm in the loop.
LOOP AT t_text.
call function 'WRITE_FORM'
EXPORTING
element = 'TEXT'.
ENDLOOP.
now u call the element 'TEXT' in ur form, and print &T_TEXT-TDLINE& in that element..
so it will print all the lines in T_TEXT table.
In Script:
eg:
/E TEXT
P1 &T_TEXT-TDLINE&
Hope it helps
Rgds,
Pavan
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.