APD VARIANT ISSUE

Hello Experts,
I am running an APD based on a query. In the selection screen of my query i have a field calendar day which is filled using customer exit showing sydatum-1.
I have a requirement whereby i need to run the apd using variant. but the date needs to show yesterday date each time the apd is run.
My question is how can we save a variant being filled by customer exit .
Kevin

If the variable is being fed using a customer exit then in the variant also that particular value will be saved and when you'll run your APD using that variant it will show the same date. One option might be to remove the varialbe from the selection screen since it's automaticaly calculating the value and even if the user wants to restrict it later on he can do so in the query itself.
Thanks,
Arminder

Similar Messages

  • 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

  • PSA deleition variant issue for the BW data source 80CUST_SALEST

    Hi all,
    I am trying to create a PSA deletion variant for the datasource 80CUST_SALEST, It is a BW Export Datasource,
    We are in BI EHP1 7.01 SP3,  I am getting a error like "Object name 0CUST_SALEST after the prefix
    start with ABC...XYZ". it is not allowing me to save the PSA variant.
    I also had a similar type of issue when creation for 1_COPA Datasources which was resolved by the OSS 1309619.
    Can you please suggest me or advice me of any OSS notes/remedies for this issue.

    can't you create the variant referring to the infopackage instead of the psa table?
    M.

  • 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.

  • Variant Issue in Abap Program

    I came across this strange issue with Variants: Please let me know if anyone has come cross this issue.
    Issue:   I select a variant for a Zreport which has email address in the selection screen. Now i select another variant in which there is no email address but still i see the email address. basically the first variant value is being passed when i select the second variant.
    Code:
    SELECTION-SCREEN : BEGIN OF BLOCK em WITH FRAME TITLE text-307.
    PARAMETERS:  p_send TYPE char1 AS CHECKBOX DEFAULT ''.
    SELECT-OPTIONS   :s_emails FOR somlreci1-receiver NO INTERVALS. 
    SELECTION-SCREEN : END OF BLOCK em.

    Hi Vasudev,
    I have not seen any issue like that before,
    Try creating the variant again,
    Step1: enter an email address and then save
    Step2: name the variant as var1 and then save
    Step3: now remove the email address and then save
    Step4: name the variant as var2 and then save.
    Step5: refresh by /n followed by the T code
    Step6: try it out now with both the variants
    Revert for further clarification
    Thanks
    Sri

  • FAGLL03 variant issue

    Hi Sap Team Members,
    The Transaction FAGLL03 variant that runs for I1 with no trouble but never finishes for L1 & L2 is "AZLChk4CorpStf". in sap new G/l
    When we run this transaction code it runs fast for leading ledger, but for non leading ledgers it is not finishing when we give multiple profit centres .if we give single profit center its gives results fast.
    So please help me in this issue if anybody faced the issue before.
    tell me alternate way to display line items or else tell me what could be reasons for getting this reasons .i.e where we made mistake.
    Thanks in Advance
    Chandana

    Hi Chandana,
    Have you reviewed the note "1391665 FAGLL03: Performance w/ reconc. accts or non-LI/OI accts"?
    Other notes about performance
    1384389  FAGLB03: Performance during drilldown (entry view)
    1402209  FAGLB03: Performance not optimal when selecting balances
    1361304  FAGLL03: Too much data selected in external call
    Hope this helps.
    Kind Regards
    Soumya

  • 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]

  • Decision variant issue in process chain

    Hi,
    I have a decision variant for my process chain:
    It should be successful when it is 5th working day of month. If the 5th working day of the month is friday, it should be failed..
    Can you please help me to build the formula in Decision variant.
    Thanks,
    Harish

    Hi,
    When I use the below formula in decision variant, I found that it is passing on 5th working day and 6 th and 7th days.
    WORKINGDAY_MONTH( Current Date, 'FI', '' ) = 5 AND DATE_WEEKDAY1( Current Date ) 5
    But my requirement is "it should pass only on fifth working day and if it is friday it should not pass"
    Previously it worked fine. now we are facing issue with this decision varinat..
    Can some please suggest how to fix this

  • Variants Issue

    I Have 2 variants for a Z report.  Having issue with variants values for one of the slection screen.
    Selection Screen:
    SELECTION-SCREEN : BEGIN OF BLOCK bj WITH FRAME TITLE text-m08.
       PARAMETERS p_ba TYPE zfi_barea-zzarea MATCHCODE OBJECT zzbarea.     "Business Area
       PARAMETERS p_fn(40) TYPE c.                                                                            "File Name
    SELECTION-SCREEN : END OF BLOCK bj.
    Variants for Z report
    /VAR1  has  Business Area               FIN
                         File Name                       Test1
    /VAR2  has  blank vaues for Business Area and File Name
    Issue:
    When i switch between variants ..The   /VAR2  is retaining values of /VAR1.
    Apprecite feedback.

    Resolved by using the FM 'RS_VARIANT_CONTENTS'  below.
      gx_program = sy-repid.
      gx_variant = sy-slset.
      DATA: lt_parm       TYPE STANDARD TABLE OF vanz INITIAL SIZE 0,
            lt_parm_nonv  TYPE STANDARD TABLE OF vanz INITIAL SIZE 0,
            lt_selop      TYPE STANDARD TABLE OF vanz INITIAL SIZE 0,
            lt_selop_nonv TYPE STANDARD TABLE OF vanz INITIAL SIZE 0,
            lt_values     TYPE STANDARD TABLE OF rsparams INITIAL SIZE 0,
            lx_values     TYPE rsparams.
      CONSTANTS: lc_ba TYPE rsparams-selname VALUE 'P_BA',
                 lc_fn TYPE rsparams-selname VALUE 'P_FN'.
      CALL FUNCTION 'RS_VARIANT_CONTENTS'
        EXPORTING
          report               = gx_program
          variant              = gx_variant
        TABLES
          l_params             = lt_parm
          l_params_nonv        = lt_parm_nonv
          l_selop              = lt_selop
          l_selop_nonv         = lt_selop_nonv
          valutab              = lt_values
        EXCEPTIONS
          variant_non_existent = 1
          variant_obsolete     = 2
          OTHERS               = 3.
      IF sy-subrc EQ 0.
        SORT lt_values BY selname.
        READ TABLE lt_values INTO lx_values WITH KEY selname = lc_ba
                                                     BINARY SEARCH.
        IF sy-subrc EQ 0.
          IF lx_values-low IS INITIAL.
            CLEAR p_ba.
          ENDIF.
        ENDIF.
        READ TABLE lt_values INTO lx_values WITH KEY selname = lc_fn
                                                     BINARY SEARCH.
        IF sy-subrc EQ 0.
          IF lx_values-low IS INITIAL.
            CLEAR p_fn.
          ENDIF.
        ENDIF.
      ENDIF.
      CLEAR  lx_values.
      FREE: lt_parm,
            lt_parm_nonv,
            lt_selop,
            lt_selop_nonv,
            lt_values.

  • Do varying issue in unicode programs(ECC6.0)

    Hi,
    I am facing the error "Could not specify the range automatically. This means you need a RANGE addition." for the following code.
    DATA : W_STRAT_LANC1 LIKE T16FD-FRGCT,  "stratégie de lancement 1 +DJA
             W_STRAT_LANC2 LIKE T16FD-FRGCT
    DO 3 TIMES
         VARYING T16FS-FRGCX   FROM T16FS-FRGC1   NEXT T16FS-FRGC2 RANGE T16FS
         VARYING W_STRAT_LANCX FROM W_STRAT_LANC1 NEXT W_STRAT_LANC2.
    Please send me a possible solution.
    I have gone through many posts but this is a new issue.

    Hi,
    This is not a correct way of using the varying addition. Your fields should belong to the same structure...
    something like:
    TYPES: BEGIN OF ts_lanc,
             lanc1 TYPE frgct,
             lanc2 TYPE frgct,
            END OF ts_lanc.
    DATA: w_strat_lancx TYPE t16fd-frgct,
          w_t16fs-frgcx TYPE t16fs-frgsx.
    DATA: ws_t16fs TYPE t16fs,
          ws_lanc  TYPE ts_lanc.
    DO 3 TIMES
       VARYING w_t16fs-frgcx FROM ws_t16fs-frgc1 NEXT ws_t16fs-frgc2 RANGE ws_t16fs
       VARYING w_strat_lancx FROM ws_lanc-lanc1  NEXT ws_lanc-lanc2  RANGE ws_lanc.
    ENDDO.
    Kr,
    Manu.

  • APD variants

    Hi,
        I have created an APD for loading a particular query's data into a Transactional ODS. The APD allows me to choose only one query variant at a time. Is it possible to execute the query for multiple variants using the APD, instead of manually changig the variant settings of the APD every time.Please let me know as this is urgent...
    Thanks
    Akhila.

    Hi Akhila,
    unfortunately, this is not provided by the SAP standard functionality.
    It would take a new program to replace query variants and run your analysis process.
    If you have only a few query variants, you could copy your analysis process and place your variants into the copies. I do not know whether this workaround is appropriate.
    Cheers, Thomas

  • APD : Variant Creation

    Dear All,
        I am using APD. I am pushing data from a Query to ODS.
    Query----Filter----ODS . this is my structure.
    The query has 0calday input at selection screen. But in APD how can I incorporate this. If I go to Query properties in APD I get an option "Variant" but how do I create a variant for my query in APD? And this query has to be scheduled at the end of every month. So I require a variant that changes every month....
    Regards,
    Ratish
    [email protected]

    APD does not suuport selection screen variables and hence variants ...
    You need to handle this in Routine ...
    e.g. you can write a routine to get  a database table for which you want to execute it !!!  you need to maintain this DB table with appropriate values every month ...
    Priya

  • 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

  • Transaction variant issue

    Hi All,
    I have created a transaction variant for transaction ME21-Create Purchase order.
    Now my requirement is to change the transaction text displaying on the screen…
    i.e. to change the text Create Purchase Order: Initial Screen to “Create Local Order: Initial Screen”.
    But this should not affect the standard transaction ME21...
    Thanks & Regards
    Shiva

    Hi Raees,
    From your post, it seems like no issue and cant make what's wrong?
    But please check this link and verify you're not missing any step:
    [http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]
    I hope this helps.
    Regards
    Raghu.

  • Variants issue - Standard program RFEPOJ00 - Upgrade

    Hi Experts,
    I'm facing an issue with variant created for a standard program. Recently, development system got upgraded to newer version. In old systems I've craeted a variant for program RFEPOJ00, which is working fine. All variants got copied into new system in the process of upgrade. The variant is not working in new system and I'm getting 'Varaint <varaint_name> of program RFEPOJ00 is not the current version' error. Usually, this type error will be displayed when program there is any change in selection screen parameters (type, length, etc.,). But, there are no changes in program as well as in selection parameters.
    I can adjust the variant, but I want to know what might be the issue.
    Please help me in this.
    Thanks in Advance,
    Siva Sankar

    Run standard SAP program RSVARDOC_610 to bring old variants up to date.
    Rob

Maybe you are looking for

  • URGENT - PLEASE READ MY MIND AND GIVE ME THE CODE

    I AM DOING AN URGENT PROJECT AND I NEED SOME CODE. PLEASE PROVIDE THE CODE WITHOUT DELAY. I AM SENDING DETAILS OUT ON MIND FREQUENCY 42 GigaHz at 10 GigaWatt. STOP WHATEVER ELSE YOU ARE DOING AND SEND ME THE CODE NOW!

  • Purchase order specific to copy function

    Hi All, We have new requirement for one of our client. During PO creation or change,  user has the option to copy with reference of existing PO items. However by doing that, the PO will default certain values/info that are no longer valid of which ma

  • Defaulting the new Indian Rupee symbol in Numbers

    In Numbers, when I choose Indian Rupee as currency in cell format, I am still getting the old Rupee symbol. When I try to change the symbol to the new one, the cell format is getting changed as text.  How do I default the new Rupee symbol in cell for

  • Connect Sun Ultra2 to a Dell 19" LCD Monitor

    Hi Can you connect Sun Ultra2 to a Dell LCD Monitor 19" using a Sun Graphics adaptor HD15F Thanks, -Will

  • APO Livecache DB Backup and Livecache Auto Log Backup

    Hi Guys, Could you please help me here which tranaction code we use to  check APO Livecache DB Backup and Livecache Auto Log Backup Thank you