Issue in APD

Hi guys ,
I have an issue in APD .
I have created a new APD with a Query as source and an Application file as the data target .
(In between , I have various filters , sorts, etc)
After succesfully executing this APD , the log which appears does not show the Physical application file name in total(ie the file name is getting truncated ) . I want to the total file name to be displayed in the log, Since I have to make use of this file name in my further processing .
So guys , can you please help me out in this issue .
Thnx
Anil

Issue closed ....

Similar Messages

  • Call hierarchy issue in APD

    Hi BW Gurus,
    we have a requirement in which we need to provide CSV files based on query in APD
    When checked using each query I am getting a short dump stating u201CCall hierarchy issueu201D(hierarchies are used in query)
    And when I remove the hierarchy in query u2026I am able to execute the APDu2026and generate the fileu2026but some key figures are restricted with hierarchies which should not be removedu2026..is there any concern in using hierarchies of Query in APDu2026is there any other alternative
    Please let me know
    Regards,
    Srivatsava

    Hi Kiran/Riyez,
    Thanks for your inputs,
    But requirement is to send finance data as CSV files, so we have to use existing queries built on COPA cubes, here we canu2019t remove hierarchies
    I have checked query by executing separately its running fine, while trying with APD we are getting this DUMP

  • Variant issue in APD

    Hi All,
    I have created a APD process.
    Source : Query
    Trans : Hide columns and Routine
    Target : Application server.
    In my query level I have varaible on Company code.For this variable I have created a separate
    variants for each compnay codes.In APD In the data source(Query) properties I have given
    one variant.when I am executing the APD process I am getting error dynamic variable are not allowed.
    Regards
    Ram.

    Hi Ram,
    if your really have specified a query variant in APD, there should be no error message.
    I remember some problems when you have defined you query filter condition in the "defaults" area (right hand side of the query designer). Put the variable to the left into the "static" filter area.
    Another remark on performance in APD: In your case, the query partitioning might work well. You would not need query variants then, but define the company code to be the partitioning characteristic. Set package size = 1 in order to start the query for each company code.
    You can specify query variants in RSCRM_BAPI, too. Or, you can also set a filter right there, e.g. for testing with a filter which will lead to a small result. Of course, this does not help for period batch processing.
    Cheers
    Thomas

  • Changing position of negative sign on Key figures in APD

    Hi BI Gurus,
    I got an issue with APD writing data with negative value into Flat File . When it writes to flat file, it's writing as  100- format and not -100 format.  searched on the SDN and found out that this can be achieved by routine in APD.
    Can you guys please help me in putting this logic into proper ABAP for BI 7 routine?
    Thanks,
    Sashi

    Hi Vikarm,
    Thanks for all your help.
    i am getting "Syntax error: "V_NUM1" must be a character-like data object (data type C, N, D, T, or STRING) field string)." error when I used below code.
    TYPES: BEGIN OF y_source_fields ,
             COMP_CODE TYPE /BI0/OICOMP_CODE ,
             FISCYEAR TYPE /BI0/OIFISCYEAR ,
             FISCPER3 TYPE /BI0/OIFISCPER3 ,
             PROFIT_CTR TYPE /BI0/OIPROFIT_CTR ,
             ACCOUNT TYPE /BI0/OIACCOUNT ,
             KYF_0001 TYPE /BIC/OIZBALANCE ,
           END OF y_source_fields .
    TYPES: yt_source_fields TYPE STANDARD TABLE OF y_source_fields .
    TYPES: BEGIN OF y_target_fields ,
             COMP_CODE TYPE /BI0/OICOMP_CODE ,
             FISCYEAR TYPE /BI0/OIFISCYEAR ,
             FISCPER3 TYPE /BI0/OIFISCPER3 ,
             PROFIT_CTR TYPE /BI0/OIPROFIT_CTR ,
             ACCOUNT TYPE /BI0/OIACCOUNT ,
             KYF_0001 TYPE /BIC/OIZBALANCE ,
           END OF y_target_fields .
    TYPES: yt_target_fields TYPE STANDARD TABLE OF y_target_fields .
    Begin of type definitions -
    *TYPES: ...
    End of type definitions -
    FORM compute_data_transformation
         USING     it_source TYPE yt_source_fields
                   ir_context TYPE REF TO if_rsan_rt_routine_context
         EXPORTING et_target TYPE yt_target_fields .
    Begin of transformation code -
    DATA: ls_source TYPE y_source_fields,
            ls_target TYPE y_target_fields,
            v_num1 TYPE /BIC/OIZBALANCE,
            v_len1 TYPE i.
      LOOP AT it_source INTO ls_source.
      MOVE-CORRESPONDING ls_source TO ls_target.
    v_num1 = ls_source-KYF_0001. 
    v_len1 = STRLEN( v_num1 ).
    v_len1 = v_len1 - 1.
    concatenate v_num1+v_len1(1) v_num1(v_len1) into v_num1.
    ls_target-KYF_0001 = v_num1.
    APPEND ls_target TO et_target.
    ENDLOOP
    Regards,
    Sashi

  • Question related to APD

    Hi All,
    I am facing an issue with APD.
    We are using APD to drop the data from Report to csv file.
    It is working fine on local machine,But when we are placing in Application server giving an error message like
    File:............Could not be opened ,Operating system error:0()
    And it is giving diagnosis as :.
    Technical key for message:CX_SY_FILE_OPEN=>CX_SY_FILE_OPEN
    We have created logical definition in 'FILE' tcode.
    File is not open at all.
    Need your suggestions.
    Thank you,

    Is your file placed in server properly? Remove it and replace again freshly.

  • Display data of query in Analysis Process Designer mismatch query result

    Hi experts,
    I am having an issue with APD.when ii am display data of the query in apd i am having wrong values for key figures.
    any solutions?
    Thanks

    Hi,
    after doing a check by restricting data in the query, I see that the condition I have set in the query, to only give me the data where keyfigure X <= 2, the DSO is updated with all the values. So it seems that conditions in queries are ignored by the APD. Does anybody know anything more about this? Then I can understand why the job was taking so much time...
    Regards,
    Øystein

  • APD timeout issue in execution

    Good afternoon,
    Please anybody knows about this issue? the problem description is the following:
    We have an APD in a Process Chain, this chain was running well in previous dates, but when we run it yesterday and a issue happened.
    The message that appears in common in the 3 APD's that failed when double-click is the following:
    And the process monitor shows the following log:
    As we can see the duration of the Job was 20.787 Seconds and that is not normal because when
    we run the query using RSRT or BEX the result of the query appears in 15
    seconds, so the problem is in Data Source of each APD because the time out
    problem is in execution of the Query that is the data source.  in the next 3 screens we can see it:
    When we check in the TX ST22 The list of Runtime Errors shows that is an TIME_OUT error:
    As we can see the APD is composed by the datasource in this case is a Query and there is
    an aggregation and then the data of the selected fields are written in a DSO.
    When right click and select the option "Display Data" in the APD the execution
    begins but never ends, there is the Time_Out Error.
    The properties of the Data Source in the APD about Extended Settings Tab is the following:
    When we check the TX SM50 In the following screen we can see that is a CL_SQL_RESULT_SET
    Thank you very much if anyone can help or advice to discover the cause of this problem
    and how to solve it.
    Kind regards,
    Luis Jorge

    Hi, I see you have an object aggregation. My recommendation is to redefine the query you delete this object and subtract rows to the query.
    I hope help. Regards.

  • APD issue, Data not showing correctly in APD.

    Hi All,
    Please guys help me with this APD issue that I am facing.
    There is an APD created whose target is a file and with one routine. Here the purpose of the routine was mostly just to sequence the fields the way I want them, and only to show certain ones, also to delete all KF that are zero.(which is commented out).
    No matter what I do, it always gets data which has the key figures as all zeros.  I put some code in there to delete the data which is all zeros but commented it out, because otherwise then it writes zero records.
    The code part which delete all KF that are zero is commented out. Now we are getting the file data with commented code and without commenting code same.
    The thing is, in Bex the query from which we are fetching data is showing proper data with zeroes as well as KF with values. But the same APD is showing only the data whose KF's are zeroes.
    I am pasting the routine here:
    REPORT RSAN_WB_ROUTINE_TEMP_REPORT .
    TYPES: BEGIN OF y_source_fields ,
             COUNTRY TYPE /BI0/OICOUNTRY ,
             SALESORG TYPE /BI0/OISALESORG ,
             /BIC/ZFCSTGRP TYPE /BIC/OIZFCSTGRP ,
             PLANT TYPE /BI0/OIPLANT ,
             MATERIAL TYPE /BI0/OIMATERIAL ,
             FISCPER TYPE /BI0/OIFISCPER ,
             KYF_0001 TYPE /BIC/OIZBAS_FCST ,
             KYF_0002 TYPE /BIC/OIZTUN_QTY ,
             KYF_0002_UNIT TYPE MEINS ,
             KYF_0003 TYPE /BIC/OIZCOR_FCST ,
             KYF_0004 TYPE /BIC/OIZTOT_FRCT ,
             KYF_0005 TYPE /BIC/OIZTER_TFCT ,
           END OF y_source_fields .
    TYPES: yt_source_fields TYPE STANDARD TABLE OF y_source_fields .
    TYPES: BEGIN OF y_target_fields ,
             COUNTRY TYPE /BI0/OICOUNTRY ,
             SALESORG TYPE /BI0/OISALESORG ,
             /BIC/ZFCSTGRP TYPE /BIC/OIZFCSTGRP ,
             PLANT TYPE /BI0/OIPLANT ,
             MATERIAL TYPE /BI0/OIMATERIAL ,
             FISCPER TYPE /BI0/OIFISCPER ,
             ZBAS_FCST TYPE /BIC/OIZBAS_FCST ,
             ZTUN_QTY TYPE /BIC/OIZTUN_QTY ,
             BASE_UOM TYPE /BI0/OIBASE_UOM ,
             ZCOR_FCST TYPE /BIC/OIZCOR_FCST ,
             ZTOT_FRCT TYPE /BIC/OIZTOT_FRCT ,
             ZTER_TFCT TYPE /BIC/OIZTER_TFCT ,
           END OF y_target_fields .
    TYPES: yt_target_fields TYPE STANDARD TABLE OF y_target_fields .
    Begin of type definitions -
    *TYPES: ...
    End of type definitions -
    FORM compute_data_transformation
         USING     it_source TYPE yt_source_fields
                   ir_context TYPE REF TO if_rsan_rt_routine_context
         EXPORTING et_target TYPE yt_target_fields .
    Begin of transformation code -
      DATA: ls_source TYPE y_source_fields,
            ls_target TYPE y_target_fields.
      LOOP AT it_source INTO ls_source.
       IF ls_source-KYF_0001 = 0
       AND ls_source-KYF_0002 = 0
       AND ls_source-KYF_0003 = 0
       AND ls_source-KYF_0004 = 0
       AND ls_source-KYF_0005 = 0.
         DELETE it_source.
         EXIT.
       ENDIF.
        MOVE-CORRESPONDING ls_source TO ls_target.
        APPEND ls_target TO et_target.
      ENDLOOP.
    End of transformation code -
    ENDFORM.
    End of transformation code -
    ENDFORM.
    Please help me and reply. Good answers are appreciated and rewarded with points.
    Thanks,
    Sumisha Subramanian.

    Hi All,
    Please guys help me with this APD issue that I am facing.
    There is an APD created whose target is a file and with one routine. Here the purpose of the routine was mostly just to sequence the fields the way I want them, and only to show certain ones, also to delete all KF that are zero.(which is commented out).
    No matter what I do, it always gets data which has the key figures as all zeros.  I put some code in there to delete the data which is all zeros but commented it out, because otherwise then it writes zero records.
    The code part which delete all KF that are zero is commented out. Now we are getting the file data with commented code and without commenting code same.
    The thing is, in Bex the query from which we are fetching data is showing proper data with zeroes as well as KF with values. But the same APD is showing only the data whose KF's are zeroes.
    I am pasting the routine here:
    REPORT RSAN_WB_ROUTINE_TEMP_REPORT .
    TYPES: BEGIN OF y_source_fields ,
             COUNTRY TYPE /BI0/OICOUNTRY ,
             SALESORG TYPE /BI0/OISALESORG ,
             /BIC/ZFCSTGRP TYPE /BIC/OIZFCSTGRP ,
             PLANT TYPE /BI0/OIPLANT ,
             MATERIAL TYPE /BI0/OIMATERIAL ,
             FISCPER TYPE /BI0/OIFISCPER ,
             KYF_0001 TYPE /BIC/OIZBAS_FCST ,
             KYF_0002 TYPE /BIC/OIZTUN_QTY ,
             KYF_0002_UNIT TYPE MEINS ,
             KYF_0003 TYPE /BIC/OIZCOR_FCST ,
             KYF_0004 TYPE /BIC/OIZTOT_FRCT ,
             KYF_0005 TYPE /BIC/OIZTER_TFCT ,
           END OF y_source_fields .
    TYPES: yt_source_fields TYPE STANDARD TABLE OF y_source_fields .
    TYPES: BEGIN OF y_target_fields ,
             COUNTRY TYPE /BI0/OICOUNTRY ,
             SALESORG TYPE /BI0/OISALESORG ,
             /BIC/ZFCSTGRP TYPE /BIC/OIZFCSTGRP ,
             PLANT TYPE /BI0/OIPLANT ,
             MATERIAL TYPE /BI0/OIMATERIAL ,
             FISCPER TYPE /BI0/OIFISCPER ,
             ZBAS_FCST TYPE /BIC/OIZBAS_FCST ,
             ZTUN_QTY TYPE /BIC/OIZTUN_QTY ,
             BASE_UOM TYPE /BI0/OIBASE_UOM ,
             ZCOR_FCST TYPE /BIC/OIZCOR_FCST ,
             ZTOT_FRCT TYPE /BIC/OIZTOT_FRCT ,
             ZTER_TFCT TYPE /BIC/OIZTER_TFCT ,
           END OF y_target_fields .
    TYPES: yt_target_fields TYPE STANDARD TABLE OF y_target_fields .
    Begin of type definitions -
    *TYPES: ...
    End of type definitions -
    FORM compute_data_transformation
         USING     it_source TYPE yt_source_fields
                   ir_context TYPE REF TO if_rsan_rt_routine_context
         EXPORTING et_target TYPE yt_target_fields .
    Begin of transformation code -
      DATA: ls_source TYPE y_source_fields,
            ls_target TYPE y_target_fields.
      LOOP AT it_source INTO ls_source.
       IF ls_source-KYF_0001 = 0
       AND ls_source-KYF_0002 = 0
       AND ls_source-KYF_0003 = 0
       AND ls_source-KYF_0004 = 0
       AND ls_source-KYF_0005 = 0.
         DELETE it_source.
         EXIT.
       ENDIF.
        MOVE-CORRESPONDING ls_source TO ls_target.
        APPEND ls_target TO et_target.
      ENDLOOP.
    End of transformation code -
    ENDFORM.
    End of transformation code -
    ENDFORM.
    Please help me and reply. Good answers are appreciated and rewarded with points.
    Thanks,
    Sumisha Subramanian.

  • APD Issue - Text not showing up

    Hi All,
    We are configuring APD to run a 'query' and dump 'Large files' on to a directory path in Application server. APD is simple, Query - Transformation - PC File.
    This solution as such is working fine.  However, even if the 'Query' is set to display 'Text' (say for 'Customer' characteristics) the dump picks up 'Customer code' and not the Text.  Our solution also carries 'Hide or Rename column' transformation.
    Tapan

    Hi Tapan,
    I had to face same issue.
    We cannot get text through APD by BEx setting.
    By default APD reads Key from BEx query.
    Only way is to use "Join" from the text tables of master data.
    You are right that you need to use as many joins as the number of text fields needed.
    comming to the performance of the "Join", It did not impact much on the execution time (at least for me - I am using 3 joins to get descriptions for 3 fields -- APD with out joins takes approximately 10mins and with joins takes approximately 10mins 30sec to generate a huge file of 20MB)
    Hope this helps.
    Experts let us now if there is any other way for this.
    Thanks & Regards,
    Vidya Sagar

  • APD-Issue with Decimals

    hi,
    I am using APD to get the report results as CSV file. I have restircted not to show the decimal places for the values in the report  but the file that is genarated always comes with two decimals.
    The business  does not wants the value with decimals.  I have looked at all the options to get this possible in APD.
    Please help with this issue. I am not good at ABAP and I may not be able to write a program.
    Regards,
    Raghu

    Hi;
    APD seeks to direct the base, then it makes sense to try to change the decimal places in the query, there is documentation that shows how to Creation of Key Figures with Higher Decimal Place Precision (https://service.sap.com/sap/support/notes/460652)
    Sá Freire
    Edited by: Luiz André Sá Freire on Feb 2, 2011 4:35 PM

  • APD Performance Issue

    Hi Experts,
      I have create an APD with Query ( on a multiprovider ) as a datasource. This query is a complicated one with lots of preaggregations and stuff and it has to read through a bulk of data.
      When I run this query in RSRT I get the output in around 45-50 minutes.
      But when I use this query as data source for the APD the query takes a lot of time ( 5 hrs ) to execute
    i.e the APD gets stuck in CL_SQL_READ step. There's a routine step and an aggregation step within the  APD and these two steps hardly take time.
    What I find to be strange about this situation is that how could a query that takes 45-50 mins to execute in rsrt takes 5 hours when used as a data source of an APD?
    Has any one faced this problem before? Any help from you guys will be appreciated.

    Hi Adviat,
    I faced simillar problem when used Query as a source for the APD.
    In order to overcome the perfromance issue i have used the InfoProvider as the Source in APD insteadof Query.
    The performance is even better than the query.
    You can perform Calculated Key figures & Restricted Key Figures using the ABAP Routine within APD.
    You can write to me if you need more help on this.
    Regards
    Ramesh
    [email protected]

  • APD failure due to MDX Parser starting issue

    Hello,
    As part of BW on HANA migration, we have recently migrated Dev system to HANA database and during testing we have issue for one of the APD's
    which when triggered failed with the below error messages: Error occurred when starting the parser:timeout during allocate / CPIC- CALL: 'ThSAPCMRCV' Syntax error in MDX statement Termination: Error when executing the query Processing was canceled And the RFC connection for MDX PARSER was also failing. Subsequently, basis implemented the SAP Note 1032461 - MDX parser does not start. Which resolved the issue with the RFC connection. However, the APD is still failing. The error message we get is as below for the same: Error occurred when starting the parser: Function RRTS_PARSE_MDX is not available Syntax error in MDX statement Termination: Error when executing the query Processing was canceled. Request your help on the same.
    Most of the SDN forums on this topic advised on the SAP Note 1032461. However, despite implementing the same note our basis team couldn't succeed in resolving the issue. Thank you!

    Hi Meduru Avinash,
    As you rightly told, most of the time note 1032461 is referred to solve this issue.
    Some where I have read that we need to refer 638701 also,
    like adding gw/cpic_timeout in your system, if it is not available.
    BR
    Prabhith

  • APD issue

    Hello,
    I am facing an APD issue. While executing the APD in quality server its giving the following error.
    Error occurred when starting the parser: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
    Message no. BRAINOLAPAPI011
    Diagnosis
    Failed to start the MDX parser.
    System Response
    timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
    Procedure
    Check the Sys Log in Transaction SM21 and test the TCP-IP connection MDX_PARSER in Transaction SM59.
    But when i executed the APD in development server it executed properly.
    Can anyone help me to resolve the issue.
    Thanks,
    Kumkum

    Hi Pravender,
    I have no authorisation in sm59
    and i have no knowledge of tcode MDXTEST.
    can you please give few more details about it??
    if i  drag and drop the inobject used in the query in the right panel of MDX test editor then it shows the same error as it shows while executing the APD
    Thanks
    Edited by: kumkum basu on Jun 16, 2010 10:44 AM

  • APD query issue

    hello all,
                    I have a BEx query showing net revenue by profit center. profit center has hierarchy and the data is displayed at third level. I need to transfer the dataset at this level to an external system. tried using Analysis process designer, but looks like it does not support hierarchies..I can only get data at the lowest level..any ideas..
             I idea was to use APD to get data into the ods and use open hub to get data into ext. system...but without apd...we need to build comples routines to build the same logic into the ods...
    thanks
    sri

    Hi there
    I realise your issue was from a while ago, but I am experiencing the same.  Did you ever get to the bottom of this?
    Rgds
    Anton

  • APD issue 'Cannot find Variable'

    Hello experts,
    When i am trying to execute APD following error msg recieved.
    Cannot find variable 4T23JCVG9Z4JPGIFX0WFR1GK9 for ZLASTDATE characteristic in selection 0001
    Message no. RSAN_WB010
    Diagnosis
    Technical key for message: CX_RSAN_MDL_DST_FILTER=>FILTER_VAR_RANGE_ERROR
    Procedure
    If you require further assistance, look for a SAP Note containing the key words CX_RSAN_MDL_DST_FILTER=>FILTER_VAR_RANGE_ERROR or RSAN_WB010.
    has anyone had this issue.Please share your experience.
    Regards
    Kranthi.C

    Thanks Vishal for your prompt response. We running APD from an Infoprovider(Infoobject  as Dattarget) called 0BPARTNER. And 'ZLASTDATE'(Refference of ODATE) is attribute of '0BPARTNER'. We stores the values in CRM.
    We also have an alternative  in BI  system for this to fetch the data from Query and stores it in CRM. But problem is in Prod server we have over 1.5 million records of data and the values of these records  may be changed on  a daily basis. If 1.5 million records can uploaded at the first place later we dont expect many records on a daily basis(hardly 5k).So i executed first time  APD using this Query it ends up with error as cannot a upload the load at one stretch after many hours.I have also tried  split the records like 20k in Query but still taking 5 to 6 hrs time.APD process can be done only after business hours so if i follow this procedure it will take many days for me to upload and may be CRM dont have uptodate data.
    Hope you understood wat the problem is .Please let us know if anything you aware which can resolve the issue.
    Regards
    Kranthi

Maybe you are looking for