Retrieve texts in a line after a separator
hi
i have to retrieve values from a line after a separator comma
how to do this?
hi anjali
chk this sample code
DATA: str1 TYPE string,
str2 TYPE string,
str3 TYPE string,
itab TYPE TABLE OF string,
text TYPE string.
text = `What a drag it is getting old`.
SPLIT text AT space INTO: str1 str2 str3,
TABLE itab.
Rewards if its usefull
Regards
deva
Similar Messages
-
Line after text in smartforms display
Hi ,
Issue 1:
I want to display a line after a text.
Ex: Name _______________________________________
I am unable to display the line till the end of the page.
When I save and activate, the line gets shortned itself as below.
Name ___________________________
Issue 2:
I am unable to print the text that i want in bold inspite of using bold in character format.
Any suggestions?i too faced the same previously i solved it as
1).in your text element where you drag & drop your fields there itself for line what you ask
write there itself upto it enters into next line when ever it enters into next line press back space so it takes the complete window width but dont click on the edit icon and write there.
2). instead using charater format in your style create a paragraph format in bold format
Both will works.
Thanks,
Phani. -
I restored my iphone from a backup that is about one month old (because all my contacts had disappeared). Is it possible to retrieve the text messages that occurred after that back up. They disappeared after the restore.
I don't know if I'm on the same page as you.
But if you backed up the phone with those contacts pictures notes etc, you should get them back.
After restoring your phone, use the back up that done when you had those contacts messages etc?? -
Need to create a a line after each subtotal-Smartform
Hi I need to create a uline after each of the sub totals in my smartform.Like if theer are 7 items in the form and for each of the item there are 2-3 sub-items under it , I have calculated the sub totals for each of the item and to distingusih tjem separately i want to create a line after each of my sub totals for the items . How do i create the line after each of the items ?
Thanks
AaravHi Aarav
Read this wiki.In the 8th step given there,GOTO the text element and give a ULINE there if needed.
I think since this example is of tabular display you might not need a ULINE there.
[https://wiki.sdn.sap.com/wiki/display/ABAP/SUBTOTALINSAP+SMARTFORMS]
This defnitly will solve your problem.
Regards
Hareesh -
Error while trying to retrieve text for error ORA-12154
Hello,
I try to install php 5.1.2 on a WIN2003 server and IIS6 with the OCi8 extension without success from several days.
On my server I've a 920 oracle client and the 10.1 instant client, I copy the tnsnames.ora in the instant client's directory.
I've declare many environnement variables :
- NLS_LANG : AMERICAN_AMERICA.WE8MSWIN1252
- TNS_ADMIN : E:\...\oracle\instantclient_10_1
- ORA_NLS33 : E:\..\oracle\920\ocommon\nls\ADMIN\DATA
With the php command line the oci_connect function correctly works : the php command line use the instant client's tnsnames.ora. I can query with success my database.
When I try to load a web php script (the same as the php command line script) I have the following error " Error while trying to retrieve text for error ORA-12154" ( oci_connect( $user , $pass, $sid ) . The $sid variable have the value of an alias declared in the tnsnames.ora.
If I replace the sid's alias by something like this " (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xx.xx.xx.xx)(PORT=1521)))(CONNECT_DATA=(SID=xx)" in the oci_connect function, I have another error : Error while trying to retrieve text for error ORA-12705.
A web page with the phpinfo function displays the following messages about oci8 extension : It seems to be correct.
oci8
OCI8 Support enabled
Revision $Revision: 1.269.2.8 $
Active Persistent Connections 0
Active Connections 0
Temporary Lob support enabled
Collections support enabled
Do you have any idea ? Thanks a lotThe web server is not seeing the Oracle environment correctly. You need to set PATH to the instant client libraries. ORA_NLS33 is not used for Oracle 10g clients. Perhaps you have some library conflict with two versions of Oracle on the machine?
These may help:
http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html#envvars
http://blogs.oracle.com/opal/2006/05/01 -
Error while trying to retrieve text for error ORA-03113"
We face an error saying "Error while trying to retrieve text for error ORA-03113" in our Mail trigger application.
This error happens randomly
This is the below error i am getting
I see from the logs
DBD::Oracle::st execute failed: Error while trying to retrieve text for error ORA-03113 (DBD ERROR: OCIStmtExecute) [for State ment " insert into matrix_tbl (created_tm, tran_id, matrix_id, client_id, mailing_id, block_id, slist_id, profile_blob, profil e_id, plist_id, profile_key, email_addr, mail_pref, mail_pref_mask, alt_email_addr, num_ftd, pct_id ) SELECT sysdate, 0 , 619
70818 , 7180280 , 39868792 , ?, 0 , substr( 'MT' || chr(1) || '' || chr(1) || 'PAPER_USAGE' || chr(1) || s.C26 || chr(1) |
| 'GARDEN' || chr(1) || s.C17 || chr(1) || 'TAG' || chr(1) || s.C34 ||
| chr(1) || 'PASS_MAILING' || chr(1) || s.C27 || chr(1) | 'MS' || chr(1) || s.C24 || chr(1) || 'OPTIN_SOURCE' || chr(1) || s.C25 || chr(1) || 'DAILY' || chr(1) || s.C7 || chr(1) || '
PROFILE_LIST' || chr(1) || s.C28 || chr(1) || 'HI' || chr(1) || s.C20 || chr(1) || 'EXIST_MAILING' || chr(1) || s.C11 || chr(1
) || 'RPASS2' || chr(1) || s.C30 || chr(1) || 'FORWARD_MAILING' || chr(1) || s.C15 || chr(1) || 'ACCESS' || chr(1) || s.C1 ||
chr(1) || 'TRAVCON' || chr(1) || s.C35 || chr(1) || 'RPASS1' || chr(1) || s.C29 || chr(1) || 'FINANCE' || chr(1) || s.C12 || c
hr(1) || 'CONFIRM_MAILING' || chr(1) || s.C5 || chr(1) || 'VENT' || chr(1) || s.C38 || chr(1) || 'SRC' || chr(1) || s.C32 || c
hr(1) || 'DELIVERY' || chr(1) || s.C8 || chr(1) || 'SALUTATION' || chr(1) || s.C31 || chr(1) || 'UNTITLEDY' || chr(1) || s.C37 || chr(1) || 'CU18' || chr(1) || s.C6 || chr(1) || 'BIRTH_DATE' || chr(1) || s.C3 || chr(1) || 'BIRTH_YEAR' || chr(1) || s.C4 || chr(1) || 'DOWNLOAD' || chr(1) || s.C9 || chr(1) || 'LN' || chr(1) || s.C22 || chr(1) || 'VIRAL_LIST' || chr(1) || s.C39 |
| chr(1) || 'GENDER' || chr(1) || s.C18 || chr(1) || 'WEEKLY' || chr(1)
| || s.C40 || chr(1) || 'UNTITLEDX' || chr(1) || s.C36 |
| chr(1) || 'ENTERTAINMENT' || chr(1) || s.C10 || chr(1) || 'HEALTH' ||
| chr(1) || s.C19 || chr(1) || 'INCOME' || chr(1) || s.C
21 || chr(1) || 'FN' || chr(1) || s.C13 || chr(1) || 'ZIP' || chr(1) || s.C41 || chr(1) || 'AGE' || chr(1) || s.C2 || chr(1) |
| 'FOOD' || chr(1) || s.C14 || chr(1) || 'SUPPRESS' || chr(1) || s.C33
| || chr(1) || 'FTD_REVAL_DATE' || chr(1) || s.C16 || chr
(1) || 'MOVIE' || chr(1) || s.C23 , 0,3999) , s.profile_id, s.plist_id, s.profile_key, s.email_addr , s.mail_pref, s.mail_pref _mask, s.alt_email_addr, srt.num_ftd, s.block_id FROM subscriber_tbl s, sub_report_tbl srt WHERE s.plist_id = ?
and s.block_id
= ? and srt.plist_id = ? and srt.block_id = ? and s.profile_id = srt.profile_id
and nvl(srt.num_optout, 0) = 0 and nvl(srt.num_ftd, 0) <= 3 and srt.optin_mask like '%N01%'"
with ParamValues: :p5='1941860', :p3='1941860', :p1=1, :p4='28895423', :p2='28895423'] at hcommon.pm line 1277.
AJC MAILTRIGGER STH Error while trying to retrieve text for error ORA-03113 (DBD ERROR: OCIStmtExecute)An ORA-03113 error would mean that the connection to the database no longer exists so any attempt to get the error message from the the database would result in an error. I think the real issue might be why was the session interrupted.
03113, 00000, "end-of-file on communication channel"
Depending on the front-end tool a pointer error or failure to properly terminate a string could result in corrupting the message to Oracle.
There have been numerous bugs over the years that have resulted in this error message being returned. I notice that the Oracle version, platform, edition, and client tool set are not mentioned in the post. All this would potentially be important information for someone to recognize what might be the problem.
I would look very closely at the code " at hcommon.pm line 1277 "
HTH -- Mark D Powell -- -
Error while trying to retrieve text for error ORA-12705
I am getting the message "Error while trying to retrieve text for error ORA-12705" when trying to connect to a remote oracle database on the network.
I can access this database using:
sqlplus username/password@database
from a dos prompt.
For some reason I can't connect when using PHP (through my local Apache2 server on Windows XP).
'phpinfo' says oracle in enabled (installed as per: http://www.oracle.com/technology/pub/notes/technote_php_instant.html), so I'm pretty sure the problem isn't with php itself.
My guess is it's something with Apache, and maybe environment variables or user permissions or instantclient (10).
All the folders, from instantclient to the Apache server have full permissions set for "Everyone" which I would assume includes this mysterious "nobody" user I've read about.
As for instantclient, I have placed that "tnsnames.ora" file from the oracle server there, and that hasn't changed much.
I've tried setting, unsetting, editing (environment variables):
LD_LIBRARY_PATH
ORACLE_HOME
ORACLE_SID
TNS_ADMIN
NLS_LANG
ORA_NLS33
in both the system environment, and even with PHP's "putenv" function. (Note: and restarting each time I changed a system var.)
In PHP i'm using:
$c = oci_connect("username","pasword", "database")
I've tried OCILogon instead of oci_connect
For "database" I've tried:
- using the path to the oracle db: //Oracle1/e/oracle/ora81
- mapping the path to x: drive and using: x:/oracle/ora81
- using the name of the database by itself
- using the name of the database underscored with the database name
- using "(ADDRESS=(PROTOCOL=TCP)(HOST = host)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=database)))"
I have tried everything I can find from:
the Oracle installation page: http://www.oracle.com/technology/pub/notes/technote_php_instant.html
the Oracle troubleshooting page: http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html#connect
and these forumswith no results, just the same error.
I have also spent about 16 hours Googling for help, and nothing.
Can someone please tell me, what exactly does a user using:
Windows XP
Apache 2
PHP
intantclient10
Oracle 8i (on a remote server)
need to do to connect to Oracle before jumping off a bridge?Turns out Oracle was previously installed on this company laptop :(
I deleted any 'Oracle' mention in the registry with 'regedit' (from the command line) using the Find option. Not sure if it's always a good idea to do that, but I backed up the important stuff first anyway.
I uninstalled and reinstalled everything using the same guide mentioned above, and then it worked.
Now I can be friends with Oracle again.
Would be nice if the "Deinstall" removed the registry entries that caused this issue... -
Java.sql.SQLException: Error while trying to retrieve text for error ORA-12545
Hi,
I am getting the following error when i tried to connect to Oracle database from
a servlet. This exception is coming at the time of getting connection. And the
same code is working when i used in the standalone java program.
Oracle 8i database and WLS 6.0 are on the same UNIX machine.
---------attempting to connect ------
java.sql.SQLException: Error while trying to retrieve text for error ORA-12545
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java, Compiled
Code)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, Compiled C
ode)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled Code)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java, Com
piled Code)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va, Compiled Code)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled C
ode)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
e)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
e)
at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, Compiled Code
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
e)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
e)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java, Compiled Code)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java, Compiled Code)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java, Compiled Code)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled Co
de)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
Can any one help me out.
DurgaThe problem is solved after exprting the parameter ORACLE_SID=<database_name>
in Weblogic startup script.
thank u for the suggestions.
Durga
Joseph Weinstein <[email protected]> wrote:
>
>
Durga wrote:
Hi Joe,
I have checked the ORACLE_HOME parameter. There was a differnce. Ichanged to
/oracle/app/product/8.1.7
Now i am getting different exception. But still the standalone codeis working.
any clues why I am getting this exception. I will send the code andthe weblogic
properties file for reference if u need.Good. No, I don't need it. Now make sure the library path that the OS
uses to find
Oracle libraries, and our driver libraries etc., is in the same order
for the
server as for the shell that is successful on it's own. Make sure your
Oracle
client stuff is ahead of any weblogic libraries.
Joe
java.sql.SQLException: ORA-12547: TNS:lost contact
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java,Compiled
Code)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java,Compiled
C
ode)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, CompiledCode)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java,Com
piled Code)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java,Compiled
C
ode)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java,Compiled
C
ode)
at java.sql.DriverManager.getConnection(DriverManager.java,Compiled Cod
e)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java,Compiled Code
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.getRuntimeName(ServletStubI
mpl.java, Compiled Code)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java, Compiled Code)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:1631)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java,Compiled
Co
de)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, CompiledCode)
Joseph Weinstein <[email protected]> wrote:
The environment for the server probably doesn't have the same ORACLE_HOME
setting as your shell when you succeed in a standalone.
Also, you should be using our connection pools, and you should avoid
making DriverManager calls in any multithreaded app such as WebLogic.
Joe
Durga wrote:
Hi,
I am getting the following error when i tried to connect to Oracledatabase from
a servlet. This exception is coming at the time of getting connection.And the
same code is working when i used in the standalone java program.
Oracle 8i database and WLS 6.0 are on the same UNIX machine.
---------attempting to connect ------
java.sql.SQLException: Error while trying to retrieve text for errorORA-12545
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java,
Compiled
Code)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, CompiledC
ode)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled
Code)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java,Com
piled Code)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va, Compiled Code)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, CompiledC
ode)
at java.sql.DriverManager.getConnection(DriverManager.java, CompiledCod
e)
at java.sql.DriverManager.getConnection(DriverManager.java, CompiledCod
e)
at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, CompiledCode
at javax.servlet.http.HttpServlet.service(HttpServlet.java, CompiledCod
e)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, CompiledCod
e)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java, Compiled Code)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java, Compiled Code)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java, Compiled Code)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, CompiledCo
de)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
Can any one help me out.
Durga -
Sales order Userexit to copy item text from one line item to other
Hi Gurus,
I have an urgent issue. Based on item category in sales order, for one line item, I am getting item text. Now I have to copy same item text to other line item.
Till now I tried save_document_prep & save_document to
build object tdname & fetch all tdid from table stxh for object 'VBBP'.
After that READ_TEXT and SAVE_TEXT function module.
But during creation of sales order I am not able to get any value in STXH table for created sales order. Now I want to know from which internal table I can get item text ? (some internal table should be there like xvbap to get text per line item)
Or is there any other way to do this... Please help.
Points will be rewarded.
Thanks,Hi ,
try something like this .
l_name = ls_vbap-vbeln.
IF l_name IS INITIAL.
l_name = 'XXXXXXXXXX'.
ENDIF.
CONCATENATE l_name ls_vbap-posnr INTO l_name.
CALL FUNCTION 'READ_TEXT'
name = l_name
Regards
Prabhu -
Line after item in table ?
In my smartform , I have a table that prints line items...I need to add a line after each line item to seperate them ...how can i get that ?
I tried adding a text element after the item ....but i cant get the line to span the entire table width ?Hi,
There will be a place where you are populating the internal table in the smart form.
I guess the internal table will be populated through a loop or through some select statement.
IF it is through a loop then add the sentence which was suggested to add one blank line in between and if it is through a select then add a loop sentence
Loop at itab
append initial line
end loop
It all depends as to where you are populating your internal table
this should work.
prince. -
Format bold text in field and putting some text on new line - Help!
I am lost. I found the rich text formating item to click. But after that, I don't know what to do next. I want to bold some characters and I want some reponses on separate lines as I asked previously. As to spans and the commands - I have no programming experience. I have just been using what George has given me. It has worked well, but I just need the bold text in some of the field text to be printed and I need some items to be on separate lines. But I have no idea where to put the information you are saying about spans and I do not know the script to use to bold text or to start text on new line. Am I to insert it in the calculation box of the text box? Sorry to be so lame, but I am void in programming skills. Help!
For example, here is the script. In aISOreq{0], if I want to bold "Patter#1 Check:", where do I put the span and what script do I use to say to bold it. Could you give me an example, please. Also, if I want to put "a. Medications on weekend?" on one line and "b. Activities on weekends? Types of activities? Supervision? With who?" on the next line, where do I put the span and what script do I use to say to put on separate lines? Could you give me an example for this also, please. I have literally just used the scripts George has given me and they work great - but that is all I know how to do. Thanks.
(function () {
// Set up an array to hold the individual paragraphs of text
var aISOfreq= [];
// Populate the array with paragraph text
aISOfreq[0] = "Pattern #1: Multiple Isolations on Mon & Tues decreasing to Fri. Pattern # 1 Check: a. Medications on weekend? b. Activities on weekend? Types of activities? Supervision? With who?";
aISOfreq[1] = "Pattern #2: Multiple Isolations on specific days. Note days. Pattern #2 Check: a. Different schedule on these days? Different adult? Block schedule? May need consistent schedule w/same adult. b. Are accommodations/modifications occurring? More group v. individual instruction? Does the student need warm-up drills or a specific job? Does student need a specific lesson routine? c. Previous night's activities? Need calming activities before bed? Need earlier bedtime? Need additional evening structure?";
aISOfreq[2] = "Pattern #3: Isolations are grouped in intervals. Note interval. Pattern #3 Check: a. Cyclic behavior? Review assessment. Need Mental Health referral for meds and/or therapy intervention? b. Medication: supervision? Self-medicating? Taking consistently? Need medication check with physician? Share concerns with physician? c. History of legal/illegal drug abuse? Share cyclic pattern with physician. On probation? Share concerns with PO?";
aISOfreq[3] = "Patterns #1 & #2: Multiple Isolations on Mondays & Tuesdays decreasing to Fridays AND Multiple Isolations on specific days. Note days. Pattern #1 Check: a. Medications on weekend? b. Activities on weekend? Types of activities? Supervision? With whom? Pattern #2 Check: a. Different schedule on specific days? Different Adult? Block schedule? May need consistent schedule with same adult. b. Accommodations/modifications occurring? More group v. individual instruction? Need warm-up drills or specific job? Need a specific lesson routine? c. Previous night's activities? Need calming activities before bed? Need earlier bedtime? Need additional evening structure? ";
aISOfreq[4] = "Patterns #1 & #3: Multiple Isolations on Mondays & Tuesdays decreasing to Fridays AND Isolations grouped in intervals. Note intervals. Pattern #1 Check: a. Medications on weekend? b. Activities on weekend? Types of activities? Supervision? With whom? Pattern #3 Check: a. Cyclic behavior? Review assessment. Need Mental Health referral for meds and/or therapy intervention? b. Medication supervision? Self-medicating? Taking consistently? Need med check with physician? Share concerns with physician? c. History of legal/illegal drug abuse? Share cyclic pattern with physician. On probation? Share concerns w/PO?"
aISOfreq[5] = "Patterns #2 & #3: Multiple Isolations on a specific day AND Isolations grouped in intervals. Note days & intervals. Pattern #2 Check: a. Different schedule? Different Adult? Block schedule? May need consistent schedule w/same adult. b. Accommodations/Modifications occurring? More group v. individual instruction? Need warm-up drills or a specific job? Need a specific lesson routine? c. Previous night's activities? Need calming activities before bed? Need earlier bedtime? Need additional evening structure? Pattern #3 Check: a. Cyclic behavior? Review assessment. Need Mental Health referral for medication and/or therapy intervention? b. Medication supervision? Self-medicating? Taking consistently? Need medication check with physician? Share concerns with physician? c. History of legal/illegal drug abuse? Share cyclic pattern with physician. On probation? Share concerns w/PO?";
aISOfreq[6] = "Patterns #1, #2 & #3: Multiple Isolations on Mondays & Tuesdays decreasing to Friday, Multiple Isolations on specific days AND Isolations grouped in intervals. Note days and intervals. Pattern #1 Check: a. Medications on weekend? b. Activities on weekend? Types of activities? Supervision? With whom? Pattern #2 Check: a. Different schedule? Adult? Block schedule? May need consistent schedule w/same adult. b. Accommodations/Modifications occurring? More group v. individual instruction? Need warm-up drills or a specific job? Need a specific lesson routine? c. Previous night's activities? Need calming activities before bed? Need earlier bedtime? Need additional evening structure? Pattern #3 Check: a. Cyclic behavior? Review assessment. Need Mental Health referral for medication and/or therapy intervention? b. Medication supervision? Self-medicating? Taking consistently? Need medication check with physician? Share concerns with physician? h. History of legal/illegal drug abuse? Share cyclic pattern with physician. On probation? Share concerns w/PO?";
aISOfreq[7] = "No Pattern";
// Get the selected item, which is the export value of the selected combo box item
var item = getField("ISO Frequency Pattern").value;
// Display the text corresponding to the selected item in the text field
event.value = aISOfreq[item];Look at the reference of the richValue property of the Field object. It contains a couple of examples of how it should be done. Also read the reference of the Span object.
-
Sapscript : Printing Text In same line
Hi Friends,
I have created 2 standard text.
I want to print the follwing in the same line -
First standard text + <A hard coded value> + Second standard text.
<b> I have coded like this -</b>
/: INCLUDE SLP OBJECT TEXT ID ST LANGUAGE ZH
= : 999
/: INCLUDE YEARS OBJECT TEXT ID ST LANGUAGE ZH
First two are coming in the same line but third one is coming in second line.
Please suggest.
Regards
KishorHii
'=:' works but try it by increasing your window size
otherwise use READ_TEXT fm
You pass it the Text Identification Details
and it will retrieve the texts into the internal table (IT_TEXTS).
Internal table to store standard texts
DATA: IT_TEXTS like T_LINE occurs o with header line.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = "Text ID
language = "Laguage
name = "Text name
object = "text object
ARCHIVE_HANDLE = 0
IMPORTING
HEADER =
tables
lines = IT_TEXTS "Internal table
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.
The main inputs for the FM are Text name, Language, Text ID and Text object and can be located using the following procedure.
<b>Step 1 Display the desired text with transaction (i.e. ME23)
Step 2 Show long text for a particular text (i.e. Deliver To)
Step 3 Select Header from the Goto menu (Goto->Header). The following screen should appear displaying info needed to retrieve text using the READ_TEXT function module (Text name, Language, Text ID, Text object)</b>
Regards
Naresh -
Horizontal Line After One Section Complete
Hi,
can we pass an Horizontal Line After TEXT ITEM In New Line.
I want to display line after one part .i have three part like General Information Section ,Personal Information Section Contact Information section and Experience Section .
i want to Devided these Region using Horizontal Line.
How can i do this.
ThanksHi,
Thanks to reply me.
It's Good But Not sufficient for me.
i am using only one region and i want to devided item using Horizontal Line in Three Section .How can i do this with one region.
How to divide One region in Multiple Section and how to put item in that section.
How can i do this.
Thanks -
Hello All,
I have verified entire otn community, but none of the solution working for me and hence posting this problem. I'm getting below error message when I try to connect from oracle 11g to sqlserver database. All details are given below and request some body to provide resolution.
Oracle 11 g server installed in "Red Hat Enterprise Linux Server release 6.3"
Sqlserver running in Windows server enterprise 64bit OS.
$ cat initdg4msql.ora
# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Microsoft SQL Server
# HS init parameters
HS_FDS_CONNECT_INFO=[SJCGNMWQA2WEB01]:SQLEXPRESS//msdb
# alternate connect format is hostname/serverinstance/databasename
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
$ cat listener.ora
# listener.ora Network Configuration File: /home/oracle/11g/product/11/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = dg4msql)
(ORACLE_HOME = /home/oracle/11g/product/11)
(PROGRAM = dg4msql)
$ cat tnsnames.ora
# tnsnames.ora Network Configuration File: /home/oracle/11g/product/11/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
GNMDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = sjcgnm62v2db1.skta.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = GNMDB)
dg4msql =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = sjcgnm62v2db1.skta.com)(PORT = 1521))
(CONNECT_DATA = (SID = msdb))
(HS = OK)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = sjcgnm62v2db1.skta.com)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
ADR_BASE_LISTENER = /home/oracle/11g
Output of lsnrctl start
$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 22-NOV-2013 15:17:08
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /home/oracle/11g/product/11/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.3.0 - Production
System parameter file is /home/oracle/11g/product/11/network/admin/listener.ora
Log messages written to /home/oracle/11g/diag/tnslsnr/sjcgnm62v2db1/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sjcgnm62v2db1.skta.com)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=sjcgnm62v2db1.skta.com)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 22-NOV-2013 15:17:08
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/11g/product/11/network/admin/listener.ora
Listener Log File /home/oracle/11g/diag/tnslsnr/sjcgnm62v2db1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sjcgnm62v2db1.skta.com)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "dg4msql" has 1 instance(s).
Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
SQL> CREATE PUBLIC DATABASE LINK sqlserver CONNECT TO "sa" IDENTIFIED BY "gnm123" USING 'dg4msql';
Database link created.
SQL> select * from dual@sqlserver;
select * from dual@sqlserver
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from SQLSERVER
SQL> select * from "sys"."tables"@sqlserver;
select * from "sys"."tables"@sqlserver
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from SQLSERVER
Pl help.Hi Klaus,
I just pick the gateway 11.2.0.3 patch to the installation. Here I got error and patch installation failed.
[oracle@sjcgnm62v2db1 13092292]$ opatch apply
Invoking OPatch 11.2.0.1.7
Oracle Interim Patch Installer version 11.2.0.1.7
Copyright (c) 2011, Oracle Corporation. All rights reserved.
Oracle Home : /home/oracle/11g/product/11
Central Inventory : /home/oracle/oraInventory
from : /etc/oraInst.loc
OPatch version : 11.2.0.1.7
OUI version : 11.2.0.3.0
Log file location : /home/oracle/11g/product/11/cfgtoollogs/opatch/opatch2013-11-26_12-41-27PM.log
Applying interim patch '13092292' to OH '/home/oracle/11g/product/11'
Verifying environment and performing prerequisite checks...
Prerequisite check "CheckApplicable" failed.
The details are:
Patch 13092292: Required component(s) missing : [ oracle.rdbms.tg4db2, 11.2.0.3.0 ]
[ Error during Prerequisite for apply Phase]. Detail: ApplySession failed during prerequisite checks: Prerequisite check "CheckApplicable" failed.
Log file location: /home/oracle/11g/product/11/cfgtoollogs/opatch/opatch2013-11-26_12-41-27PM.log
Recommended actions: This patch requires some components to be installed in the home. Either the Oracle Home doesn't have the components or this patch is not suitable for this Oracle Home.
OPatch failed with error code 39
[oracle@sjcgnm62v2db1 13092292]$
Pl help. -
Get line that contains and then get the second and fourth line after that.
So I have a text file and I want it to find all the lines in the file that contain an @ symbol and then I want it to get that line and the line second and fourth from that line. Then I would export it like this:
$linewith@ + ":" + $secondline + ":" + $fourthline
Finding the lines with an @ symbol is easy, but how would I tell it to get the second and fourth line after the line with an @ symbol?
So I would get the lines with something like this:
foreach ($line in [System.IO.File]::ReadLines($filename)) {
if($line.contains("@")){}That worked perfectly thanks man! Here is the entire code. I'm sure it could been cleaned up. I'm still learning powershell.
$username = "Username"
$password = "Password"
$url = "http://URL"
$ie = New-Object -com InternetExplorer.Application
$ie.visible=$false
$ie.navigate($url)
while($ie.ReadyState -ne 4) {start-sleep -m 100}
$ie.document.getElementById("username").value = "$username"
$ie.document.getElementById("password").value = "$password"
$ie.document.getElementById("click").click()
start-sleep 20
$ie.Document.body.innertext | Out-File -FilePath c:\web.txt
$links = $ie.Document.getElementsByTagName('A')
$logout = $links | where {$_.innerText -eq 'logout'}
$logout.click()
start-sleep 5
(gc C:\web.txt) | ? {$_.trim() -ne ""} | set-content C:\web.txt
( Get-Content C:\web.txt | Select-Object -Skip 2 | ForEach-Object { $_.TrimStart( " " ) } ) | Set-Content C:\web.txt
start-sleep 5
$fileContents = Get-Content C:\web.txt
foreach ($line in $fileContents) {
if ($line -like '*@*') {
$line + ":" + $($fileContents[$line.ReadCount+0]) + ":" + $($fileContents[$line.ReadCount+3]) | Out-File -FilePath c:\finish.txt -Append
Maybe you are looking for
-
Connect to two networks?
I'm using my next door neighbors wi-fi (splitting the bill with him). I'm trying to use my AE in (Bridge? mode) connected to my Lacie external harddrive. I set up the AE "internet" for "Off (bridge mode)" and my external harddrive shows up under "dis
-
So I'm trying to create a chart that groups an aggregate function by the primary key. On the label, I cannot figure out how to query a lable that shows the primary key and the name of the customer that is located in a different table. I'm learning ho
-
Hi, I have bought the Officejet 6500A plus recently and i use the wireless /network connection. When i try to print a file from a program like word it prints the file very fast, but when i try to print a page from a web page (the all page as it is in
-
Updates download impossible ??
Since I bought the new MacBookPro 17inch, I am trying to download the updates without succes. I constantly have this error message at the end of the download : Can't be installed "Error NSURLE Error Domain -1005 (-1005)" Does anyone know what that me
-
Verizon.ne​t home page
Would you please do something about all the "stuff" on the home page There is so much I can't see a video clip. It Bounces around so much it is annoying. I have to go to the comcast home page to see the news. Also the selections for email etc are so