APD Flatfile

Hello,
im would like to export some Query Data to a flat file, using APD.
I have read about a flatfile data target in APD. But i can not find it in the workbench.
The available data target types are:
- Characteristics / Attributes
- Transactional ODS
- CRM
- Decision Tree
- Clustering Model
- Association Model
- Scoring Model
- 3rd Party Model
I also could export the Data via an ABAP routine, however the APD process needs to have a Data Target.
Is there a way to create an ADP Process without a data target, or will i have to use a dummy target?
What is a good dummy target. Is there a target that requires no Objects, no space and only minor processing resources when executed?

The Flat file target option is relatively new, Netweaver Support Pack Stack 11  (  BI SP 13).  Check to see what level you are at.
Yes, you need a target.  Depending on what you are doing, if you have APD saving intermediate steps to tables, you might be able to identify the interim table thath a particular step saves it's data to, butI think you would be better off just defining a transaction ODS to be your target and write the data there.

Similar Messages

  • Flatfile Upload with APD

    Hi,
    I try to use a flatfile (CSV) as datasource within APD. The flatfile was created with MS Excel, then saved in csv-format on a Windows file server and brought to the BI application server via a Samba server.
    The carriage returns of the csv-file is converted to a "#" sign on the application server. When I run the process, APD interpretes this #-sign as an infoobject and gives an error message that an infoobject named # does not exist.
    What can I do that system converts the carriage return correctly, or what can I do that APD can handle this #-sign?
    Thanks for your help!

    Ok,
    Thanks a lot.
    It should be possible. Ok.
    I had a few problems activating those elements. This might be the reason.
    So I will delete them now and try to transport those new objects.
    Anyway - thanks for your help.
    Appreciate.
    BR,
    Thorsten

  • 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

  • Query Quetsion  APD or Reporting Agent or ?

    I have a query , It's having around 3 million Records ,
    what's the best way to suggest client to dump the query into Flat file or Excel.
    Is it possable through APD's OR  Reporting Agent or Whether it's achiveable in some other means in BW,   if so can you explain me in Detail.
    your input's will be highly appreciated.
    we are on 3.50 BW
    Thanks in adv

    Hi Murli,
    Welcome to SDN!!
    Use the ABAP Program <b>WRITEQUERY</b> to dump the output into a flatfile.
    Bye
    Dinesh
    <i>Assigning point to the helpful answers is the way of saying thanks in SDN. you can assign points by clicking on the appropriate radio button displayed next to the answers for your question. yellow for 2, green for 6 points(2)and blue for 10 points and to close the question and marked as problem solved. closing the threads which has a solution will help the members to deal with open issues with out wasting time on problems which has a solution and also to the people who encounter the same porblem in future. This is just to give you information as you are a new user.</i>

  • APD related problem.

    Hi,
    I have an APD in the BW Production system. The APD is run with the help of an ABAP Program in the process chain. The APD runs a query and writes the output in a App Server file.
    Lately, the APD step in the chain has been failing. The error says: Check the APD definition or Query definition.
    After sometime, when we repeat the step, it works perfectly fine.
    APD has only 3 objects: Query (source), Routine (acts as a filter), Flatfile (target)
    APD Definition is correct
    Query is also right
    Amount of data is very less
    please help me out .

    This can be because of any query element change, which is not captured in APD. Follow these steps.
    1. Regenerate source query again in RSRT and check if it is fine.
    Hope, this solution works.

  • Problem with APD

    Hi,
    I have an APD in the BW Production system. The APD is run with the help of an ABAP Program in the process chain. The APD runs a query and writes the output in a App Server file.
    Lately, the APD step in the chain has been failing. The error says: Check the APD definition or Query definition.
    After sometime, when we repeat the step, it works perfectly fine.
    APD has only 3 objects: Query (source), Routine (acts as a filter), Flatfile (target)
    -> APD Definition is correct
    -> Query is also right
    -> Amount of data is very less
    I have searched for SAP notes, but have been unsuccessful. If anybody can help me with this?
    Thank you.

    Hi Vishal,
               This can be because of any query element change, which is not captured in APD. Follow these steps.
    1. Regenerate source query again in RSRT and check if it is fine.
    2. Go to APD definition and check it. Also activate it again.
    3. Then, send an active version to PED.
                It is very important to reactivate APD, when there is any change in query definition.
    Hope, this solution works.
    Best Regards,
    Harpal

  • Error in Analysis Process (APD)

    Dear Guru's,
    We have a Analysis process to move Data from a Query -> Flatfile(Csv file on a server).
    when i Execute it i get following Error.
    Also i didnot found any proper note
    Variant '!PERSQBSSMYJ2703U9GOOPWQSYGXN0' for the query was not found
    Message no. RSAN_WB010
    Diagnosis
    Technical key for message: CX_RSAN_MDL_DS_QUERY=>VARIANT_INVALID
    Procedure
    If you require further assistance, look for a SAP Note containing the key words CX_RSAN_MDL_DS_QUERY=>VARIANT_INVALID or RSAN_WB010.
    Thanks in Adv
    Dev

    Well its a been a few months and I discovered a workable solution.  I was able to get the APD process to work in a process chain by creating a variant in RSRT (query monitor screen).  The variants I created with 7.x Bex result in the error message.
    A 7.x query was built.  The variant was created in RSRT.  THe process chain works normally. 
    Apparently the tables where 7.X variants are stored do not get looked at when running a query with the APD process.
    I sure hope all of this works when we upgrade to 7.3x.

  • Columns changing in APD

    Hello BI Experts,
      I am extracting from DSO,Infocube to CSV file using APD and used Transformation Type:Filter between DSO,Infocube to Flatfile.
    Now,my requirement to arrange columns as required i.e if Col1,col2,col3 are in DSO,Infocube ..I need to arrange as col3,col2,col1 in flat file.
    But i am not able to do that ???
    Offcourse after downloading i cna change but its not the exact solution as data is huge.
    Any ideas how to do that?

    Hi,
    Yes you can change the sequence of the fields in the flat file.
    After the filter add "Hide or Rename Columns" .
    Here in the property -> Field Selection , select the fields in which order you want to see the fields in the flat file.
    Activate and run the APD.
    Generated flat file will have to sequence as mentioned in the property of "Hide or Rename Columns" section.
    THis wil help.
    - Jaimin

  • Creation of DataSource for FlatFile Interface in BI 7

    Hi Y'all!
    Can anyone please give me urgent assistance in creating/defining a DataSource for the FlatFile Scenario in BI 7.0.  I've been trying to no avail.  I certain I am doing this incorrectly, as such I seek your assistance.  Can anyone please be so kind as to give me a step-by-step walkthrough of the specific individual steps (in sequence) in creating/defining DataSources...  Also can this be accepted as a character (08-MAY-07)?
    Much thanks!
    Philips

    Hi,
    The following step can help you..
    1. create a info source and assign the data source -
    2. select data source as PC File ( give any name tech & desc)
    3. create a info source structure by include all individual info objects / har. keyfig
        those are available in your file
    4. you can always take the reference of the info objects from the cube/ODS as to
        make info source staructure easy
    5. map the corresponding info objects in the trasfer structure
    6. save and activate the info source
    7. go to your info provider cube/ODS and right click - select - create update rules
        select the name of the file data source name as given above
    8. map them as defult one-to-one mapping until other wise you have some require
        ment in data manipulation through update rules.
    9. save and activate.
    10. come to the info source - create a info package - select source as .CSV file
         and preview it before you actually load.
    11. as far as date is concern in your falt file..select the entire column of the date
         then goto-format column-select 'customize' then put format as 000000 (six
         zeros ) for 0calmonth.
    12. when you lookat the date at infoprovider it shows like 20070508 but
          when you execute in a query it displays its text as 08-May-2007
    I hope it would help you to understand and get your purpose solve.
    Thanks=points.
    Cheers.

  • APD, filename for file data target

    Hello,
    i am designing a APD process  with a file as process target.
    I can hardcode the file path and name in the data target properties, however i would rather set the filename by user input or by a abap routine (eg. include the date of APD execution in the file name). Is that possible?
    Thanks in advance

    Hi,
    You can use the option 'Logical File Name' option to create a dyanmic file name.
    You can define a Logical File Name in tcode 'FILE', where you can append system date, time, varaible to a static file name.
    Hope this helps.

  • Loading complex report data into a direct update DSO using APD

    Dear All,
    Recently, I had a requirement to download the report data into a direct update DSO using an APD. I was able to perform this easily when the report was simple i.e it has few rows and columns. But I faced problems If the report is a complex one. Summing up, I would like to know how to handle the scenarios in each of the following cases:
    1.   How should I decide the key fields and data fields of the direct update DSO ? Is it that the elements in ROWS will go to the
          key fields of DSO and the remaining to the data fields? Correct me.
    2.   What if the report contains the Restricted KFs and Calculated KFs? Do I have to create separate infoobjects in the BI
          system and then include these in the DSO data fields to accommodate the extracted data ?
    3.   How do I handle the Free Characteristics and Filters ?
    4.  Moreover, I observed that if the report contains selection screen variables, then I need to create variants in the report and
         use that variant in the APD. So, if I have 10 sets of users executing the same report with different selection conditions, then
         shall I need to create 10 different variants and pass those into 10 different APDs, all created for the same report ?
    I would appreciate if someone can answer my questions clearly.
    Regards,
    D. Srinivas Rao

    Hi ,
    PFB the answers.
    1. How should I decide the key fields and data fields of the direct update DSO ? Is it that the elements in ROWS will go to the
    key fields of DSO and the remaining to the data fields? Correct me.
    --- Yes , you can use the elements in the ROWS in the Key fields,  but in case you get two records with same value in the ROWS element the data load will fail. So you basically need to have one value that would be different for each record.
    2. What if the report contains the Restricted KFs and Calculated KFs? Do I have to create separate infoobjects in the BI
    system and then include these in the DSO data fields to accommodate the extracted data ?
    Yes you would need to create new Infoobjects for the CKF's and RKF's in the Report and include them in your DSO.
    3. How do I handle the Free Characteristics and Filters ?
    The default filters work in the same way as when you yourself execute the reoprt. But you cannot use the Free characterisitics in the APD. only the ROWS and cloumns element which are in default layout can be used.
    4. Moreover, I observed that if the report contains selection screen variables, then I need to create variants in the report and
    use that variant in the APD. So, if I have 10 sets of users executing the same report with different selection conditions, then
    shall I need to create 10 different variants and pass those into 10 different APDs, all created for the same report ?
    --- Yes you would need to create 10 different APD's. Its very simple to create, you can copy an APD. but it would be for sure a maintance issue. you would have to maintain 10 APD's.
    Please revert in case of any further queries.

  • Short dump while executing APD

    Hi Experts,
                      We have a requirement to populate key and text values for 23 charecterstics in to a flat file. For this we have created a APD with query as source, This query will bring key values. And text values are populated using APD routine which will look up respective text tables and all the result data is downloaded in to a flat file.
    When testing this APD i have come across a short dump, as all the charecterstics are placed in rows. Then i have applied static filters in the query for some of charecterstics and executed the APD. It worked. But if try to execute APD with no filters in the query it gives me short dump. Request you to suggest strategy which will avoid the short dump and improve the performance, where i can display all the 23 charecterstics key and text values.
    Thanks in advance.

    Hi Javed
    Here are couple of things what you can try
    - You can apply filters in the APD and split the data into small chunks and later collate the data into one final file, this can be done by decisions in APD
    - There is a difference how you have created your query and applied the filters/restrictions,In case of 7x queries none of the filters should be in Default tabs and all of them should be in Filters tab only
    - From my previous experiences I have seen that at times you add a dummy "Filter" type be applied in APD to avoid such issues, so give this a try as well
    Thanks
    Abhishek Shanbhogue

  • Data extraction from sap r/3 to flatfile

    hello Guru's
    i am new to this feild. i got a requirement in such a way i have to extract data from feilds of different tables to flatfile.
    ( actual Scenario is we want to send data to sybase server through flatfile)
    plz send me some documents how to proceed with the specification
    usefull code in this regard is lot helpfull.
    thanks and regards
    aj

    Hello Raja,
    Here are some simple steps ...
    When you want to load data from a flat file, there is no process of datasource replication. The datasource has to be created manually on the BW system itself. When creating this datasource you start from the InfoSource and assign the source system for flat file load. This is usually something like PC_FILE or FLATFILE.
    Then you can start creating the datasource. You need to mention the field names in this datasource. Note that in your flat file, the sequence of fields must exactly match the sequence of fields in the datasource, else the data will be wrongly mapped.
    On the same screen and tab you can also do a preview of the data that will be loaded. Click the preview button and put in the path of the file. Mention other details like header row, and number of rows to be displayed and then you will be able to judge if the data is being loaded correctly or not.
    When loading the data, then file cannot be open else you will get an error message. Also to be able to schedule the flat file loads in process chains, the file cannot be on your PC. It has to be on the application server.
    This is some basic info. Please post back if you need details on any aspect.
    Hope this helps...
    Assigning points is the way to thanks in sdn.

  • APD - Query output on to a Flat file

    All
    We are on BI 7.0 with SP13 and NWS 12. I am trying to create a new APD with source as "Query" built on Info object and target as "Flat File". There is no requirement of transformation so I am trying to map directly from Source to Target with a direct link with out using any transformations in between,
    I could check and found no errors in APD definition and when I run APD, the file is getting created both on application server and local workstation but with 0 records.
    The volume of records are expected to be around 4 millions on this query and am just wondering why APD is not writing any data on CSV file.
    Pls let me know the following;
    - What is wrong in the above process and why it is not writing data on to flat file
    - Can APD handle volume of 4 million rows even though job runs in the background?
    Your inputs in this are highly helpful and thanks for your time to provide solution.
    Thanks - Sriram

    Hi
    Thanks for your reply and I could solve this issue and found the root cause.
    The very purpose of this APD is to provide a list of business partners to an upstream systerm with few attributes and in this process one of my consultant has deactivated the key figure in the query which is an input for APD process.
    When the key figure is inactivated ( this is the only key figure in the query ), APD does not recognize query as a valid one and sends out an error message.
    When we re activate the key figure ( I have hidden this later using APD transformations to hide the column and send output to a flat file on to unix server ) in the query, the APD runs fine and could deliver the output in flat file.
    Thanks

  • 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

Maybe you are looking for