RSCRM_BAPI Query output in Process Chain

Hi,
I am using RSCRM_BAPI to get the query result into table and from this table i am extracting data into another infoprovider.
Here i am planning to schedule this RSCRM_BAPI Execution in Process Chain,i don't have any option to include this in Process Chain.
Can anybody help me regarding this issue
Thanks
Madhu

Hi Madhu,
   I dont think option is available to include RSCRM_BAPI in Process Chain.
Hope it Helps
Srini

Similar Messages

  • How to include Query extractor in process chain

    Hi All,
    According to th requirement I have created Query Extractor using RSCRM_BAPI to upload Query data to application server. 
    Now it has to be included in PROCESS CHAIN.
    Is there any way to include Query Extractor in process chain.
    Or is there any ABAP program which can be used to trigger the my Query Extractor and later this program can be used in process chain.
    Quick reply is much appreciable.
    Thanks,
    Uday.

    s

  • Can you run a Query in a Process Chain?

    As part of a data validation process chain, I need to run a query and send the results by email.  I've created the query (with the exception) and set it up in information broadcaster to be sent by email.  I thought that I would be able to just drop in the "Exception Reporting" process into the process chain and be able to select the query to run.  Needless to say, it don't work that way.
    If anyone has ran a query in a process chain, please let me know how you did it?
    Also if someone knows how the "Exception Reporting" process in RSPC works, please share?
    Thanks

    Patel, we may be able to rethink our approach and use the event data change that was mentioned in the document you sent.
    I was hoping to be able to do everything from within a process chain.  Does anyone know how to use the "Exception Reporting" process that is available in RSPC?  Is it a leftover from the 3.X days that can't really be used in 7.0?

  • Query Broadcasting - Event Process Chain

    Hello BW Gurus and experts...
    I need to broadcast same query to different set of users filtered on company codes. Thought process is to create different broadcast settings for each company code and these would be waiting for event which would be triggered by process chain using "trigger event data change for broadcaster" process type..
    I have done following so far:
    1) Created new setting for query broadcasting. Given email ID's and check marked "Only upon data change" in the setting. Is this the correct setting so report will be broadcasted after event? I have succesfully executed this setting and report is broadcasted directly manually.
    2) Created process chain and included event data trigger process type for broadcaster. I successfully executed this chain. When I saw associated messages for this process type, it said that 0 setting waiting for this trigger for this infoprovider. I have checked infoprovider and it is correct.
    3) I went to RSRD_ADMIN and tried to search for mysetting. It exists but under direct scheduling and not under waiting for data change event.
    I dont want to use ABAP program to trigger reports as I beleive I cannot filter data if I go with this query..(or can I ??)
    Any ideas how to make this setting work. I am on BW 7.0 and it is Query and want to broadcast by email or email burst.
    My thinking is that I have not done correct config while creating setting.
    Thanks for your help in advance.

    Hello,
    I think you can achieve this with the concept of interrupts:
    1) In your meta chain select two interrupt process types one for the first 6 months and the other for the last 6 months.
    2) Now in the maintain mode of interrupt you can define a formula to check the month from sy-datum. Here you have the if else condition, you can use it to trigger the further event or not based on the month condition. ( You have to figure out the formula as i cant help it as i dont have system access presently )
    As per Mansi you can go for ABAP but it wont be a Meta Chain concept:
    1) Create 2 events for botht the PC, put one in each and schedule them periodically as event triggered
    2) Create a simple ABAP program. The logic would be as follows:
              data: month(2) type n.
              month = sy-datum+4(2)
              if month LE '6'.
                  CALL FM 'BP_RAISE_EVENT'
                    to raise event 1 which will trigger forst PC
              elseif month GT '6' and month LE '12'.
                  CALL FM 'BP_RAISE_EVENT'
                    to raise event 2 which will trigger second PC
              endif.
    3) Schedule this program to run daily in the background.
    Regards,
    Shashank

  • How to put RSCRM_BAPI in the process chain?

    Dear All,
    I've used RSCRM_BAPI to extract data from a query into a table. These data in the table needs to be extracted again to the PSA in BW.
    So I need to run the  job defined in RSCRM_BAPI after the data has been  loaded into cube and run the infopackage to extract data after the job has finished.
    How can I put these actions in the process chain?
    Thanks.
    Bolun

    Hello Bolun,
    Yes you can schedule RSCRM_BAPI extracts in a process chain. You have to write a program that will invoke the RSCRM APIs. You can use the program below.
    data  error(50) type c.
    data  g_t_return    LIKE bapiret2 OCCURS 0.
    data: l_proc        like rscrmmon-processed.
    data: gv_batchid    like RSCRMMON-BATCHID,
          gv_jobname    like TBTCO-JOBNAME,
          gv_actstatus  like TBTCJOB-STATUS,
          gv_jobcount   like TBTCO-JOBCOUNT,
          gv_dbstatus   like TBTCJOB-STATUS,
          l_status      type RSCRMBSTAT,
          l_wait        type i.
    parameter: repuid TYPE rscrmrepuid obligatory.
    parameter: extrname TYPE tabname obligatory.
    parameter: repvar like RSCRMSTATUS-REPVAR.
    parameter: overwrt like RSCRMCONTXT-ACTIVE default 'X'.
    start-of-Selection.
    *Open Query
      CALL FUNCTION 'RSCRMBW_REPORT'
        EXPORTING
          i_mode      = 'OPEN'
          i_reportuid = repuid
        TABLES
          e_t_return  = g_t_return.
      if g_t_return is not initial.
        read table g_t_return TRANSPORTING NO FIELDS with key type = 'E'.
        if sy-subrc <> 0.
          concatenate 'Errors occurred when opening query' error into error.
          message error type 'E'.
          exit.
        endif.
      endif.
    *use this if you want pass a variant.
    *Get variable values
    *     CALL FUNCTION 'RSCRMBW_VARIABLE_POPUP'
    *         EXPORTING
    *               i_reportuid = repuid
    *               I_VARIANT = repvar
    *         TABLES
    *               e_t_return  = g_t_return.
    *Execute Report
      CALL FUNCTION 'RSCRMBW_REPORT'
        EXPORTING
          i_mode         = 'START'
          i_reportuid    = repuid
          i_execmode     = 'TABLE'
          i_extract      = extrname
          I_CLEAREXTRACT = overwrt
        IMPORTING
          E_BATCHID      = gv_batchid
          E_JOBNAME      = gv_jobname
          E_JOBCOUNT     = gv_jobcount
        TABLES
          e_t_return     = g_t_return.
      if g_t_return is not initial.
        read table g_t_return TRANSPORTING NO FIELDS with key type = 'E'.
        if sy-subrc <> 0.
          clear error.
          concatenate 'Errors occurred when executing query' error into error.
          message error type 'E'.
          exit.
        endif.
      endif.
      if sy-subrc = 0.
        WHILE ( L_STATUS NE 'SUCC' ).
          CALL FUNCTION 'RSCRMBW_BATCH_STATUS_CHECK'
            EXPORTING
              I_BATCHID       = gv_batchid
            IMPORTING
              E_STATUS        = l_status
            EXCEPTIONS
              NO_JOB_DATA     = 1
              INHERITED_ERROR = 2
              OTHERS          = 3.
          IF l_status = 'RUNN' or l_status = ' ' or l_status = 'SCHE'.
            WAIT UP TO 30 SECONDS.
          ENDIF.
        ENDWHILE.
        IF l_status = 'SUCC'.
          if sy-subrc = 0.
            write 'Query finished'.
          else.
            clear error.
            concatenate 'Job ' gv_batchid ' failed.' into error.
            Message error type 'E'.
          endif.
        ENDIF.
      endif.
    *Close report
      CALL FUNCTION 'RSCRMBW_REPORT'
        EXPORTING
          i_mode      = 'CLOSE'
          i_reportuid = repuid.
    end-of-selection.
    Use the ABAP Program process to execute this program. Create the data load processes so that they execute on successful finish of this program.
    I hope this makes things clear.
    Regards
    Arvind

  • Populate Databse Table through RSCRM_BAPI in Process chain

    Hi,
    I am using RSCRM_BAPI to extract a query output in a custom database table in BW 3.5. On the database table I have created a Data Source which will populate the end cube. I have to automate this flow through a Process Chain.
    Please let me know, how can I call RSCRM_BAPI through ABAP in a process variant to load the database table.
    Regards,
    Dibyendu

    Hi,
    Please go thorugh the below link:
    https://websmp205.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700004400232004E
    Rgds,
    Sonal

  • How can I insert the RSCRM_BAPI into Process chain?

    Dear all:
    Now I Use RSCRM_BAPI(RSCRM_REPORT) ,excute a query , Get the result in a table, I use this table as a datasource,and then next steps,upload data. all of this runs well.
    But  I want inset this process into a process chain. now I don't know how to do it.
    who can help me?

    Hi,
    Now I'm using RSCRM_BAPI in Process chains..
    1. I set the report name RSCRM_BAPI  and then in schedule I select EVENT there I given Event is
    'ZE_GR' and parameter is  'ZEP_GR'. and then I created a program and there I given Event and Parameter. And then I inserted this program in Process chain. And I scheduled the Process chain.
    You need to create the event in SM62
    REPORT  ZE_GR_RP.
    DATA: EVENTID LIKE TBTCJOB-EVENTID.
    DATA: EVENTPARM LIKE TBTCJOB-EVENTPARM.
    EVENTID = 'ZE_GR'.
    EVENTPARM = 'ZEP_GR'.
    CALL FUNCTION 'RSSM_EVENT_RAISE'
      EXPORTING
        I_EVENTID                    = EVENTID
        I_EVENTPARM                  = EVENTPARM
    EXCEPTIONS
      BAD_EVENTID                  = 1
      EVENTID_DOES_NOT_EXIST       = 2
      EVENTID_MISSING              = 3
      RAISE_FAILED                 = 4
      OTHERS                       = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks
    Reddy
    Edited by: Surendra Reddy on Dec 2, 2008 5:09 AM

  • RSCRM_BAPI in Process Chain

    Hi,
    We are having a RSCRM_BAPI which extracts data from a report and push it to a table. We need to include this process in our process chain. We are running on BI 7.0.
    How?
    regards,
    Sanjai

    Hi,
    1. Execute query through RSCRM_BAPI transaction
    2. goto sm37 and copy the Jobname (the active one)
    3. Create following progromm
    *& Report /WST/RSCRM_START *
    REPORT /WST/RSCRM_START .
    parameter: l_bid TYPE sysuuid_c.
    CALL METHOD cl_rscrmbw_bapi=>exec_rep_in_batch
    EXPORTING
    i_barepid = l_bid
    4. Execute Programm and fill the Parameter with the Jobname
    5. Save as a new program variant and use in PC as a normal program

  • How to display a popup message in query (through process chain)

    Hi Gurus,
    I need your help.
    I have an input query that triggers an event (through a button) and runs a process chain.
    I would like to show a popup message to inform the user when the process chain is over.
    Using function modules I've been able to show popup messages in the workbench, but I want to display this message directly in Bex Analyzer 7.0.
    Thanks
    Gabbo

    Hi,
    I'm also looking for a solution to display a custom message in the Bex Analyser at logon.
    Using function module in the logon user-exit works but only when loggin to the workbench.
    I don't want to use SM02 (which works in both cases) because I need to display a variable message depending on the user.
    If someone has an idea, I'll really appreciate.
    Best regards and happy New Year to all of you.

  • Where will I specify process chain and query time statistics to be loaded .

    I am on BI 7.0. I see on my system, BI Statistics Technical Content has been installed because when I run
    RSDDSTAT transaction under Info Provides I see cubes such as 0TCT_C01, oTC_C02, oTCT_C03,  oTCT_MC01, 0TCT_VC01..
    I also see process chains installed on my system such as oTCT_C2_INIT_P01,  oTCT_C2_DELTA_P01.
    I see various RSDDSTAT* tables being populated on my system as well.
    My questions are:
    1.     How does data gets populated in 0TCT_C01, C02 etc? Is it by scheduling TC process chains or there are other means?
    2.      Where does one specify what kind of statistics will be copied from RSDDSTAT* tables. My IT lead tells me that process chain statistics are not being collected. I also thing query times are not being populated  in 0TCT tables. Where can I specify what should be loaded in these cubes.
    3.     Does ST03N transaction display data from 2.
    THANKS A LOT.

    Hi,
    1.     How does data gets populated in 0TCT_C01, C02 etc? Is it by scheduling TC process chains or there are other means?
    You can find the DataSource in RSA1. For example, 0TCT_C01 is updated from 0TCT_DS01. And you need to schedule process chain 0TCT_C0_DELTA_P01 for query statistics and 0TCT_C2_DELTA_P01 for data load statistics on a regular basis. Of course, as they are delta chains, you need to first run initializaiton chains for just one time before scheduling delta chains. The initialization chains are 0TCT_C0_INIT_P01 and 0TCT_C2_INIT_P01.
    2.      Where does one specify what kind of statistics will be copied from RSDDSTAT* tables. My IT lead tells me that process chain statistics are not being collected. I also thing query times are not being populated in 0TCT tables. Where can I specify what should be loaded in these cubes.
    As I know, the statistics data are first stored in RSDDSTAT* tables. For example, query data are stored in RSDDSTAT_OLAP. And the data are loaded to corresponding cubes when you executing InfoPackages.
    You can refer to this link and search "Recording BI Statistics" in this page:
    http://help.sap.com/saphelp_nw70/helpdata/en/44/3521c7bae848a1e10000000a114a6b/content.htm
    3.     Does ST03N transaction display data from 2.
    Yes. If BI Statistics content are not activate you would be unable to view statistics data in ST03N.
    Let us know if you have other questions.
    Regards,
    Frank

  • Reg: Process Chain, query performance tuning steps

    Hi All,
    I come across a question like,  There is a process chain of 20 processes.out of which 5 processes are completed at the 6th step error occured and it cannot be rectified. I should start the chain again from the 7th step.If i go to a prticular step i can do that particular step, How can i start the entair chain again from step 7.i know that i need to use a function module but i dont know the name of FM. Please somebody help me out.
    Please let me know the steps involved in query performance tuning and aggregate tuning.
    Thanks & Regards
    Omkar.K

    Hi,
    Process Chain
    Method 1 (when it fails in a step/request)
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    How is it possible to restart a process chain at a failed step/request?
    Sometimes, it doesn't help to just set a request to green status in order to run the process chain from that step on to the end.
    You need to set the failed request/step to green in the database as well as you need to raise the event that will force the process chain to run to the end from the next request/step on.
    Therefore you need to open the messages of a failed step by right clicking on it and selecting 'display messages'.
    In the opened popup click on the tab 'Chain'.
    In a parallel session goto transaction se16 for table rspcprocesslog and display the entries with the following selections:
    1. copy the variant from the popup to the variante of table rspcprocesslog
    2. copy the instance from the popup to the instance of table rspcprocesslog
    3. copy the start date from the popup to the batchdate of table rspcprocesslog
    Press F8 to display the entries of table rspcprocesslog.
    Now open another session and goto transaction se37. Enter RSPC_PROCESS_FINISH as the name of the function module and run the fm in test mode.
    Now copy the entries of table rspcprocesslog to the input parameters of the function module like described as follows:
    1. rspcprocesslog-log_id -> i_logid
    2. rspcprocesslog-type -> i_type
    3. rspcprocesslog-variante -> i_variant
    4. rspcprocesslog-instance -> i_instance
    5. enter 'G' for parameter i_state (sets the status to green).
    Now press F8 to run the fm.
    Now the actual process will be set to green and the following process in the chain will be started and the chain can run to the end.
    Of course you can also set the state of a specific step in the chain to any other possible value like 'R' = ended with errors, 'F' = finished, 'X' = cancelled ....
    Check out the value help on field rspcprocesslog-state in transaction se16 for the possible values.
    Query performance tuning
    General tips
    Using aggregates and compression.
    Using  less and complex cell definitions if possible.
    1. Avoid using too many nav. attr
    2. Avoid RKF and CKF
    3. Many chars in row.
    By using T-codes ST03 or ST03N
    Go to transaction ST03 > switch to expert mode > from left side menu > and there in system load history and distribution for a particual day > check query execution time.
    /people/andreas.vogel/blog/2007/04/08/statistical-records-part-4-how-to-read-st03n-datasets-from-db-in-nw2004
    /people/andreas.vogel/blog/2007/03/16/how-to-read-st03n-datasets-from-db
    Try table rsddstats to get the statistics
    Using cache memoery will decrease the loading time of the report.
    Run reporting agent at night and sending results to email.This will ensure use of OLAP cache. So later report execution will retrieve the result faster from the OLAP cache.
    Also try
    1.  Use different parameters in ST03 to see the two important parameters aggregation ratio and records transferred to F/E to DB selected.
    2. Use the program SAP_INFOCUBE_DESIGNS (Performance of BW infocubes) to see the aggregation ratio for the cube. If the cube does not appear in the list of this report, try to run RSRV checks on the cube and aggregates.
    Go to SE38 > Run the program SAP_INFOCUBE_DESIGNS
    It will shown dimension Vs Fact tables Size in percent.If you mean speed of queries on a cube as performance metric of cube,measure query runtime.
    3. --- sign is the valuation of the aggregate. You can say -3 is the valuation of the aggregate design and usage. ++ means that its compression is good and access is also more (in effect, performance is good). If you check its compression ratio, it must be good. -- means the compression ratio is not so good and access is also not so good (performance is not so good).The more is the positives...more is useful the aggregate and more it satisfies the number of queries. The greater the number of minus signs, the worse the evaluation of the aggregate. The larger the number of plus signs, the better the evaluation of the aggregate.
    if "-----" then it means it just an overhead. Aggregate can potentially be deleted and "+++++" means Aggregate is potentially very useful.
    Refer.
    http://help.sap.com/saphelp_nw70/helpdata/en/b8/23813b310c4a0ee10000000a114084/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/60/f0fb411e255f24e10000000a1550b0/frameset.htm
    4. Run your query in RSRT and run the query in the debug mode. Select "Display Aggregates Found" and "Do not use cache" in the debug mode. This will tell you if it hit any aggregates while running. If it does not show any aggregates, you might want to redesign your aggregates for the query.
    Also your query performance can depend upon criteria and since you have given selection only on one infoprovider...just check if you are selecting huge amount of data in the report
    Check for the query read mode in RSRT.(whether its A,X or H)..advisable read mode is X.
    5. In BI 7 statistics need to be activated for ST03 and BI admin cockpit to work.
    By implementing BW Statistics Business Content - you need to install, feed data and through ready made reports which for analysis.
    http://help.sap.com/saphelp_nw70/helpdata/en/26/4bc0417951d117e10000000a155106/frameset.htm
    /people/vikash.agrawal/blog/2006/04/17/query-performance-150-is-aggregates-the-way-out-for-me
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1955ba90-0201-0010-d3aa-8b2a4ef6bbb2
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94
    http://help.sap.com/saphelp_nw04/helpdata/en/c1/0dbf65e04311d286d6006008b32e84/frameset.htm
    You can go to T-Code DB20 which gives you all the performance related information like
    Partitions
    Databases
    Schemas
    Buffer Pools
    Tablespaces etc
    use tool RSDDK_CHECK_AGGREGATE in se38 to check for the corrupt aggregates
    If aggregates contain incorrect data, you must regenerate them.
    Note 646402 - Programs for checking aggregates (as of BW 3.0B SP15)
    Thanks,
    JituK

  • Query or Workbook or Web Template-Process chain

    Hai Friends,
                   I want to broadcast reports.Which type of the report is more attractive among Query or Workbook or Web Template?Suppose if we select Workbook as type,will it support for process chain which will create to automate the broadcasting process?On every data change will the workbook automatically changes it's data.Usually we will do layout settings ONLY for workbook.Will all the settings remain same when the new data is changed every month?
    Please, reply me with ur valuable answers
    Thanks
    Mohan Chand Reddy A

    Hi Mohan,
    You can use either of them for broadcasting, just check the requirement with your business. And using process chain you will raise an Data change event and in your broadcast setting you will have to mark the option i.e. Broadcast on data change.
    So whichever queries or workbooks have that setting on the particular Infoprovider. And once you raise the data change event for that Infoprovider through process chain, all the reports will be broadcasted.
    Regards,
    Durgesh.

  • How to run a query as part of process chain on regular basis ?

    Friends,
    I'm in BW3.5
    I would like to execute a particular query as part of a process chain on regular basis. Could you please let me know how could this be done ??
    The intention is to cache the query memory each time the respective cube is loaded.
    Thanks
    Venkat

    Hi,
    You have to create a broadcast setting and mention the distribution type as export to cache.
    Set other attributes of the broadcast setting as required.
    Then in the process chain use the process type trigger event data change for broadcasting and mention the infoprovider name which has been loaded by the process chain.
    The broadcast setting is scheduled to execute on the data chage event of its base infoprovider.
    So when the process chain runs this event process, an event is fired which executes the broadcast setting, which will load the cache..
    Regards,
    Sunmit.

  • BW Statistics query with process chain run times.

    Hello Guru's,
    We are using BW 3.5 system and the client have asked if it is possible to create a report in BW based out of the Statistics Cube that shows the current status of the Process Chains .i.e. the start/end time of specific process chains along with some sort of Exceptions to show successfully completed chains as 'Green', chains finishing with errors as 'red' and chains presently running as 'Yellow'.
    I have seen such a report in my previous project, but that was using BI 7.0, I am not able to find such Statistics Info Cube in BW 3.5 which meets my requirements.
    Has anybody created such a report in BW 3.5? If yes, would very much appreciate if you can share your way of approach with me.
    Thanks
    Arvind

    Hi Arvind,
    Yes you can achieve this functionality using BW Technical Content. I already implemented this for one of our client. We have some Standard InfoProviders where in wee can get the Start and End time of chains. You can build a query on these Cubes & Multiprovider and there in create exceptions to reflect which step got completed with in stipulated time limit and which took longer than usual......u can display those time statistics in different colour.
    Here are soem cubes names from BW Technical content which may meet your requirement specification:
    1. 0TCT_C01
    2. 0TCT_C02
    3. 0TCT_CA1
    4. 0TCT_C23
    5. 0TCT_C21
    Hope it helps
    Regards,
    Raj

  • Re: Statistics Query for Total runtimes for Process Chain incorrect

    Hi Guys,
    I am building a Query for Total runtimes for Process Chain Statistics. I used the Cube 0TCT_MC21 for Query - 0TCT_MC21_Q0101.
    I dragged in Keyfigure section - startdate, end date, Start time are all correct and fine but the End time (0TCTENDTIM) is coming incorrect. Is something else i should use to get the End time?
    Please let me know if any suggestions?
    Regards

    Just check if the end times are in GMT ?? usually happens with timestamps....

Maybe you are looking for