RSCRM_BAPI problem

Hi all,
i'm using transaction RSCRM_BAPI to create a csv file from a BEx query.
In the section rows of the query I have a structure which contains some selections, each one with its own name.
This is a simplified example:
Inside the structure "STRUCT" there are:
- a selection called "Italy" in which 0COUNTRY = 'IT'
- a selection called "Germany" in which 0COUNTRY = 'DE'
- a selection called "France" in which 0COUNTRY = 'FR'.
When I execute the query from BEx Analizer there are no problem.
        Qty
IT       1000
DE       1500
FR       2000
But when I try to export the query content to a csv file using RSCRM_BAPI instead of IT, DE, FR I got their relative ID:
4MAA4LE2LDVBN5S0UHQH0L8RD     1000
4MAA4LLR4CH15SBH0BSTAN7H5     1500
4MAA4LTFNB2QOEUX65V5KP66X     2000
Does anyone know how to solve this kind of trouble?
Have U ever faced with it?
Any help would be appreciated
thanks in advance
marco
Edited by: Marco Nardelli on Jun 27, 2011 5:33 PM

Hi,
U simply have a csv file in a certain directory on the UNIX server, it cannot create any kind of problem.
I don't know exactly where it can be, U can try in the root directory...
ciao
marco

Similar Messages

  • Problem in executing query in RSCRM_BAPI  & output in application server!

    hi Experts,
    We executed a query using RSCRM_BAPI transaction and write it to the application server.We found the following problem.
    In the query we have restricted the keyfigures such that each have 2 decimal places but when we execute the query using RSCRM_BAPI and writing into the application server the more than 2 decimal places are coming in to the file.
    For example:
    In the query the value is 12.12 but in the application server its written as 12.1200000
    So the width gets elongated and some of the keyfigures are truncated.
    We have already have gone through the restrictions in the SAP Note Number 605208
    Please help us to find a solution to get output of keyfigures same as whatever coming in the output of query.
    Thanks in advance
    Somenath

    sorry, i mistakenly sent it in different id....this is my id.......if it is useful assign points to this id...
    Using RSCRM_BAPI, RSCRM_REPORT, suitable for simple query.
    In your query you are using Restricted, calculated keyfigure.in that case RSCRM_BAPI, RSCRM_REPORT has some restriction.
    Check OSS 605208 which describes RSCRM_BAPI restrictions .
    Re: Master Data Datasources
    You can Modify the Wrtiequery abap program for your requirement.
    or
    Create a ABAP program for extracting a bw query and upload it in Application server in csv format.
    Thanks,
    senthil kumar

  • 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

  • Problem using RSCRM_BAPI

    Hi all:
    I am trying to use t-code rscrm_bapi...
    but its giving me error in technical name of the extract and path for .csv file, when i select the option "extract". I need query output in .csv file.
    can someone send me the detailed steps for this ?
    Also, Please add this questions in my original problem for using rscrm_bapi t-code.
    it is giving me error for not having authorization to create extract !!
    I already tried to refer few forums on this topic but not getting any solution for problem.
    I will comeback and give the points for the answer.
    thank you,
    KS

    Hi Keral -
           You can give any name that makes sense to you (like the report number)for the technical name of the extract. As for the path, I usually have the file store on the application server by the giving the path (for example, /datastaging/BWP/in/BAPI_FOLDER). (From here if you need, you can save the file as an excel file onto your desktop). In short below are the steps,
    1) Use the t-code RSCRM_BAPI, select the query you are interested in extractiing
    2) Hit extract and it will ask you for a technical name which can be any meaningful name, choose FILE (CSV) option, give the file name (BAPI_EXTRACT) and give the path /datastaging/BWP/in/BAPI
    3) Schedule this job and when finished, check in your application server using t-code AL11.
    FYI, I was not successful in saving the file directly onto the workstation, so I endup saving it onto the application server and from there pull it onto my desktop.
            Hope this helps.

  • Problem with RSCRM_BAPI (extraction to Fixed Lenght txt file)

    Hi Experts,
    I have a question about a RSCRM_BAPI limitation:
    I want to extract a Query, using this transaction, to a fixed lenght .txt file. The query has a tabular structure like this:
    CHARACT1 | CHARACT2 | CHARACT3 | CHARACT4 | KEYFIG_MONTH1 | KEYFIG_MONTH2 | .... | KEYFIG_MONTH12.
    so i have a tabular structure with some CH and a KF repeated for the 12 month of the year.
    The problem is that the fixed lenght .txt file extracted with RSCRM_BAPI stops to the month 11, month 12 is discarded. If i try to extract a .csv file with the same query all the 12 month are included in the file.
    Question: Is it possible that RSCRM_BAPI has a row lenght limitation considering the fixed lenght .txt file?
    Many thanks in advance.
    Fabio

    How did you sechudle the Query/Report Using BAPI, i'm having similar Problem. Please Can you help me out.
    My problem is , i have a query which is schedule for every month 2 wed and a bapi is associated to The query.
    for some reason's the query is not working properly .
    Can you please help.

  • Problem with RSCRM_BAPI

    Hi Experts,
    I have a question about a RSCRM_BAPI limitation:
    I want to extract a Query, using this transaction, to a fixed lenght .txt file. The query has a tabular structure like this:
    CHARACT1 | CHARACT2 | CHARACT3 | CHARACT4 | KEYFIG_MONTH1 | KEYFIG_MONTH2 | .... | KEYFIG_MONTH12.
    so i have a tabular structure with some CH and a KF repeated for the 12 month of the year.
    The problem is that the fixed lenght .txt file extracted with RSCRM_BAPI stops to the month 11, month 12 is discarded. If i try to extract a .csv file with the same query all the 12 month are included in the file.
    Question: Is it possible that RSCRM_BAPI has a row lenght limitation considering the fixed lenght .txt file?
    Many thanks in advance.
    Fabio
    Message was edited by: Fabio Cappabianca

    How did you sechudle the Query/Report Using BAPI, i'm having similar Problem. Please Can you help me out.
    My problem is , i have a query which is schedule for every month 2 wed and a bapi is associated to The query.
    for some reason's the query is not working properly .
    Can you please help.

  • Problem extracting, query with display attributes, in RSCRM_BAPI.

    Has anybody experienced that problem?
    When I execute the extract, the job cancels itself after 2 minutes. Sometimes even shuts down the DEV server.
    There is no Dump in ST22.
    The only error I get is:
    TRUNCATE TABLE "/BIC/0CZTEST" where ZTEST is the extractor
    But when I execute the extract with the same query without the display attributes it runs just fine.
    Help please...

    Check Table("/BIC/0CZTEST") using T-code "SE14".
    If necessary, drop and creat, again.
    Good luck.

  • Error while downloading data Using RSCRM_BAPI

    Hi Folks,
    I am getting the below mentioned error message while downloading the data from BW report to csv file using RSCRM_BAPI.
    Can anyone help on this error ?
    Internal error in method CHECK_TABLE_NAME (RSCRMBW_EX_NAMESPACE_GET)

    hi lakshmi:
    I also tried to use this t-code. but this has lots of restrictions..and its not recommended to use this t-code for complex queries.There are OSS NOtes out there for restrictions for this t-code.
    I got to know from other forums on SDN that there is other RSCRMBW_REPORT FM. which is better to use. but not able to use it... there is specific way for that FM. If you try that and if it works for you please let me also know.
    Also, try to look at this forums:
    Error Using RSCRM_BAPI T-Code
    Problem with RSCRM_BAPI (extraction to Fixed Lenght txt file)
    RSCRM_BAPI Schedule and monitor
    RSCRM_BAPI
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3ba5e590-0201-0010-59b1-cab51fd245b7
    Hope this helps.
    KSmith

  • Report and BAPI , Scheduling Problem

    Hi Gurus,
      I'm having a problem, I've a query/report that should be executed every 2 wed of the Month and A BAPI is associated to the query,and It's not working properly .it's developed by some other developer went to TCode RSCRM_BAPI,RSRTRACE,MDXTEST but it's of no use, My  Question's is what's that trigger the event to run on 2 wed of every month.
    Please,Help me .

    I forgot to tell you that , the query will generate a file for 3rd Party processing

  • RSCRM_BAPI Scheduling

    Is there anyway to schedule RSCRM_BAPI ? i.e attach it to process chain or run weekly...
    Thanks.

    Hi Deepu,
    One option I can think of is to write an ABAP, use BDC in the ABAP to call RSCRM_BAPI transaction. And schedule this abap in a process chain.
    Haven't tried it before, but gave it a thought. Pls let me know whether this solves the problem.
    Regards,
    Vikrant.

  • Empty lines being transfered with RSCRM_BAPI

    Hi guys,
    I have to transfer the result f one query to a table. For this requirement Iu2019m using transaction RSCRM_BAPI transaction.
    The problem is that my query is gigantic and it has a structure in rows with 150 selections visible and 250 that are not visible, but are used in calculations. Besides this big structure I have 7 InfoObjects in columns.
    Iu2019m being able to feed my table, but I noticed that more than half of the lines have all values empty, i.e., zero.
    I tried to place a condition in query, but it gets ignored.
    Do you know a way to skip the lines that have all values zero?
    Thanks in advance.
    Points will be awarded of course.
    João Arvanas,

    Hi Joao,
    This is actually a common problem.  Conditions and row suppression does not work for RSCRM_BAPI.  The underlying function module is WREX_GETDATA. 
    I've tackled this two ways.
    1)  Write a program using WREX_GETDATA and modify the empty entries in memory before writing to table.
    2)  Use the Query in an APD to extract the data and remove the entries via a filter or ABAP process.
    Tips on solution 2
    Make sure you unhide all your keyfigures.
    Turn on Parrallel Processing
    Regards,
    Dae Jin

  • Can't see InfoObjects' desription in RSCRM_BAPI

    I use two BW version 3.5 and 7.
    In BW 7:
    In TCODE RSCRM_BAPI I choose old query and can't see description of InfoObjects, structure.
    But If I create new query with these Infoobjects it's no problem, I can see all descipton.
    In BW 3.5 I don't have this problem.
    What should I do to solve this problem?

    You had restriction in BAPI execution, text will nt be displayed.
    Chekc OSS note: 605208

  • Using TCOde rscrm_bapi and a query result in a error

    Hi All,
    When using tcode RSCRM_BAPI the query execution results in a error Query Meta data is Incomplete
    Please suggest me the solution for this ASAP.
    Regards,
    Varma

    Hi Varma,
    is the query working fine?? Otherwise use transaction RSRT2 and "generate a new report"! This should fix problems with query.
    Regards,
    Adem

  • Rscrm_bapi  ERROR : 'Report Metadat not complete' !!

    hi Experts,
    While executing rscrm_bapi to execute the query in the background I am getting the following error:-
    "<b><i>Report Metadata not complete</i></b>"
    Please help me to find out where I went wrong and also guide me to solve the problem.
    Thanks in advance.

    Hi,
    Unlike in BW3.5 Dynamic variable selection is not supported in BI7.0.Please check the note below
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=973676&nlang=EN&smpsrv=https%3a%2f%2fwebsmp208%2esap-ag%2ede
    Regards
    Chandru

  • Maximun number of selections for rscrm_bapi

    Hi all,
    I'm using to exctract a query in CSV format rscrm_bapi transaction.
    The query contains a customer exit variable to populate a list of customers reading from a DSO.
    Everything works  well if the number customers is low, but when I load in DSO about 15000 records, rscrm_bapi transaction dumps wiyh error SAPSQL_ARRAY_INSERT_DUPREC  exception CX_SY_OPEN_SQL_DB.
    Anyone knows how to bypass this limitation or what is the maximum numers of selections I can enter?
    The strange stuff is that same query works very well if used in analyzer or web.
    Thanks a lot

    Hi,
    Check note 196113 it contains the solution to your problem.
    Most of the time this issue is due to a mismatch between the last assigned log number in table BALHDR and the one in the number range object
    Santosh

Maybe you are looking for

  • Pages 08 docs 'too old' to open in Pages 5.

    It tells me to first save them in Pages 09 but I don't have it! What's more, I can no longer get it because Pages 5 has replaced it in the App Store! A bit confused. Any ideas? I'm willing to buy Pages 09, even though that's ridiculous, but how?

  • Problem in creating New line in --File writing(Urgent)

    Hi all I am facing a tipical problem. I am writing a Text file using FileWriter and i am using "\n" for writing a new line, but when i open notepad all are falling on a single line with a special char (if i open the text file in some other editor vie

  • Set substitution variable from Sql table

    Hi guys, I am new to sql/unix so I hope you can guide me in the right direction. whats the easiest way to update an essbase subvar from a sql table? would I have to write a sqlplus statement to output the variable to file, read the file in a maxl com

  • How do I download pages and numbers?

    Purchased pages and numbers in april. My computer crashed and I had to change the hard drive. Although I saved all my data many apps have to be reinstalled, but can't find out how or where on apps store. I began to download until I realized I was bei

  • Refresh on logical database

    Hello Gurus, I need your help to solve one issue, please. I make a copy from RM07RESL report to one Z, this report get data with logical database. I need to create a button for user refresh data. I try to use the FM LDB_PROCESS, but return code 3, be