Collection inaccessible from Before Header process

Hi,
I have a form based on the Matrix Order application. There's a collection-based report with a bunch of text fields that can be updated and a column with a "Remove" item that basically calls a conditional Before Header process to remove the item from the collection. What I want to do is update the collection (with the values that the end-user may have entered in the updateable columns) prior to removing any item. So when the user clicks on "remove", first I do an update_member_attribute and finally I remove the item the user chose. My problem is that the updates are skipped altogether; the code is not even executed, but the removal is. It's like the collection doesn't exist at one point, but exists the next. I added an insert into a dummy table to see how many items the collection had, and it returned zero. However, the delete worked just fine. Can you have a look at my code, to see if I'm missing something obvious? Thanks a lot!
Here's the code in the Before Header:
--Here we find out how many rows in the collection
select count(*) into c from apex_collections where collection_name = 'ORDER';
insert into table1 (column1) values ('to update '||i); --This inserts "to update 0" into my dummy table.
--Update collection - nice try!
FOR x IN 1..APEX_APPLICATION.g_f01.COUNT --This code is skipped; according to the previous select, the collection has 0 rows
LOOP
c := x;
apex_collection.update_member_attribute
( p_collection_name => 'ORDER',
p_seq => APEX_APPLICATION.g_f03 (x),
p_attr_number => 4,
p_attr_value => APEX_APPLICATION.g_f01 (x) );
apex_collection.update_member_attribute
( p_collection_name => 'ORDER',
p_seq => APEX_APPLICATION.g_f03 (x),
p_attr_number => 6,
p_attr_value => APEX_APPLICATION.g_f02 (x) );
END LOOP;
--This works fine, however!!!
apex_collection.delete_member(p_collection_name => 'ORDER', p_seq => :P612_SEQ_ID);
I've tried placing the code in a "On submit" process but it's never executed. I guess that the links on report columns are not considered submits, just redirects or something else.
Gabe

There is data, though:
<tr onmouseover="row_mouse_over5754815862961903(this, 1)" onmouseout="row_mouse_out5754815862961903(this, 1)"><td class="t15data" >21</td><td class="t15data" >Zapatos marrones</td><td class="t15data" >115</td><td class="t15data" ><*label for="f01_0001"* class="hideMe508">C004</label><input type="text" name="f01" size="15" maxlength="2000" value="1" id="f01_0001" /></td><td class="t15data" >898989</td><td class="t15data" ><label for="f02_0001" class="hideMe508">C006</label><input type="text" name="f02" size="15" maxlength="2000" value="75" id="f02_0001" /></td><td class="t15data" >Zapatos de cuero marron horribles</td><td class="t15data" ><img src="/i/minus.gif" border="0" title="Eliminar" alt="Icon 1"><label for="f03_0001" class="hideMe508">SEQ_ID</label><input type="hidden" name="f03" value="1" id="f03_0001" /><input type="hidden" name="fcs" value="AA82BB7B2A984AD8C1B429F5F782B915" /></td></tr><tr onmouseover="row_mouse_over5754815862961903(this, 2)" onmouseout="row_mouse_out5754815862961903(this, 2)"><td class="t15data" >22990</td><td class="t15data" >V/vs. bordado</td><td class="t15data" > - </td><td class="t15data" ><label for="f01_0002" class="hideMe508">C004</label><input type="text" name="f01" size="15" maxlength="2000" value="1" id="f01_0002" /></td><td class="t15data" >099900866</td><td class="t15data" ><label for="f02_0002" class="hideMe508">C006</label><input type="text" name="f02" size="15" maxlength="2000" value="" id="f02_0002" /></td><td class="t15data" >V/vs. bordado</td><td class="t15data" ><img src="/i/minus.gif" border="0" title="Eliminar" alt="Icon 1"><label for="f03_0002" class="hideMe508">SEQ_ID</label><input type="hidden" name="f03" value="2" id="f03_0002" /><input type="hidden" name="fcs" value="096444F9ABCDC797CE35E5A694057CF4" /></td></tr><tr onmouseover="row_mouse_over5754815862961903(this, 3)" onmouseout="row_mouse_out5754815862961903(this, 3)"><td class="t15data" >22990</td><td class="t15data" >V/vs. bordado</td><td class="t15data" > - </td><td class="t15data" ><label for="f01_0003" class="hideMe508">C004</label><input type="text" name="f01" size="15" maxlength="2000" value="1" id="f01_0003" /></td><td class="t15data" >099900866</td><td class="t15data" ><label for="f02_0003" class="hideMe508">C006</label><input type="text" name="f02" size="15" maxlength="2000" value="" id="f02_0003" /></td><td class="t15data" >V/vs. bordado</td><td class="t15data" ><img src="/i/minus.gif" border="0" title="Eliminar" alt="Icon 1"><label for="f03_0003" class="hideMe508">SEQ_ID</label><input type="hidden" name="f03" value="3" id="f03_0003" /><input type="hidden" name="fcs" value="DA834BD62491260D28F63E05662DDD97" /></td></tr><tr onmouseover="row_mouse_over5754815862961903(this, 4)" onmouseout="row_mouse_out5754815862961903(this, 4)"><td class="t15data" >22993</td><td class="t15data" >V/salerno-2003-rosa/celeste</td><td class="t15data" > - </td><td class="t15data" ><label for="f01_0004" class="hideMe508">C004</label><input type="text" name="f01" size="15" maxlength="2000" value="1" id="f01_0004" /></td><td class="t15data" >169780340</td><td class="t15data" ><label for="f02_0004" class="hideMe508">C006</label><input type="text" name="f02" size="15" maxlength="2000" value="" id="f02_0004" /></td><td class="t15data" >V/salerno-2003-rosa/celeste</td><td class="t15data" ><img src="/i/minus.gif" border="0" title="Eliminar" alt="Icon 1"><label for="f03_0004" class="hideMe508">SEQ_ID</label><input type="hidden" name="f03" value="4" id="f03_0004" /><input type="hidden" name="fcs" value="51CCCCF026D1C8F9350AA019CDCA3432" /></td></tr><tr>
Edited by: Gab2 on Oct 26, 2009 12:40 PM

Similar Messages

  • "before header" processes and page items

    I want that a process running in "On Load before header" in page X see an item value the was submitted to it from page Y.
    How can that be done?

    The thing is the page item in page X gets it's value as a URL submission from a page X link, so the page item hasn't been evaluated yet in before header stage.

  • Before Header pl/sql process to assign values to page items

    How can i assign values to items on a page based on the data structure returned from a pl/sql procedure within the before header process? I am thinking of executing a pl/sql procedure based on a URL parameter value and then assign values to page items. Is this really possible using Apex 4.0.2? If yes, how can it be done?
    thanks
    Seetharaman

    The question isn't really clear. What kind of "data structure returned from a pl/sql procedure"? Please be much more specific.
    For a PL/SQL data structure such as record containing 2 elements (<tt>x</tt> and <tt>y</tt>) returned as an out parameter from a procedure to be assigned to 2 page items <tt>p1_x</tt> and <tt>p1_y</tt>, all that's required in the Before Header process is something like
    declare
      l_rec rec_type;
    begin
      the_proc(..., p_out => l_rec, ...);
      :p1_x := l_rec.x;
      :p1_y := l_rec.y;
    end;

  • How to Set CheckBox values in Before Headr Process

    In my Before Header process I read a database table that contains a code field that I would like to use to have my checkbox values checked if the field contains one of the values.
    Example the database file my have "LWR"
    On the form the Check box is
    L - For Loading
    W - For Waiting
    R - Relase
    P - Posted
    J - Job
    .....etc
    So when I read the record for my above example I would like L, W, and R checked.
    What is the best method to do this?
    THanks.

    Are you storing the values with their ":" separators (like 'L:W:R')?  If so, the checkbox code does the transformation logic.  In which case, there is no need to code insertion of the : when populating the checkbox.  No need to remove them before saving the values.
    Howard

  • RICS0001:Internal Error,unable to process the collected data from the device.

    Hi all,
    I've got the following error in Inventory Collection: 'RICS0001:Internal Error,unable to process the collected data from the device.'
    System is CW LMS 2.6
    If I search the web I get the following Cisco document:
    http://www.cisco.com/en/US/products/sw/cscowork/ps2073/prod_troubleshooting_guide09186a008036dff2.html
    '...in the log directory look for IC_Server.log.'
    IC_Server.log:
    [ Di Nov 16  15:54:27 CET 2010 ],INFO ,[Thread-25],com.cisco.nm.rmeng.inventory.ics.core.ICSCore,173,Got Async Request, User Name :admin
    [ Di Nov 16  15:54:27 CET 2010 ],INFO ,[Thread-25],com.cisco.nm.rmeng.inventory.ics.core.ICSCore,179,Request ID is : 1289919235488
    [ Di Nov 16  15:54:27 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.inventory.ics.core.CollectionController,309,Started processing device ID: 3341
    [ Di Nov 16  15:54:27 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.RMELogger,724,com.cisco.nm.rmeng.util.db.DatabaseConnectionPool,getConnection,59,Inside ICSDatabaseConnection, MAX_COUNT =20
    [ Di Nov 16  15:54:28 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.inventory.ics.core.CollectionController,387,Started processing device Name: 9.152.255.101
    [ Di Nov 16  15:54:28 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,g$eval,103,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:g$eval:populating ContainmentAG attributes, begins...
    [ Di Nov 16  15:54:28 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,populatingTheChassis,110,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:populatingTheChassis:ContainmentAG attributes,collection from the device begins...
    [ Di Nov 16  15:54:29 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,populatingTheChassis,147,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:populatingTheChassis:ContainmentAG attributes,collection from the device successful...
    [ Di Nov 16  15:54:29 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,populatingTheChassis,149,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:populatingTheChassis:ContainmentAG attributes,population begins...
    [ Di Nov 16  15:54:29 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,populatingTheChassis,216,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:populatingTheChassis:Before method getSlotsConfiguredStatistics
    [ Di Nov 16  15:54:29 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,populatingTheChassis,225,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:populatingTheChassis:After method getSlotsConfiguredStatistics
    [ Di Nov 16  15:54:29 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,populatingTheChassis,245,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:populatingTheChassis:ContainmentAG attributes,population completed...
    [ Di Nov 16  15:54:29 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,g$eval,105,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:g$eval:populating ContainmentAG attributes, ends...
    [ Di Nov 16  15:54:43 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.inventory.ics.core.CollectionController,477,DP time is 15 seconds for 9.152.255.101
    [ Di Nov 16  15:54:44 CET 2010 ],ERROR,[Thread-14],com.cisco.nm.rmeng.util.logger.RMELogger,770,com.cisco.nm.rmeng.inventory.ics.invchange.AddInvChange,effect,33,Unexpected error :com.sybase.jdbc2.jdbc.SybSQLException: ASA Fehler -193: Primärschlüssel für Tabelle 'PhysicalElement' ist nicht eindeutig
        at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2834)
        at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java:2156)
        at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69)
        at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:220)
        at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:203)
        at com.sybase.jdbc2.jdbc.SybStatement.executeLoop(SybStatement.java:1766)
        at com.sybase.jdbc2.jdbc.SybStatement.execute(SybStatement.java:1758)
        at com.sybase.jdbc2.jdbc.SybPreparedStatement.execute(SybPreparedStatement.java:619)
        at com.cisco.nm.rmeng.inventory.ics.dbrep.DBRecord.insert(DBRecord.java:50)
        at com.cisco.nm.rmeng.inventory.ics.util.ICSDatabaseConnection.insert(ICSDatabaseConnection.java:91)
        at com.cisco.nm.rmeng.inventory.ics.invchange.AddInvChange.effect(AddInvChange.java:29)
        at com.cisco.nm.rmeng.inventory.ics.server.InvDataProcessor.processInvData(InvDataProcessor.java:394)
        at com.cisco.nm.rmeng.inventory.ics.core.CollectionController.run(CollectionController.java:849)
        at java.lang.Thread.run(Thread.java:534)
    [ Di Nov 16  15:54:44 CET 2010 ],ERROR,[Thread-14],com.cisco.nm.rmeng.inventory.ics.server.InvDataProcessor,448,ASA Fehler -193: Primärschlüssel für Tabelle 'PhysicalElement' ist nicht eindeutig
    com.sybase.jdbc2.jdbc.SybSQLException: ASA Fehler -193: Primärschlüssel für Tabelle 'PhysicalElement' ist nicht eindeutig
        at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2834)
        at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java:2156)
        at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69)
        at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:220)
        at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:203)
        at com.sybase.jdbc2.jdbc.SybStatement.executeLoop(SybStatement.java:1766)
        at com.sybase.jdbc2.jdbc.SybStatement.execute(SybStatement.java:1758)
        at com.sybase.jdbc2.jdbc.SybPreparedStatement.execute(SybPreparedStatement.java:619)
        at com.cisco.nm.rmeng.inventory.ics.dbrep.DBRecord.insert(DBRecord.java:50)
        at com.cisco.nm.rmeng.inventory.ics.util.ICSDatabaseConnection.insert(ICSDatabaseConnection.java:91)
        at com.cisco.nm.rmeng.inventory.ics.invchange.AddInvChange.effect(AddInvChange.java:29)
        at com.cisco.nm.rmeng.inventory.ics.server.InvDataProcessor.processInvData(InvDataProcessor.java:394)
        at com.cisco.nm.rmeng.inventory.ics.core.CollectionController.run(CollectionController.java:849)
        at java.lang.Thread.run(Thread.java:534)
    [ Di Nov 16  15:54:44 CET 2010 ],ERROR,[Thread-14],com.cisco.nm.rmeng.inventory.ics.core.CollectionController,861, Exception occured in process method while processing: 9.152.255.101 ASA Fehler -193: Primärschlüssel für Tabelle 'PhysicalElement' ist nicht eindeutig
    ICSException :: ASA Fehler -193: Primärschlüssel für Tabelle 'PhysicalElement' ist nicht eindeutig
        at com.cisco.nm.rmeng.inventory.ics.server.InvDataProcessor.processInvData(InvDataProcessor.java:463)
        at com.cisco.nm.rmeng.inventory.ics.core.CollectionController.run(CollectionController.java:849)
        at java.lang.Thread.run(Thread.java:534)
    I don't know where the German error message comes from. The whole system is English. Translation is: "ASA error -192: primary key for table 'PhysicalElement' isn't distinct'
    Thanks for your help!
    Alex

    Well known issue in LMS 2.6. Most likely you are hitting CSCsm97530. As a temporary solution you could remove and re-add problematic device from CS. To get a permanent fix you need a patch (provided by TAC).

  • Before header pl/sql process creates blank space at top of page

    Hi,
    I'm finding that w/v 1.6.1 I get a blank space at the top of my page that appears to be somewhat proportional to the amount of code and/or # processes on that page that are before header. moving to after header and before regions also shows this behavior.
    There are no blank line outputs happening in the pl/sql processes, so I've got no idea why htmldb is putting blank space there.
    Anyone seen anything like this? Oracle 9.2.0.7, winxp pro
    Thanks
    matt

    Hi,
    I've had the same problem. I'm assuming that you have a region in the "After Header" position?
    If so, you could add the following in the region's Region Header:
    &lt;div style="display:none"&gt;
    and put this in the Region Footer:
    &lt;/div&gt;
    The region is defined in a table, which by definition is a block object. Block objects always begin on a new line and end with a new line - the above will put the region into a div and then hide the div.
    Regards
    Andy

  • LMS 4.2.4 Error RICS0001:Internal Error,unable to process the collected data from the device.

    Hi
    LMS 4.2.4 inventory collection fails with Error RICS0001:Internal Error,unable to process the collected data from the device for few devices.
    Can anyone help me out.
    Regards
    Laxmi

    They are definately supported. However such issues are usually due to device packages, if unavailable or not installed.
    Please do following :
    1. Check Admin > software centre > device updates and check any devices packages available in Cisco.com and install it and recheck.
    2. Please do a snmpwalk on problematic device on sysObjectID and share result. Following is the way to do snmpwalk :
    GUI - Open the device in Device Centre (Inventory > Tools > Device Center) and open the device with IP and from tools select snmpwalk and do it for sysObjectID (1.3.6.1.2.1.1.2)
    CLI : CD to NMSROOT/objects/jt/bin from command prompt. run command as per following syntax:
    snmpwalk -v2c -c <snmp_community_string> 1.3.6.1.2.1.1.2
    Example :
    community string = test123
    IP = 10.1.1.1
    snmpwalk -v2c -c test123 10.1.1.1 1.3.6.1.2.1.1.2
    3. Please check your device package, by clicking on the number of packages in front of Inventory, conifg and image management from :
    Admin > System > Software Center > Device Update
    Also, check device identity under edit identity option from :
    Inventory > Device Administration > Add / Import / Manage Devices
    Check my screenshots for details :
    Please check and share results.
    -Thanks
    Vinod
    **Rating Encourages contributors, and its really free. **

  • LMS Prime 4.1 RICS0001:Internal Error,unable to process the collected data from the device.

    Hello,
    I have a problem with inventory collection from several devices getting
    "RICS0001:Internal Error,unable to process the collected data from the device."
    ERROR,[Thread-20],com.cisco.nm.rmeng.inventory.ics.server.InvDataProcessor,918,Device does not exist in RME, Please check if device is already deleted

    Did you schedule an inventory collection job?
    Delete schedule and recreate it using device group.
    Cheers,
    Michel

  • BI Content collecting objects from wrong/old source system??

    Hi Gurus! Lovely day here on the westcoast of Sweden - springtime is coming!
    I have selected an infosource for installation in trx RSOR. I also want to pick up some objects in the dataflow before and after that specific infosource. So I guess the system keeps trying to collect metadata from diffrerent source systems that we have assigned.
    I don't know the complete history of the systems - other than it's a bloody mess. We have right now a ECC 6 system connected to BI - but before that we had an older version connected (I guess 4.x something) on a diffrerent server.
    Somehow the collection process picks up some data from the ECC 6 system - but sometimes it asks for a login to the old system as well.
    This is my problem. I don't have an issue with logging on to the old system - because I have all the necessary rights to do that. But I don't want BI trying to collect metadata from our old system. So somewhere there's a pointer of some sort to the old system that I need to delete....
    The old system is not visible in the "source system assignment" view so I can't really find out where to change this settings....
    Any ideas??

    It's probably so. Would I still carry out the instructions Andreas gave me for checking this? Or should I just delete everything and do it all over again, just to get the connections straightened out?
    I'm more or less the only one at  this point using the system - as it is a kind of sandbox environment. So extreme measures is not a problem

  • Extract info from RFH2 header in MQ message

    Hi All,
    I'm trying to send a MQ message with RFH header. Purpose is that JMS adapter extracts user data from RFH Header.
    A few questions:
    1.Format RFH2 header:
    -In the MQMD I assign the format: MQFMT_RF_HEADER_2
    -Apart from the mandatory fields in the RFH2 header I write user data to it as well and it looks like this:
    <usr><msgType dt="string">data</msgType></usr>    Is this sufficient or should there be an additional surrounding tag like <MQRFH2>?
    2.In PI, I use a JMS Adapter. On the Module-tab I have added AF_Modules/DynamicConfigurationBean (type: Local Enterprise Bean, Module Key: RFHHEADER), after ConvertBinaryToXMBMessage  and before CallSapAdapter.
    Under Module Configuration I added 2 entries:
    RFHHEADER     key.0     read http://sap.com/xi/XI/System/JMS DCJMSMessageProperty0
    RFHHEADER     value.0     msgType
    I want to extract the value of msgType and use it.
    On the Parameter-tab, I suppose I have to add Adapter-specific message attributes, but it is not exactly clear what I should put there.
    3.Dynamic Configuration Bean
    Is there anything I should do to activate that Dynamic Configuration Bean, because when I sent I message, I don't see anything in the monitor of the processed XML messages, not even an error.
    Kind Regards
    Edmond Paulussen

    Edmond Paulussen wrote:>
    > Hi All,
    >
    > I'm trying to send a MQ message with RFH header. Purpose is that JMS adapter extracts user data from RFH Header.
    >
    > A few questions:
    > 1.Format RFH2 header:
    > -In the MQMD I assign the format: MQFMT_RF_HEADER_2
    > -Apart from the mandatory fields in the RFH2 header I write user data to it as well and it looks like this:
    > <usr><msgType dt="string">data</msgType></usr>  
    > On the Parameter-tab, I suppose I have to add Adapter-specific message attributes, but it is not exactly clear what I should put there.
    The list of additional parameters are stored in the ASMA field.
    So you enter here the header value "msgType" with type String
    The value "data" is stored in DCJMSMessageProperty0
    You do not need the DynamicConfigurationBean in this scenario.

  • VPD, before header clarification

    I know that VPD is based on each workspace.
    But have some doubts.
    Which process is fired first: one declared in before header or one defined in VPD: It seems that before header is fired before...right?
    We have placed in VPD :
    EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_DATE_FORMAT=' || chr(39)||'DD.MM.YYYY'||chr(39);
    code to ensure some date formats all around.
    This works OK!
    in a thread:
    Re: Error while using VPD
    I saw some interesting approach. So I have doubt.
    Let us forget in a moment fact that setting in VPD is affecting all app in that workspace.
    I want to place some checking which should occur sometimes (i.e. is some db parameter some value). Is that better to place in process or VPD?
    What is the order of executing?
    When VPD security fires?
    Please some clarification about this.
    THX!
    Message was edited by:
    Funky

    Hi Funky,
    add a
    HTP.P('VPN');to your VPD code. Run your page in debug mode and you will see that he VPD code is immediately execute after "Fetch session state from database" and in-front of all the other APEX processing steps. The debug mode is always a good way to find out the execution order of APEX.
    BTW, the VPD code doesNOT effect all applications of the workspace, it is an application property and is just executed for that application.
    The VPD functionality should (at least to my understanding) only be used to initialize the session and not be used to execute any other business code/checks/... put that into an application process.
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

  • Collecting data from two R3 source systems

    Dear All,
    Scenario:
    We are in the process of implementing SAP BI 7.0 in our organisation.
    We have a single BI server (7.01) collecting data from two source
    systems from two different divisions within the group.
    The first system is of Company 1 where we have IS u2013 MILL (ECC 6.0).
    BI has been implemented and running successfully in this unit. Now we
    have started implementing BI in the second unit u2018Company 2u2019
    where the industry specific solution IS u2013 AFS (ECC 6.0) is the source
    system.
    We are activating BI Standard Content for AFS. When we try to upload
    master data, we face a problem.
    The master data (0Division, 0Mat_Grp_3, etc.) is already loaded with
    IS Mill data (data from the first source system). Now when the data is
    loaded from IS AFS (second source system), wherever, the same key
    exists in the info object, we notice that the existing data is
    overwritten by the freshly loaded data, thus causing loss of existing
    data.
    A typical example is as follows:
    BW Data u2013 Source system 1 u2013 (Before upload of data from source system
    2):
    0Division
    99         EN          Stock Transfer Out
    AFS Data (Source system 2) -
    0Division 
    99         EN             STO
    BW Data u2013 Source system 1 u2013 (After upload of data from source system 2):
    After uploading the master data from AFS, the Values areu2026
    0Division
    99        EN            STO
    The original data is lost.
    Similar problem is noticed with other master data as well.
    Please suggest the right methodology for upload of master data when
    data to BW is sourced from two systems. How to retain the data in the
    same Infoobject but at the same time maintain distinction between the
    data from the two systems.
    We donu2019t find any specific mention of such scenarios in the standard
    documentation.
    Will such a problem recur when we upload transactional data?
    Regards,
    Aslam Khan

    Hi Aslam,
                Please use some compounding attribute for your master data object like Sourcesystem ID.  While loading the master data from different source systems... you should have two different flows to fill the same master data object.  In each flow you can specify the Source system ID as constant value ... eg SS1 (Source system 1)  and SS2(Source system 2) in each of the data flows.   This should solve your issue without overwriting your master data
    Thanks
    Kishore

  • Probable effects of removing Sold-to from invoice header?

    hi
    we have a requirement of doing collective billing by Payer and for that we need to remove Sold-to partner details from invoice header to avoid billing split.
    We are achieving this by using copy control routine to suppress Sold-to from delivery and (ii) removing Sold-to from header partner procedure of billing type to avoid prevent split due to different Sold-to in preceding documents. (and maintain Sold-to at invoice item level)
    Removing Sold-to from header partner procedure was required as otherwise the split indicator UNGLEICH=X was set and we could not find any user exit to set UNGLEICH = space in program LV60AB14 ( SAP ver 4.7 ).
    While we are trying to assess the effects of removing Sold-to from invoice header, I would lile to know opinion of others about probable effects of doing such; if anybody has done same thing in past, please help.
    thanks in advance

    Hi,
    As such removing sold to from invoice header will not pose any risk to the process. It is very much possible to have an invoice without SP. You can very well do this and go ahead.
    However you can test this by deleting the SP at header level while creating an invoice document on collective basis, and making the payment for the customer. The only place where I have little doubt is about the "Receivables from the customer(sold to party):" in FBL5N. Here we  may have some problems in updating the open items in Receivables and updating the payments. So please do the configuration and test this until payment to find out any errors. Along with this, also run a test on Credit Mngt. If there are no implications in Credit Mngt, and Payments in FI, you are safe to continue this as a process.
    The much simpler way to ensure SP not to be considered for invoice split will be to create a invoice split routine and code in such a way that SP is not a factor for splitting the invoices.
    So evaluate both of them of their advantage and risk and then decide.

  • Find out current old heap usage from within the process

    Hello!
    We use the CMS garbage collector and need a way to find out how much memory is used of the old heap by reachable objects. This we have to do from within the process (not using jvmstat or jstat etc.).
    Since there is no way to distinguish between reachable and non-reachable objects (except for traversing the entire heap... -- or are there other possibilities?) our idea is to get the amount of used memory right after a garbage collection in the old heap.
    Using Java 1.5, this can be done by
    java.lang.management.MemoryPoolMXBean pool = <Pool for Old Generation>;
    pool.getUsage().getUsed();However, java.lang.management is only available in Java 1.5.
    Therefore my first question: Is there a similar way of finding out old heap usage in Java 1.4?
    There is another problem with this method: By calling pool.getUsage().getUsed();, one has to know when a GC has occurred (this could be done by calling it in an interval of x seconds -- if the current value is lower than the one before, a GC must hava occurred). A better way would be to use pool.getCollectionUsage().getUsed();, but this seems not to work for the CMS collector.
    Second question: Is pool.getCollectionUsage().getUsed(); really not working with CMS, or are we just doing it in a wrong way? Are there other ways of finding out the used memory in the old heap after a GC even when using the CMS?
    Thanks for any help!
    Regards,
    Nicolas Michael

    Hi Nicolas,
    There is no API in 1.4 to get the after GC memory usage of the old generation. The only thing close to it is (Runtime.totalMemory - Runtime.freeMemory) but it is the approx amount of memory used for the heap (not just the old generation).
    MemoryPoolMXBean.getCollectionUsage() returns the after GC MemoryUsage. This method should work for all collectors. I have a simple test case that shows it working fine with CMS. It shows the same value as the -XX:+PrintGCDetails shows.
    If you have a test case showing that this method doesn't work correctly, please submit a bug along with the test case. We'll investigate it.
    Thanks
    Mandy

  • OS command before file processing in Sender File adapter

    Hi there,
    I'm having troubles running a os command from the sender file (NFS) adapter.  The batch file which I try to run is not getting executed at all.
    When I manually run the same batch file from the command prompt then it works perfectly.
    The OS command looks like this from the adapter config:
    myserver\xi\interface\in\dothis.bat
    I have also try with this notation
    G:\myserver\xi\interface\in\dothis.bat
    Please give me some tips how can I solve this problem, is there any way how can I debug the OS command? When I look at the adapter monitonr no errors are showed.
    Thanks for any tips.
    Roberto

    Hi all,
    The problem is solved.
    Issue: File Receiver Channel does not execute the OS Command before message processing.
    Reason: XI always expects an input file (in my case the sender communication channel) on the source folder. If no input files are found then the rest of the adapter configuration is not executed at all.
    In our scenario the OS command is responsible for retrieving the input files from a FTP server the adapter. SO XI will never trigger the OS Command.
    Solution: Place a dummy input file on the source folder , the sender adapter will always read in this file and put it back on the same location.(e.g. using a condition in the receiver determination).
    Thanks,
    Roberto

Maybe you are looking for

  • All day events don't appear on my iPhone Calendar-

    Hi, I use iCal and I get all the event synchronized with my iPhone Calendar- except  the all day events that don't appear- How can I manage that ? Thanks for yourhelp Eric

  • Limit access to guest network

    In reading previous postings on limiting guest wifi access time on the AirPort Extreme, it sounds like you have to identify certain devices. my kids' devices only have access to the guest network. I was curious as to why the capability doesn't exist

  • File discription Error

    HI, I am facing an issue regarding the excel based planning on cost centers, as i have done all the configurtion in dev and its running perfectly fine on Dev and QA but as i have transported my config to production system is giving the error layout a

  • Track changes made to existing comments

    How can I track changes made to comments in Word 2010? It seems that with track changes on, you can tell which user made which edits within the body of a document, but track changes fails to track changes made to content within comments.

  • SaxParser supports schema validation?

    Does oracle.xml.parser.v2.SAXParser support XML schema validation? Thanks!