Reporting Request ID from ODS

Unless I am being particularly stupid I cannot see "Request Id" as a characteristic/key field/data field when building a BeX query against an ODS. Is there a solution?
I often use this characteristic in infocubes to track when particular data was loaded into the cube and need to do this against a (very large) ODS.

Here is a little function module I wrote to find the statuses of data in a ODS/cube and then report back
It is used in R3 to decide which timestamp to use for a real time function module (but that's another story)
it's prototype big hammer approach code - so apologise for select *'s (and I couldn't be bothered to tidy it up)
TABLES:
    rsmdatastate,
    rsreqicods.
CLEAR:
    e_sidtechok,
    e_sidqualok,
    e_sidrollup,
    e_siduppdmt,
    e_sidofodsa.
get infocube status
SELECT   SINGLE *
  FROM   rsmdatastate
  WHERE  infocube  = I_INFOCUBE.
    e_sidtechok    = RSMDATASTATE-TECHOK.
    e_sidqualok    = RSMDATASTATE-QUALOK.
    e_sidrollup    = RSMDATASTATE-ROLLUP.
    e_siduppdmt    = RSMDATASTATE-DMEXIST.
get the requests from the ODS
to get the sid of when it was activated
this can then be checked against the Data mart status
SELECT    *
  FROM    rsreqicods
  WHERE   tabname   = I_INFOCUBE
  AND     rnsidlast = e_sidqualok.
     e_sidofodsa  = RSREQICODS-ODSSID.
ENDSELECT.
if w_sidofodsa equals w_siduppdmt
then the ODS has pushed up the data mart for the last req in the ODS
ENDFUNCTION.

Similar Messages

  • Unable to delete request from ODS - BW 3.5

    Hi experts,
    I am not able to delete request from ODS in BW 3.5, patch level 21. I put the request red, but it does not help to delete it. The request is full load and quite hudge (16GB). Deleting actually takes too long (several hours), but does not finish, so I cannot tell you any error description. It seems that this job can run forever... I was trying to activate the request before, but because of a tablespace limitations I received some short dumps. That is why I am trying to load it agin in smaller parts. It is strange thou that in Manage/requests tab the request has flag 'available for reporting' but the data cannot be viewed as active (only as new data). Any ideas, OSS notes?
    Thank you,
    Michal

    Hi,
    If you want to delete  requests manually from the ODS tables.
    1. tcode se16.
    2. delete the request in these tables : RSICCONT (delete activated requests OR
    Make the selective deletion of the contents of that request), RSMONICDP, RSODSACTREQ (give the name of the ODS and the
    request ID and delete all the entries pertaining to this selection in that table.), RSODSACTUPDTYPE.
    You can check OSS Notes 947481
    Regards.

  • Delete overlapping requests from ODS

    Hi,
    Since it iss not possible to delete overlapping requests from an ods by any automated process like in info cube.
    Can we still delete overlapping request using abap code or the only way to do it is to delete  data (selective deletion) in a start routine.
    Any tips would be helpful

    Hi ,
    Try the following logic to delete the ovelapping requests from a particular data source.
    *& Report  ZV_DELETE_REQS                                              *
    *&Description:This program is for deletion of eixsting Full requests   *
    *&            from ODS                                                                     *
    REPORT  ZV_DELETE_REQS.
    data: RSICCONT like rsiccont,
          rsseldone like rsseldone.
    data: begin of i_req occurs 0,
          rnr like RSICCONT-rnr,
          end of i_req.
    refresh i_req.
    select * from RSICCONT UP TO 2 ROWS
                      where ICUBE  = 'ZCS_D10'
                      order by TIMESTAMP descending.
      i_req-rnr = rsiccont-rnr .
      append i_req.
      clear i_req.
    endselect.
    loop at i_req.
      select single * from RSSELDONE where RNR eq i_req-rnr and
                      source in ('0CO_OM_OPA_5',
                                 '0CS_OM_OPA_1').
      if sy-subrc eq 0.
        CALL FUNCTION 'RSSM_DELETE_REQUEST'
          EXPORTING
            REQUEST                    = i_req-rnr
            INFOCUBE                   = 'ZCS_D10'
          EXCEPTIONS
            REQUEST_NOT_IN_CUBE        = 1
            INFOCUBE_NOT_FOUND         = 2
            REQUEST_ALREADY_AGGREGATED = 3
            REQUEST_ALREADY_COMDENSED  = 4
            NO_ENQUEUE_POSSIBLE        = 5
            OTHERS                     = 6.
        IF SY-SUBRC <> 0.
          MESSAGE ID sy-MSGID TYPE 'I' NUMBER sy-MSGNO
              WITH sy-MSGV1 sy-MSGV2 sy-MSGV3 sy-MSGV4.
        else.
          message i799(rsm1) with i_req-rnr 'deleted'.
        ENDIF.
        do.
          select single * from RSICCONT where ICUBE  = 'ZCS_D10'
                                          and  rnr    = i_req-rnr.
          if sy-subrc ne 0.
            exit.
          endif.
        enddo.
      endif.
    endloop.
    hope it helps....
    regards,
    raju

  • Need to delete a request from ODS

    HI
    i need to delete a request from ODS Full update,It failed.I forced it to activate for testing and the request turned green.But iam not able to delete the request now as the job log says it has incorrect status and now not able to change the QM action of Request as it has already been activated.Now how do i delete this request.
    Thanks
    RAJ

    Hai,
    I think your request has been partially activated so you are not able to delete the request.
    If u really need that request to be deleted then see that there sholud not be any request above that one.
    Try to make the request red in manage screen and it will pop up a window which is having start no and cancel click no
    and then try to delete the request.
    If not need that request make the qm status red and leave it the data will be available for reporting.
    Regards.
    Vikram Singh

  • Unable to delete the request from ODS

    Hi All,
    I have loaded a request to ODS from flat file and the load got success, the request is activated and is available for reporting. Now the problem is i want to delete the request, but the  request is not deleting.
    I tried to delete the request by going in to the cube manage and changed the QM status and the technical status to red and delete, but it is not deleted.
    Thanks in advance for your reply

    Hi Prem,
    If the ods has datamart status & has been used to load data to a cube, then u cant delete the ods request. In this case, first, change the QM status of the request in the cube to red (delete) & then it wud be possible to go with the deletion of ods request.
    Also check this thread as well
    Request unable to delete from ODS.
    Regards,
    R.Ravi

  • How to delete a specific request from ODS

    Hi all,
    We have an ODS which we're loading invoices from legacy system. In legacy system, there are two tables for invoices. First one is daily records which is archived on last day of each month. As you guess, second table is  for archive records. We need all of the records from  both tables. Because of performance issue , we don't want to load both tables everyday . So we created two transformation. Since there is no delta option, we need to delete the first table request from data targets before extraction. And delete the request from the second table only last day of month. We're created process chain. But there is no option for deleting only the request from a specific data source or transformation. Are there any solution for this?
    thanks,
    Yigit

    Hi,
    Thanks for your code. But is there any function module to delete most recent request from the ODS.
    I had 2 requirements...One in need to delete from ODS & Other one from Cube.
    FM - 'RSSM_DELETE_REQUEST' will be used to delete from Cube only.
    Can please you send FM & ABAP Code to delete request from ODS.
    Thanks in advance.
    Yigit
    Message was edited by:
            Yigit

  • Delta Upload request from ODS is not including the Data target of planning

    Hi,
    I have a process chain in which there is a delta upload from ODS to 3 different data target.  One of the data target is the planning cube. last 2days back i have changed the process chain schedule after was the Delta request is not hapenning for Planning cube.  The process chain contains the changing the planning to load mode and load to planning mode.  Every thing is working fine but the Delta is not happening for the Planning cube.  Delta request are going correctly to the Other 2 data targets.  Now it was like Delta has excluded the Planning cube.  Another this there is nto planning package is appearing in the Infousources.  and when I am trying to upload manually from ODS to Data targets it say that No delta is there.  Please help me in this.  This is a production problem.   I have checked all the data monitors every thing is from but no delta is hapenning for the planning cube.   
    Thanks
    Naveen.

    Resolved

  • Problem in deleting a request from ODS

    Hi,
    i am trying to delete a request (not activated) from ODS, when i checked in SM37 for the status of the job it shows as Cancelled, but when i see for the request in ODS, the requested is deleted, could anyone please let me know why job in SM37 is cancelling when the request is actually deleting,
    This is not the case with activated request.
    please see the worklog of the cancelled job
                                                                                    Job started                                                                        
    Step 001 started (program RSDELPART1, variant &0000000005236, user ID KUMARV1)     
    Delete running: ODS object ZCFORO01, from 512,483 to 512,483                       
    Delete is scheduled; Selection conditions were substituted                         
    Request REQU_45IYZ9A2BQFRW0IUY5EB4MZ9W successfully deleted from ODS object ZCFORO01
    ABAP/4 processor: MESSAGE_TYPE_X                                                   
    <u><b>Job cancelled </b></u>

    Hi Arun,
    Yes the system raises an exception and saying that there is an error in ABAP code, could you please let me know what is the error, i have tried this deletion with 3-4 different ODS and to different systems i.e. in Q, P system
    Abap code as specified by Exception in ST22 transaction
    The termination occurred in the ABAP program "SAPLRSSM_PROCESS" in         
    "RSSM_PROCESS_REQUDEL_ODSO".                                              
    The main program was "RSDELPART1 ".                                                                               
    The termination occurred in line 114 of the source code of the (Include)   
    program "LRSSM_PROCESSU19"                                                
    of the source code of program "LRSSM_PROCESSU19" (when calling the editor  
    1140).                                                                    
    The program "SAPLRSSM_PROCESS" was started as a background job.                                                                               
    Source code extract                                                                               
    000840       endif.                                                        
    000850       append l_s_rnr_del to l_t_rnr_del.                            
    000860     endif.                                                          
    000870     delete l_t_rnr_del where                                        
    000880            rnr = ''.                                                
    000890     loop at l_t_rnr_del into l_s_rnr_del.                           
    000900       l_idx = sy-tabix.                                             
    000910       if l_s_rnr_del-sid is initial.                                
    000920         call function 'RRSI_VAL_SID_SINGLE_CONVERT'                 
    000930           exporting                                                 
    000940             i_iobjnm = '0REQUID'                                    
    000950             i_chavl  = l_s_rnr_del-rnr                              
    000960           importing                                                 
    000970             e_sid    = l_s_rnr_del-sid.                             
    000980       endif.                                                                               
    000990       if l_s_rnr_del-odssid is initial and             
    001000          not l_s_rnr_del-odsrnr is initial.            
    001010         call function 'RRSI_VAL_SID_SINGLE_CONVERT'    
    001020           exporting                                    
    001030             i_iobjnm = '0REQUID'                       
    001040             i_chavl  = l_s_rnr_del-odsrnr              
    001050           importing                                    
    001060             e_sid    = l_s_rnr_del-odssid.             
    001070       endif.                                           
    001080       modify l_t_rnr_del from l_s_rnr_del index l_idx. 
    001090       if l_min_sid > l_s_rnr_del-odssid.               
    001100         l_min_sid = l_s_rnr_del-odssid.                
    001110       endif.                                           
    001120     endloop.                                           
    001130     if sy-subrc <> 0.                                  
         >       message x000.                                    
    001150     endif.

  • To delete a request from ODS

    Hello all,
    I am not able to delete the request from ODS .
    It gives the error message :no request found in the change log.
    how shlould i delete the request??
    thnx in advance.
    Regards,
    Dhanya.

    Hello,
    thnx sriram n balaji!
    i checked my infosource through the prgm:RSAR_PSA_CLEANUP_DIRECTORY
    the following message appears in the display log:
    PSA: 8ZFIADS11_CA
    Version 000 technical name /BIC/B0000043000
    Partition 0003
    Request Ratio:[Deleted:Total]->1 :2
    Records Ratio:[Deleted:Total]->753943 :1507886 ,50 % logically deleted
    Partition 0004
    Request Ratio:[Deleted:Total]->0 :1
    Records Ratio:[Deleted:Total]->0 :753943 ,0 % logically deleted
    what should i infer from this ?
    can anyone please tell me the step by step procedure to delete the request.
    Regards,
    Dhanya.

  • Problem in deleting request from ODS

    Hi,
    I did an init load from newly created update rule for my existing ODS. I cancelled the INIT load as it was taking a long time and tried to delete the request from ODS, but when i deleted the request it is not getting deleted. Under request/DTP it is showing 'Request without Monitor Log: APO Request or Terminated Request Generation'. Can you please tell me how to delete this request.
    Regards,
    Raghavendra.

    Hi,
      The load is from One ODS to another. The problem is i deleted the init, but there is a request in ODS as in mentioned above which i am not able to delete. Help needed.
    Regards,
    Raghavendra.

  • Deactivate delta update before deleting the request from ODS

    Hi all,
    Happy New Year wishes to all.
    I have a scenario, where I am feeding the data to ODS from flat file and from ODS to Cube. Here ODS is a Data mart. Flat file to ODS full update and ODS to Cube First Initialization and Delta.
          I deleted the latest request from ODS, at the I got the message dialog box and it is saying that
    “Request 98888 already retrieved by data target BWVCLNT”
    “Delta update in data target BWVCLNT must be deactivate before deleting the request
    “Do you want to deactivate the delta update in data target BWVCLNT?
    So I pressed Execute changes, then after I loaded the data in to ODS and when I am trying to load the data into Cube, once I pressed execute button it is displaying the message dialog box like
    “Delta request is incorrect REQXXXXXXX in the monitor”
    “A repeat needs to be requested”
    “Data target still include delta request REQXXXXX”
    “If the repeat is now loaded, then after the load”
    “There could be duplicate data in the data targets”
    “Request the repeat?”
    After execute changes it is showing only “zero” Records only.
    What is that mean and why zero records it is displaying instead of delta records.
    Anybody faces this type of problem please let me know. This is somewhat urgent to me
    Thanks and Regards
    Satish Chowdary

    <i>Hi Satish,
    First Switch off the ODS ( automatic Update of Datatarget ) , though not really necessary. delete the Req from the Infocube, then delete from the ODS . Now delete the Init Req from the Infopackage for datamart infopackage.then Do an Init without datatransfer into Infocube. Later load data into ODS and then go for delta update to Infocube.
    I hope this helps.
    Thanks,
    Krish
    Dont Forget to assign Points.</i>
    Dude, you just repeated my answer I gave a few hours ago. Are you hungry for points?

  • Selective deletion of request from ODS which is activated and updated

    Hi all,
    I would like to delete the request from ODS which is activated and updated into data targets, i.e if i have three resquests 1,2,3 which are activated  and loaded into cube..now i would like to delete the between (2) request from ods, it says we have to delete latest first(3) , cant we delete this 2 nd request by doing some sort of settings plz let me know if any body got come to know this...plz
    Many thanks in advance,
    BRB

    Hi
    Did you look at the Online-Docu (link above)? In the administration of the ODS (I think menue 'Manage' in an english environment -> I've none at the moment) where you see each loaded package there you have a button right of the request id (status of data mart). If you press on this a dialog screen appears. There you can press on the trash icon. This resets the delta queue for the specific request.
    You have to do this for request 3 and 2. Then you can delete the request nr. 2. The bw system will then delete this request from the active data and from the change log. After this you can schedule the delta load again. This process will load request nr. 3 to the connected InfoCubes.
    If you do not reset the delta queue you will not be able to load request nr. 3 from the change log.
    As I supose you want not to delete request nr. 3 because of some long duration to upload and activate the whole request again.
    This works fine. I've done the last weeks often because we loaded request with 3 million records and more.
    Regards,
    H.J.

  • Updating the last date request from ODS to CUBE

    Dear Friends,
    Please can someone explain me.
    i allways update request from ods to cube, sometime there will be 3 to 4 request in the ods which wont have the Data mart (Tick) and when i update it to the cube. i can only see 1 request which is current date request. i dont know whether the previous days request has been updated to the cube.???
    but i see in the ODS that all the data mart (tick) is available for all the request.
    And  please can someone explain me, if i have many request in the ods, current date previous day and so on.
    Is there any way to update in such a way, where i can see all the dates in the Cube instead of only 1 request with current date in the cube.
    when i delete the request from the cube and remove the tick from the ods, and refresh, then suddenly the current request and all the previous request TICK will be gone...
    Thanks for your help.
    will assign complete points.
    Thank you so so much

    Hi,
    if you know everday how many request are getting updated in infocube as one request the you can check  the added records in infocube .. it should be equal to the sum of all those request ..
    but transferred can be more or equal .. also its depends on the
    update rules ..designing ..
    Hope this helps you ..
    Regards,
    shikha

  • Can we delete particular request from ODS

    Hi All,
    Can't we delete particular request from ODS?
    there are dozen of successful requests in ODS, when i deleted one successful request from the middle, all the subsequent requests lost the tick which indicates they are updated to cube. Is there any way that i can undo this one?
    can we do selective request(successful) deletion from ODS?
    Thanks in advance.
    Robyn.

    Hi Samara,
    what i was trying to do is re-arranging the requests according to chronological order, which are not in. imagine the scenario
    ODS requests      cube request
    5         ->             E
    4         ->             D
    2         ->             B
    3         ->             C      
    1         ->              A
    what iam trying to do is put them in sequence
    ODS request        cube request
    5                           E
    4                           D
    3                           C
    2                           B
    1                           A
    If i delete 3rd ODS request put it over 2 it won't accept as the request number is lesser than that of 2nd request.
    can we reconstruct any request from reconstruction tab or just the latest request?
    How does this effect the data which is already updated to cube from ODS?
    Regards,
    Robyn.
    Message was edited by:
            Robyn Hoggard
    Message was edited by:
            Robyn Hoggard

  • Upload request from ODS to InfoCube

    Hi,
    When I upload a request from ODS to Cube, how can I know which request number was created in the cube for this request. In other words if I have a request number in the ODS, which the suitable request number for it, in the cube (or vice versa)?

    Hi,
    In ODS > right click > Manage > Requests tab if you see a green check mark in the DataMart Status column (3rd column) this means that the request has been uploaded to the further data target. If you click on this check mark, in the pop up screen scroll to the last column. This is the request number that you will find in the cube (Or further data target).
    Hope this helps...

Maybe you are looking for

  • Need help transferring files from my canon vixia hg21 to final cut express!

    I can't seem to get my camera or its files to show up on the FCE log and transfer window. If anyone knows of a way to get this to work i would greatly appreciate it!!!. also, I have already tried converting files to get them to be an agreeable format

  • REP-6102: Failed to start the XML parser.

    I have this project that was started using the Reports Wizard, however using a very simplified query. Then I've applied quite a lot of PL/SQL code to pre-process the report data. Eventually everything works fine, and the only thing remaining is to pr

  • Iriver wiped out library?

    I have an ipod , my friend wanted to give me some music from his iriver and when he plugged it into my machine, now all my ipod music is gone! did we loose it or can it bee somewhere else!

  • Colour of Calendar doesn't change permanently

    When i try to change the colour of my calendar, they just switch into the colour they before after a few seconds. No matter wether i try to change it on iphone, ipad or icloud.com.... how can i change the colours again? (it worked some weeks ago)

  • Best Processor to use

    I have a K8N Neo2 platinum.  what would be the best processor I could use with this system? Currently I am using an AMD athlon64 at 2.01 ghz, I plan on up grading my memory from OCZ ddr dual pc3200 400 512x2 to eith dual 1024x2 or 3 single 1024.  But