on 2008 Jul 02 7:58 AM
Hello all!
I have a question concerning the pre-filling content to a simple Text ID (for Business Partner notes/comments) in the text management for notes.
Description:
1) I have created a Text ID "ZQPT" for a Text Object "CRM_ORDERH". Within CRM -> Basic Functions -> Text Management.
2) This is assigned to a transaction with the -> Define Text Determination Procedure
3) The Text IDs are selectable but per DEFAULT of cource empty
Problem:
a) I need to have pre-filled Texts
b) The Text ID maintenance gives the opportunity to fill a field called INCLUDE ID (4 digits):
" ... Default ID for texts to be included
You can use the INCLUDE command to insert the contents of another text in your text. In order to fully identify the text you wish to insert, it is necessary to enter a text ID.
If the ID is not specified with the INCLUDE command, the ID specified here is used, otherwise the ID of the calling text. ..."
Question:
I) I know how to create a SAPScript but how do I assign it to a simple Text ID for text management of notes.
II) The description in SAP Help to write /: INCLUDE doesn't work in this case
I will really appreciate your help.
Best regards,
Lawrence
Request clarification before answering.
Create a standard text using transaction "so10".
Create the following function module;
FUNCTION ZZ_TEXT_ACTIVITIES_01.
*"----------------------------------------------------------------------
*"*"Local interface:
*" IMPORTING
*" REFERENCE(IV_PROCEDURE) TYPE COMT_TEXT_DET_PROCEDURE
*" REFERENCE(IV_OBJECT) TYPE COMT_TEXT_TEXTOBJECT
*" REFERENCE(IV_TEXTNAME) TYPE TDOBNAME
*" REFERENCE(IV_TEXTID) TYPE COMT_TEXT_TEXTID
*" REFERENCE(IT_COMSTRUC_FIELDTAB) TYPE COMT_TEXT_FIELD_VALUE_TAB
*" OPTIONAL
*" REFERENCE(IV_PREDECESSOR) TYPE TDOBNAME OPTIONAL
*" EXPORTING
*" REFERENCE(ES_REFERENCE) TYPE STXH_KEY
*"----------------------------------------------------------------------
* Example for customer:
* Copy this function module and change for your request
* -> You must fill the structure ES_REFERENCE with your reference text
*
* How can i get a standardtext (SapScript) ?
es_reference-tdobject = 'TEXT'.
es_reference-tdid = 'ST'.
es_reference-tdspras = sy-langu.
es_reference-tdname = '<name of standard text>' .
* concatenate
* gc_textname iv_procedure '_' iv_textid into es_reference-tdname.
Assign your text type to an access sequence in your text determination procedure. In the access sequence, definition assign the function module above in the function field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Indeed a very helpful thread. Good work sharing such information. SDN, as always, a very helpful resource !
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can u explain in clear with some exm.It would be great help.
tonn con here i have a problem in the notes header data.
which displays DATE USERTIME and the USER.
the user time must be conveted to utc time or prefill the content with UTC time can u explain how to solve this.
this is very urgent.plz.....
thanking u in advance,
sree.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.