How to identify end of the string is ABAP
Hi friends,
While I am doing an operation on a string, I want to identify the end of the string. In C we have <b>\0</b>. But in SAP how can we identify that we have reached the end of the string.
Sathish Reddy.
use this function and get there 1st character
CALL FUNCTION 'STRING_REVERSE'
EXPORTING
STRING = ZFNAME
LANG = SY-LANGU
IMPORTING
RSTRING = ZFNAME
EXCEPTIONS
TOO_SMALL = 1
OTHERS = 2.
IF SY-SUBRC EQ 0.
WRITE:/ ZFNAME.
ELSE.
WRITE:/ 'ERROR REVERSING STRING'.
ENDIF.
Similar Messages
-
How to identify who ran the last process chain?
Hi all,
How to identify, who ran the last process chain for a PROCESS CHAIN NAME xyz in the production system?
ThanksHello,
Go To RSPC1 give your process chain name (Go to LOG View ) there you will get Date selectin screen (give This Month and last Month or as per your reqirement) there you can see who ran the process chain with ID.
Regards,
Edited by: Subbu_Amar on Oct 13, 2010 5:01 AM -
How to identify and update the DB parameters (no SYS access)
Hi experts,
I have to check some parameter values for an OID tuning
I do not have sys access, I have only schema user access
Now how do I see the values of SGA_TARGET, db_cache_size etc parameter
I manage to see these var in init.ora file under /dbs folder but there are 2-3 spfile also having containing these attributes, not sure which reflect the actual.
Also can I alter also these value via schema user or do I need SYS access?
Would appreciate if i can get help in this
Thank youDK2010 wrote:
Hi,
Welcome to the forum,
You need DBA access to see the value and sysdba access to alter the value.
if you are able to check the file under the /dbs then you can identify the spfile naming with your database name
generally it look like
spfile<sid>.ora of init<sid>.ora
you can use the cat command to see the value like
cat init<sid>.ora|grep -i sga
HTH'cat' will work, but since the spfile is a binary file, the 'strings' command would be the better choice:
oracle:hr91dvvb$ ls -l spfile*
-rw-r----- 1 oracle dba 2560 Apr 22 15:53 spfilehr91dvvb.ora
oracle:hr91dvvb$ cat spfilehr91dvvb.ora
C"ݾoè{0CC"!r91dvvb.__db_cache_size=339738624
hr91dvvb.__java_pool_size=4194304
hr91dvvb.__large_pool_size=4194304
hr91dvvb.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment
hr91dvvb.__pga_aggregate_target=339738624
hr91dvvb.__sga_target=503316480
hr91dvvb.__shared_io_pool_size=0
hr91dvvb.__shared_pool_size=146800640
hr91dvvb.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/hr91dvvb/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/oradata/hr91dvCC",2vb/control01.ctl','/oradata/hr91dvvb/control02.ctl','/oradata/hr91dvvb/control03.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='hr91dvvb'
*.db_unique_name='hr91dvvb'
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=hr91dvvbXDB)'
*.memory_target=842006528
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS1'
CC"GeCC"FeCPuTTYPuTTY
oracle:hr91dvvb$ PuTTYPuTTY
oracle:hr91dvvb$ strings spfilehr91dvvb.ora
hr91dvvb.__db_cache_size=339738624
hr91dvvb.__java_pool_size=4194304
hr91dvvb.__large_pool_size=4194304
hr91dvvb.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment
hr91dvvb.__pga_aggregate_target=339738624
hr91dvvb.__sga_target=503316480
hr91dvvb.__shared_io_pool_size=0
hr91dvvb.__shared_pool_size=146800640
hr91dvvb.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/hr91dvvb/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/oradata/hr91dv
vb/control01.ctl','/oradata/hr91dvvb/control02.ctl','/oradata/hr91dvvb/control03.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='hr91dvvb'
*.db_unique_name='hr91dvvb'
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=hr91dvvbXDB)'
*.memory_target=842006528
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS1'
oracle:hr91dvvb$
{code} -
Hi friends,
I need to add one horizontal line for the detail section at the end of the page.
I tried to put that line in page footer and i tried with Box also. Both are not properly working. Some space problem is coming.
Is there any feature to find end of the Page.
I want report format like this.
set id | set name | date Name
1 x dddd vijay
dddd sarathi
dddd reddy
(End of the page)
Thanks in advance...
vijay.Do you know how many detail records are showing up per page?
If you do - you could create a Details B section that is suppressed except for on Record N (where N is a counter, and N is the last Detail record that will show up on a page).
The Page footer is indeed built so that it will be rendered at the bottom of your physical page of paper. -
How to find out whether the String contains chinese characters
I need to check if the string contains chinese characters in Java. Does anyone know how to do it? thx.
Since Java strings contain UNICODE code points, check the content against the relevant page here - http://www.unicode.org/charts/ .
-
How can I find out the strings that will be presented to the UI
Hi All,
I am working on a Swing based application (Swing based UI)
I am requested to do the following on the bytecode of that application:
I am supposed to find out what strings from within that bytecode will be presented to the UI and what will be used for an internal usage.
i have no way of running the application to verify that, i can only work on the static bytecode files.
hard question ha?
Thanks,
EItan.You would of course have to run it. Either via a VM or recreating a VM yourself.
As an example of that how would you figure out what string occurs in the following (pseudo) code?
String msg = (cnt > 1) ? ("files=" + cnt) : ("file=" + cnt);
if (cnt > 1) DisplayMessage(msg); -
How to calculate length of the string in transformation file
Hello all
I have tried a number of ways and I am not able to calculate the length of the incoming field in transformation file for my data load. Here is the issue.
I have an incoming string of length 10 and I need to use it to update multiple dimensions which will need first 2, 4 ,6 , 8 characters respectively.
Now in transformation file ID=ID(1:2) works perfect. However, the BW InfoObject will have multiple values as shown below:
ID
Description
AB
Business
ABCD
Business Organization
ABCDEF
Business Line
ABCDEFGH
Product Family
ABCDEFGHIJ
Product Line
ABCDEFGHIJKL
Brand
I want to update my dimension for Business Organization. I need to update only the records where the length of the incoming string is 4. If I do ID(1:4), I will get the duplicate records and will see the ID less than 4 characters in rejected records. The latter is not such a big issue but the former one is as I need to fetch the right description as well. The formula should check the length and then only pass the record else a dummy value.
A formula to achieve this in the transformation file is what I am looking for.
Regards
GajendraThanks Vadim for the quick response!
I am also trying something similar and really appreciate your input here. However, I am not sure if the conversion is really happening.
Here is what I have done:
But the strings <> 4 in length are still passing through. -
How to handle comma in the string
I need compare a string in HTMLDB report, as
Select HOST, MODEL
From hwrpt
WHERE MODEL= :P3_MODEL
Since most IBM models has 'IBM, XXXX-YYY' syntax for P3:_MODEL, the query failed. I tried to use single/double quoe but failed too.
Is there a function/syntex I can use to handle comma in the string?You need no special quoting because there is a comma in the text string. I was able to do the following:
1) Created a table named HWRPT with columns HOST and MODEL.
2) Inserted one record with the value of IBM, XXXX-YYY in the model column.
3) I created an unconditional branch back to page 2. I created a SQL Report region with the following Select: Select HOST, MODEL From hwrpt
4) Created a Text item P2_MODEL on page 2.
5) Added the following text to the SELECT statement for the report region: where model = :p2_model
6) Ran the page and put IBM, XXXX-YYY in P2_MODEL and pressed the ENTER key.
7) The row was displayed. -
How to use "SPLIT" on the string
Hi,
i am using split on an internal table where the field in the table is a string.
the following is the code.
TYPES:BEGIN OF IT_MAT,
MATERIAL TYPE STRING,
END OF IT_MAT.
DATA IT_MATERIAL TYPE IT_MAT OCCURS 0
WITH HEADER LINE.
and after populating the internal table with some string values
i am using this statement:-
split it_material at '|' into it_result_table-field1 w_remaining.
Here i am getting an error message saying that it_material must be a character-type data object.
please help me out in this
thanks
kumarHi kumar,
Please check this thread by clicking on the below link. It will solve ur problem.
Re: how to Split a String ?
Regards,
KK -
How to get pixes of the String ?
In Stirng Object ,it'a provide String.length() to get the length of String ,But I tried to get the pixes of this Stirng . How can I do that?
Best regards.Sorry,I would not describe this clearly.
Exapmle we use below methed:
public void paint( Graphics g )
g.drawRect( 100,100 , 10, 10 )
It's will paint a Rectangle with 10 "pixes" width and 10 "pixes" height on itself component . -
How To: Identifying and locating the correct driver for your device
I installed a new version of windows 7 on my laptop. But im having issues locating the right drivers for it., Nothing is working correctly and its so Annoying. Can Anyone help me. When i put in the model number it says its not found, But its a satelitte L577D-35204 or the serial no. is XXXXXXXXX. Please help me. Thanks.
[Moderator edit to remove serial number.]
Solved!
Go to Solution.satelitte L577D-35204 - can you check the model number again this does not look right. also add the part number is on the tag. SEE PICTURE-
S70-ABT2N22 Windows 7 Pro & 8.1Pro, C55-A5180 Windows 8.1****Click on White “Kudos” STAR to say thanks!****
Attachments:
how to find model number.png 1082 KB -
How to identify who made the changes to the tfs security
Hi All,
We are into a weird situation. In our environment we create groups TFS_Project admins, TFS_Contributors, TFS_buildusers, TFS_Readers in AD for every new project and added to corresponding group on the Team project level.
One of the users is a member of TFS_project admins and TFS_contributors. Next day he is not belongs to any group. Some one has been removed him from the groups.
Question: how to find, who has deleted the user from the groups.
Please help on this .. very high priority issue.
Thanks,
RajukumarHello,
Go To RSPC1 give your process chain name (Go to LOG View ) there you will get Date selectin screen (give This Month and last Month or as per your reqirement) there you can see who ran the process chain with ID.
Regards,
Edited by: Subbu_Amar on Oct 13, 2010 5:01 AM -
How to identify or track the latest changes in database objects
Hi,
I am working in an application which has Oracle 10 g for backend.
the application in total has around 30 tables and around 25 packages. I want to track the latest changes made in database. The database is accessible to my team of 20 members and i want to keep track what all changes in database(tables ,packages) are being made by them.Which package or table is being affected?
Can yanyone please suggest how to track the same?To track table changes see following discussion: Re: How to find Last modified/updated time of a particular table
-
How to identify nor recover the query created on the production??
Hi all,
i have created a query directly on the productions server. And someone has deleted the query on the production server direclty.
is there any way that can i get back the query on the production nor identify who has deleted the query on the production.
thanks
poojaanswered
-
How to get pattern from the string?
Friends,
I have 3 strings variables.
Name1,Name2 and Name 3.
I want to search following terms in above variables.
'T1' 'TURC1' 'TURC 1' and 'TURC 1X' " X=any character
'T2' 'TURC1' 'TURC 2' and 'TURC 2X' " X=any character
'T3' 'TURC1' 'TURC 3' and 'TURC 3X' " X=any character
'T4' 'TURC1' 'TURC 4' and 'TURC 4X' " X=any character
If T1 found, then v_res = 1.
If TURC1 found, then v_res = 1.
If TURC 1 found, then v_res = 1.
If TURC1X found, then v_res = 1X.
Same for 2 3 and 4.
So, How can I do this?Hi,
Try below code
Do for remaining same Strings
DATA : name1 TYPE string,
name11 TYPE string,
name2 TYPE string,
name3 TYPE string.
DATA : v_res(2) TYPE n,
w_fdpos TYPE sy-fdpos,
str TYPE i,
ch TYPE c.
name1 = 'ABCT1XRYTURC1JJTURC 1LLTURC 1A'.
str = STRLEN( name1 ).
FIND 'T1' IN name1.
IF sy-subrc = 0.
v_res = 1.
FIND 'TURC1' IN name1.
IF sy-subrc = 0.
v_res = 1.
SEARCH name1 FOR 'TURC 1'.
IF sy-subrc = 0.
v_res = 1.
w_fdpos = syst-fdpos.
w_fdpos = w_fdpos + 6.
str = str - w_fdpos.
name11 = name1+w_fdpos(str).
SEARCH name11 FOR 'TURC 1'.
IF sy-subrc = 0.
CLEAR w_fdpos.
w_fdpos = sy-fdpos.
w_fdpos = w_fdpos + 6.
ch = name11+w_fdpos(1).
CONCATENATE '1' ch INTO v_res.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
FIND 'T2' IN name1.
IF sy-subrc = 0.
v_res = 1.
FIND 'TURC2' IN name1.
IF sy-subrc = 0.
v_res = 1.
SEARCH name1 FOR 'TURC 2'.
IF sy-subrc = 0.
v_res = 1.
w_fdpos = syst-fdpos.
w_fdpos = w_fdpos + 6.
str = str - w_fdpos.
name11 = name1+w_fdpos(str).
SEARCH name11 FOR 'TURC 2'.
IF sy-subrc = 0.
CLEAR w_fdpos.
w_fdpos = sy-fdpos.
w_fdpos = w_fdpos + 6.
ch = name11+w_fdpos(1).
CONCATENATE '1' ch INTO v_res.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
FIND 'T3' IN name1.
IF sy-subrc = 0.
v_res = 1.
FIND 'TURC3' IN name1.
IF sy-subrc = 0.
v_res = 1.
SEARCH name1 FOR 'TURC 3'.
IF sy-subrc = 0.
v_res = 1.
w_fdpos = syst-fdpos.
w_fdpos = w_fdpos + 6.
str = str - w_fdpos.
name11 = name1+w_fdpos(str).
SEARCH name11 FOR 'TURC 3'.
IF sy-subrc = 0.
CLEAR w_fdpos.
w_fdpos = sy-fdpos.
w_fdpos = w_fdpos + 6.
ch = name11+w_fdpos(1).
CONCATENATE '1' ch INTO v_res.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
FIND 'T4' IN name1.
IF sy-subrc = 0.
v_res = 1.
FIND 'TURC4' IN name1.
IF sy-subrc = 0.
v_res = 1.
SEARCH name1 FOR 'TURC 4'.
IF sy-subrc = 0.
v_res = 1.
w_fdpos = syst-fdpos.
w_fdpos = w_fdpos + 6.
str = str - w_fdpos.
name11 = name1+w_fdpos(str).
SEARCH name11 FOR 'TURC 4'.
IF sy-subrc = 0.
CLEAR w_fdpos.
w_fdpos = sy-fdpos.
w_fdpos = w_fdpos + 6.
ch = name11+w_fdpos(1).
CONCATENATE '1' ch INTO v_res.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
Regards
Bala Krishna
Maybe you are looking for
-
Hi Friends, I'm experiencing some problems with the Partner Application that comes in Java version of PDK. Debugging the code in JDeveloper 3.2 all process stop when I try to create a new SSOEnablerBean.. the application just freeze out.. and return
-
Dyanamic Configuration at receiver file adapter determine target directory
Hi Experts, I have a requirement to determine the target directory during runtime. From the source side one particular field determine the Target directory where you need to place file ECC - PI - File adapter - this is the scenario In target side 3 d
-
My cursor automatically but sporadically clicks/selects whatever image it is left on. I do have the "ignore accidential input" box checked. What to do? This also seems to have happened since my latest software, firmware, intel upgrades.
-
Error:System not assigned to a host
Hi, I am trying to download maintenance stk SRM 7.0 SPS 5.0, via solman, but I am getting the error called "Error:System not assigned to a host" in the stage where solman looks for OS/DB dependent files. When I go back and check the entries in SMSY,
-
Premiere Pro/After Effects -learning proper workflow?
I'm just beginning with video editing in Premiere Pro/After effects. I have used more basic apps such as iMovie and GoPro Studio. I understand the principles of post production for still images as I am a veteran photo retoucher. But as I want to prod