Problem while extracting using RSCRM_BAPI in user defined job

Hi all,
Of late I have trying to executing Bex query extract thru RSCRM_BAPI and needed a way to be able to schedule an user defined job so for that so that I have control in terms of when I execute the job.
I went thru SDN and found this Function module RSCRMBW_REPORT which is supposed to do the part however I am getting a error since my BEx query has a variable screen and I dont know how I can take care of that. I am currently getting the error from the function module:
"The entry type of variable ZPM_MEDT requires you to enter values"
Where ZPM_MEDT is a date variable on my Bex report.
So the question is how do I get my variables to my Bex report while using Fn module RSCRMBW_REPORT. I tried Bex personalization it didnt work.
For more information on RSCRMBW_REPORT module please refer.
Providing job names in trx RSCRM_BAPI
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3ba5e590-0201-0010-59b1-cab51fd245b7

Sorry for the delay in reponse.  I have changed the all variables either to populater by user exit or hard code it to a filter (constant).  But I am having problem executing the function RSCRMBW_REPORT
I am using the following parameters and getting the subsequent error message.
I_MODE:  OPEN/START
I_REPORTUID: YC_OO/ZYM_OO_Q0002_2
I_REPNAME: ZYM_OO_Q0002_2
I_PACKSIZE: 0000010000
I_EXECMODE: TABLE
I_EXTRACT: ZOCARRY
I_USER: R2067Z
I_LANGU: EN
I_SEPARATOR: ;
I_BATCH_TIME: 00:00:00
I_CLEAREXTRACT: X
I_CHECK_MEMBERS: X
Rest all fields blank.
Now I am getting short dump in the GET_CUBETYPE() method in the CL_RSCRMBW_BAPI class.  For some reason the cube name is not being parsed from the report ID name "YC_OO/ZYM_OO_Q0002_2".  Am I missing something?
Also is there any other way SAP provides to schedule RSCRM_BAPI queries to a table externally without using standard job scheduliing from within the RSCRM_BAPI transaction.
Thanks

Similar Messages

  • How to use negation in user defined rules?

    Hi,
    Can you please show me an example to use negation in user defined rule? I created a rule like below (the rule says if a patient has a fever problem and not have penicillin hypersensitivity, then recommend medication1):
    INSERT INTO mdsys.semr_myMedicineRB VALUES('rule1',
    '(?p rdf:type :Patient) (?p :present ?c1) (?c1 rdf:type :Fever) (?c2 rdf:type :Penicillin_Hypersensitivity)',
    '(NOT_EXISTS(p :present c2))',
    '(?p :recommendation :medication1)',
    SEM_ALIASES(SEM_ALIAS('','http://www.example/medicine#')));
    The rule successfully inserted into the rulebase. However, I cannot pass the entailment creation phase and got the errors:
    ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    ORA-06512: at "MDSYS.SDO_SEM_INF_INTERNAL", line 16453
    ORA-06512: at "MDSYS.SDO_SEM_INFERENCE", line 302
    ORA-06512: at "MDSYS.SDO_SEM_INFERENCE", line 352
    ORA-06512: at "MDSYS.RDF_APIS", line 118
    ORA-06512: at line 2
    29532. 00000 -  "Java call terminated by uncaught Java exception: %s"
    *Cause:    A Java exception or error was signaled and could not be
               resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.
    According to the post built-in primitives(noValue,remove) for user defined rules, it seems negation is not supported in user defined rules. Can you please advice how to implement negation in user defined rules?  Thanks a lot in advance.
    Hong

    Hi Hong,
    Let's look at this similar but simplified problem:
      if (?p  rdf:type  :Patient) and (NOT_EXISTS(?p  :present  :c2)) ==> (?p :recommendation :medication1)
    You can use something like this in the user defined inferencing:
    -- First get the numeric IDs for the relevant URIs
    recomID := sdo_sem_inference.oracle_orardf_add_res('http://..../recommendation');
    medID := sdo_sem_inference.oracle_orardf_add_res('http://..../medication1')
    rdfTypeID := sdo_sem_inference.oracle_orardf_res2vid('... full URI for rdf:type');
    patientID := ...
    presentID := ...
    c2ID := ...
    -- Now this query will find out ?p that satisfy (?p  rdf:type  :Patient) but not
    -- (?p  :present  :c2)
    sqlStmt := '
      select ids1.sid  sub
         from ' || src_tab_view || ' ids1
        where ids1.pid= ' || to_char(rdfTypeID,'TM9') || '
          and not exists (
             select 1
               from ' || src_tab_view || '
              where sid = ids1.sid
                and pid = ' || to_char(presentID, 'TM9') || '
                and oid = '|| to_char(c2ID,'TM9') || '
    insertStmt := '
      insert /*+ parallel append */
       into ' || output_tab || '(sid, pid, oid)
      select sub, '||to_char(recomID,'TM9') || ',' || to_char(medID,'TM9') || '
       from (' || sqlStmt || ')'
    More details can be found in
    http://docs.oracle.com/cd/E16655_01/appdev.121/e17895/inference_extension.htm#CHDDBGEC
    Hope it helps,
    Zhe Wu

  • Problems While Extracting Hours From Date Field

    Hi Guys,
    Hope you are doing well.
    I am facing some problems while extracting hours from date field. Below is an example of my orders table:-
    select * from orders;
    Order_NO     Arrival Time               Product Name
    1          20-NOV-10 10:10:00 AM          Desktop
    2          21-NOV-10 17:26:34 PM          Laptop
    3          22-JAN-11 08:10:00 AM          Printer
    Earlier there was a requirement that daily how many orders are taking place in the order's table, In that I used to write a query
    arrival_time>=trunc((sysdate-1),'DD')
    and arrival_time<trunc((sysdate),'DD')
    The above query gives me yesterday how many orders have been taken place.
    Now I have new requirement to generate a report on every 4 hours how many orders will take place. For an example if current time is 8.00 AM IST then the query should fetch from 4.00 AM till 8 AM how many orders taken place. The report will run next at 12.00 PM IST which will give me order took place from 8.00 AM till 12.00 PM.
    The report will run at every 4 hours a day and generate report of orders taken place of last 4 hours. I have a scheduler which will run this query every hours, but how to make the query understand to fetch order details which arrived last 4 hours. I am not able to achieve this using trunc.
    Can you please assist me how to make this happen. I have checked "Extract" also but I am not satisfied.
    Please help.
    Thanks In Advance
    Arijit

    you may try something like
    with testdata as (
      select sysdate - level/24 t from dual
      connect by level <11
    select
      to_char(sysdate, 'DD-MM-YYYY HH24:MI:SS') s
    , to_char(t, 'DD-MM-YYYY HH24:MI:SS') t from testdata
    where
    t >= trunc(sysdate, 'HH') - numtodsinterval(4, 'HOUR')
    S     T
    19-06-2012 16:08:21     19-06-2012 15:08:21
    19-06-2012 16:08:21     19-06-2012 14:08:21
    19-06-2012 16:08:21     19-06-2012 13:08:21
    19-06-2012 16:08:21     19-06-2012 12:08:21trunc ( ,'HH') truncates the minutes and seconds from the date.
    Extract hour works only on timestamps
    regards
    Edited by: chris227 on 19.06.2012 14:13

  • How to find which all workbook is using Database function ( User Defined)

    Hi All,
    Is it possible to find out which all workbook is using Database function( User Defined).
    Thanks,

    Hi,
    If I had to do this detective work, I would probably do the following:
    1. Activate for a period of time the function, eul5_post_save_document. This function when activated is triggered at the time a workbook is saved. If you look at its columns, it save the worksheet's SQL.
    2. Next, I would parse the EUL5_WORKSHEET_SQL.SQL_SEGMENT column which is a varchar2(4000) column. There are many effective Oracle functions which could aid you in this effort (e.g. instring or perhaps a regular expression function).
    I hope this helps.
    Patrick

  • TS1292 Hey, im facing a problem while im using the purchesing , its showing me that: contact with apple support itunes???? Please help

    Hey, im facing a problem while im using the purchesing , its showing me that: contact with apple support itunes???? Please help

    Use the link below to contact iTunes support.
    http://www.apple.com/emea/support/itunes/contact.html

  • How to schedule Query Extracts using RSCRM_BAPI

    Hi,
    Can you give me the link to the document How to schedule Query Extracts using RSCRM_BAPI  . I do not have userid password to view the same.
    Thanks for the help.

    Hi,
    this is the link for the document..
    https://websmp205.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700004400232004E
    thnks.

  • How to use StreamTransformationException in user-defined function?

    Hi,
    I'm doing a DBLookup (using Java pgm in one of my Imported Java archives) for populating one of the fields in message mapping. If the DB connection fails, I want to terminate the mapping by throwing a StreamTransformationException from within a user-defined function.
    I require urgent help in this regard.
    Thanks in advance.
    Regards,
    Sridhar Rajan N

    Hi,
    I had the same problem. I failed to find the way how to throw a StreamTransformationException in my user-defined function. But I used another exception: NullPointerException. Yes, I know, this is not an elegant solution...
    Best regards,
    Andrzej Filusz

  • Audition 3.0 installer under Win7 64-bit fails with "problem while extracting files"

    I'm having trouble installing Audition 3.0 on Windows 7 64-bit.
    I downloaded an installer for Audition 3.0 (called ADBEAudition_WWEFGJIS.exe, 352 MB).
    This installer runs but when the progress bar is at the far end, it raises a dialog saying "A problem occurred while extracting some files. Check available space on your computer and the write privileges on the destination folder."
    At this time, the main installer dialog shows 100% completed and displays the filename "...\Audition 3.0\Adobe Bridge CS3\redist\WindowsXP-KB898715-x64-enu.exe". I don't know whether this filename is related to the problem, it might just be the last file extracted.
    I'm running Windows 7 64-bit on an Asus laptop with 4GB of RAM and an AMD Turion II P520 processor. I don't know whether this CPU is "SSE2-enabled" or not, as specified in the minimum system requirements.
    I've rebooted the machine and the problem occurs consistently.
    Thanks in advance for any suggestions.
    KrisBlueNZ

    Hey, I used to have a Diamond PCI card somewhere.
    I would say that all bets are off with the drivers, but there is a strong possibility that you could be hearing the problems with the sample rate converter in Windows 7 (and I think in Vista). This affects recording and playback, and the first line of defence is to make sure that the source audio's sample rate is the same as the "default sample rate" that is set in every area in the Windows Control panel audio area.
    The sample rate converter built into XP has a range of settings that are usually set to "high quality", and sample rate conversion is rare anyway with that OS. With Windows 7, the concept of the newer Windows mixer irequires that the sample rate converter changes all the audio on the fly to the default ample rate, but the converter is not very good. This doesn't always affect the audio - anything using DirectX seems OK, but anything using "WaveOut" audio (eg YouTube playback) is affected.
    Microsoft acknowledges the problem and have issued a patch at http://support.microsoft.com/kb/2653312

  • Problem during extraction using generic data sources

    Hi
    While performing extraction(master data)  using generic data sources I am getting a problem.
    while selecting application component, I am unable to find SD to select it.What should I do?
    I selected CRM as application component and did the extraction , it is successful.
    But what about if we want to select SD? I am guessing it as an installation problem ... Anyone plz help me
    Thank you
    Deepthi

    Hi Deepthi,
    Looks like the RFC connection between source system and BW system is broken..
    Contact your basis team to check the connection what went wrong.
    once the connection is re-established you can gohead ...
    Try out this procedure
    Type Transaction SM59.
    a.) Open the RFC Destinations.
    b.) Find your Source System and double click on it.
    c.) Technical setting should contain information regarding your source
    system
    d.) Logon Information should contain source system client and name &
    password for you remote logon.
    **Suggestion : our remote name for our R/3 was ALEREMOTE. We use
    BWREMOTE so that we can monitor without confusion.
    e.) Execute your 'Test Connection' & 'Remote Logon'. You connection
    should be You should NOT be prompted for a password.
    f.) Repeat above to verify RFCs for other systems
    regards
    KP
    Edited by: KP on Dec 14, 2009 12:11 PM

  • Can Automation be used to send User-defined CC's to Environment objects?

    Hi, this is probably a really dumb question but I'll ask it anyway:
    I've bought a controller-environment for a synth (Alphajuno2, PG300 programmer) for Logic, the faders in the environment layer use sysex to communicate with the synth.
    Apparently it is possible to map an external midi-controller to these environment-faders, and that's all and fine, but what I'm after is a method of using automation to control the environment-faders. How would I go about doing it?
    I've only ever really automated some volume changes or plugin parameter changes, I've not yet automated faders in the environment, so how would I go about doing it?
    Would I create a fader which I'd link to the sysex-sending fader, and automate the fader, or maybe an environment-monitor (and add it to the arranger) and somehow configure a set of CC#'s to be automated with that arranger object, and then just cable them up to the various Sysex-sending faders (I do know enough to be able to set the input of those sysex-faders to match the CC#'s which the automation would be sending).
    Is this kind of "User-defined CC#'s in Automation" possible? How should I go about it?
    Message was edited by: esaruoho to further clarify it

    Is it just because there is currently no way whatsoever of Automation CC, and I should have known to use Hyper Draw to talk to an Environment object directly, which would then be connected to the Faders of choice?

  • Using a SQL user-defined function in Crystal Reports XI

    Post Author: JoannKarp
    CA Forum: Formula
    Is it possible to use a user defined function in SQL and use this in multiple Crystal reports?
    JoannKarp

    SELECT COALESCE(ufn_GetAddressByBusinessEntityIDandAddressTypeID(table1.BusinessEntityID,712),ufn_GetAddressByBusinessEntityIDandAddressTypeID(table1.BusinessEntityID,712)) AS Zipcode
      FROM table1
    Nope. This is two function calls. coalesce(a, b, c, ...) is just syntatic sugar for
       CASE WHEN a IS NOT NULL THEN a
            WHEN b IS NOT NULL THEN b
            WHEN c IS NOT NULL THEN c
       END
    But if you use isnull it's a different matter. (But isnull() permits two arguments.)
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to deploy jar file for use within mapping user-defined fcn

    Hi all,
    I have a java class I'd like to called from a mapping user-defined function.
    Here's what I've done (but hasn't worked)
    1. Added 'package com.<mycompany>.xi.util.base64 to the source class file and compiled it.
    2. Created a sda with a plain provider.xml file, i.e. no references were made to any other library files.
    3.  Deployed the sda to the xi 3.0 j2ee server successfully using SDM.
    4.  Under the Visual Admin tool, I see that the library was deployed successfully.
    5.  In the import text box in the user-defined function (design time), I enter com.<mycompany>.xi.util.base64.*.
    A syntax check returns an error indicating the package could not be found. 
    Can anyone give me pointers as to how I can get this working?
    Thanks,
    --jtb

    Hey James,
    No! That's not the right way!
    What you have done is for accessing external JMS & JDBC drivers in their corresponding adapters. For the access inside a mapping user defined function, it's enough if you import the jar files.
    Look at this blog and you will be very clear!
    /people/divya.vidyanandanprabhu/blog/2005/06/28/converting-xml-to-pdf-using-xi
    regards,
    Felix

  • Journal Problem with Replicating another dimension on User Defined

    Hi experts,
    A curious thing is happing on development, I follow the HTG "SAP Business Planning and Consolidation for NetWeaver - Journals.pdf"; and this generate fine the journal, but when I was testing, doing a simple journal entry, a trouble occurred, the template has the structure below:
    Header:
    Category
    Time
    Group
    Row:
    DataSrc
    Entity
    Account
    Intco
    Flow - SubTable
    CLucro - User Defined
    CCusto - User Defined
    So when I fill all the information to every dimension and put the amount, I save, and don't get any error message, but on CLucro and CCusto appears the value of flow, and if I consult the Infocube on listcube I get this dimensions in blank.
    Fonte Empresa Conta        TipMov CLucro CCusto IntCo Remark Debit     Credit
    AJUSTE 1161 PC011101010001 BLK BLK BLK C1161                      100
    AJUSTE 1161 PC013604030001 BLK BLK BLK C1161       100
    Does anybody know what could be ? Journal can't has user defined dimension ?
    Best Regards
    Alexandre Mendoza Collepicolo

    Hi Ethan,
    I'm on BPC version NW 7.5 SP04. The HTG is on this link:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00497d6a-0f38-2d10-bfb5-d50b91c9c0e5
    I'm with the same problem related by M. Weisheit on this thread
    Re: Journal entry disappear
    Someone knows what could be ?
    Best regards

  • Query in extraction using RSCRM_BAPI

    Hi ,
    We have a RSCRM_BAPI query created on a multiprovider. The infoproviders have amount Key figures in it. So 0currency is associated along with the key figures.
    0plant  Fis period   Key figure1   key figure 2   key figure 3
    While we try to generate a CSV file using RSCRM_BAPI, the file generated has a blank column next to every key figure.
    we are expecting the output file to be of the same format as specified above.
    we need to load this file into another flow.
    What we could fgure out was that every Key figure has a blank clumn for currency, which we dun want to provide.
    Please provide me a solution to generate the file exactly as the sam format.
    Thanks and regards,
    Srivatsan.s

    Hi,
    Please use NODIM in the query for the key figures.
    -Vikram

  • Using columns of user defined types

    Can anyone help me display data from a column within a table which is of a user defined type - a object with 4 elements .
    Discoverer wont currently display the data - it says a MAP or ORDER method is required.
    The type is declared as :
    create or replace type m_p as object
    ( m_p_id number(9),
    m_p_start number,
    m_p_end number,
    m_p_length number )
    and the table is declared as
    create table t_m_p (
    N_ID NUMBER,
    N_PL M_P,
    N_ATT VARCHAR2(1)
    What do I need to do to allow Discoverer 3.1 to display the data held in the N_PL column?
    Also : can anyone tell me if it is possible to display data in Discoverer from a thre dimensional varray? - or would I have to create a view on it?

    Discoverer does not currently allow queries to contain the extended Oracle 8 object types. The way to resolve this is to write views that present a relational view of the object structure and then build a business area based on these views
    Oracle Discoverer Team
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by nikstace ([email protected]):
    Can anyone help me display data from a column within a table which is of a user defined type - a object with 4 elements .
    Discoverer wont currently display the data - it says a MAP or ORDER method is required.
    The type is declared as :
    create or replace type m_p as object
    ( m_p_id number(9),
    m_p_start number,
    m_p_end number,
    m_p_length number )
    and the table is declared as
    create table t_m_p (
    N_ID NUMBER,
    N_PL M_P,
    N_ATT VARCHAR2(1)
    What do I need to do to allow Discoverer 3.1 to display the data held in the N_PL column?
    Also : can anyone tell me if it is possible to display data in Discoverer from a thre dimensional varray? - or would I have to create a view on it?<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • MSI K8N Neo2 Help!!!!!

    My system is running perfectly fine but some how the core cell utility keep beeping. Im not sure what is happending. Anyone have similiar problem? Here is the screenshot of my core cell reading.here

  • Splitting MP3 Files

    Hi, I have some radio shows in MP3 format but would like to extract segments from them so I can put some tracks on my iPod. Does anyone know any software which will let me do this? Thanks, Ian

  • Cant Install Solaris 10

    Hello all, I am new to Solaris. I have been a Windows User for a long time, but I am trying to dual boot Solaris 10 and Win XP on my Laptop. I have set up the Partitions 1 20 GB for WIndows and 1 20 GB for Solaris. I then inserted the disk and starte

  • How to use Oracle jdbc driver fixedString property?

    Oracle pads values in char columns so if I insert "a" in a CHAR(2) column then I cannot get that record by comparing that column to "a", I should get it by comparing it to "a ". Right? To solve this problem the Oracle jdbc driver has the property fix

  • RAB and Diagnostic Reporting

    When you view the diagnostic report associated with the execution of a map in RAB execution report, I notice that along with the error number, message, severity and target details there is also a section providing Column details. Similar to a previou