Pass a varaible (Place holder) in the Long text of message class
Hi Gurus,
My requirement is to display an error messages using message class for better understanding I am using Long text will it possible to pass a variable (place holder) in the long text if possible means suggest how to pass the variable (we need to put any &1 like this similar we do in message class) or only we can display only text in long text.
Confirm the same
Regards
Dhanoo
hiii
Create new message in message class with text like material number & is not valid
Here .
& symbol is the place holder. you can dynamically pass some thing to this message. In your validation do like this.
MESSAGE e001 WITH wa_matnr.
Here wa_matnr is the input field value.Display this message under appropriate events.
eg: AT SELECTION-SCREEN ON wa_matnr in case of reports.
reward if useful
thx
twinkal
Similar Messages
-
Issue in maintaining Long Text in Message Class
Hi
For Note implementation 1413492, I have to maintain long text, when I click on Long Text , I get a pop-up Create Modification , with 2 options for Template Type (1) Original Text (2) Template (With Headers)
Can anyone let me know how to proceed further, whatever name I give for the Modification, I am getting Error Message saying 'Enhancement Name violates the namespace convention (Note 989653)', I have tried unchecking the Self Explanatory check box as well, but still I get the same error message.
Below is the Long text I have to maintain class FR, message number 533
7. Create new error messages in the message class FR:
Call transaction SE91, enter the message class FR, and choose "Display" and
then "Change". Enter the following new messages:
Message Message short text:
533 Error while calling RFC destination
534 Contract Accounts Receivable and Payable is not installed in the
system
535 For company code & there were & data records transferred from
FI-CA
536 Error during data transfer from FI-CA for company code &; error
text:
Set the "Self-explanat'y" indicator for messages 535 and 536.
Enter a long text for messages 533 and 534:
Long text FR 533:
CAUSE
An error occurred when testing the RFC connection to Contract Accounts
Receivable and Payable. The message text is:
&V1&&V2&&V3&
SYS_ADMIN
Check the settings of the RFC destination &V4&.Hi Ryan,
Extract from note 989653;
Note:
The name of the modification object must start with:
o 'Z'/'Y', or
o the customer namespace available in the system (TRNSPACE table).
Otherwise, message 645 will appear because the SAP namespace is not
permitted.
My suggestion would be to start the name with a Z.
Regards,
Nick -
PASS THE LONG TEXT TO SAPSCRIPT
Hello Friends,
I m using itcsy structure to pass long text of quality certificate to sapscript output but im able to show only 80 characters in the output but my long text is more than 250 characters.
so how i can show these many characters value in my sapscript pls guide....
Regards,
SunnyIf you want to print the long text, you should use the INCLUDE statement in your SAP SCript.
1. You don't have to take the pain of fetching the text.
2. You don't have to reformat the same.
INCLUDE TEXT_NAME OBJECT TEXT ID
example:-
INCLUDE ZSDINV2A OBJECT TEXT ID ST LANGUAGE EN
Edited by: krupa jani on Nov 25, 2008 10:17 AM -
Hi Experts,
i am using the BAPI : "BAPI_REQUISITION_CREATE". it' is working Fine.But i need to pass the Long Text Field of Header Note, Item Text, Item Note,Delivery text and Material P.O text through the BAPI.
Plz,Help me to Achieve this.
Thanks in Adv.
V.S.Naidu.Below is the code for BAPI_PR_CREATE just go through it and your dbout will be solved
it has example for multi line header text as well as line items...!
Hope it helps
CLEAR GV_BAPIMEREQHEADER.
MOVE 'NB' TO GV_BAPIMEREQHEADER-PR_TYPE.
move 'X' To GV_BAPIMEREQHEADER-AUTO_SOURCE.
CLEAR GV_BAPIMEREQHEADERX.
MOVE 'X' TO GV_BAPIMEREQHEADERX-PR_TYPE.
MOVE 'X' TO GV_BAPIMEREQHEADERX-auto_source.
CLEAR WA_BAPIMEREQITEMIMP.
MOVE :
'00010' TO WA_BAPIMEREQITEMIMP-PREQ_ITEM,
**'001' TO WA_BAPIMEREQITEMIMP-PUR_GROUP,
*'TWISTED PAIR CABLE' TO WA_BAPIMEREQITEMIMP-SHORT_TEXT,
'C-1030' TO WA_BAPIMEREQITEMIMP-MATERIAL,
'1000' TO WA_BAPIMEREQITEMIMP-PLANT,
'100' TO WA_BAPIMEREQITEMIMP-QUANTITY,
'20091001' TO WA_BAPIMEREQITEMIMP-DELIV_DATE.
APPEND WA_BAPIMEREQITEMIMP TO GT_BAPIMEREQITEMIMP.
CLEAR WA_BAPIMEREQITEMX.
MOVE :
'00010' TO WA_BAPIMEREQITEMX-PREQ_ITEM,
'X' TO WA_BAPIMEREQITEMX-PREQ_ITEMX,
*'X' TO WA_BAPIMEREQITEMX-PUR_GROUP,
'X' TO WA_BAPIMEREQITEMX-SHORT_TEXT,
'X' TO WA_BAPIMEREQITEMX-MATERIAL,
'X' TO WA_BAPIMEREQITEMX-PLANT,
'X' TO WA_BAPIMEREQITEMX-QUANTITY,
'X' TO WA_BAPIMEREQITEMX-DELIV_DATE,
'X' TO WA_BAPIMEREQITEMX-EXT_PROC_PROF.
*EXT_PROC_REF_DOC
*EXT_PROC_REF_ITEM
APPEND WA_BAPIMEREQITEMX TO GT_BAPIMEREQITEMX.
CLEAR EXTRA_FIELDS.
MOVE '00010' TO EXTRA_FIELDS-BNFPO.
MOVE '12345678901' TO EXTRA_FIELDS-ZZDANOSPR_NO.
MOVE 'MUM01' TO EXTRA_FIELDS-ZZPORT.
MOVE '20100505' TO EXTRA_FIELDS-ZZETD.
MOVE '20100506' TO EXTRA_FIELDS-ZZETA.
MOVE '123456789123456789' TO EXTRA_FIELDS-ZZEXTWG.
MOVE TEMP TO EXTRA_FIELDS-ZZrob.
CLEAR WA_EXTENSIONIN.
MOVE 'BAPI_TE_MEREQITEM' TO WA_EXTENSIONIN-STRUCTURE.
MOVE EXTRA_FIELDS TO WA_EXTENSIONIN-VALUEPART1.
APPEND WA_EXTENSIONIN TO GT_EXTENSIONIN.
CLEAR WA_EXTENSIONIN.
MOVE 'BAPI_TE_MEREQITEMX' TO WA_EXTENSIONIN-STRUCTURE.
MOVE EXTRA_FIELDS TO WA_EXTENSIONIN-VALUEPART1.
APPEND WA_EXTENSIONIN TO GT_EXTENSIONIN.
CLEAR WA_EXTENSIONOUT.
MOVE 'BAPI_TE_MEREQITEMX' TO WA_EXTENSIONOUT-STRUCTURE.
*MOVE EXTRA_FIELDS TO WA_EXTENSIONOUT-VALUEPART1.
APPEND WA_EXTENSIONOUT TO GT_EXTENSIONOUT.
clear wa_PRITEMTEXT.
MOVE '00010' TO wa_pritemtext-preq_item.
move 'B01' TO WA_PRITEMTEXT-TEXT_ID.
MOVE 'THIS IS JUST FOR TEST' TO WA_PRITEMTEXT-TEXT_LINE.
APPEND WA_PRITEMTEXT TO GT_PRITEMTEXT.
clear wa_PRITEMTEXT.
MOVE '00010' TO wa_pritemtext-preq_item.
move 'B01' TO WA_PRITEMTEXT-TEXT_ID.
MOVE 'THIS IS THE SECOND LINE' TO WA_PRITEMTEXT-TEXT_LINE.
APPEND WA_PRITEMTEXT TO GT_PRITEMTEXT.
BREAK-POINT.
CALL FUNCTION 'BAPI_PR_CREATE'
EXPORTING
PRHEADER = GV_BAPIMEREQHEADER
PRHEADERX = GV_BAPIMEREQHEADERX
* TESTRUN =
IMPORTING
NUMBER = GV_NUMBER
PRHEADEREXP = GV_PRHEADEREXP
TABLES
RETURN = GT_BAPIRET2
PRITEM = GT_BAPIMEREQITEMIMP
PRITEMX = GT_BAPIMEREQITEMX
* PRITEMEXP =
* PRITEMSOURCE =
* PRACCOUNT =
* PRACCOUNTPROITSEGMENT =
* PRACCOUNTX =
* PRADDRDELIVERY =
PRITEMTEXT = GT_PRITEMTEXT
* PRHEADERTEXT =
EXTENSIONIN = GT_EXTENSIONIN
* EXTENSIONOUT = GT_EXTENSIONOUT
* PRVERSION =
* PRVERSIONX =
* ALLVERSIONS =
* PRCOMPONENTS =
* PRCOMPONENTSX =
* SERVICEOUTLINE =
* SERVICEOUTLINEX =
* SERVICELINES =
* SERVICELINESX =
* SERVICELIMIT =
* SERVICELIMITX =
* SERVICECONTRACTLIMITS =
* SERVICECONTRACTLIMITSX =
* SERVICEACCOUNT =
* SERVICEACCOUNTX =
* SERVICELONGTEXTS =
* SERIALNUMBER =
* SERIALNUMBERX =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
WRITE : 'THE PR CREATED IS : -',GV_NUMBER. -
Where do I find the long text for Damage and Cause in Notifications (IW21)
Hi ppl,
Can anyone let me know where the long text for Damage and Cause is stored (can be seen in IW21)?
Can I retrieve it through FM READ_TEXT? If yes, what are the values of the parameters to be passed?
Thanks,
David.Hi!
It is easy to check whether some text is read by "READ_TEXT" or not.
1) Create text in dialogue mode and save it.
2) Place brake-point in READ_TEXT FM
3) go to view this text in transaction again
If the program is switched to debug mode, it means u can use this FM. Have u tried do this stuff? -
I get the long text description 0f transaction fb03
Hi Gurus,
How can I get the long text description in the information view (field <b>ZEILE</b>,
data element EENO_ZEILE) on the G/L account documet overview(transaction Fb03)?
My prob is, This field stored in a structure called
Thanks in ad.
Regds,
BalaHi,
a) Find out for which <b>table</b> this long text is linked.
b) Go to <b>TTXOB</b> table and in the field <b>TDOBJECT</b>, check whether this entry is present.
c) If present, then use FM READ_TEXT, to get the long text value.
Important parameters to be passed in READ_TEXT
a) ID
b) Language (EN??)
c) Name ( I believe in this case it would be ZEILE)
d) Object (TTXOB-TDOBJECT value)
Regards,
Subramanian V. -
How to pass variables to a program called from long text of an error msg ?
Hi,
The aim is the following: in the long text of an error message, there should be a link; this link must call a program or a transaction and pass to this program or transaction the four variables of the error message. Is it possible to insert such a link with parameters in the long text of the error message ? If yes, what is the syntax for this ?
(I searched in the forum and found the way to insert a link to a transaction, but I found nothing about parameters).Thank you for the answer.
Unfortunately, this solution is not applicable in my case. I'm using the application log and the scenario is the following:
- the user displays the application log in transaction SLG1
- he sees a lot of error and succes messages
- by dubble-clicking on these messages, he displays the long text of the messages
- I want a link in these long texts to a transaction using the variables of the messages. I tried inserting a link to a transaction, and the transaction is well called, but with a breakpoint I checked variables SY-MSGV1 to MSGV4 and they are empty. -
Special fonts to the long text
Hi all,
I want to apply special fonts to the long text which I am saving using save text.
I have a container in which I am wrintin the text,Now I want to provide the functionality such that I can make few lines bold,few undelined etc.
same as we have in standard transactions.(text).
How can I achieve that.
Regards,
SudhaHi,
Try this,
pass appropriate stype into THEAD-TDSTYLE.
Regards,
Peranandam -
Error while reading the Long text Using READ_TEXT
Hi friends,
Right now I am working with Smartforms.While I am reading the Long text of the material using function module READ_TEXT I am getting the following error if the text is not there.
OUT_PURCH_PO ID GRUN language EN not found.
I should not get this error Instead I should get the blank value.
OUT_PURCH_PO - my material name.
Following is my code.
IF WA_EKPO-KNTTP = 'F' AND WA_MTART-MTART = 'ZMSC'.
READ TABLE IT_SGTXT INTO WA_SGTXT WITH KEY MATNR = WA_EKPO-MATNR.
WA_EKPO-TXZ01 = WA_SGTXT-SGTXT.
NAME = WA_EKPO-MATNR.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = ID
LANGUAGE = SY-LANGU
NAME = NAME
OBJECT = OBJECT
IMPORTING
HEADER = THEAD
TABLES
LINES = LTEXT.Hi,
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = id
language = sy-langu
name = name
object = object
TABLES
lines = ltext
EXCEPTIONS " --> have this
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.
Edited by: Avinash Kodarapu on Jun 5, 2009 7:32 PM -
How to add the long text in Production order through FM
Hi,
Iam having custom program which has BAPI (BAPI_PRODORD_CREATE) inside it and this program is used to create Production orders with the details of Sales order Number,Line item,Plant,Order type,Quantity and Start date. This program is scheduled in Background.
Now client wants to add the Long text (seperate TAB in production order and they want to update the VC details of Sales order in the Long text area).
One option is after creation of Production order, through BDC(calling CO02 and update the long text) we can update the long text and client doesn't want this option.
Another option is after creation of Production order, using Function module SAVE_TEXT, Update the Long text in Production Order and this is not working in Production order (already my ABAP consultant checked it ).
If any one of you came across this requirement, pl share with me how you addressed it.
Regards
A.SureshbabuHi,
The method is quite simple, i presume you're quite well versed with doing recording, so the key thing to keep in mind is how to prepare the input file.
At my end i had about 5 lines of data which needed to be uploaded, hence i had a tab-delimited file with the order nos. in the first column & the five lines of text in five different columns (Refer format below)
Order No.
Line - 1
Line - 2
Line - 3
Line - 4
Line - 5
12345
txt - 1
txt - 2
txt - 3
txt - 4
txt - 5
67890
txt - a
txt - b
txt - c
txt - d
txt - e
Now provide this input file for your lsmw or bdc program & it will work. You can work with your abaper if you're not so comfortable with LSMW or BDC programming he / she should be able to easily make it work for you.
Regards,
Vivek -
Get the long text into BADI from text editor
hi all,
I implemented BADI ME_PROCESS_PO_CUST, before saving the purchase order i am calling the text editor where i am writng
the long text . but when save the text from the text editor the long text in the editor is not updating to the BADI.
Can anybody help how can i get the long text to the BADI.
Regards,
MadhaviHi
Have you tried with interface 'IF_PURCHASE_ORDER_MM' with these methods in the BADI?
IF_LONGTEXTS_MM~GET_TEXTOBJECT
IF_LONGTEXTS_MM~GET_TYPES
IF_LONGTEXTS_MM~GET_TEXT
IF_LONGTEXTS_MM~SET_TEXT
IF_LONGTEXTS_MM~ADOPT_TEXT
IF_LONGTEXTS_MM~DELETE_TEXT
IF_LONGTEXTS_MM~EDIT_TEXT
Regards
Eduardo -
Get the long text from Text Editor
Hi,
I am using text editor to enter the long text, after entering the text in the text editor
when press the save button i am getting the long text into the internal table . this is working fine till here.
But when press SAVE button , i want the text into the internal table and the text editor to be closed.
but here i am not able to get the data into internal table as it is again creating text editor .
Can anyboby help me .Hi,
Refresh the table. -
Unable to upload RTF file in the long text
Hi all,
Could you please help me out in this issue. I am trying to upload the RTF file in the long text editor through this menu path Text-> Upload->RTF file.The RTF file is about only 56 KB memory size consists only texts.
I could able to select the file and when i am executing , ABAP dump is showing as follows:
Runtime error : TABLE_INVALID_INDEX
abap program : SAPLSTXK
Whether any SAP notes to be applied for this ?
Please throw you ideas
Regards,
Suresh.try this.
REPORT YCMTESTE LINE-SIZE 255 MESSAGE-ID TD.
PARAMETERS:
TEXTNAME LIKE THEAD-TDNAME DEFAULT 'SAPSCRIPT-DRUCKERTEST',
FILE LIKE RLGRAP-FILENAME DEFAULT 'C:\temp\'.
DATA: TEXTHEADER LIKE THEAD.
DATA: TEXTLINES LIKE TLINE OCCURS 100 WITH HEADER LINE.
CALL FUNCTION 'READ_TEXT'
EXPORTING NAME = TEXTNAME
LANGUAGE = SY-LANGU
OBJECT = 'TEXT'
ID = 'ST '
IMPORTING HEADER = TEXTHEADER
TABLES LINES = TEXTLINES
EXCEPTIONS OTHERS = 1.
CHECK SY-SUBRC = 0.
CALL FUNCTION 'EXPORT_TEXT'
EXPORTING CODEPAGE = '1133'
FILE = FILE
FORMATWIDTH = 132
FORMAT_TYPE = 'RTF'
HEADER = TEXTHEADER
SSHEET = ' '
WITH_TAB = ' '
TABLES ITF_LINES = TEXTLINES
EXCEPTIONS DOWNLOAD_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_WRITE_ERROR = 3.
CASE SY-SUBRC.
WHEN 0. MESSAGE S807 WITH FILE.
WHEN 1. MESSAGE E815 WITH FILE.
WHEN 2. MESSAGE E811 WITH FILE.
WHEN 3. MESSAGE E814 WITH FILE.
ENDCASE.
Reference::[http://help.sap.com/saphelp_sm32/helpdata/en/d6/0db7f3494511d182b70000e829fbfe/content.htm]
<removed_by_moderator>
Edited by: Juan Reyes on May 16, 2011 12:05 PM -
Problem in loading the long text in bdc.
Hai Friends,
I am uploading the material master using bdc, Here i need to upload the long text field. so am using the separate report for upload the long text field using the create_text function module. but the problem is the long text field only accepting 132 charactors. but i need to upload the 500 charactors. what i want to do now ?
Regards ,
Sathis Kumar RHi Sathis,
What u do is that while recording the text part in bdc , click on the first delete button, and then create button and after that double click on the editor or click on the text-editor change button, a window will get opened , then click go-to menu -> change editor.
there u can use loop the text table and wirte it according .
eg
PERFORM bdc_dynpro USING 'SAPMV45A' '4002'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=TP_DELETE'. "first delete
PERFORM bdc_dynpro USING 'SAPMV45A' '4002'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=TP_CREATE'. " then create
PERFORM bdc_field USING 'LV70T-SPRAS'
sy-langu.
PERFORM bdc_dynpro USING 'SAPMV45A' '4002'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=TP_DETAIL'. "if not double click then click on change button after the delete button and then click on the change-editor menu .
PERFORM bdc_field USING 'LV70T-SPRAS'
sy-langu.
PERFORM bdc_dynpro USING 'SAPLSTXX' '1100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RSTXT-TXLINE(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=TXVB'.
PERFORM bdc_field USING 'RSTXT-TXPARGRAPH(02)'
PERFORM bdc_field USING 'RSTXT-TXPARGRAPH(03)'
PERFORM bdc_field USING 'RSTXT-TXLINE(02)'
wa_itab-htext1.
PERFORM bdc_field USING 'RSTXT-TXLINE(03)'
wa_itab-htext2.
PERFORM bdc_dynpro USING 'SAPLSTXX' '1100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RSTXT-TXLINE(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=TXBA'.
PERFORM bdc_dynpro USING 'SAPMV45A' '4002'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/EBACK'.
regards,
Santosh Thorat -
Hi,
I am undable to find the long text in TC: VA02 at runtime. Actulally my requirement is like how to compare between the item level long text at runtime and existing long text for that item.
If any body has soluntion, please provide me. I would really be greatfull if any body provide the solution.
Deepak Kumar
E-Mail: [email protected]Hi Sudheer,
Actually my requirement is to read the text at runtime. Example: If saved text is 'ABC' and it is changed by '123'. Now before saving changed text '123', I need to capture it so that I can compare it with saved text 'ABC' whether it is changed or not?
Couuld you send me some sample code? I would appreciate if you reply at the earliest.
Deepak Kumar.
Maybe you are looking for
-
Hi Guys, It's been a while since I posted, so I just wanted to let you know that we have been making progress and slowly working through the issues we have had. I have to say that we could not have got this far without the invaluable information on t
-
Ipad 2 says invalid format- sony bravia 32"
Help! Just got an ipad 2. Tried to connect to my Sony Bravia 32" tv with av adapter from apple. I plug it in, and it says "invalid format". I have setup the tv for HDMI input, blah blah, I've tried so many things. I have contacted Apple, Best Buy
-
Get rid of those annoying extra ' ' characters
Always use the < escape instead of a literal '<', even in [code] blocks. Otherwise, the forum software will try to help you out by throwing in a '>' to balance it. It usually inserts the character at the end of the post, but if there's another '<' an
-
Song suggestions for a slide show...
I'm making a highlight reel for my little brother (who has just finished his first varsity football season). It will be composed of mostly pictures and some video, so far I have the song tick tick boom by the hives selected. I'd like 2 more 'pump up'
-
Please cancel my creative cloud membership
I just purchased the $14.99 per month subscription and it's not making sense at all. I can't find lightroom in there and the photoshop says that I only have 21 days left on my trial period. I didn't do the trial period, I am paying it monthly startin