Check for spaces embedded with in a field
Hi,
I need to check for spaces in a field. The field is char(8). I need to check for spaces in between.
Example:
' 1 2'
'1 2'
' 12'
Leading spaces and spaces between the chars. the spaces can be more than 1.
Is this possible in just SQL?
Hi !
I have done "something" what shows you at which postion is space in string
( but i'm not very satisfied with this .. code :)
SQL>
SQL> with data as ( select ' 1 2' str from dual union all
2 select '1 2' str from dual union all
3 select ' 12' str from dual )
4 select distinct str,instr(str,' ',1,level) pos from
5 (select str , max(level) i from data
6 group by str
7 connect by level <= length(str) - length(replace(str,' ','')) )
8 connect by level <= i order by 1,2
9 /
STR POS
1 2 1
1 2 3
12 1
1 2 2
SQL> T
Similar Messages
-
Hi,
I have requirement , where I'm supposed to check for a Comma (,) in an address field and send tht (,) as blank space to the workarea.
Do we have any FM or any check method for this.
Plz tell me.
Rohini.Hi,
say address fields is "v_addr"
DATA : v_len TYPE I,
v_cnt1 TYPE i,
v_cnt2 TYPE I value 1.
v_addr = 'adresss,fiedls '.
v_len = strlen( v_addr ) .
DO v_len TIMES.
IF v_addr+v_cnt1(v_cnt2) EQ ',' .
v_addr+v_cnt1(v_cnt2) = ' '.
v_cnt1 = v_cnt1 + 1.
ENDIF.
ENDDO. -
Does Kodo 4.1 support embedded with the owner-field attribute?
Does Kodo 4.1 support embedded with the owner-field attribute?
My investigations so far say no, that it is infact ignored. This is a very serious problem for the project I am working on.
Please proove me wrong...A lot of it stems from the large and complex nature of the models we employ. Hardly a week goes by that we don't grind to a halt due to a bug in jpox. That then leeds to the thorny problem of trying to discuss the problem on the jpox forums, where there are basically only two members that know the product well enough to help... Net result, they are overwhelmed, and from one of them it comes across in the rudeness of replies. This puts people off, including us.
I contrast this with the Hibernate and Spring communities, which I have personally been involved with and found to be both thriving and rewarding.
A bit of QA and respecteful support will be wonderfull. We are happy to pay a company for that because of the man hours it saves. I sincerely hope that Kodo JDO works out for us. -
Duplicate entry check in Tb control with 6 same fields
actualy i have made a table control with six same fields.
batch1 batch2 batch3 batch4 batch5 batch6
the data type of all fields is same.
i want to assign a check for duplicate entries.
the value entered in batch1 (say bgp000001). then it cannot be entered in any row or column of table control.that means this value bgp000001 cannot be entered again in entire table control.
although i have been able to create a validation for table control current line.
In PAI
loop at i_packcase.
FIELD I_PACKCASE-batch1 MODULE CHECK_CRTNO1_0107.
FIELD I_PACKCASE-batch2 MODULE CHECK_CRTNO2_0107.
FIELD I_PACKCASE-batch3 MODULE CHECK_CRTNO3_0107.
FIELD I_PACKCASE-batch4 MODULE CHECK_CRTNO4_0107.
FIELD I_PACKCASE-batch5 MODULE CHECK_CRTNO5_0107.
FIELD I_PACKCASE-batch6 MODULE CHECK_CRTNO6_0107 .
endloop.
corresponding modules are coded as below:
there is no check in field-batch1( as this is the first entry in table contrl)
module check_crtno2_0107 input.
if i_packcase-batch2 eq i_packcase-batch1.
message v_duplicate type 'E' display like 'I'.
endif.
endmodule.
module check_crtno3_0107 input.
if i_packcase-batch3 eq i_packcase-batch2
or i_packcase-batch3 eq i_packcase-batch1.
concatenate 'CASE' i_packcase-batch3
' ALREADY ENTERED' into v_duplicate.
message v_duplicate type 'E' display like 'I'.
endif.
endmodule.
similarly field-batch6 is checked against all previous 5 fields
this works only for current line of table control.
*now i want to extend this check to all lines of table control.Hi,
Save the entries of each row and column into an internal table containing one field (fieldx) the required data type. Delete adjacaent duplicates for the internal table. If successful, give error message as required.
Loop at i_packcase.
itab-fieldx = i_packcase-batch1.
append itab.
itab-fieldx = i_packcase-batch2.
append itab.
itab-fieldx = i_packcase-batch3.
append itab.
itab-fieldx = i_packcase-batch4.
append itab.
itab-fieldx = i_packcase-batch5.
append itab.
itab-fieldx = i_packcase-batch6.
append itab.
endloop.
delete adjacent duplicates from itab comparing fieldx.
if sy-subrc eq 0.
****appropriate error message****
endif.
Regards,
Konda Sravanthi. -
Mail crashes when checking for new mail (with crashreport)
Hello everyone
Can someone shed light on this crashreport?
The crash happens everytime Mail.app tries to download new mailmessages.
Process: Mail [320]
Path: /Applications/Mail.app/Contents/MacOS/Mail
Identifier: com.apple.mail
Version: 3.1 (914)
Build Info: Mail-9140000~1
Code Type: X86 (Native)
Parent Process: launchd [158]
Date/Time: 2008-02-10 09:00:25.820 +0100
OS Version: Mac OS X 10.5.1 (9B18)
Report Version: 6
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 19
Thread 19 Crashed:
0 libSystem.B.dylib 0x935a647a __kill + 10
1 libSystem.B.dylib 0x9361d782 raise + 26
2 libSystem.B.dylib 0x9362cd3f abort + 73
3 com.apple.MessageFramework 0x0046b8ce sqlite3_traceCallback + 0
4 com.apple.MessageFramework 0x003631ba +[Library insertOrUpdateMessages:withMailbox:fetchBodies:isInitialImport:oldMessagesByNew Message:remoteIDs:newDocumentIDs:setFlags:clearFlags:messageFlagsForMessages:cop yFiles:progressDelegate:updateRowIDs:] + 2261
5 com.apple.MessageFramework 0x00466efe -[LibraryStore appendMessages:unsuccessfulOnes:newMessageIDs:newMessages:newDocumentIDsByOld:f lagsToSet:forMove:error:] + 767
6 com.apple.MessageFramework 0x003e8803 -[MessageStore appendMessages:unsuccessfulOnes:newMessageIDs:newMessages:flagsToSet:forMove:er ror:] + 92
7 com.apple.MessageFramework 0x00386090 -[MessageStore appendMessages:unsuccessfulOnes:newMessageIDs:newMessages:flagsToSet:forMove:] + 85
8 com.apple.MessageFramework 0x00386035 -[MessageStore appendMessages:unsuccessfulOnes:newMessageIDs:newMessages:flagsToSet:] + 77
9 com.apple.MessageFramework 0x00385fe2 -[MessageStore appendMessages:unsuccessfulOnes:newMessageIDs:newMessages:] + 70
10 com.apple.MessageFramework 0x00385f96 -[MessageStore appendMessages:unsuccessfulOnes:newMessageIDs:] + 63
11 com.apple.MessageFramework 0x00385f51 -[MessageStore appendMessages:unsuccessfulOnes:] + 56
12 com.apple.MessageFramework 0x00360330 -[MessageStore finishRoutingMessages:routed:] + 388
13 com.apple.MessageFramework 0x003edcf6 -[MessageRouter routeQueuedMessages] + 953
14 com.apple.CoreFoundation 0x938d7b9d _invoking__ + 29
15 com.apple.CoreFoundation 0x938d7588 -[NSInvocation invoke] + 136
16 com.apple.MessageFramework 0x003d0a05 -[MonitoredInvocation invoke] + 409
17 com.apple.MessageFramework 0x003d18c7 +[WorkerThread _execute:] + 144
18 com.apple.Foundation 0x9393804d -[NSThread main] + 45
19 com.apple.Foundation 0x93937bf4 _NSThread__main_ + 308
20 libSystem.B.dylib 0x93569075 pthreadstart + 321
21 libSystem.B.dylib 0x93568f32 thread_start + 34
Here is another crash from thread 17:
Process: Mail [492]
Path: /Applications/Mail.app/Contents/MacOS/Mail
Identifier: com.apple.mail
Version: 3.1 (914)
Build Info: Mail-9140000~1
Code Type: X86 (Native)
Parent Process: launchd [158]
Date/Time: 2008-02-10 09:36:19.146 +0100
OS Version: Mac OS X 10.5.1 (9B18)
Report Version: 6
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 17
Thread 17 Crashed:
0 libSystem.B.dylib 0x9361967e _semwait_signalnocancel + 10
1 libSystem.B.dylib 0x9360b547 usleep$NOCANCEL$UNIX2003 + 61
2 libSystem.B.dylib 0x9362cd4b abort + 85
3 com.apple.MessageFramework 0x0046b8ce sqlite3_traceCallback + 0
4 com.apple.MessageFramework 0x003631ba +[Library insertOrUpdateMessages:withMailbox:fetchBodies:isInitialImport:oldMessagesByNew Message:remoteIDs:newDocumentIDs:setFlags:clearFlags:messageFlagsForMessages:cop yFiles:progressDelegate:updateRowIDs:] + 2261
5 com.apple.MessageFramework 0x00466efe -[LibraryStore appendMessages:unsuccessfulOnes:newMessageIDs:newMessages:newDocumentIDsByOld:f lagsToSet:forMove:error:] + 767
6 com.apple.MessageFramework 0x003e8803 -[MessageStore appendMessages:unsuccessfulOnes:newMessageIDs:newMessages:flagsToSet:forMove:er ror:] + 92
7 com.apple.MessageFramework 0x00386090 -[MessageStore appendMessages:unsuccessfulOnes:newMessageIDs:newMessages:flagsToSet:forMove:] + 85
8 com.apple.MessageFramework 0x00386035 -[MessageStore appendMessages:unsuccessfulOnes:newMessageIDs:newMessages:flagsToSet:] + 77
9 com.apple.MessageFramework 0x00385fe2 -[MessageStore appendMessages:unsuccessfulOnes:newMessageIDs:newMessages:] + 70
10 com.apple.MessageFramework 0x00385f96 -[MessageStore appendMessages:unsuccessfulOnes:newMessageIDs:] + 63
11 com.apple.MessageFramework 0x00385f51 -[MessageStore appendMessages:unsuccessfulOnes:] + 56
12 com.apple.MessageFramework 0x00360330 -[MessageStore finishRoutingMessages:routed:] + 388
13 com.apple.MessageFramework 0x003edcf6 -[MessageRouter routeQueuedMessages] + 953
14 com.apple.CoreFoundation 0x938d7b9d _invoking__ + 29
15 com.apple.CoreFoundation 0x938d7588 -[NSInvocation invoke] + 136
16 com.apple.MessageFramework 0x003d0a05 -[MonitoredInvocation invoke] + 409
17 com.apple.MessageFramework 0x003d18c7 +[WorkerThread _execute:] + 144
18 com.apple.Foundation 0x9393804d -[NSThread main] + 45
19 com.apple.Foundation 0x93937bf4 _NSThread__main_ + 308
20 libSystem.B.dylib 0x93569075 pthreadstart + 321
21 libSystem.B.dylib 0x93568f32 thread_start + 34
Thread 17 crashed with X86 Thread State (32-bit):
eax: 0x0000003c ebx: 0x936191cf ecx: 0xb04520ac edx: 0x9361967e
edi: 0xa0499f00 esi: 0xb0452108 ebp: 0xb04520e8 esp: 0xb04520ac
ss: 0x0000001f efl: 0x00000247 eip: 0x9361967e cs: 0x00000007
ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037
cr2: 0x20496050
Thanks, hope someone can help me out with what to do.
Cheers Nikolaj
Message was edited by: nsodeHello Barry
Thanks for your reply, it did the trick, in a weird sort of way:
After deleting the mail preference file as you suggested, I could check for new mail messages without Mail.app crashing all over the place.
However all my accounts and the messages in them was gone. Okay, one problem solved and new one created.
Solution: Reinstalling my wifes and my own mail accounts and reimporting all the messages from the backup. Sounds boring right?
So I threw caution to the wind and replaced the new preference file with the old one that I had kept in the (disabled) folder. Thinking that it was an easily reversible step.
And it ruddy worked! Now I can again check for new mail messages and I have the old mail accounts intact. The logic of this however escapes me.
The morale: Its a weird world sometimes;-)
Thanks again for your help, it is much appreciated.
cheers Nikolaj -
GATP allocation check for configurable material with characteristic
Hi APO Gurus,
We are using configurable products and wanted to go for GATP allocation check based on Characteristics.
The scenario is goiven below,
All our products are configurable materials. At the entry of sales order , the characteristic values are updated and then the sales order is checked for GATP.
When the order come to APO-GATP for allocation check , here I want to check the allocation for configurable material.
But the allocation quantities are given for a combination of Configurable material and its characteristics.
How can we map such scenario?
Do I to create the CVC at family level that is configurable material level ?
How the characteristic values are considered in allocation.
Waiting for your reply.
regards,
Ravianswered.
-
Checking for different values with single var name.
Hi,
i have a variable NAME which should not take 5 different values.
i want to check NAME againist these 5 values at run time. is there any way to check NAME againist these 5 values like NAME in X, where x contains these 5 values.
could someone let me know the syntax and approach to do that.
your help would be appreciated.
thanks,
kranthi.
Message was edited by: kranthi kumar
Message was edited by: kranthi kumarHi Kranthi
If you want a method to set this property persistently via definitions made in DDIC, I do not know any way. If the values that the parameter can take are definite, then you can set up a check table.
Otherwise, one should achieve this programatically.
i.
IF name = <i><prohibited_val1></i> OR
name = <i><prohibited_val2></i> OR
name = <i><prohibited_val3></i> OR
name = <i><prohibited_val4></i> OR
name = <i><prohibited_val5></i> .
*-- The rule is broken
ENDIF .
ii. Define a range and check with it.
TABLES mytable .
RANGES grn_namepval FOR mytable-name .
*-- Begin of block A
CLEAR grn_namepval .
grn_namepval-sign = 'I' .
grn_namepval-option = 'EQ' .
grn_namepval-low = <i><prohibited_val1></i> .
APPEND grn_namepval .
*-- End of block A
*--Do block A for each prohibited value
IF name IN grn_name_pval .
*--Your rule is broken
ENDIF .
Regards
*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a> -
Budget check for PM orders with main and sub-projects
Hello
We have a scenario wherein we have created a main project and a sub-project. We have linked the sub-project to main project. We have also assigned budget to the main project. We have created a PM order wherein we are trying to enter the costs by entering the hours of work. We have configured the budget profile and set the tolerance limites and assigned to main project. The requirement here is we need to have have costs check againt the budget that been available in the main project. But the system is checking the budget of the sub-project. Please share if any specific setting is required to check the budget of main project instea sub-project.
Regards,
BasavI also double checked, you are right there is no forum for PM, I dont think I could suggest much since there isnt a dedicated forum, but you can try posting this query in the ABAP forum probably some abap'r who has worked with PM module should have a look. Also if possible try to connect with one of the moderators out here and ask for assistance in starting something for PM
Thanks,
GLM -
How to check for space in manual trigger Search Mask(True/False) Propertie?
I would like to trigger an section called section1 coded within the from frm1, when at least one record of a transaction has a value of FRM at offset 1 and spaces in position 358?
I am trying to specify as below:
1,FRM,358()
is the above syntax correct?
Even though, ' ' appears in extract file for record at offset 358 and with FRM in position 1, the section1 is not triggrered. I have verified in the NA file?
Please note that FRM can be a repeating record.
Thanks,
BalaHi Bala,
The correct trigger would be:
"1,FRM,358, "
Please note the space at the end of the trigger.
Gaétan -
Check for movie clips with AS?
Is it possible to check if a frame contain a movie clip with
AS, and then if movie clip is found run a function? Like a global
"event handler " for movie clips.I want a function that automaticly can detect and fade in any
movie clip found in any keyframe in the main timeline. So i don't
have to make
In the first keyframe in the main timeline
on (ohh here i found a movie clip)
//let's run a nice fade function on that movie clip
mx.transitions.TransitionManager.start
(eval(TheClip),
{type:mx.transitions.Fade,
direction:0,
duration:1,
easing:mx.transitions.easing.None.easeNone,
param1:empty,
param2:empty
Something like that -
BAPI for PURCHASE ORDER with OPEN QUANTITY field
Hi All,
I wanted to use the BAPI_PO_GETDETAIL to get the Purchase Order details upon triggering from Warehouse management system,
But the details required contains a field called OPEN QUANTITY...which is not used in this BAPI.
I request to let me know if any BAPI exits for PO details having the structure for this field:Open Quantity.
Am using SAP version 4.0B.
If not exists please advise how to customize the existing BAPI to meet the requirement.
thanks
mahiHi,
Open quantity is a calculated field. I guess the BAPI gives the details of the delivery, so take the ordered qty and substract the delivered qty from that.
Delivery data is EKET table.
Regards,
Ravi -
I am a new Mac user and I bought a refrubished Mac that has Mac OS X VERSION 10.6.8. I have been wanting to upgrade to Mavericks, but every time I go to do that a message comes up saying OS X Mavericks cannot be installed on this computer. Is there anyway I can instal it? Better yet how can I look up how much GB of memory I have and the available storage?
1. No, but you might be able to upgrade to Lion. Choose About this Mac from the Apple menu, check that the computer has at least a Core 2 Duo(not Core Duo) CPU, and if so, click here.
2. Check the RAM from the About this Mac window, choose Computer from the Finder's Go menu, control-click the internal drive, and choose Get Info. If the computer has a 32-bit EFI, it can't be upgraded to Mountain Lion or above regardless of the RAM and free drive space.
(111990) -
Implement check for File Names with data into TRG table
hi,
I am trying to load the Multiple files names & Autonumber to oracle table T1 which is further loaded the auto-number with data to target table TRG. My problem is when the same name file comes again due to size then load it again. & also don't insert Target (TRG) table rows with same data while insert the only those records/rows which are not in Target Table(TRG) .. Is this standard approach. becoz in this way I thing loading Performance speed will b down??
Any other or best recommended approach???/
Thanks
Regards,
AMSIII
Edited by: AMSI on Dec 11, 2012 9:54 PMHey Jason,
Create a validation of type exists. in expression 1 put:
SELECT 1
FROM DUAL
WHERE UPPER(:P9_FILE) LIKE '%TEST.HTML';
{code}
change P9_FILE to your file browse item name and change '%TEST.HTML' to '%YOUR_FILE_NAME'
Hope this helps,
Tyson -
Check for libraries with a startup script
Is it possible to check for open libraries with a startup script? Currently, i'm trying like this:
try{
app.libraries.item("Marks.indl").name
catch(e){
app.open(File("/Support/InDesign/Lib/Marks.indl"))
If InDesign is already open, this code works correctly (that is, if the library is open, nothing happens, otherwise it opens the library). However, if I place this in the startup script folder, it will open a second (third, fourth, etc.) copy of the library, even if the library is already open.
I think this happens because the library files are opened later in the startup sequence then the startup scripts are run. Is there any way to work around this?
Thanks,
/danIs your script supposed to work in ID CS3, or later?
Anyway, InDesign CS4 seems to reopen the libraries before launching startup scripts, so the following code works for me:
// Startup Script
const libName = "Marks.indl",
libPath = "/Support/InDesign/Lib/";
var libFile = libPath + libName;
if( !app.libraries.itemByName(libName).isValid )
try {app.open(File(libFile))}
catch(_){alert("Unable to open the library:\r"+libFile);}
@+
Marc
Maybe you are looking for
-
Network stream fxp excess memory usage and poor performance
I'm trying to stream some datas à highspeed rate (3 channels à 1Mbytes/s) from my 9030 to my windows host. Because i don't need to use data on the rt side, i choose to forward FXP <+-,24,5> to my host throug a network stream. To avoid data loose i ch
-
I got this error:- $/jre/bin/java -Xmx32M -version Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Any suggestion to resolve this error?
-
Tell SAP what can be improved with Interactive Scripting (maximum points)
Hello, This is John Burton, product manager from SAP for the Interction Center. I need you help! SAP is looking to fix any critical issues with the Interactive Script Editor and runtime. If you are using scripting and have issues that you think reall
-
Seeking a driver for my printer to run through my Airport Extreme router
Im trying to find a driver for my Lexmark X1100 series printer which would allow me to run the printer through the usb port of my Airport Extreme router. The printer works when plugged directly into the usb port of the computer. I have a Windows 7 As
-
The Window of my Creativ Cloud Desktop App turnd black. So I can't see anything.
Hey everybody, I have a problem with my Creativ Cloud Desktop App. When I start it first I see the loading icon for about one sek. but the the whole window turns black after that. I've tried to restart the PC or also only the App but that doesn't cha