JBO framework - BUG ! very URGENT !!!!

Hi JDev-Team,
there seems to be a bug in the JBO implementation of the JDev 3.1.
I have used the JboHtml Beans to generate a JSP application, but because the beans are still young and didn't face some of my problems, I make some changes to extended them.
More exactly I added some features to the RowSetBrowser bean that enables my application to have a master detail information autogenerated via JavaScript, from extra columns of the rowsetbrowser, something like the show recordnr and editurl.
After I make changes in these details (JavaScript generated) I do a post(html form) with the target set as the page with the RowSetBrowser bean and in the render() I look for data that has to be changed.
I apply these changes to the table using the
getApplicationModule().getTRansaction().executeCommand(sqlstmt).
So far everything is ok.
Now this is what's happening. Let us have this scenario :
1. open the RowSetBrowser, navigate to one rec, do a edit using the EditCurrentRecord()
this operation I can repeat n-times, no problem.
2. now I try to modify some information in my javascript details, post is ok, data is changed.
again I can repeat this step n-times, no problem again.
3. if I like now to do step 1 after 2, I got always a error.
After changing to debugmode I got this from the debugger:
log3: EditCurrentRecord Bean : execute() - field name ... Ergbeschlog3: EditCurrentRecord Bean : execute() - field Ergbesch has sNewValue ... test101log3: EditCurrentRecord Bean : execute() - **** Updating Attribute: Ergbesch new value is test101[1235] OracleSQLBuilder Executing doSelect ... (true)log3: [1236] Built select: 'SELECT ERGBESCHID, ERGBESCH, ERGTABEL FROM EREIG_REF Ereig_Ref'log3: [1237] Executing LOCK...SELECT ERGBESCHID, ERGBESCH, ERGTABEL FROM EREIG_REF Ereig_Ref WHERE ERGBESCHID=? FOR UPDATE NOWAITlog3: [1238] OracleSQLBuilderImpl.doEntitySelect failed...log3: [1239] java.sql.SQLException: ORA-01002: FETCH auf ung|ltigen oder geschlossenen Cursor.the ORA-01002 is in english :
ORA-01002: fetch out of sequence
In the jdbc FAQ writes:
Error Message: "ORA-01002: fetch out of sequence"
A JDBC Connection by default has the AutoCommit turned ON. However, to use a SQL that has 'for update' you need to have autoCommit to be turned OFF.
Hence, the solution is to set autocommit to false.
I'm running the application in stateless mode which has autocommit set on, but I got the same problem running in statefull mode and also I must run the application in stateless mode.
Can you help me. I would appreciate a briefly answer, especially from Huan Oropeza.
TIA,
Seb.
null

Hi Steven,
let me explain why I need this solutions.
I have a application that has a master detail view from table1 companys to table2 events, so I can have many events to one company. Futher more I have pro event other tables (tableevent1, ... tableevent2) where I have properties of a event recorded, so event1 has properties1, event2 some other and so on ...
Companys -----> Events ------> Event1properties
In my application logic when I create a new event typ I have to create a new table where I will save the properties for that event. So, because the events can have different properties I can not create this in BC4J AppModule.
With VO I have created a ViewLink beetween Company and Event. For data manipulation of the tableevent1 ... I extended the RowSetBrowser thus when changing data to do:
UPDATE ..... statements and SELECTs to get that data.
I have also implemented this kind of operation for the DDL of the tableevent1 ...
(event properties) so this time to get that data I use :
select * from "SYS"."COL" where TNAME=tableevent1;
Changes are done with DDL Statements:
ALTER TABLE ...
CREATE TABLE ...
My problem is when I changed something with the RowSetBrowser methods in the tableevent1...(properties) I can not futher make any inserts, edits using the EditCurrentRecord Bean in the events table (detail table of company).
Please help me with this !
TIA,
Seb

Similar Messages

  • URGENT - Forcing a custom locale in the BC4J/JBO framework

    Hi,
    How can I force a locale in the JSP/JBO framework, something similar to:
    alter session set nls_territory =
    or
    alter session set nls_date_format =
    I tried to get the SessionImpl and forced a new Locale, but it seems it is in the JBOimpl first set, so anything I tried had no success.
    Please please advise !
    TIA,
    Seb.

    But this doesn't solve the problem. Calling alter session will change how numbers and dates are rendered by the database, but the business components still store them as Numbers and Dates, rendering them in their own way. How do we change the way jbo.domain.Numbers and jbo.domain.Dates are rendered as String?

  • Upload file in clustered environment- Very Urgent

    Hi,
    My requirement is to upload a file onto the WebServer and also list out the file names on the front end and provide a funcionality to delete them from the server.
    Environment Details:
    -Product: WebSphere Portal
    -Type - Clustered Enviroment with 2 nodes
    -Framework: JSF
    The problem I am facing here is:
    1) I login to the application using a common URL: Say abc.com/wps/portal
    2) I dont know which node I am logged into, it can be either Primary(X1) or Secondary(X2).
    3) I click on the browse button and select a file and click on the Upload button. The file is uploaded successfully on say primary node X1.
    4) I can at that time read the name of the file and display it on screen and also select and delete it. But if I log off and login again and say I am now redirected to secondary node, I am not able to read the name of the file I uploaded as it is stored on the primary node.
    Can some body provide me a solutions to this.
    What I can think of is , While uploading the file, I will check if I am on the primary node or secondary node and Upload the file only on one node rather than uploading them on both. Say uploading only on primary node X1, Now if I am logged into primary I can just mention the directory name and upload it.
    But I f am on the secondary node I need to upload the file on the primary node using URL connection.
    Can some body tell me the feasibility of this approach ?? Also how do I upload a file on a remote machine(Logged into the secondary but putting the file onto the primary node.) ???
    Please help me this very very urgent.
    Thanks.

    Hi!
    I would simply use a network share which is accessible from both nodes as storage. This way you don't have to care to which server the file is uploaded too, because both share the same filesystem.
    If you are on windows, simply share a folder and access it from both nodes. In Linux I'd suggest using samba & mount, on solaris use share & mount.
    Another approach would be to use a database as storage.
    hth Chris

  • Attachment issue --very urgent help  required

    Hello friends,
    1)i have create page and deatal page . requirement is that we have to load required attachments in table region, if not loading required attachments exception will raise. this validation is working fine in create page.
    2)same in detail page i loaded required attachments also excepiton is raising.
    waht would be cause. i am very new to ADF technology.
    very urgent to fix this issue. any one help me out.
    Thanks,
    vamshi.
    Edited by: Krishna Vamshi on Jul 1, 2010 6:14 PM

    Kirshna,
    Unfortunately your question is very unclear.
    Let me say that if you are asking about OA Framework, you should ask on the OA Framework forum, not here.
    also excepiton is raising.It will help if you say what the exception is.
    John

  • Mouse down event and Click event in List Box Very urgent.

    Hi,
           How can i differentiate mouse down and itemclick in ListBox.Its very urgent.
    Regards,
    Jayagopal.

    Nick wrote:
    Turns out need update value while typing turned on if you want to gaurantee a correct read of a text input control in a mouse down event.
    AFAIK, "Update value while typing" will trigger only a Value Change event of the Str Ctl.
    Mouse Down event will preceed a Value Change event, if you have both the event cases configured in your code.
    - Partha
    LabVIEW - Wires that catch bugs!

  • Cannot display the Crystal Report from BW..very Urgent

    Hello Friends,
    We are executing the Crystal report XI report from BW 3.50 but cannot displaying andgiving the error messgae as follows....
    <b>Service cannot be Reached</b>
    <b>What has happened?
    URL http://sapprodbw.company.com:8112/sap/bw/sap/bw/ce_url call was terminated because the corresponding service is not available.
    Note
    The termination occurred in system I12 with error code 404 and for the reason Not found.
    The selected virtual host was 0 .
    What can I do?
    Please select a valid URL.
    If you do not yet have a user ID, contact your system administrator.
    ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:sapprodbw_I12_12-v:0-s:404-r:Notfound
    HTTP 404 - Not found
    Your SAP Internet Communication Framework Team</b>
    I'm getting the above error could plz help me .. its very urgent task for us..
    Thanks in advance for your valuable time...
    Sreedhar G.

    Hi Dinesh,
    I started all the services and i checked the Test service of ICF its giving the same above  error and service cannot be rezched...BASIS is also workin on the same issue but getting ...
    Any help...
    Message was edited by: sreedhar Gunda

  • Release strategy-- very very urgent

    hi,
    i have created the release strategy & its working properly in devolopment client. The entire thing is transported to quality client. But the characteristics values are not coming in the classification tab of release strategy. I have saved even the view in transport request but still the values are not coming. Can anyone suggest something. Its very urgent
    thanks

    Hi,
    The transport of release procedure customizing data can only be done in
    a restricted manner. Please take a look at attached Note 86900 and
    follow the procedure described in this note, in order to correctly
    transport your release strategies.
    The classification data must be sent over using ALE.  It does not
    get transported directly.  Notes 45951, 86900 and note 365604 should
    help.  Please follow the instructions in note 45951.
    You can obtain information about how to set-up ALE in the Online
    Documentation CD (R/3 Library -> CA - Cross Aplication Components ->
    Business Framework Architecture -> ALE Integration Technology ->
    ALE Quick start).
    However, if you can't set-up ALE, you can re-create the classification
    data agin in your target system.
    For that you have to:
    1. assign new values to the characteristic master data  (trx. CT02)
    2. assign the new data to the classification system (trx. CL30)
    3. verify the consistency with trx. CL24. Please see note #186809.
    For more information, please see note #365604.
    There is another possibility that you could take into consideration for
    the classification is to import them via batch input:
    RCCTBI01 for creating characteristics
    RCCLBi01 for creating classes
    RCCLBI03 for classification
    Regards,
    Sunitha.

  • Very Urgent.......How to update the database values through OAF pages ??

    Hi All,
    I am developeing some self service application thru Oracle Application Framework(OAF). There I am fetching 5 attributes from the database and displaying those attributes in my main page Table Region. Now my requirement is i want to edit that exising values & again i want to store it in the databse while clicking the update button. so first i have created one VO for fetching the values from the database & i make one Table Region in my main page along with 5 MessageTextInput field.. & i mapped that VO's attributes to my textbox.Now i can able to fetch & display the values inside the text box while rendering the page.
    But I dont know how to update the values in the database. Caz in my VO I have only select query. So anyone plz send me the code for update. And also plz let me know where to insert that code..whether (CO or AM or EO)..it is very urgent.
    Thanks
    srini

    David,
    Note that the default JavaBean datacontrol does not allow create/remove and transaction operations. These apis are not implemented for the JavaBean datacontrol.
    You may re-initialize the rowsetiterator, by calling ((oracle.adf.model.generic.DCRowSetIteratorImpl)iteratorBinding.getRowSetIterator()).clearCurrentData().
    This will force the RSI to refresh it's data via the named-accessor again.

  • Badi's on vi01. Pls Its very urgent

    Hi Experts,
          I have given the requirement below I am not aware of badi's. Pls tell me the info about  Business event 1120P. And also post the coding for this functionality . Its very urgent
    Enhancement Summary
    Two user exits are needed to determine the correct G/L Account and Cost Center on Shipment Cost documents and post the Material Group on the Accounting document. BADI_SCD_ACCTG and Business Event 1120P can be used to accommodate the new functionality.
    Business Process
    Specific G/L Accounts and Cost Centers have to be determined to post on the Shipment Cost document. This is needed to provide accurate management reporting capabilities on shipments for Sales Order or Stock Transfer Order. A new custom table must be created which contains the following information: Distribution, Mode of Transport, Account, Cost Center Material group. Distribution is an identifier here if this shipment originated from an SO or STO.
    There are no screens involved in this enhancement.
    Components
    Table: ZTABLE1
    Field     Data Element     Type     Length     Description
    MANDT     MANDT     CLNT (key)     3     Client
    DISTRIBUTION     Z_DISTRIBUTION     CHAR (key)     1     Distribution
    MOT     ZZDEF_MOT     CHAR (key)     2     Mode of Transportation
    MATKL     MATKL     CHAR (key)     9     Material group
    SAKNR     SAKNR     CHAR     10     G/L Account Number
    KOSTL     KOSTL     CHAR     10     Cost Center
    This table gets updated manually by the FI team.
    Values for Distribution are:
    ‘1’  =  Primary Distribution to Refinery
    ‘2’ = Primary and Secondary– Excluding refinery
    All entries must be checked against SAP config and master tables
    User exit BADI BADI_SCD_ACCTG will be used to determine the correct G/L Account, Cost Center and Product Group based on Distribution and Mode of Transport. This BADI gets called only when a new Shipment Cost document get created.
    Once the BADI determined the new values it populates field c_vfkn-sakto with the G/L account, field c_vfkn-kostl with the Cost Center and exports the Product group to memory.
    There is no field on the Shipment Cost Document to store the Product group. Therefore another mechanism must be used to get the Product Group on the accounting document.
    Business Event 1120P can be used to import the Product group out of memory and put it on BSEG-MATNR. Structure BSEG_SUBST must be enhanced with field MATNR for this purpose.
    Function, Rules, Exits      Description of Functionality, Rules, Exits
    BADI_SCD_ACCTG     Business Add-In for Shipment Cost Account Assignment
    Business Framework     Business Event 1120P can be used to import the Product Group from memory and to populate field BSEG_SUBST-MATNR.
    This event gets called from different places. It needs to be ensured that it only populates the value when it was called from BADI_SCD_ACCTG.
    Custom Table     A look-up Table needs to be maintained for Distribution, Mode of Transport, G/L Account, Cost Center and Material Group
    Transaction code     To maintain the new table
    Append Structure     To enhance structure BSEG_SUBST with MATNR
          Business Add-In BADI_SCD_ACCTG can be used to determine the account assignments for a shipment cost item to set the G/L Account and Cost Center. All data needed to determine the new information gets provided in this BADI.
    Logic:
    •     Determine if STO or SO based on Document Category from internal table I_REFOBJ-VTRLP field VGTYP If is C then Distribution type is Sales Order (Primary and Secondary – Excluding Refinery – ‘2’ ) else we need to check the receiving plant. If the receiving plant (I_REFOBJ-VTRLK field WERKS) is a refinery the Distribution type is Primary (1) else it’s a (Primary and Secondary – Excluding Refinery – ‘2’ ). Refineries can be identified via Function Module Z_M_GET_PLANTCLASSIFICATION. The plant must be passed into Import Parameter IP_SAPPLANT and field INT_PLANTCHAR-ATNAM must be looked up with value SAPTYPE. If it exists and field ATWRT contains ‘RFY’, the plant is a refinery.
    •     Product Group can be determined from the Material master through Material group field MARA-MATKL.
    •     Mode of Transport will be passed in the BADI in VTRLK-OIC_MOT.
    •     Select single entry from table ZTABLE1based on Distribution, Mode of Transport and Material Group. If nothing gets selected, error message ‘No entry exists in table ZTABLE1for Distribution (distribution), MOT (MOT) & Mat. Group (material group)’ should be triggered.
    •     Move ZTABLE1-SAKNR  to c_vfkn-sakto and ZTABLE1-KOSTL to c_vfkn-kostl
    •     The Material group must be exported to memory in BADI_SCD_ACCTG
    •     The Material group must be imported from memory in Business Event BP1120P
    •     Free Memory in Business Event BP1120P
    This is VI01 – Creation of Freight Cost Item screen

    check the reply of ur Same Post .
    regards
    prabhu

  • Log4j problem  ----   VERY VERY URGENT PLEASE

    Hi,
    I am new to log4j. In my project( web application -- a testing framework ), there is a requirement to log the errors in a different filres for different requests ( the request may come simultaneously ) , by taking the log file path from the user interface.
    To achive the requirement , I am taking both the log file name and log4j.xml file path from the user interface and updating the log4j.xml at runtime, So I am able to log for different requst in different files , but while the 2nd log4j.xml ( the log4j.xml for 2nd request ) is configured ( using DOMConfigurator.configure ) , the errors which are belongs to 1st request are also wrriten in the 2nd log file ( which is configured by log4j.xml -- 2n request ) .
    Please help me to find out the solution for this problem( to log in different files for different request distinctly ).
    Thanks in advance

    chandan111 wrote:
    Please help me to find out the solution for this problem( to log in different files for different request distinctly ).Since this was "very very urgent", I'm probably too late. Anyway:
    The correct way to do this in Log4j would be to use the NDC (Nested Diagnostic Context ) class.
    Article

  • Problem with the EP6 SP10 Patch 1 Post Install (VERY URGENT)

    Hello,
    My installation seems to be well done.
    But when I try to do the first connection on the portal, I sign-in the system and it returns errors like :
    "Portal Runtime error
    An exception occurred while processing a request for :
    iView : pcd:portal_content/every_user/general/defaultDesktop/frameworkPages/frameworkpage
    Component Name : com.sap.portal.pagebuilder.pageBuilder
    The exception was logged. Inform your system administrator..
    Exception id: 04:29_01/02/05_0003_7226250
    See the details for the exception ID in the log file"
    Is there one of you who can help me to solve my problem.
    It is very urgent
    Thanks in advance
    Regards
    Humbert

    Hello,
    The console logs contain no information bout my problem but I looked in the directory :
    e:\usr\sap\DP1\DVEBMGS00\work and here is the contain of the file std_server0.out
    PatchLevel 88028.313 December 22, 2004 20:48 GMT
    >  service DQE ================= ERROR =================
    Feb 2, 2005 11:03:28 AM  ...Thread.SingleThread.run().OutOfMemory [SAPEngine_System_Thread[impl:5]_63] Fatal:
    Feb 2, 2005 11:03:28 AM  ...Thread.SingleThread.run().OutOfMemory [SAPEngine_System_Thread[impl:5]_53] Fatal:
    Feb 2, 2005 11:03:28 AM  ...Thread.SingleThread.run().OutOfMemory [SAPEngine_System_Thread[impl:5]_50] Fatal:
    Feb 2, 2005 11:03:30 AM  ...Thread.SingleThread.run().OutOfMemory [SAPEngine_System_Thread[impl:5]_30] Fatal:
    stdout/stderr redirect
    node name   : server0
    pid         : 1820
    system name : DP1
    system nr.  : 00
    started at  : Wed Feb 02 11:03:37 2005
    CompilerOracle: exclude com/sapportals/portal/pb/layout/taglib/ContainerTag addIviewResources
    CompilerOracle: exclude com/sap/engine/services/keystore/impl/security/CodeBasedSecurityConnector getApplicationDomain
    CompilerOracle: exclude com/sap/engine/services/rmi_p4/P4StubSkeletonGenerator generateStub
    CompilerOracle: exclude com/sapportals/portal/prt/util/StringUtils escapeToJS
    CompilerOracle: exclude iaik/security/md/SHA a
    CompilerOracle: exclude com/sapportals/portal/prt/core/broker/PortalServiceItem startServices
    CompilerOracle: exclude com/sap/engine/services/webservices/server/deploy/WSConfigurationHandler downloadFile
    CompilerOracle: exclude com/sapportals/portal/prt/jndisupport/util/AbstractHierarchicalContext lookup
    SAP J2EE Engine Version 6.40   PatchLevel 88028.313 is starting...
    Loading: LogManager ... 609 ms.
    Loading: PoolManager ... 0 ms.
    Loading: ApplicationThreadManager ... 94 ms.
    Loading: ThreadManager ... 15 ms.
    Loading: IpVerificationManager ... 16 ms.
    Loading: ClassLoaderManager ... 15 ms.
    Loading: ClusterManager ... 250 ms.
    Loading: LockingManager ... 63 ms.
    Loading: ConfigurationManager ... 1031 ms.
    Loading: LicensingManager ... 31 ms.
    Loading: ServiceManager ...
    Loading services.:
      Service runtimeinfo started. (78 ms).
      Service cross started. (125 ms).
      Service file started. (125 ms).
      Service timeout started. (125 ms).
      Service memory started. (156 ms).
      Service jmx_notification started. (203 ms).
      Service trex.service started. (266 ms).
      Service userstore started. (31 ms).
      Service tcsecvsi~service started. (297 ms).
      Service p4 started. (343 ms).
      Service classpath_resolver started. (16 ms).
      Service tcsecwssec~service started. (390 ms).
      Service deploy started. (2656 ms).
      Service apptracing started. (172 ms).
      Service log_configurator started. (8031 ms).
      Service locking started. (0 ms).
      Service http started. (172 ms).
      Service naming started. (297 ms).
      Service failover started. (62 ms).
      Service ts started. (109 ms).
      Service appclient started. (140 ms).
      Service javamail started. (156 ms).
      Service licensing started. (16 ms).
      Service jmsconnector started. (172 ms).
      Service connector started. (234 ms).
      Service configuration started. (16 ms).
      Service webservices started. (578 ms).
      Service dbpool started. (5343 ms).
      Service com.sap.security.core.ume.service started. (2547 ms).
      Service security started. (2203 ms).
      Service classload started. (109 ms).
      Service applocking started. (156 ms).
      Service shell started. (344 ms).
      Service tceCATTPingservice started. (47 ms).
      Service telnet started. (78 ms).
      Service keystore started. (516 ms).
      Service ssl started. (16 ms).
      Service webdynpro started. (172 ms).
      Service tcsecsecurestorage~service started. (109 ms).
      Service ejb started. (781 ms).
      Service servlet_jsp started. (813 ms).
      Service dsr started. (343 ms).
      Service tcsecdestinations~service started. (141 ms).
      Service rfcengine started. (109 ms).
      Service jmx started. (829 ms).
      Service pmi started. (203 ms).
      Service prtbridge started. (688 ms).
      Service basicadmin started. (703 ms).
      Service adminadapter started. (93 ms).
      Service sld started. (1234 ms).
      Service monitor started. (672 ms).
      Service com.sap.portal.prt.sapj2ee started. (109 ms).
    Excluding compile:  iaik.security.md.SHA::a
      Service jms_provider started. (2954 ms).
      service DQE ================= ERROR =================
      Service tc.monitoring.logviewer started. (4266 ms).
    ServiceManager started for 26532 ms.
    Framework started for 28844 ms.
    SAP J2EE Engine Version 6.40   PatchLevel 88028.313 is running!
    PatchLevel 88028.313 December 22, 2004 20:48 GMT
    >  service DQE ================= ERROR =================
    Regards
    Humbert

  • Error while opening a module. plz help me, very urgent.

    when i try to open a module, the following error message appears on my screen.
              " no j2ee component found in d:\krisp\programs\servlets".
              i've installed bea in c: drive and my servlet program is in d: drive.
              plz help me, it's very urgent.

    Can you provide some more information? What were you doing when this happened?
              Can you post the entire error message?
              -- Rob
              WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • Need help, MMC tree got deleted, very urgent.

    Hi,
    My sap MMC tree, got deleted in the server. I have been trying to restore since 2 days and couldnt succeed, please help me.
    1) i have uncared the sapmmc.sar from   Kernal\NT\I386\MMC\sapmmc.sar file
    2) i got about 7 files, in which there is one sapmmc file i have tried to double click it, n check but no go.
    3) i also tried to run the Sapstartsrv.exe file and fill in up the values in pop up window. & filled up the following values :-
                        SID: DEV
                        NR: 00
                        StartProfile:  (entire start profile path given)
                        user: devadm
                        passwd; (given)
    - but it says "the account name is invalid or does not exist or the password is invalid for account name specified"/
    - no go in both the cases.
    Please need help very urgent.
    Regards,
    Satish.

    siva,
    I am getting same error since 2 days
    SID: DEV
    NR: 00
    Start Profile: (entire start profile path)
    User: <hostname>/devadm
    passwd: ****
    Error:
    cannot install service
    create service failed:421
    The account name is invalid or doesnot exist, or the passwd is invalid for the account name specified.
    Edited by: satish c on Jun 4, 2008 11:12 AM

  • How to write code for this logic in a routine, very urgent --help me

    hi all,
    i want to apply this logic into one subroutin ZABC.
    here i m giving my logic ,can any body help me in coding for this, this is very urgent, i hv to submit on wednesday.
    4.1 Read the company code number BSEG-BUKRS from document line item.
    4.2 Fetch PRDHA from MARA into GV_PRDHA where MATNR = BSEG-MATNR.
    4.3 Fetch Business area (GSBER) from ZFIBU into GV_GSBER where (PRDHA = GV_PRDHA and BUKRS = BSEG-BUKRS) OR (PRDHA = GV_PRDHA and BUKRS = SPACE).
    4.4 If business area match is found, go to step 3.9. Else continue.
    4.5 If BKPF-BLART IN set “ZVS_POSDT” OR BKPF-XBLNR starts with “I0*”, execute steps below. Else, go to Step 3.6.
    i. MOVE: BSEG-BKURS TO work area field WA_ZFIBUE-BUKRS,
    BSEG-MATNR TO work area field WA_ZFIBUE-MATNR,
    GV_PRDHA TO work area field WA_ZFIBUE-PRDHA,
    BSEG-HKONT TO work area field WA_ZFIBUE-HKONT,
    BSEG-GSBER TO work area field WA_ZFIBUE-GSBER,
    BSEG-PSWBT TO work area field WA_ZFIBUE-PSWBT,
    BKPF-BUDAT TO work area field WA_ZFIBUE-BUDAT,
    SY-DATUM TO work area field WA_ZFIBUE-CREDATE,
    SY-UZEIT TO work area field WA_ZFIBUE-CRETIME,
    Fetch running serial number (WA_ZFIBUE-SERIALNO) from ZFICO. This number will be stored in ZFICO with PARAMTYPE = "BPM030307", SUBTYPE = "ZFIBUE" and KEY1 = "SERIALNO". The actual serial number will be stored in the field VALUE1.
    i. Insert WA_ZFIBUE INTO ZFIBUE.
    ii. Send email notification to the user (if it is not already sent to user on the same posting date).
    Use function module ‘SO_NEW_DOCUMENT_ATT_SEND_API1’ to send mail.
    Fetch email address and date of last email from ZFICO. These values will be stored in ZFICO with PARAMTYPE = "BPM030307", SUBTYPE = "EMAIL" and KEY1 = "<USERNAME>". The email address will be stored in the field VALUE1 and posting date in VALUE2. Once mail is sent, VALUE2 is updated with latest posting date (BKPF-BUDAT).
    iii. Increment the running serial number and update ZFICO with new serial number.
    a. GV_ SERIALNO = WA_ZFIBUE-SERIALNO + 1
    b. Update ZFICO Set value1 = GV_SERIALNO
    Where PARAMTYPE = "BPM030307" AND
    SUBTYPE = "ZFIBUE" AND
    KEY1 = "SERIALNO".
    iv Move “VDFT” to BSEG-GSBER.
    v. Exit routine.
    4.6 Fetch MTART into GV_MTART from MARA where MATNR = BSEG-MATNR.
    4.7 If SY-BATCH = INITIAL AND GV_MTART <> ‘ROH’, issue the error message - “Maintain the mapping of product hierarchy <PRDHA> from article <MATNR> for <BUKRS>”. Else, go to step 3.8.
    4.8 If SY-BATCH <> INITIAL AND GV_MTART <> ‘ROH’, issue the error message - “Maintain product hierarchy on article master”. Go to step 3.10.
    4.9 Move GV_GSBER TO BSEG-GSBER.
    4.10 Exit Routine
    plz give me reply asap --this is very urgent
    thanks in advance
    swathi

    Hi Swathi,
    If it's very very urgent then you better get on with it, don't waste time on the web. Chop chop.

  • Update Routine ... Help me Please--VERY URGENT

    Hi All ,
    I Moving data from Cube to ODS . Let me explain abt the records in the cube .
    There are 6 key figures in the cube as well as dimensions, UNIQKEY TRANSACTION is One Dimension and ARTICLE is another dimension which is having an Navigational attribute called CORE ELEMENT.
    I am showing the data with those two dimension and the key figures which are to be used in the routine.
    Charc----
    Key Figures
    UNIQKEY-ARTICLE-Coreelement--
    billqty     
    in base unit
    A00N----1006330--1--
    10.5
    A00M -
    1006320----2--
    2.5
    A00P-----1006330--1--
    10.5  
    A00P-----1006320--2--
    2.5
    A00Q-----1006320--2--
    2.5
    A00Q-----1006340--3--
    10.5
    Now Lets see what the core element numbers mean,
    core element 1 means -- fuel .
    Core elemnet other 1 -- food .   
    I need to move these data into ODS Which will have an extra field called No of items in the transaction --ITEMS.For this i need to write  a routine .
    The Logic is ...
    1.if Materail is of type 1(Means if the core element - 1)
    I need to Populate the No of items in tnx = 1 .--ITEMS.
    2.If Material is of type(Means if the core element)2or 3 I need to populate the billing quantity to the no of transcations.--ITEMS
    3. If the Uniqkey tanscation contains two line items as  suppose that you have 20 litres of fuel and 2 cans of coke, then No of Items in the transaction should be 3 and Billing Quantity in BUoM 22
    billing quantity in BUoM = 20 litres for the first line item and 2 for the second line item...
    then as the first line item is fuel, field No OF Items in the Transcation should be 1 (replacing the 20) + 2 = 3
    so the final result in the ODS should be billing quantity in BUoM = 22 and The Items in the Transcation= 3
    So the ODS Data should look like this.
    UNIQKEY--billqty--
    ITEMS
    in base unit 
    A00N--10.5--
    1
    A00M--2.5--
    2.5
    A00P--13--
    3.5
    A00Q--13--
    12.5  
    NOTE : IN the ODS only the UNIQKEY IS THE KEY FIELD and the rest are DATA FIELDS.
    I Posted this one before also. But didnt get proper responses.
    I am Pasting the piece of code which I have written . This code will work for the first two records in the cube , But it is failing for the UNIQKEY Transcation having Line items.
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: /BI0/PMATERIAL.
    DATA: TITEMS LIKE /BIC/AZPOCODS00-/BIC/ZTITEMS,
           CORE_ELEMENT like /BI0/PMATERIAL-RPA_WGH1.
    $$ end of global - insert your declaration only before this line   -
    FORM compute_data_field
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
      USING    COMM_STRUCTURE LIKE /BIC/CS8ZPOCTUS04
               RECORD_NO LIKE SY-TABIX
               RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING RESULT LIKE /BIC/AZPOCODS00-/BIC/ZTITEMS
               RETURNCODE LIKE SY-SUBRC "Do not use!
               ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal table "MONITOR", to make monitor entries
    check not COMM_STRUCTURE-material is initial.
      select SINGLE RPA_WGH1
            INTO CORE_ELEMENT
            from /BI0/PMATERIAL
            where
            material = COMM_STRUCTURE-material
            and  OBJVERS <>'D'.
       IF CORE_ELEMENT EQ '1'.
       TITEMS = '1'.
         CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
           EXPORTING
             input         = titems
          IMPORTING
            OUTPUT        = titems
       ELSE.
       TITEMS = COMM_STRUCTURE-BILL_QTY.
       ENDIF.
    result value of the routine
      RESULT = TITEMS..
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    PLease give me ideas on how to acheive this . As I am not Aware of ABAP very well.. PLease try to give me the code. I hope one of you may got the same requirement before.
    Its very urgent and I need to deliver it today itself.
    Thanks in advance , you can mail me to [email protected]. If anybody intersted to discuss this Issue they can reach at +91 9845922955.

    Hi ,
    While I am moving the data from cube to ods . I need to create the update rules with cube -- 8cube . WHen i am doing this the billqty is a key figure in cube so that is not a problem but the ITEMS is not there in the cube ,SO for that I need to write a routine to populate that one.
    Its strange but the user what to analyse with the UNIQKEY transaction. And these objects will be added as navigational attributes to the Characteristic. as it acts as another dimension.
    He wants to laod these from ODS to Master data -Characteristic.
    to say for each transcation hpw many items are getting sold.
    Message was edited by: Nagarjuna Reddy
    ONce again thanks for the qucik replies
    Message was edited by: Nagarjuna Reddy

Maybe you are looking for

  • OBIEE 11g 11.1.1.6.0 configuration  creating domain failed

    Hi I am trying to install OBIEE 11.1.1.6.0. My installation failed during configuration stage of " Creating Domain". When i check the log file i see the following error . can you please help me? C:\OBIEE\Oracle_BI1\OPatch\opatch apply C:\OBIEE\Oracle

  • I have MA147X 60GB ipod and it is not being recognised by windows or Itunes

    I have connected my IPOD to the PC however neither windows or Itunes are recognising it. Also getting an error message ACCESS DENIED

  • Western Digital MYBOOK Premium! **Issues**

    I am getting bombarded with clients giving me the Western Digital MyBooks... and I am having the same issue on all of them! At first, I had to format them using Disk Utility as "MAC OS EXTENDED" to avoid a disk error saying that the hard drive was fu

  • MARS - drop rules

    I have a MARS20 configured to a IPS4240 placed between internet & LAN, and i want to stop my internal network to stop triggering the incidents and stop producing false positive; based on the assumption that my LAN is secure. So I have created a drop

  • OC4J Standalone Download?

    Hi Everybody, 1)can any body pass the link for downloading oc4j stand alone - latest version. 2)i downloaded jdev 10.1.3 and i know it have oc4j stand alone , but how i can separate it in different folder away from jdev , becuase i want to give it to