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
Similar Messages
-
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
AnilIssue closed ....
-
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 .
KevinIf 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 -
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. -
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 -
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
ChandanaHi 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 -
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,
HarishHi,
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 -
How to transport Query variant used in APD
Hello Experts,
I have created 2 query variants for a query in Development system. And, these variants are being used in APD. Now, when APD is transported to next system, query variants does not exist in next system, so cannot execute APD.
Please let me know how can i transport the query variants.
Note: Gone through SDN, and found, query variants can be transported through some tables.
Please let me any other possibile sloutions for the same.
Thanks
LavanyaHi Lavanya,
To the best of my knowledge, you cannot transport query variants. You have to manually create them in each system. The reason being, when you try to create variants through RSRT -> Query Variants, you are basically trying to create variants for a temporary program generated during run time!
These run time programs do not have TADIR entries (not transportable) and hence any sub elements (like variants) created on these programs are not transportable as well.
Actually you can export variants.Please follow the below steps:
1. Go To TCode SE38.
2. Execute "RSTRANSP".
3. Input your program name.
4. Input your variant name ie. "Z**** ".
5. Execute.
6. Click on continue.
7. You should be able to create a new transport at this point.
Hope It Helps,
Thanks,
Amit Kr. -
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. -
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
ShivaHi 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 SankarRun standard SAP program RSVARDOC_610 to bring old variants up to date.
Rob -
All,
We are currently trying to implement CATS. The question I have is we are trying to restrict the timesheets creators and editors to just be able to create/edit their own timesheets. I know there is a variant $USER but I can't find it again to mirror it. Is there a table to view all the variables and what they are too? Or is there a better way to restrict this to only the user?
Thanks!
-DanielAfter looking into the suggestions that were given I have came to the conclusions that a variable will probably not work due to it will populate the all the roles with that auth obj in it and we are not wanting to do that. With that said, I was looking into all of the P_ objects that have been brought in which are P_ORGIN, P_PCLX & P_PERNER and I am not seeing where you can restrict to just a user or even a field that would ever suggest that it is possible? Is there another auth obj that I am missing that should be there?
Would there possibly be another way to make it so the user that is assigned this role can only put time in for their self and no one else. That the whole issue I think we are trying to solve before we can move forward? If anyone has any suggestions please let me know.
Thanks,
-Daniel -
Hi Experts,
I have scheduled the program for the given detail below current. Problem is when user not executed the workitem, same mail is sent multiple time that user has a new workitem in his inbox. is there any presetting missed?
Scheduled variant for RSWUWFML2 as given detail:
Instance data block:
job suffix 2
task blank
language blank
new workitems only tick
send granularity block:
one message per workitem selected.
There is no attachement to message so no selection in "Add Executable Attachment to Message For block"
Standard text for notification block: same as Standard
date: Null
Time: Null
Log: Errors Only
Issue: external mail sends without any issue but repeating for the same worktiem for multiple time.
SKC, i to have the same problem.... hope experts give solution here you can use this thread.
thanks in advance,
Regards,
Hari.Hi,
Make sure that the user that the job is scheduled for has enough authorisations (SAP_ALL & SAP_NEW). I remember having similar problem some years ago, and while debugging I found out that the user was not allowed to write to the table, in which the job time stamp is stored (=all items are then always "new" for the report).
Regards,
Karri -
we have done a query in sq01.i have downloaded it from production to development.
now i am trying to execute the query , but it is sowing a dialog box to select the variant.
i am selecting variant as standard.after executing the query it is giivng message like variant does not exist. please tell me how to solve this.goto SQ01, select the query, Goto> Maintain variant as STANDARD and save.
Maybe you are looking for
-
Time Capsule can't be found after initial backup
I am having real problems with a brand new 2TB Time Capsule. It will allow me to connect wirelessly and make the initial time machine backup but once that has completed (which it does successfully) it refuses to then find the disk again. I've upgrade
-
StreamTokenizer NVAL bug? 16 digits not reading correctly?
hi all! i do some calculations which are highly precise, and we use numbers with 16 digits after the comma. this works most of the time without problems. but for some numbers java rounds it automatically. i think the problem is within the StreamToken
-
I've tried going to Options > Tabs > open new window in tab instead and still it happens.
-
Backing up LR DB & pictures on ext. HD
Hi, I already checked the Forum but could not find a real answer. I have my picture on my built in HD and on an external HD. If I want to use the external HD INSTEAD of the internal do I have to rescan all pics on the external and than use that new D
-
Sound preference issue with Snow Leopard?
I have a late 2009 13" Macbook Pro - I've been very late in updating from Leopard to Snow Leopard, even though the latter came out a month after I bought my laptop, but this weekend, I finally did. My mac has the 'red light' problem in the headphone