Storing Data in the PCD
Friends,
I followed the SAP documentation example to store data on a subcontext.
My code is something like this:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
env.put(Context.SECURITY_PRINCIPAL, request.getUser());
env.put(Constants.REQUESTED_ASPECT, IPcdAttribute.PERSISTENCY_ASPECT);
InitialContext iCtx = null;
try {
iCtx = new InitialContext(env);
// Get the top-level context
IPcdContext myPcdContext = (IPcdContext) iCtx.lookup("");
// Create an attribute and set its value to {"Value1","Value2"}
Attribute myAttr = new BasicAttribute("myAttribute","Value1");
myAttr.add("Value2");
Attributes myAttrs = new BasicAttributes();
myAttrs.put(myAttr);
// Create a subcontext with the predefined attributes
myPcdContext.createSubcontext("myContext",myAttrs);
} catch (NamingException e) {}
My doubt is now how can I access the data I stored ?
Is it possible ? Can anyone help me ?
regards,
Ramatís Oliveira dos Santos
Edited by: Ramatís on Jun 3, 2011 10:00 PM
Good for you! And your solution was? Did the code above solve your issue, or was it something else?
SDN doesn't work unless you share what you've learned with others....
Similar Messages
-
SAP paging overflow when storing data in the ABAP/4 memory.
I am trying to create a data source in BI7.0 in the Datawarehousing Workbench. But along the process when i need to select a view i get an error detailed in the following error file extract: Please go through and assist.
untime Errors MEMORY_NO_MORE_PAGING
Date and Time 06.06.2009 14:21:35
Short text
SAP paging overflow when storing data in the ABAP/4 memory.
What happened?
The current program requested storage space from the SAP paging area,
but this request could not be fulfilled.
of this area in the SAP system profile.
What can you do?
Note which actions and input led to the error.
For further help in handling the problem, contact your SAP administrator
You can use the ABAP dump analysis transaction ST22 to view and manage
termination messages, in particular for long term reference.
Error analysis
The ABAP/4 runtime system and the ABAP/4 compiler use a common
interface to store different types of data in different parts of
the SAP paging area. This data includes the
ABAP/4 memory (EXPORT TO MEMORY), the SUBMIT REPORT parameters,
CALL DIALOG and CALL TRANSACTION USING, as well as internally defined
macros (specified with DEFINE).
To store further data in the SAP paging area, you attempted to
allocate a new SAP paging block, but no more blocks were
available.
When the SAP paging overflow occurred, the ABAP/4 memory contained
entries for 20 of different IDs.
Please note:
To facilitate error handling, the ABAP/4 memory was
deleted.
How to correct the error
The amount of storage space (in bytes) filled at termination time was:
Roll area...................... 8176
Extended memory (EM)........... 13587912
Assigned memory (HEAP)......... 0
Short area..................... " "
Paging area.................... 40960
Maximum address space.......... " "
By calling Transaction SM04 and choosing 'Goto' -> 'Block list',
you can display an overview of the current roll and paging memory
levels resulting from active users and their transactions. Try to
decide from this whether another program requires a lot of memory
space (perhaps too much).
The system log contains more detailed information about the
termination. Check for any unwanted recursion.
Determine whether the error also occurs with small volumes of
data. Check the profile (parameter "rdisp/PG_MAXFS", see
Installation Guidelines).
Is the disk or the file system that contains the paging file
full to the extent that it cannot be increased, although it has
not yet reached the size defined in the profile? Is the
operating system configured to accommodate files of such a
size?
The ABAP processor stores different types of data in the SAP
paging area. These include:
(1) Data clusters (EXPORT ... TO MEMORY ...)
(2) Parameters for calling programs (SUBMIT REPORT ...),
Dialog modules (CALL DIALOG ...) and transactions
(CALL TRANSACTION USING ...)
(3) Internally defined program macros (DEFINE ...)
Accordingly, you should check the relevant statements in a program
that results in an overflow of the SAP paging area.
It is critical when many internal tables, possibly with
different IDs, are written to memory (EXPORT).
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"MEMORY_NO_MORE_PAGING" " "
"SAPLWDTM" or "LWDTMU20"
"TABC_ACTIVATE_AND_UPDATE"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
4. Details about the conditions under which the error occurred or which
actions and input led to the error.Hi Huggins,
Maintenance of the Paging File is owned by your basis team.
They should increase this in order for your transaction to process successfully.
Just for your reference, in case the OS used is windows server 2003, paging file value can be checked through;
Right click in the My Computer>properties.
Then go to Advance tab;
Then there should be a performance section, click the settings
Then Advance tab again. The paging file can be seen from there.
(and can be adjusted from there also)
The value of the paging file in general will be dependent with the available RAM from the hardware.
Hope this helps. Thanks a lot.
- Jeff -
hi there
if i associate my apple id with another email will i lose my icloud data or i will still be able to access all my stored data with the new linked to my apple id email address?
i mean i am not signing up for a new account, just changing my old id primary email which is my apple id login into account.
in other words, www.icloud.com will recognize that it is still me if i login on the site? will i be able to see there all my stored information?
and if i change my password, does it automatically changes the @icloud.com password which should be the same as my apple id pass?
thanksAfter opening the email it shoud of had you enter the Apple ID and password. Using certian web browser's can cause errors. You can adjust securty settings (big pain) or you use another browser. Using Firefox or Safari should do the trick.
Let me know if using Firefox or Safari resolved it. -
Example storing data in the default schema with a Web Dynpro application
Hi,
is there any example or tutorial for storing data in the default schema with a Web Dynpro application via SQLJ or Hibernate by using the default DataSource?
Thanks for Help,
DirkHi,
When you create the TAB-Strip object you should be able to set the default displayed TAB against the properties of the TAB-Strip.
Gareth. -
Storing data in the fields during the transition back and forth
How to make the transition within the tab back and forth, the page is not updated, and the data saved in the fields? Caching enabled, but its not work, or after Opera I think that the cache should work differently. There's all the data stored in the transition. Its not auto fill when typing in the field, or by using the wand passwords. Data in the field is only stored until update the page. In fact, you can only go back on any number of levels of your history, and then return to the past and the data fields will be the same. So in the 12x version of Opera
I hope clearly explained''yozuul [[#question-1051752|said]]''
<blockquote>
I hope clearly explained
</blockquote>
Not really. Are you trying to say you are typing on a web page, but what
you typed does not show up on the page?
What is the site and public web address?
Security Issue: Update your Flash Player '''Version 17.0.0.134<br>https://www.adobe.com/products/flashplayer/distribution3.html'''
Many site issues can be caused by corrupt cookies or cache.
* Clear the Cache and
* Remove Cookies<br> '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
Type '''about:preferences'''<Enter> in the address bar.
* '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
* '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
If there is still a problem,
'''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
While you are in safe mode;
Type '''about:preferences#advanced'''<Enter> in the address bar.
Under '''Advanced,''' Select '''General.'''
Look for and turn off '''Use Hardware Acceleration'''.
Poke around safe web sites. Are there any problems?
Then restart. -
Problem in storing date in the access table
But I am not able to insert this date in the table of
Msacess database using the sql statement insert into.
When sysdate is inserted I get the error message
"Data type mismatch".
Statement st1 = con.createStatement();
st1.executeUpdate("insert into order1 values ('"+sysdate+"')");
I declared the field of ms access table as Date/Time.
What I should do to store sysdate in the table.
Please help me.
My thanks in advance.Use This Query it will work bu using #
Statement st1 = con.createStatement();
st1.executeUpdate("insert into order1 values (#'"+sysdate+"#')"); -
Is there a good reliable website for storing a large number of photographs in the cloud but with a database search facility?
Since you are running Lion, I've requested a moderator move your thread to the Lion forum. That way people with compatible browsers can tell you which ones they feel work best depending on your needs.
iPhoto has its own search facility that can be tagged by flags, names, or dates, or album name, or date imported. You can store its data online with Facebook, MobileMe, or Flickr, though Facebook usually limits the size of what may be uploaded, and you are best managing your originals on iPhoto itself. I'm not sure about MobileMe or Flickr, how well they can sort data, or handle larger originals. For that, you can probably ask in the MobileMe or iCloud forums, or a Flickr support website as needed. -
Can I sync my calenders and contacts on multiple computers without storing data in the cloud?
I have multiple Macbooks and IOS devices. Can I sync Contacts and calenders over all machines without using the Cloud. Perhaps over my own wiFi network? Anyone have any answers?
You need to first back up your iPhone with iCloud and/or iTunes. When you Set Up as New iPhone, it will be erased of all the data, and be like a New iPhone. Then you can Restore your previously saved data from iCloud or from iTunes on your computer. But back up first.
-
Interactive scripting: storing data in the system
Hello Gurus,
Do you know how script data (results) are stored in CRM? I mean all data which is extracted to BW and used for evaluation?
Thanks for your help!
BR
Piotrdear friend,
as far as i know this data stored in tables.
regards, -
Storing data in the table containing autonumber field
I am using following query:
PreparedStatement statement2 = con.prepareStatement("Insert into register values ( ? , ? , ?,10 , ?)");
statement2.setString(1, username);
statement2.setString(2, userid);
statement2.setString(3, Date);
statement2.setString(4,email);
statement2.executeUpdate();
Its working fine but next time I have to use some other value instead of 10 b/c this field is a primary key & its a autonumber. I want that table should take care of it on its own otherwise i wont be able to take benefit from this autonumber field. If I dont write anything then i get incompatibility error.
Can somebody plz. help me in this regard?
Zulfi.sorry
just ignore the autonumber field
PreparedStatement statement2 = con.prepareStatement("Insert into register (\"username\",\"userid\",\"Date\",\"email\") values ( ? , ? , ? , ?)");
PreparedStatement statement2 = con.prepareStatement("Insert into register values ( ? , ? , ?,10 , ?)");
statement2.setString(1, username);
statement2.setString(2, userid);
statement2.setString(3, Date);
statement2.setString(4,email);
statement2.executeUpdate(); -
How can I persist a Java object to the PCD via JNDI ?
Hi,
I'm trying to persist XML data on the PCD via JNDI. I'm using
portal version 6.2.0.4.200408172051.
I followed the instructions in the "Portal Runtime Technology 640"
document.
The example they showed was:
import javax.naming.Context;
Context context = PortalRegistry.getCentralConfigurationContext();
Context applicationContext = context.lookup("MyAppName");
It was possible to obtain 'applicationContext' in the above example by
using:-
Context context = PortalRegistry.getCentralConfigurationContext();
String appName = request.getComponentContext().getApplicationName();
Context applicationContext = (Context) context.lookup(appName);
However, any attempt to bind, rebind an object (implementing IStreamSource)
resulted in NamingExcptions. As did 'listBindings' and 'list' (see below).
BeanWrapper d = new BeanWrapper("test input");
applicationContext.rebind("PCD_LOOKUP_KEY", d);
// where 'd' implements IStreamSource
class BeanWrapper implements IStreamSource {
String content = "balh";
BeanWrapper(String s) {
content = s;
public InputStream getInputStream() throws IOException {
ByteArrayInputStream bis = new ByteArrayInputStream(content.getBytes());
return bis;
} // getInputStream
} // BeanWrapper
I don't know what I've done wrong. I couldn't find any more documentation
on this topic...
Any help would be appreciated.
cheers,
Michael
javax.naming.NameNotFoundException: [Xfs] Object not found. Root exception is javax.naming.NamingException: [Xfs] Object not found
at com.sapportals.portal.pcd.gl.xfs.BasicContext.lookup(BasicContext.java:840)
at com.sapportals.portal.pcd.gl.PcdPersContext.lookup(PcdPersContext.java:422)
at com.sapportals.portal.pcd.gl.PcdFilterContext.filterLookup(PcdFilterContext.java:387)
at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1083)
at com.sapportals.portal.pcd.gl.PcdProxyContext.proxyLookupLink(PcdProxyContext.java:1170)
at com.sapportals.portal.pcd.gl.PcdProxyContext.proxyLookup(PcdProxyContext.java:1132)
at com.sapportals.portal.pcd.gl.PcdProxyContext.getBasicObject(PcdProxyContext.java:1330)
at com.sapportals.portal.pcd.gl.PcdProxyContext.getBasicContext(PcdProxyContext.java:1306)
at com.sapportals.portal.pcd.gl.PcdProxyContext.rebind(PcdProxyContext.java:473)
at com.sapportals.portal.pcd.gl.PcdGlContext.rebind(PcdGlContext.java:1185)
at com.sapportals.portal.pcd.gl.PcdProxyContext.rebind(PcdProxyContext.java:515)
at com.sapportals.portal.pcd.gl.PcdProxyContext.rebind(PcdProxyContext.java:683)
at com.sapportals.portal.pcd.gl.PcdProxyContext.rebind(PcdProxyContext.java:688)
at com.sapportals.portal.prt.jndisupport.util.AbstractContextWrapper.rebind(AbstractContextWrapper.java:46)
at com.siemens.pct.employee.cu_selector.CUSelector.saveCuBeanToPCD(CUSelector.java:305)
at com.siemens.pct.employee.cu_selector.CUSelectorUpload.doUpload(CUSelectorUpload.java:70)
at java.lang.reflect.Method.invoke(Native Method)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleRequestEvent(AbstractPortalComponent.java:700)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:412)
at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:250)
at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:333)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:627)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:208)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:832)
at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:666)
at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:313)
at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)
at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
at java.security.AccessController.doPrivileged(Native Method)
at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)Hi Michael,
here my comments to your questions:
0.:[Michael says:]
"So basically you're saying that under SP10 its not possible to store objects on the PCD ... ?"
I want to clarify this:
It is possible to store objects in the PCD in lower releases than SP10 (e.g. SP2). But due to the fact that PCD API is not public before SP10 you should not develop a SP2 iView that programmatically uses the PCD API and complain afterwards because some "tiny" things of it are not working in SP10. It might be that you have to adjust some parts of this SP2 iView.
The kind of object that can be stored in the PCD depends on the fact if the objects have a corresponding object provider or not. If you want to store iViews, roles or one of the other commonly known portal objects you can do it because corresponding object provider (iViewservice, roleservice, etc.) are always available in a running portal.
If you want to store objects (like your BeanWrapper class) then you should write a corresponding object provider (what I explained in my first reply).
1.:[Michael asked:]
Why does list and listBindings fail ? surely that should just
list the existing bound objects ???
Nothing was bound!
Your code line
applicationContext.rebind("PCD_LOOKUP_KEY", d);
throws a NamingException because no object provider for class of object d was found.
So I gess you did a lookup on applicationContext.lookup( "PCD_LOOKUP_KEY" ) before you did the list/listBindings and because this
context does not exist the corresponding "Name not found" exception was thrown?
A list/listBinding on the applicationContext itself should work even if nothing was bound.
2.:[Michael asked:]
Is there not some kind of default object/object provider pair
that can be used to store base types like Strings/Integers etc ?
No. There are no default object providers for java string/integers. But for this case "persisting a string or integer value at any PCD context" the PCD offers another way to do it: Just create an additional attribute (of type STRING or INT) and persist the corresponding value in this attribute (of type IPcdAttribute - an extension of javax.naming.directory.Attribute )
The code for creating a pcd attribute looks e.g. like this:
IPcdObjectFactory pcdObjFactory = ((IPcdGlService) PortalRuntime
.getRuntimeResources()
.getService(IPcdGlService.KEY))
.getPcdObjectFactory();
IPcdAttribute newPcdAttr = pcdObjFactory.createPcdAttribute( PcdAttributeValueType.STRING,
"new_attrId" );
newPcdAttr.set( 0,
"new_AttrValue" );
ModificationItem mods[] = new ModificationItem[1];
mods[0] = new ModificationItem( DirContext.REPLACE_ATTRIBUTE,
(Attribute)newPcdAttr );
pcdCtx.modifyAttributes( "",
mods );
Hope, that helps you!
Regards,
Jens -
How to reduce size of stored data?
Does anyone know of a way to reduce the size of the stored data? The IMAP-[…]@imap.gmail.com folder in my ~/Library/Mail directory is more than twice the size of what's used on my gmail account, is it supposed to be like that?
Do you have a lot of attachments on the messages in the mailboxes of this account? One thing that balloons storage needs is that attachments may be redundantly stored in the mailboxes. If, for example, you open Home/Library/Mail/the IMAP account folder/INBOX.imapmbox you will note that it contains two folders -- Attachments and Messages. The attachments are replicated in the Attachments folder despite also being archived with the message in the Messages folder -- this may only be true if you have selected to Keep copies of all messages and their attachments for Offline viewing, however.
Ernie -
Unable to get the data from the stored procedure
Hello Folks,
I have this stored procedure and am trying to get the data from the table stage_bill but for some reason i am not sure its not pulling the data.Am a beginner in pl/sql Can any one please help to find out. I can give the code below.
create or replace procedure Load_FADM_Staging_Area_TEST(p_data_load_date date) is
-- local variables
v_start_date date;
v_end_date date;
-- cursor starting
CURSOR c_get_data
IS
SELECT
a.batch_id
,a.beginning_service_date
,a.bill_id
,a.bill_method
,a.bill_number
,a.bill_received_date
,a.bill_status
,a.bill_type
,a.change_oltp_by
,a.change_oltp_date
,a.client_datafeed_code
,a.client_id
,a.created_date
,a.date_of_incident
,a.date_paid
,a.deleted_oltp_by
,a.deleted_oltp_date
,a.duplicate_bill
,a.ending_service_date
,a.event_case_id
,a.event_id
,a.from_oltp_by
,a.oltp_bill_status
,a.review_status
,'HRI' schema_name
, sysdate Load_date
,'ETLPROCESS001' Load_user
,v_start_date as Row_Effective_Date
,null Row_End_date
from stage_bill a
where
--created_date >= to_date('20101031 235959', 'YYYYMMDD HH24MISS')
created_date >= v_start_date
and
--created_date <= to_date('20101111 235959', 'YYYYMMDD HH24MISS')
created_date <= v_end_date
and not exists
(select
b.batch_id
,b.beginning_service_date
,b.bill_id
,b.bill_method
,b.bill_number
,b.bill_received_date
,b.bill_status
,b.bill_type
,b.change_oltp_by
,b.change_oltp_date
,b.client_datafeed_code
,b.client_id
,b.created_date
,b.date_of_incident
,b.date_paid
,b.deleted_oltp_by
,b.deleted_oltp_date
,b.duplicate_bill
,b.ending_service_date
,b.event_case_id
,b.event_id
,b.from_oltp_by
,b.oltp_bill_status
,b.review_status,
b.schema_name,
b.Load_date,
b.Load_user,
b.Row_Effective_Date,
b.Row_End_Date
from STG_FADM_HRI_STAGE_BILL_TEST b)
-- cursor o/p variables
v_batch_id stage_bill.batch_id%TYPE;
v_beginning_service_date stage_bill.beginning_service_date%TYPE;
v_bill_id stage_bill.bill_id%TYPE;
v_bill_method stage_bill.bill_method%TYPE;
v_bill_number stage_bill.bill_number%TYPE;
v_bill_received_date stage_bill.bill_received_date%TYPE;
v_bill_status stage_bill.bill_status%TYPE;
v_bill_type stage_bill.bill_type%TYPE;
v_change_oltp_by stage_bill.change_oltp_by%TYPE;
v_change_oltp_date stage_bill.change_oltp_date%TYPE;
v_client_datafeed_code stage_bill.client_datafeed_code%TYPE;
v_client_id stage_bill.client_id%TYPE;
v_created_date stage_bill.created_date%TYPE;
v_date_of_incident stage_bill.date_of_incident%TYPE;
v_date_paid stage_bill.date_paid%TYPE;
v_deleted_oltp_by stage_bill.deleted_oltp_by%TYPE;
v_deleted_oltp_date stage_bill.deleted_oltp_date%TYPE;
v_duplicate_bill stage_bill.duplicate_bill%TYPE;
v_ending_service_date stage_bill.ending_service_date%TYPE;
v_event_case_id stage_bill.event_case_id%TYPE;
v_event_id stage_bill.event_id%TYPE;
v_from_oltp_by stage_bill.from_oltp_by%TYPE;
v_oltp_bill_status stage_bill.oltp_bill_status%TYPE;
v_review_status stage_bill.review_status%TYPE;
v_schema_name varchar(50);
v_Load_date date;
v_Load_user varchar(50);
v_Row_Effective_Date date;
v_Row_End_Date date;
Begin
if p_data_load_date is null then
select (sysdate - 7), (sysdate - 1) into v_start_date, v_end_date from dual;
elsif p_data_load_date is not null then
select (p_data_load_date - 7), (p_data_load_date - 1) into v_start_date, v_end_date from dual;
else
raise_application_error('-20042', 'Data control - GetDataControlAuditData : Date parameter must be a date of this or a previous week.');
end if;
-- cursor c_get_data loop begin
OPEN c_get_data;
LOOP -- cursor c_get_data loop begin
FETCH c_get_data
INTO
v_batch_id,
v_beginning_service_date,
v_bill_id ,
v_bill_method ,
v_bill_number,
v_bill_received_date,
v_bill_status,
v_bill_type,
v_change_oltp_by,
v_change_oltp_date,
v_client_datafeed_code,
v_client_id,
v_created_date,
v_date_of_incident,
v_date_paid,
v_deleted_oltp_by,
v_deleted_oltp_date,
v_duplicate_bill,
v_ending_service_date ,
v_event_case_id ,
v_event_id,
v_from_oltp_by,
v_oltp_bill_status,
v_review_status,
v_schema_name,
v_Load_date,
v_Load_user,
V_Row_Effective_Date,
v_Row_End_Date;
EXIT WHEN c_get_data%NOTFOUND;
insert into STG_FADM_HRI_STAGE_BILL_TEST
batch_id
,beginning_service_date
,bill_id
,bill_method
,bill_number
,bill_received_date
,bill_status
,bill_type
,change_oltp_by
,change_oltp_date
,client_datafeed_code
,client_id
,created_date
,date_of_incident
,date_paid
,deleted_oltp_by
,deleted_oltp_date
,duplicate_bill
,ending_service_date
,event_case_id
,event_id
,from_oltp_by
,oltp_bill_status
,review_status
,schema_name
,Load_date
,Load_user
,Row_Effective_Date
,Row_End_Date
values(
v_batch_id,
v_beginning_service_date,
v_bill_id ,
v_bill_method ,
v_bill_number,
v_bill_received_date,
v_bill_status,
v_bill_type,
v_change_oltp_by,
v_change_oltp_date,
v_client_datafeed_code,
v_client_id,
v_created_date,
v_date_of_incident,
v_date_paid,
v_deleted_oltp_by,
v_deleted_oltp_date,
v_duplicate_bill,
v_ending_service_date ,
v_event_case_id ,
v_event_id,
v_from_oltp_by,
v_oltp_bill_status,
v_review_status,
v_schema_name,
v_Load_date,
v_Load_user,
v_Row_Effective_Date,
v_Row_End_Date ) ;
COMMIT;
END LOOP;
CLOSE c_get_data;Maybe you need something else, like
CREATE OR REPLACE PROCEDURE load_fadm_staging_area_test (
p_data_load_date DATE
) IS
v_start_date DATE;
v_end_date DATE;
BEGIN
SELECT NVL (p_data_load_date, SYSDATE) - 7,
NVL (p_data_load_date, SYSDATE) - 1
INTO v_start_date,
v_end_date
FROM DUAL;
MERGE INTO stg_fadm_hri_stage_bill_test b
USING (SELECT *
FROM stage_bill
WHERE created_date BETWEEN v_start_date AND v_end_date) a
ON (b.bill_id = a.billl_id)
WHEN NOT MATCHED THEN
INSERT (batch_id,
beginning_service_date,
bill_id,
bill_method,
bill_number,
bill_received_date,
bill_status,
bill_type,
change_oltp_by,
change_oltp_date,
client_datafeed_code,
client_id,
created_date,
date_of_incident,
date_paid,
deleted_oltp_by,
deleted_oltp_date,
duplicate_bill,
ending_service_date,
event_case_id,
event_id,
from_oltp_by,
oltp_bill_status,
review_status,
schema_name,
load_date,
load_user,
row_effective_date,
row_end_date
VALUES (a.batch_id,
a.beginning_service_date,
a.bill_id,
a.bill_method,
a.bill_number,
a.bill_received_date,
a.bill_status,
a.bill_type,
a.change_oltp_by,
a.change_oltp_date,
a.client_datafeed_code,
a.client_id,
a.created_date,
a.date_of_incident,
a.date_paid,
a.deleted_oltp_by,
a.deleted_oltp_date,
a.duplicate_bill,
a.ending_service_date,
a.event_case_id,
a.event_id,
a.from_oltp_by,
a.oltp_bill_status,
a.review_status,
'HRI',
SYSDATE,
'ETLPROCESS001',
v_start_date,
NULL
END load_fadm_staging_area_test;Whenever you code a cursor and a loop, ask yourself. Do I need that?
Regards
Peter -
Why files in Lightroom mobile and files in the creative cloud not the same? idea- one place(stored date) for all application ??????
Lightroom Mobile is not a cloud storage service. You shouldn't treat it as a way of backing up your files. You are merely storing Smart Previews of your files in the cloud space, high-quality JPEGs of your files regardless of their original format on your desktop. The point is that they are there so you can continue editing them in a Lightroom-like environment even while away from your desktop/laptop computer. The files in Lightroom Mobile can only be used in Lightroom Mobile.
This is very different from what is offered by the Creative Cloud storage, which can be used to synchronize your files between any device (that can support the individual files).
The vast difference in how each service works and its intended use is why they are separate. -
In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String , for executing the Stored Procedure with Current date as the input .
Hi Srinath,
The below blog might be useful
http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/06/executing-stored-procedure-from-sender-adapter-in-sap-pi-71
PI/XI: Sender JDBC adapter for Oracle stored procedures in 5 days
regards,
Harish
Maybe you are looking for
-
After KMS update no xv extension
Hi all, yesterday I updated my arch box and I got the new KMS stuff for my ATI card. 01:00.0 VGA compatible controller: ATI Technologies Inc M56P [Radeon Mobility X1600] After I rebooted, the video performance of Xorg seemed really slow.. switching f
-
Apogee Duet 2x2 Firewire vs Apogee duet USB
Couldn't find a better place to post this.If anyone has used both please let me know what I would be loosing for the Apogee Duet 2x2 FireWire audio interface (Standard).The cost is a lot lesser than the USB.
-
In java ,how to access the user-defined type of pl/sql?
in my application,i using the following code to access the pl/sql type self-defined,but it throws run-time exception,how can i resolve it?String sqlStr="{call BossStat.dunStat(?,?,?,?,?,?)}"; OracleCallableStatement ocstmt=(OracleCallableStatement)co
-
DVDs I've burned on my G5 won't mount on my computer
I'm archiving a lot of digital photography images on DVDs. They burn and verify fine (Memorex 8x) and then when I put them back in the slot later, they will not mount. I've rebooted, restarted, unplugged and then rebooted - a couple of times the DVD
-
Serial Numbers during sales order creation
hi gurus, i am creating a saels order from va01 and saving the serial numbers for the item from menu Extras technical objects and serial numbers , once saved where i can check the serial numbers for the items regards afzal