How to use OTR text in normal ABAP UI (Not in webdynpro)
Hello ,
I hav a requirement to assign an OTR text to a UI element in ABAP screen. How can we do that...?
I tried the syntax $OTR:<pkgname>/<aliasname> in the properties tab of the UI element,
But on executinf the screen am gewtting the syntax itself as tooltip....
Please give some inputs...
Linda.
Hello
I am not sure whether we can assign it at the screen properties level. But you can do one thing, call the FM SOTR_READ_TEXT_WITH_KEY by passing the context of the SOTR you want to read and get the text associated back in the ENTRY structure.
You can have a I/O field which is output only on the screen. And in the program you can assign the OTR text to this I/O field so that the OTR text will be displayed.
Regards
Ranganath
Similar Messages
-
Hi gurus,
I am using the CRM Survey Suite to create a Survey form.
I am supposed to create a PBO through which the OTR Texts will be displayed based on conditional checks.
I have also created the OTR Texts via transaction Sotr_edit and I am able to retrieve them via FM sotr_get_concept.
Pl. let me know how I can show them on the web page, i.e. my survey form.
I have searched and found that they can be used readily in BSP but how to use them in a Survey Form.
Regards
AtulHello
I am not sure whether we can assign it at the screen properties level. But you can do one thing, call the FM SOTR_READ_TEXT_WITH_KEY by passing the context of the SOTR you want to read and get the text associated back in the ENTRY structure.
You can have a I/O field which is output only on the screen. And in the program you can assign the OTR text to this I/O field so that the OTR text will be displayed.
Regards
Ranganath -
How to use OTR short text for description of select options
Hi Experts,
Can some one guide me how to make the description of select option language independant.
Can't I use OTR text for description? if yes, how is that?
WD_THIS->M_HANDLER->ADD_SELECTION_FIELD(
I_ID = 'SEL_OPEN_LINES'
IT_RESULT = LT_RANGE_TABLE
I_AS_CHECKBOX = ABAP_TRUE
I_READ_ONLY = L_READ_ONLY
I_DESCRIPTION = 'Select Open Lines' ).
how can i pass OTR text for the string type I_DESRIPTION export parameter of ADD_SELECTION_FIELD method?
or is there any other way of doing this.
Any clue is highly appreciated. Thanks.
Regards,
AjayHi,
Try this out -
Use cl_wd_utilities=>GET_OTR_TEXT_BY_ALIAS get the alias text into a string and pass this string variable to the I_DESCRIPTION.
DATA:
lv_str type string.
CALL METHOD cl_wd_utilities=>get_otr_text_by_alias
EXPORTING
alias = 'ZPKG/header'
language = sy-langu
RECEIVING
alias_text = lv_str.
WD_THIS->M_HANDLER->ADD_SELECTION_FIELD(
I_ID = 'SEL_OPEN_LINES'
IT_RESULT = LT_RANGE_TABLE
I_AS_CHECKBOX = ABAP_TRUE
I_READ_ONLY = L_READ_ONLY
I_DESCRIPTION = lv_str ).
Regards,
Lekha.
Edited by: Lekha on Sep 14, 2009 6:36 PM -
How to use the SQVI in HR-ABAP
Dear Guru,
How to use Quick Viewer in HR ABAP,
kindly give some sample materials for this .
else provide some soluytion for this .
Regards,
Mathankumar.AI don't think there is any difference when comes to HR ABAP. so you can proceed the way you do incase of normal tables. the only difference here is you will see Infotypes instead of Tables.
-
How to use the text module in script
hi,
i script how to use the text modules and how to write the code in layout of the script?Hi,
You canr use text modules in script. You have to use standard texts .
Standard text are maintained in SO10 transaction.
you can create translation text for other languages also . So based on logon language it will print translation text.
go to SO10
give textname it say Ztextname id as ST and language as EN
say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
so now you have created a text called ztextname which you can use in your script.
Inorder to insert the texts in your script do as below
go to any window editor and select path
Insert->texts->symbols->standard symbols
then you will get popup in which you have to mention all the parameters that you have created earlier.
after inserting just change language EN to sy-langu
Reward points if useful
About text elements Sravan already given some informatiomn
Regards,
Nageswar -
How to use standard texts in smartforms
Hi Friends,
How to use standard texts in smartforms, ie in scripts we are using standard texts using tr so10.
thanks in advance,
regards,
sharma.For long text
method1
Create TEXT node- general attributes change text type to include text
then you can input text name/text object/text id/language
method2
create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
then use LOOP or TABLE node to display it
For TEXT module(For foreign language)
Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
then enter smartform Create TEXT node- general attributes change text type to text module
input the text module name which created by above
btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10 -
How to use Standard Text in ALV
How to use Standard Text in ALV header part? Can you please help me by giving the answer?
Hi ,
You can read the Standard text using read_text function module and then print in LV header part. -
How to use this function module on abap hr GET_PDSNR_RANGE
how to use this function module on abap hr GET_PDSNR_RANGE
thankx.PASS INETRNAL TABLE WITH SOME DATA TO TABELLE FOR GENERATING PDSNR SEQUENCE
-
How to use Try Catch Block in ABAP Like JAVA
Hi Experts,
I am using BAPI to post MIGO in one of my application. If the MIGO is successfully gets posted then BAPI returns no message, but if there is some error in posting then it returns an error message. Now I want to print that error message in catch block by calling method RAISE_ERROR_MESSAGE. How to use try catch block in ABAP. Please suggest with example.
Thanks and Regards.
Vaibhav Tiwari.Hi Vaibhav
You may not catch exceptions returned by function module using try endtry block.
It works well with the exception returned by methods.
In case of function modules or BAPI what u can do is to check sy-subrc returned and give message accordingly. If it returns a structure like bapireturn then display message returned.
in case of exception returned by a method, do it like this...
data: excep type cx_root.
data: v_str type string.
try.
*any method call or division by zero (for ex)
catch cx_root into excep.
endtry.
if excep is not initial.
CALL METHOD excep->if_message~get_text
receiving
RESULT = v_str.
endif.
*display the value returned in v_str on screen -
How do I remove text highlight box in the Notes panel in Presenter 8?
How do I remove text highlight box in the Notes panel in Presenter 8? It moves at a different speed than the voice and is distracting. Better not to have it at all.
Hi,
To disable higlighting text in notes pane is not possible in presenter 8.
However it is possible to disable in presenter 9.
Thanks
Sunil
Adobe Presenter Engg Team -
How to use the dll created by c++ but not write a jni wrapper around
how to use the dll created by c++ but not write a jni wrapper around through a java program. now I can't access that dll like this directly from java.
Your question is unclear. (You haven't said what dll you are talking about.)
But:
If you are talking about an existing dll, then the only alternative to writing a wrapper is to use one of the wrapper generators floating around. Do a search on JACE.
If you are talking about a dll you are writing, then run jah and get the interface to match java right away; then you won't have to write a wrapper. -
How to use long texts in explanation tool tip?
Hi ,
Can anyone tell me how to add long text in Explanation tool tip?
I am able to use short OTR texts in explanation tool tip but not able to use long OTR texts.
Thanks and regards,
Vivek Shetty.For long text
method1
Create TEXT node- general attributes change text type to include text
then you can input text name/text object/text id/language
method2
create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
then use LOOP or TABLE node to display it
For TEXT module(For foreign language)
Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
then enter smartform Create TEXT node- general attributes change text type to text module
input the text module name which created by above
btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10 -
How to use apex_item.text in a collection or tabular form
Hello,
I have a table with table names. (simplified)
create table test (tab_nm VARCHAR2(30) )
Now I want to present this tables on a tabular form with a checkbox and a text item to put the short name for this table name.
So I was thinking in the way of
select apex_item.checkbox(1,ids) check,
tab_nm,
apex_item.text(2,c001) short_name
from test;
Ibut this doesn't work since the c001 column does not exist.
So I probably should go for a collection, but how do I do that and how to process the text put in in the text item?
ThanksHi Marc,
I think the purpose is different. I want to create a 3 column report with a checkbox to select the tables I want to use and because I do not store the shortname in the table I want the user to be able to give the shortnames himself for the selected tables.
So
checkbox tab_nm from table item( filled in by user but not stored in table)
x table 1 tab1
x table2 tab2
table3 tab3
writing this I 'm considering to save the short names because it can give conflicts if a shortname is used twice
Purpose is to generate tables, with sequences and triggers dynamically from the selected tables.
Erwin -
I'm storing files in a blob field in a 9i database, sometimes I need to query using the details stored in the database about the file and sometimes I need to search the files to find matches with some text (like search engine), I was told that oracle text can help me accomplish this functionality , however I don't know if it supports arabic text and I don't know how to use it from my application developed in 9i.
Regards.Friend by using these step you can easily use Oracle inter text media
j a h a n z e b
[email protected]
Oracle Developer
6th Floor, State Bank of Pakistan
I.I.Chundrigar Road, Karachi.
Please note that in SqlPlus you can use '?' in stead of $ORACLE_HOME, and this works on Unix and Windows so if you want to execute $ORACLE_HOME/rdbms/admin/catalog.sql you can simply use:
on Unix sql> @?/rdbms/admin/catalog.sql
on Windows sql> @?\rdbms\admin\catalog.sql
5.2.1 Explanation of installation steps
1. Connected to database as SYSDBA and create CTXSYS user:
Ctxsys user is created by calling following script:
@?/ctx/admin/dr0csys.sql <ctxsys> <system> <temp>
Where:
change_on_install - is the ctxsys user password
DRSYS - is the default tablespace for ctxsys
TEMP - is the temporary tablespace for ctxsys
This will create user CTXSYS and grants full privileges to CTXSYS in order to create and insert into result tables, execute callbacks, rewrite queries, and perform system cleanup. At this point CTXSYS will not own any objects.ss
2. Connected to database as CTXSYS and create all necessary objects
All necessary object are creates by calling following script:
connect CTXSYS/change_on_install
@?/ctx/admin/dr0inst <replace with $ORACLE_HOME>/ctx/lib/libctxx9.so;
Please not that you have to put full path to your ORACLE_HOME, for example home as paramter
On Solaris/Aix/Linux with $ORACLE_HOME of /u01/app/oracle/product/8.1.7
@?/ctx/admin/dr0inst.sql /u01/app/oracle/product/8.1.7/ctx/lib/libctxx8.so
On HP-UX with $ORACLE_HOME of /u01/app/oracle/product/8.1.7
@?/ctx/admin/dr0inst.sql /u01/app/oracle/product/8.1.7/ctx/lib/libctxx8.sl
Windows NT/2000 with D:\oracle\product\8.1.7
@?/ctx/admin/dr0inst.sql D:\oracle\product\8.1.7\bin\oractxx8.dll
This will installs all Oracle database objects required by the Oracle Text system. This includes:
a) Data dictionary tables, views, sequence, packages
b) Server management tables, views and packages
c) Dispatcher packages
d) Service queue objects
3) Install appropriate language-specific default preferences.
The next step is to install appropriate language-specific default preferences.When you use CREATE INDEX to create an index or ALTER INDEX to manage an index, you can optionally specify indexing preferences in the parameter string. There are seven preference classes:
- Lexer, defines the language being indexed. ( language specific )
- Wordlist, defines the expantion of stem and fuzzy queries. ( language specific )
- Stoplist, defines words and themes that are not be indexed. ( language specific )
- Datastore, defines document storage.
- Filter, defines standards for converion of documents to plaintext.
- Storage, defines the storage of the index tables.
- Section group, enables possibilities to define document sections.
There is script which creates language-specific default preferences for every language Oracle text supports in <ORACLE_HOME>/ctx/admin/defaults directory, such as English(US), Danish(DK), Dutch(NL), Finnish(SF), French(FR), German(DE), Italian(IT), Portuguese(PR), Spanish(ES), and Swedish(S). They are named in the form drdefXX.sql, where XX is the language code. To manually install US default preferences, for example, log into sqlplus as CTXSYS, and run 'drdefus.sql' as described below:
@?/ctx/admin/defaults/drdefus.sql
create user textuser identified by textuser
default tablespace users
temporary tablespace temp;
-- You must grant 'ctxapp' role to textuser
grant connect, resource, ctxapp to textuser;
connect textuser/textuser
drop table quick;
create table quick (
quick_id number
constraint quick_pk primary key,
text varchar2(80) );
insert into quick ( quick_id, text ) values (1,'The cat sat on the mat');
insert into quick ( quick_id, text ) values (2,'The quick brown fox jumps over the lazy dog' );
insert into quick ( quick_id, text ) values (3,'The dog barked like a dog');
commit;
create index quick_text on quick ( text )
indextype is ctxsys.context;
col text format a45
col s format 999
select text, score(42) s from quick
where contains ( text, 'dog', 42 ) > 0
order by s desc; -
How to use the text type in SAP Routine
Hi,
The following fields has to be populated in Stock transport order text fields at the time of saving the document & to be copied into delivery document
1) Material type
2) Receiving storage location
3) Production supply Area
STO
Delivery
EWM Delivery
Origin of the field value
Material type
New text type to be created
(90)
New text type to be created (Z003)
New text type to be created
(Z003)
Available in EKPO table (field name is MTART)
Receiving storage location
New text type to be created
(91)
New text type to be created (Z004)
New text type to be created
(Z004)
Available in EKPO table (field name is LGORT)
Production supply Area
New text type to be created
(93)
New text type to be created
(Z006)
New text type to be created
(Z006)
To be retrieved from Control cycle table (PKHD-PRVBE), if the Kanban indicator (EKPO-KANBA) is ‘X’.
With Best Regards,
SDN user.Hi,
You canr use text modules in script. You have to use standard texts .
Standard text are maintained in SO10 transaction.
you can create translation text for other languages also . So based on logon language it will print translation text.
go to SO10
give textname it say Ztextname id as ST and language as EN
say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
so now you have created a text called ztextname which you can use in your script.
Inorder to insert the texts in your script do as below
go to any window editor and select path
Insert->texts->symbols->standard symbols
then you will get popup in which you have to mention all the parameters that you have created earlier.
after inserting just change language EN to sy-langu
Reward points if useful
About text elements Sravan already given some informatiomn
Regards,
Nageswar
Maybe you are looking for
-
11.5.10.2 Windows XP installation - Concurrent Manager not working
I have completed the 11.5.10.2 installation on windows XP without any issues. However, concurrent manager even though it starts but when I submit any request, "no active manager" displays in the requests window. I tried if anyone had issues in this f
-
Import WSDL in FB 4 vs 4.5
Does anyone know if there are any major differences in importing a WSDL using Flash Builder 4.0 vs 4.5? We're using the Flex 4.1 SDK, but am noticing that the import is not tied to the SDK version but rather the IDE version. If we import using 4.5,
-
Replicate Vendor and Contact Person from SRM to ECC
Hi Expert, I'm using SRM 7.0 and ECC 6.0 and using extended classic scenario. any required to replicate vendor master and contact person from SRM to ECC, when we create vendor and contact person in portal, the result should display in SRM and ECC. My
-
Where is the restore button on itunes
where is the restore button on itunes
-
Serial Number not Recognised by Toshiba
I recently bought a P505-S8980 and when I've attempted to register with Toshiba I'm advised they have no record of that serial number. What can I do?