Need help regarding the maximum limit for data type
Hi,
this is Sravan. for my application am inserting the bulk data in XML format into a column of Database table.
the sample inserted XML data will be in format... like
'<ACC count = "10">
<Acc ac_no = "1111111111" cn_nr = "US" eflag = "Y" />
<Acc ac_no = "1111111111" cn_nr = "US" eflag = "Y" />
<Acc ac_no = "1111111111" cn_nr = "US" eflag = "Y" />
<Acc ac_no = "1111111111" cn_nr = "US" eflag = "Y" />
<Acc ac_no = "1111111111" cn_nr = "US" eflag = "Y" />
<Acc ac_no = "1111111111" cn_nr = "US" eflag = "Y" />
<Acc ac_no = "1111111111" cn_nr = "US" eflag = "Y" />
<Acc ac_no = "1111111111" cn_nr = "US" eflag = "Y" />
<Acc ac_no = "1111111111" cn_nr = "US" eflag = "Y" />
<Acc ac_no = "1111111111" cn_nr = "US" eflag = "Y" />
</ACC>'
this data in XML can have more than 1000 accounts.
now, i need to take a Parameter value from XML node and write into a file. for this i have written a procedure by looping the Nodes from XML data and building Dynamic Query like..
if nvl(v_int, 0) > 0 then
v_sql := '';
for v_count in 1..v_int
loop
if v_sql is null then
v_sql := 'select extractvalue(empdetails, ''/ACC/Acc' || v_count ||'/@ac_no'')||extractvalue(empdetails, ''/ACC/Acc' || v_count
||'/@cn_nr'')||extractvalue(empdetails, ''/ACC/Acc' || v_count ||'/@eflag'') string from sample1';
elsif v_sql is not null then
v_sql := v_sql || ' union all select extractvalue(empdetails, ''/ACC/Acc' || v_count ||'/@ac_no'')||extractvalue(empdetails, ''/ACC/Acc' || v_count
||'/@cn_nr'')||extractvalue(empdetails, ''/ACC/Acc' || v_count ||'/@eflag'') string from sample1';
end if;
end loop;
end if;
i will get this variable "v_int" from <ACC count = "10"> ACC count Attribute, here 10 is the value for v_int variable but in real time the variable value can be more than 1000.
at the time of Building Dynamic Query I make using the Variable v_SQL which is of Data Type "Long",
this variable stores dynamic query which is build at the time of executing procedure but this v_sql Variable is throughing Exception that ....
"numeric or value error Character String Buffer is Too Small"... but Long Data type will store upto 2GB..
this variable cant able to hold much data which is dynamically build.
will you please help me to resolve this issue Or will u suggest me another method to pick the data from XML column.
thanks,
sravan.
user11176969 wrote:
i changed the code, now its working fine.
direct assigning the dynamic query to a Clob variable raised error.
for dynamic query building i used another variable and assigned this variable value to actual query variable.Nice!
Similar Messages
-
I need help getting the license number for Adobe Photoshop Elements. However, It doesn't recognize me as an authorized user. Can someone help?@
I am having the same problem...did you ever fix it?
-
Need help regarding the location of Exchange 2013 Logs for parsing
Hi, I am trying to create reports based on the logs that are created on my exchange server. I am using
exchange 2013. My problem is that I cannot handle every log, and instead want specific types of logs.
I need help finding the specific locations of the following types of logs (If they even exist), so that I can parse them and use them effectively:
Audit Logs (Mailbox logons, Mailbox permission changes, Mailbox property changes,
Exchange store changes)
Mail Report Logs (Mailbox size and growth, Mailbox storage growth, Enabled users, Expired and Soon-to-Expire Mailboxes)
Exchange Traffic Reports (Details on size and amount of messages sent and recieved, Internet traffic [to and from], Traffic between exchange users)
I understand this might sound like a huge undertaking, but any help that can be provided would be appreciated.
Again, I need information on the locations of these types of logs on the exchange server, so that I can parse them. Collecting them all and searching through them is not practical for my available resources.
Thanks,
MattAudit Logs (Mailbox logons, Mailbox permission
changes, Mailbox property changes, Exchange
store changes) ---- these are two type of logs, 1. mailbox audit logs and that is stored in each mailbox under dumpster
http://technet.microsoft.com/en-us/library/ff461930(v=exchg.150).aspx however you need to
enable
it for individual mailboxes... 2. admin audit log, this is stored into a system mailbox dumpster.... http://technet.microsoft.com/en-us/library/dd335052(v=exchg.141).aspx
Mail Report Logs (Mailbox size and growth, Mailbox
storage growth, Enabled users, Expired and Soon-to-Expire Mailboxes) ---- there isn't any specific log for this, you would need to create some time of script to collect this every day for you and store it somewhere... This is a good start... http://www.stevieg.org/2011/06/exchange-environment-report/
Exchange Traffic Reports (Details on size and
amount of messages sent and recieved, Internet traffic [to and from], Traffic between exchange users) ----- This you can get from message tracking log... http://technet.microsoft.com/en-us/library/bb124375(v=exchg.150).aspx -
Need help finding the best Mac for gf
hi I need help finding the best desktop. I am looking to buy MAC for gf.
she uses final cut program question is does the GB/RAM/STORAGE matter on performance?
She has a 2009 Apple computer I want to upgrade her to a new one
I Dont know much when it comes to specs. She edits tons of videos and pictures.
what's recommended for a video/photo editor that's good in performance ?Pro consumer might go with iMac even.
Final Cut Pro latest benefits from dual AMD graphics.
Video is one animal, graphics a much different.
Great site full of performance, buying and configuration ideas:
MacPerformance Go to the main topics
I think you need to get clear on budgets. start with mid range and add all the options and can spend $4,000 or $7,000.
Go to the Mac Store and do some looking and Google for reviews of software, hardware of course.
Barefeats
Rumors Pro
Visit the forum for FCP-X would be a place to start.
Final Cut Pro X -
Regarding the exact link for configurate type for leave request
Hi all:
I am trying to Customize Types of Leave/ Absence Types for Leave Requests following the route Personnel Management u2192 Employee Self-Service u2192 Service-Specific Settings u2192 Working Time u2192 Leave Request u2192 Processing Processes u2192 Specify Processing Processes for Types of Leave, but it turns not be there, maybe it is because of the sap version, could you please tell
me the exact route for Customize Types of Leave/ Absence Types ?
thank you very muchsorry , the above link is correct , I found the above linke missing like personnel management--employee self-servce, because Basis didn't delopy some pakcage , could you please tell me what package missed.
thank you very much .
Edited by: jingying Sony on May 7, 2010 7:58 AM -
Need help regarding the dunning form
Hi,
I have to display all the sales and payments of a cusomter for all the periods that are older than the run date in a dunning form. (i.e) if the run date is 04-aug-05 and if the slaes are there in 3 months(april, May, july) then i have to display three line items with sales and payments for that corresponding three months in the line items. As this is a dunning form i cannot change the print program. any table which have all the sales for a period which i can access directly in the script. can anyone suggest how to handle this.
regards,
AshaHi,
You can call a subroutine within a program (your z program)
/: PERFORM ADD_AMOUNT IN PROGRAM SAPLZFTP_F150
/: USING &W_AMOUNT&
/: ENDPERFORM
In the z program create this subroutine.
Form ADD_AMOUNT
-->FT_INVAR Text Symbol table for input variables
-->FT_OUTVAR Text Symbol table for output variables
FORM add_amount TABLES ft_invar STRUCTURE itcsy
ft_outvar STRUCTURE itcsy.
STATICS:
w_value_l TYPE f150d-salfw.
READ TABLE ft_invar INDEX 1.
IF sy-subrc IS INITIAL.
you can check all this part of the code how you want to
process your data whether its numeric or character or
whatever
w_value_l = w_value_l + ft_invar-value.
ENDIF. "IF sy-subrc IS INITIAL.
ENDFORM. " ADD_AMOUNT
TO BESPOKE THE PRINT PROGRAM FOR THE DUNNING
Dunning outputs use the function module FI_DUNNING_PRINT_NOTICE. You can copy this to a Z function module and make some changes to the data selection. You will have to look into the code and decide what changes you need.
The process to use a bespoke program to do the dunning print is as follows:
UNDER FI GLOBAL SETTINGS in the configuration,
There are Business Transaction Events. Within that you can configure the same to enable a Z function module in place of the standard function module (from the FUNCTION GROUP F150)
Create function group ZFTP_F150
Copy standard function module FI_PRINT_DUNNING_NOTICE of function group F150 to ZFTP_FI_PRINT_DUNNING_NOTICE in function group ZFTP_F150
Copy standard function module PRINT_DUNNING_NOTICE of function group F150 to ZFTP_PRINT_DUNNING_NOTICE in function group ZFTP_F150
Within the function module ZFTP_FI_PRINT_DUNNING_NOTICE, change function module call for PRINT_DUNNING_NOTICE to ZFTP_PRINT_DUNNING_NOTICE
Create a new include ZFTPI_ROUTINES within the function group and copy the subroutines LOG_MSG, LOG_MSG_TAB, & LOG_SYMSG from the function group F150 to this include
AS AN ALTERNATE, YOU CAN COPY THE WHOLE FUNCTION GROUP
Maintenance view TBE31 (SM30). Change the function module from FI_PRINT_DUNNING_NOTICE to ZFTP_FI_PRINT_DUNNING_NOTICE against the event 00001720 FI-FI entry
Hope this helps.
regards,
Satya -
Ok, so I'm an engineering student and I am in need of a good laptop to run programming and design type software. I have an older iMac which I love but I need the portability of a laptop for school. I was thinking I would be fine with a pc since most of the software I would be using for school is windows based. So last night, after shopping around for quite a bit, I decided to go with a Sony Vaio E series laptop with Windows 8, 8gb ram, i7 processor, dedicated graphics card, 1tb hard drive, and touch screen. It was the best performance laptop (on paper) Best Buy had in the store for just under $1000. I would have loved to get an upper end MBP but they are over twice the price as the Sony.. So I get it home with the Vaio and it feels laggy and glitchy, it takes 2 seconds for the window to pop up after 'right clicking', I can see lines in the screen, the resolution seems far from HD when on the normal looking windows side (as opposed to the tablet look, forgive my poor terminology) and the web browser, and the touch pad seems to be hit or miss in that it doesn't always register the touch pad commands. I checked all of the visual and performance settings, made the resolution as high as possible, changed some of the settings to the high performance settings, made sure all of my drivers were updated, and the only effect was a very loud fan that runs constantly.
So in short, I am going to take this back and start looking at the macbook pros. Here's my dilemna, I don't know which specs I will definitely need in a Macbook Pro. I need to be able to run windows on it either in parallel or as a partition for my programs necessary for school. Can the MBP run windows smoothly enough to run 3D design types of programs? If so, which one should I get? I love the size of the 13" MBP but it only has a dual core processor, instead of the quad core like the 15" MBP, I'm not sure if I definitely need the quad over the dual core. I would love a solid state MBP but they are out of my price range and not enough space if I end up partitioning it.
Sorry for the book, but school starts Monday and I need some direction to find out which one I need to get fairly quickly. Any help would be greatly appreciated.Take a look at this MBP, a refurbished unit. Don't let the late 2011 release date put you off. For about $500 less than an equivalent 'new' one with similar specifications you get a quad core CPU and excellent graphics. As Steve359 mentioned, this can be upgraded if the need arises and has the same warranty as a 'new' one
I would not be surprised that these may actually be 'new' MBPs due to the length of time that they have been replaced by the current generation. I purchased a 17" model about 5 weeks ago, and a serial number check suggests that it is 9 weeks old.
http://store.apple.com/us/product/G0NM5LL/A
Ciao. -
Need help identifying the application responsible for an insert...
Hi,
I'm a MSSQL guy and Oracle is still a bit mysterious to me. I'm looking for some assistance tracking down the application in an environment which is responsible for particular inserts.
For example, suppose I have 10 different programs running and inserting values to a DB. I need to know which one of them inserts a "0" in a particular column.
I found a trigger which will tell me the user, unfortunately these programs use a shared credential so that doesn't help me.... here's what I've got:
CREATE OR REPLACE TRIGGER check_for_zero_insert
AFTER INSERT
ON DATA_TABLE_0001
FOR EACH ROW
DECLARE
v_username varchar2(10);
BEGIN
-- Find username of person performing the INSERT into the table
SELECT user INTO v_username
FROM dual;
-- Insert record into audit table
INSERT INTO audit_table
( samplevalue
sampletime,
username )
VALUES
( :sampletime,
:samplevalue
v_username );
END;
But again, username won't help me, I need the originating process if at all possible (either an executable name, PID, or something to identify the specific application on the other side.)use this in your trigger
select sys_context('USERENV','OS_USER') ||'-' ||user into v_username from dual;
You might need to increase the v_username data type length.
Thanks,
GPU -
Need help : Installing the standalone OEPE for OSB 11g for development
Hi All,
It would be greatly appreciated if any one could share the details of installing the standalone OEPE (Eclipse along with the OSB plugin for 11g) for development purpose.
If possible kindly share the download link for the same.
Thanks in advance.
Regards,
Balaji RHi,
To have OEPE with the plugins for OSB you actually have to install Weblogic with OEPE and OSB. OEPE will need the libraries in Weblogic and OSB installation...
The latest version for Weblogic+OEPE (Indigo) for Windows
http://download.oracle.com/otn/nt/middleware/11g/wls/1211/oepe-indigo-installer-12.1.1.0.1.201203120349-12.1.1-win32.exe
The latest version for OSB for Windows
http://download.oracle.com/otn/nt/middleware/11g/111160/ofm_osb_generic_11.1.1.6.0_disk1_1of1.zip
Weblogic download page...
http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
OSB download page...
http://www.oracle.com/technetwork/middleware/service-bus/downloads/index.html
Cheers,
Vlad
It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
https://forums.oracle.com/forums/ann.jspa?annID=893 -
I need help updating the graphic drivers for my laptop.
Recently purchasd a new game and I am having some issues with the graphics. Every post I have read suggests it is an issue between HP and amd. I keep trying and seem to be going backwards. I would love to actually talk to someone from hp but they haven their number very well. I have tried every combination between hp and amd and I am obviously missing something. I dont have much hair left to pull out.
Hi there , Thank you for visiting the HP Support Forums and Welcome! This is a great site to get answers and ask questions. I read your post on the HP Support Forums and you had mentioned that you are looking for help Updating the Graphics Drivers on your HP Pavilion dv7t-6c00 CTO Notebook PC. I have the actual drivers page for your specific HP Pavilion dv7t-6c00 CTO. It has the AMD Graphic Driver on this page. You could also update the drivers a couple other ways. 1. Using the HP Support Assistant2. Going into the Device Manager, Right click on the AMD Graphic and doing an update. You had also mentioned that you wanted to actually talk to someone from HP. Please use the following link to create yourself a case number, then call and it may help speed up the call process:
Step 1. Open link: www.hp.com/contacthp/Step 2. Enter Product number or select to auto detect
Step 3. Scroll down to "Still need help? Complete the form to select your contact options"
Step 4. Scroll down and click on: HP contact options - click on Get phone number
Case number and phone number appear.
They will be happy to assist you immediately. Let me know how everything goes. Have a great day! -
Need help regarding the few clarification in writing cmod
Hi All,
I need to write a cmod by creating a new project for that. The main purpose is to define variables in it which will be used in reporting(restrictions).
Now I need to enhance that structure with RSR00001 code since it dealys with declaring the variables.
But this enhancement code is being used in some other project as well, because of it I am unable to use it in my project..
Can you please explain me how can I overcome this situation.
Thanks,
vinay.Hi Vinay,
Write this code in CMOD :
data:
z_include type program,
Z_return.
when others.
* Select the include program using the variable
perform select_include using i_vnam
changing z_include
z_return.
check z_return = 0.
* Check that include program exists
perform check_include_program using z_include
changing z_return.
check z_return = 0.
* Process the appropriate variable by calling the generic form
* 'PROCESS_VARIABLE' in the include program just selected
perform process_variable in program (z_include)
tables e_t_range
i_t_var_range
using i_vnam
i_vartyp
i_iobjnm
i_s_cob_pro
i_s_rkb1d
i_periv
i_step
lv_zs_bsw_offset
changing e_meeht
e_mefac
e_waers
e_whfac
c_s_customer.
FORM select_include using p_var
changing p_include
p_error.
select single zinclude
into p_include
from zvariables
where zvarname = p_var.
p_error = sy-subrc.
ENDFORM.
form check_include_program using p_include
changing p_error.
data:
l_name type programm.
select single name
into l_name
from trdir
where name = p_include.
p_error = sy-subrc.
endform.
Then you can create a table having two column, variable value and its corresponding program.
You will then not need to disturb the CMOD Code.
-Vikram -
I need help changing the security key for WRT54G2 1.5
I already know the security key on my network, I just need to change it. I don't have 'cisco connect'. I've tried the web based method with the 192.168.1.1 IP and using 'admin' for the password, but that gives me a '401 Not Authorized' error. I've tried using my own security key instead of 'admin' and that doesn't work either. How do I change this. I tried to use the Linsky's knowledgebase and that didn't help. Live Chat won't help unless I'm willing to sign-up for some paid service plan, and there is no way I'm doing that. I've never heard of a company charging their customers just to explain how to do something. All I have is a simple question about how to change the network security key when I already know what it is and there is no problem with the connection. Can anyone help me. PLEASE.
If admin didn’t work, it’s possible that you might have setup a different password to login to the setup of the router when you initially set it up. Since admin and your security key didn’t work when you tried accessing your router page, the other option for you then is to reset the router. Push and hold the reset button on the router using a pin or a paper clip for 30 seconds and unplug the power cord for another 30 seconds. Once the power light goes solid, you may start reconfiguring the settings of the router. For instructions, refer to these links: Setting up a Linksys router with Cable Internet service & Setting up a Linksys router for DSL Internet connection. Once you establish the wired internet connection, you may then start reconfiguring the wireless settings. Go to the Wireless tab: set the wireless configuration to manual; set a network name; then save the settings. Once saved, click on Wireless Security subtab: set the security mode to WPA2 Personal and enter a new security key on the passphrase bar.
-
I need help finding the proper website for downloading the proper version of firefox for my PPC MAc
''locking as a duplicate of this - https://support.mozilla.com/en-US/questions/847742''
I just asked this question but it got lost in the mail. I have a Mac PPC G5 2.0 MHZ dual Motorola processor and I need to know the proper version that my mac will work with and I need to know where on your site to go to get it. I need the exact link to download it please.
Scott GoldbergFirefox 2.0.0.20 is the last release that runs on Mac OS X 10.2 and 10.3
* http://www.mozilla.com/firefox/2.0/system-requirements/
* https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.20/mac/en-US/
Firefox 4 requires at least OS X 10.5 and an Intel Mac.
* http://www.mozilla.com/firefox/4.0/system-requirements/
* http://www.mozilla.com/firefox/3.6/system-requirements/ -
Need Help regarding the JVM for the ARM926EJS Processor
I Want to develop an application in java for the IMX.27 board which has ARM926EJS Procesor. This processor is jazelle enabled hardware.
My questiion is that how to get the JVM for this. So that i will use my Java appliaction. I am using linux OS.
Thanks in advance.Hi Narendra,
Sun actually has a VM for the ARM ... well, actually 2 VMs for the ARM. Depending on your needs, there's a solution for JavaME CLDC, JavaME CDC, or JavaSE. There's also the open source implementations for CLDC and CDC. Here's how to get more info:
JavaME: http://java.sun.com/javame/index.jsp
CLDC open source project: phoneME Feature: https://phoneme.dev.java.net/content/phoneme_platforms.html#phonemefeature
CDC open source project: phoneME Advanced: https://phoneme.dev.java.net/content/phoneme_platforms.html#phonemeadvanced
Embedded SE: http://java.sun.com/j2se/embedded/offerings.html
email inquiry to: [email protected]
Regards,
Mark -
Need help regarding payment terms f4 for purchase order
hello everyone,
im currently workin on smartform for purchase order so transaction code is me23n in dat 1st tab delivery/invoice can u see payment terms field its technical field name is ZTERM in dat if u click on f4 ull find tht value along with description say eg 0001 payable immediately due net lik dis it comes so i need to display ths text i.e payable imm... lik dis in my smartforms field im unable to retrieve tht text element i gt 1 function module also ie Fi_F4_ZTERM here im gettin whole record i wnt only 1st record i.e 0001 payable if u click on f4 thr r many records...so whn u go to me23n ie for display u shd hav value tht is alrdy stored lik dis u check ulll understand.. thnx in advance fr ur help...Hi,
The text of payment terms is stored in table T052U.
You can get the payment terms of a PO in table EKKO and field ZTERM.
Pass the value of this field i.e. EKKO-ZTERM to T052U-ZTERM and T052U-SPRAS as SY-LANGU .
You will get the description of the payment terms maintained in the PO.
Regards,
Vinod
Maybe you are looking for
-
I recently moved all my music to a NAS drive which I access wirelessly from iTunes on my laptop. My iTunes Folder location is still on my laptop, so the xml/itl files there simply refer to my NAS drive (via a network share, G:\) for all it's song pat
-
Page format for SAP-Script not working in 4.6C
Hi all, I have a problem regarding check printing. I am using SAP version 4.6C The size of paper for check printing is width = 231 mm Height = 304 mm So for this I have created a new page format with these details in SPAD. Then I
-
How to add a name to Jtree froma textfield
HiAll I havea Jtree f_viewtree I have a dialog box which contains a textfield and gets a name of group to be added in the Jtree and also a add button. when the add button is clicked the name should added it to the Jtree. I know there s method called
-
can anyone help me
-
Hard Drive Of Zen Xtra problem... help me !
After exactly 3months and 3 days the Zen Xtra went haywire. Exactly how ? How Should I explain it... I guess I should start by describing what happend. A few days ago , I was sitting down listening to my Zen when I heard this poping sound ... I sniff