APD Process Query to flatfile

I have created a APD process which generates a query output to faltfile.
Wehn i run the process all values from the query output are diaplayed in the file. BUt only one filed dosent get extracted from APD.
has values in Query output but not in the APD generated file..
ITs just a straight forward field, no routine for that in APD.
Please can anyone suggest what can be the problem?
Its quite urgent...
Thanks in advance....
Regards,
Maddy

hi
insert the routine even though it will be simple field mapping (one to one)
give source field/ target fields appropriately.
follwing is a sample code.
DATA: ls_source TYPE y_source_fields,
        ls_target TYPE y_target_fields.
  LOOP AT it_source INTO ls_source.
  ls_target-PLANT =  ls_source-PLANT.
    ls_target-FISCPER = ls_source-FISCPER.
    ls_target-CURRENCY = ls_source-CURRENCY.
    ls_target-FISCVARNT =   ls_source-FISCVARNT.
    ls_target-CALDAY =   sy-datum.
    ls_target-TESP = ls_source-TESP.
    ls_target-EXTRACT = ls_source-EXTRACT.
    APPEND ls_target TO et_target.
ENDLOOP.
actual details will vary as to your source/target fields

Similar Messages

  • APD Process for Cube -  ODS data transfer.

    hi,
    Two data sources (cube and ODS) are feeding another ODS. I want to delete the data in Data target (ODS)belongs to that particular infosource for every data load if it comes from the same infosource without using process chain or events. (I want the similar option found in cube). I also want to write some complex functionality (ABAP CODE) in start routine of update rules.
    Bhanu suggested me to use APD Process. Can any one (including BHANU) explain me in detail about APD Process. Please also give me navigations.
    Regards,
    Avneet

    Hi Avneet,
    You can read details about the APD here:
    http://help.sap.com/saphelp_nw04/helpdata/en/49/7e960481916448b20134d471d36a6b/content.htm
    Basically you can get to the APD from transaction RSANWB. Start creating a new process using a query as the source of data. You can provide a transactional ODS as a data target and you also have the opportunity of changing the data using predefined functions, or also ABAP code before loading into the ODS.
    Hope this helps...

  • APD - Input Query partitioning

    Hi all!
    We currently designing an APD process with an input query that will deliver approx. 1M rows. On the second properties tab (Extended Setting) of the Input Query , an option is offered which should permit some kind of partitioning. Unfortunately this option is not documented. Do you have any experiences or a more detailed description of how it works ?
    Any information is well appreciated.
    Regards, Philipp

    Hi Philipp,
    You can check note 751577:
    You can use the partitioning available as of BW 3.20 to solve memory overflows. There, you can select a partitioning characteristic. For example, you can use it to create settings that determine that the system executes a query for each product group instead of a query covering all product groups. This reduces the consumption of memory because the system no longer
    loads all the data into the main memory at the same time.
    Hope this helps...

  • APD using Query with multiple structures as a data source

    All,
    I want to set up an automatic process which executes a query and exports it to a shared drive as a csv file. I have tried various options , when I try to use APD to set up the extract, I get an error and this is because the query that I am trying to use has Strucutres in both rows and columns. Hence, I am unable to use this option. I tried RSCRM_BAPI, It works well, but there is an issue with scheduling this in Process chain. I created an event and scheduled this as a job to trigger after "event" as per SAP instructions, but the job does not exist and it is not possible to trigger it through the Process chain unless the variables are hard coded in the query which I do not want to do.
    Can any one tell me if there is a way to deal with APD using Query with multiple structures?
    Would really appreciate if some one can give me the right solution...
    Thanks

    Hi Tanu ,
    APD is an option but its not very good with large amount of data or hiearachies or if you have attributes in you query structure .
    One more option for this requirement is use of report program using function module RRW3_GET_QUERY_VIEW_DATA .
    This will work fine with multiple structure etc .
    There are some overheads with this FM  ex: if amount of data is too much then program will give dump .Solution for that is we call the FM in LOOP by diving amount of data need to be fetched .ex:  we can read data quarter wise.
    For using this function module what you can do is write an ABAP program (At SE38 ) .which will call this FM and then write the output into a flat file which you can save at application server (AL11) .From there other system can read it .
    To automate this whole process you can further add all the report programs into a process chain (RSPC) which can be schedule as per requirement .
    To pass input parameters you can use variants that will pass the values to the report .
    Check thi link for sample code :
    [http://www.tricktresor.de/content/index.php?navID=696&aID=496]
    Hope this will be helpful .
    Regards,
    Jaya Tiwari

  • APD from query to flat file - Results not correct

    Hi All,
      Need your help to resolve the issue.
    I am using APD with query as source and target as file download.
    For small sets of data the reults are dowloaded correct, howver if there is a large set more than 30K records the results dowloaded are incorrect.
    BEX results are fine, the issue is only with APD dowload.
    Appreciate all your responses at the earliest.i
    Thanks
    Hari

    Hi Hari,
    By using the tcode RSCRM_BAPI  you can Extract the date into Table or CSV file or save the file to the Application server .
    please check the below link:
    https://websmp103.sap-ag.de/~sapdownload/011000358700004400232004E/HowToRSCRM_BAPI.pdf
    Thanks and Regards
    Sekhar

  • Transport of APD process

    Hi,
    has anyone of you transported a APD process? We try to transport from a DEV system to the TST system. The transport is OK (only zeros, not even a varning somewhere), but what we get in the TST system is a modified version, not the active one. And since the TST system is closed, we cannot activate the APD process and hence not run it either.
    Any ideas?
    /Jan

    Hi Jan,
    did you already check OSS notes 792203 and 777832?
    Regards,
    Tobias

  • Using APD process - What Transformation : BI to CRM

    Hi All,
    I am New to APD Process, i want to send data from BI ( DSO - Standard ) to CRM( Data Traget) system
    What Tranformation process should i use?
    Thanks,
    Nithi.

    HI,
    New to SDN also??
    Refer the following link: [Analysis Process Designer|http://help.sap.com/saphelp_nw70/helpdata/EN/49/7e960481916448b20134d471d36a6b/content.htm]
    Regards,
    anil

  • How to include an APD process in BW Process Chain

    HI,
    I have an existing process chain that I want to add an APD process to. There are dependencies. For example, I want the last 2 steps in the existing process chain to continue AFTER the APD process runs successfully. So, how would I include an APD process in my existing chain, I cannot find the variant that says APD in RSPC.

    Marasa,
    Thanks for your help. I tried to do the second option that you offered just by including an ABAP program variant in my process chain.
    However, my process chain fails at that step with tthe following error:
    11/11/2009     00:09:53     Job started     S     00     516
    11/11/2009     00:09:53     Step 001 started (program RSPROCESS, variant &0000000432745, user ID BWREMOTE)     S     00     550
    11/11/2009     00:10:00     Spool request (number 0000031418) created without immediate output     S     SY     355
    11/11/2009     00:10:00     Processing completed with errors. See spool list     E     RSAN_PR     22
    11/11/2009     00:10:00     Job cancelled after system exception ERROR_MESSAGE     A     00     564
    I cannot find anything in the spool to get the exact cause of an error. When I run the APD process by itselt, it executes fine without any errors.
    I used the following sap document to set this up in my process chain and followed everything they said:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/200ef8fd-a249-2b10-1d9c-91b169be870b&overridelayout=true
    Thanks

  • Saving images from apd process automatically into DSO or DB?

    Hi All,
    Is there any possibility to save those statistical graphs or cluster/regression-analyses images right into a DSO or Database?
    i know i can rightclick them and save thats not what i need.
    Or is there any way to trigger the apd-process except (RSAN_PROCESS_EXCECUTE) and tell the process to save certain images?
    i searched the forum for answers but no success...
    Thanks in advance,
    Yves

    You'll need to submit a feature request.
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    You can quickly correct the incorrect sizing by right
    clicking and selecting Resize. Unfortunately it has to be done with
    each image.
    Potentially you could use FAR from
    http://www.helpware.net to do a
    mass find and replace but be careful and make a backup first.

  • APD process til CRM attribute with type CURR

    Hi Experts
    I have an APD process that I want to write 0amount to a CRM marketing attribute. Similar processes work fine with CHAR, DEC, and so on. It is only when I use CURR (0amount) that it does not work. The CRM 3.1 system says it is something wrong with the marketing attribute. We use BW 3.5. Have anyone experienced something similar?
    Kind regards
    Erik

    Hi Thomas Kruck
    The error message I am getting is:
    <b>CRM-error: Charateristic KJOP:
    Messagenumber. RSAN_MDL022
    Diagnosis
    The following error occurred in the CRM system when trying to access that system:
    ECRM_MKTPROF048: Characteristic KJOP:</b>
    The characteristic KJOP in the CRM system has the same parameters as the InfoObject I am using BW.
    I guess I have to post a Note on this...
    Erik

  • On-demand process query works only on some columns

    I've run into what seems a strange problem. I have an on-demand process that queries the DB and returns a populated select list, which I've successfully used in several places. The query used returns values as it should when I query the DB directly. Within my process however, it returns no rows. I know the process works because if I replace the query that i need, with one on another column in same table, my select list populates. There are several other columns that also don't work, though there is no pattern in terms of data type, size, etc, that I can see, except that the non-working columns are rather far down a list of over 30 columns for that table.
    Here is the process text:
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<select>');
    for rec in (select distinct op_comm d, op_comm r from CPUJAN2006
    where upper(stream) = upper(:P100_TEMP_STREAM))
    loop
    htp.prn('<option value="' || rec.r || '">' || rec.d || '</option>');
    end loop;
    htp.prn('</select>');
    end;
    As mentioned, I can use this select statement directly on the DB and I can replace it in the process, with something like "select db_version from CPUJAN2006" and that works. Any ideas why this would not work on certain columns - could it have anything to do with number of columns in the table or column size?
    Any advice appreciated. Thanks,
    Michelle

    I can and will if this doensn't clarify. I've narrowed down problem to specific records returned from the process query.
    The text entries populating the select list sometimes contain the char '&'. When I get rid of these, my select lists look fine. The select list is populated with following bit:
    htp.prn('<option value="' || rec.d || '">' || rec.r || '</option>');
    I am thinking the & in some rec.d entries is interpreted as something other than text. I cannot change these text values in the DB, because they are fed from another DB. Can I somehow tell the process to view speacial characters as text?

  • APD process is active, How to trigger the data from BI to CRM table

    Hi All,
    I want to send data from BI system(using APD method) to CRM table (ADS method).
    I am able to see the table for e.g ABCD in CRM system , i can open using SE11 , but data is 0.
    In BI , i have data in DSO and i have mapped it in APD process to data Target to CRM system and APD is active.
    Now i want to know how to trigger the data from BI to CRM table? (e.g ABCD).
    Please let me know the steps.
    Regards.
    Nithi.

    Hi
    Just create a Process Chain to execute this APD method, if the process Chain is already available, then just insert this Process in to the process Chain and execute the Process Chain by normal process, by hoe we do in general.
    Hope it solves...

  • APD - writing query result "rank calculation" to file or DSO

    Hello,
    I am trying to take a query result set where I am calculating a key figure as Rank and run it through an APD to write to a DSO.
    This is a top 5 query for a dashboard.  I keep getting an MDX failure on the query.
    Any ideas? 
    My ultimate goal is to set up a process to take TopN query results and get them into a target that can be used in a Universe.
    Thanks,
    Chris

    Hi,
    You want to store the data of query in to dso?Y
    You can write a code in to routine for calulated key figure.
    I also face the same problem but i solved using routine.
    try this.
    Regards,
    Ganesh

  • One of the APD Process Chains fails.

    Hi All,
    I have created two different process chain (PC1 and PC2 for example)which use program RSAN_PROCESS_EXECUTE  to execute the two diiferent APD (APD1 and APD2 for example) . PC1/PC2 executes APD1/APD2 respectively.Both the process chain have the same trigger event.
    The issues is that only one of the process runs successfully and the other fails at the program RSAN_PROCESS_EXECUTE
    For example if the PC1 runs PC2 fails at the program RSAN_PROCESS_EXECUTE and vice versa.
    The Error message it displays  is
    1) Job started     S     00     516
    2) Step 001 started (program RSPROCESS, variant &0000000155350, user ID ALEREMOTE)      S     00     550
    3) Spool request (number 0000030567) created without immediate output       S     SY     355
    4) Processing completed with errors. See spool list     E     RSAN_PR     22
    5) Job cancelled after system exception ERROR_MESSAGE     A     00     564
    Thanks
    Rajiv

    hi,
    To check the detailed error message for failure of APD, check in RSANWB, goto that APD and click on monitor.
    You will find the spool over there.
    Check the error message and let us know, so that we can try to help you out.
    It can be due to authorization issue or due to low memory.
    Regards
    Lavanya

  • APD with query data source

    Hi,
    I'm facing a problem, i created APD which have query data source, this query have so many calculated keyfigure and these calculated keyfigure has Exception Aggregation field is "Use Standard Aggregation" and on Calculations tab "local calculation is "Nothing defined". so Bex query result is defferent from query column "SUM". my problem is all query fields are map in APD there i'm suing the aggregation transformation which is using SUM and load data into DSO.
    Now query indiviual sum for each column is equal to DSO field sum but diffferent from BEx query sum, is there any posibility to take BEx query sum in DSO
    Please help me to fix this issue.
    Thanks,

    Hi,
    Could not understand your issue correctly. Could you please give sample values?
    My suggestion would be to create the query without any result rows and load it in the APD with 1:1 transformation.
    Does that fulfill your requirement?
    Thank.

Maybe you are looking for

  • Memory Leak issue with TreeView

    Hi, I get Memory Leaks in the TreeView, if I open the stage which contains the TreeView several times. Everytime I open the stage, I clear the TreeView and populate it with new items. However there are leaks. I think this is a bug. But maybe my code

  • Save to Web for JPEG Does Not Work

    Originally when I installed CS4, save to web worked great.  When I would downsize an image so as to post on the web, it would downsize with ease and I could save it as a JPEG. Problem now:  On the right upper corner of the page, I have it set for JPE

  • I am trying to fill in a form in adobe exportpdf. How can I fill in numbers and symbols? Parenthesis, dollar sign etc.

    I am trying to fill in a form in adobe exportpdf. How can I fill in numbers and symbols? Parenthesis, dollar sign etc.

  • Producer content is not visible in Consumer portal in FPN

    Hi All, we have configured FPN and the connection is successful, but we are not able to see the Producer content in  Consumer portal. and we are not able to search the producer roles from Identity Management of Consumer also. We did, 1.  we configure

  • Multihoming with CSS 11500?

    Can I do load balancing between two internet ISP's (multihoming), from Internet to Web Server (inside traffic) and from Internal network to Internet (outside traffic) with a Cisco CSS 11500?