Variable offset not working
Hello Experts -
I have a structure and a variable with single-value entry. The variable is on 0CALMONTH.
If user input 06/2007, I wanted to see information for 06/2007, 05/2007, 04/2007. I'm using a variable offset. But my report output is always for 06/2007. I have data for 05/2007 and 04/2007 also.
In the column header, it shows 04/2007, 05/2007 and 06/2007 but there's not data.
Can someone please help me with this? What am I doing wrong?
If you can see the offset result in header then it will surely work for data also.
If u have a key figure amount.
Then you need to restrict this figure for user inputed months variable - offset. i.e different restricted figures for different months.
I hope this is clear to you, if not then do let me know.
Thanks
Dipika
Similar Messages
-
Variable Offset not working in BI 7.0
Hi ,
I am facing an issue with variable offsets in queries in BI 7.0.
I created simple keyfigures with variable offset for fiscal year period with -1,-2,-3...etc to show different periods but I am getting 0 values for the same.
Just to inform, we are on SAP GUI 7.10 and support pack 0.Are thre any issues in variable offsets with front end patch ?
If so, pls let me know.Pls also let me know if we need to apply any notes to resolve this issue.
Regards,
KumarHi Joke,
Thanks for ur reply. I just now downloaded and installing and after that I will test the variable offsets.
Wond,
Just to tell you that variable offsets are not also working in the web.Let me install this patch and try one more time...
Regards,
Kumar -
Variable Text not working as dynamic header in Crystal report
Dear Experts,
I'm working Crystal report that connected to Query BEX SAP BW trough SAP integration kit,
currently i have case that need report dynamic header using variable text from BEX query, but seem the variable text not working in Crystal reports. the header in Crystal report shown as Desription\technical name, not result from the variable text in Query BEX in SAP.
In https://wiki.sdn.sap.com/wiki/display/BOBJ/Crystal%20Reports%20and%20BW%20query%20elements stated that the "Text variable" with "replacement path" is supported, but i don't know in my query is not working.
i already set in Database -> options-> table and fields -> Show Both, but the text variable still not working.
can you help me
Crystal Reports 2008 12.2.0.290
SAP Integration KIT 12.1.0.890
Thanks
LuqmanPost your question BEX and B1 and classic SAP data source issues to the Integration Kit forum
-
SELECT INTO ( variable ) STATEMENTS NOT WORKING FOR SYBASE TABLE AS VIEW
Dear Experts,
We have connected our 9i db with Sybase db using Hs connectivity.
and then we have create the view in oracle db for SYBASE_TABLE as SYBASE_TABLE_VIEW.
ALL THE INSERT, UPDATE AND DELETE COMMANDS ARE WORKING BUT THE
select Into (variable) is not working.
Please help to resolve the select into statment which is in BOLD in the below routine
PLEASE NOTE! FORM WAS COMPILED SUCCESSFULLY AND FORM IS RUNNING BUT SELECT INTO COMMAND IS NOT WORKING.
Thanks & Regards
Eidy
PROCEDURE SRBL_INSERT IS
CURSOR SRBL IS
SELECT impno,impcod,impnam
from oracle_table1 a, oracle_table2 b
WHERE a.impcod=b.empcod
v_srpcod varchar2(5);
BEGIN
FOR rec in SRBL loop
begin
select "im_code" into v_impcod
from SYBASE_TABLE_VIEW
where "im_code"=rec.impcod;
exception when no_data_found then
v_srpcod:=null;
end;
END LOOP;
END;
Edited by: Eidy on Aug 16, 2010 11:28 AMhellow
try this.
select "im_code" into v_impcod
from SYBASE_TABLE_VIEW
where "im_code"=rec.impcod;
v_srpcod := v_impcod ;
........ -
FIND with MATCH OFFSET not working
Hi,
I have a statement:
FIND '/' IN <ls_data_package>-/bic/zbib_sysn MATCH OFFSET off2.
this works in all the case except for when <ls_data_package>-/bic/zbib_sysn = SSULTANA-VMC/.
(i.e. when /bic/zbib_sysn = USERID-VMC/, here SSULTANA is the user ID)
*In this case off2 = .
Value of sy-subrc is 0 after this statement is executed
Can some one please point out what I am doing wrong.
Thank you,
CD
Edited by: CSD . on Sep 26, 2008 9:53 PM>FIND with MATCH OFFSET not working
Most unlikely. More likely is that it isn't doing what you think it should be doing. Or you're using it incorrectly!
I can't really follow what your problem is. I assume you mean that you are getting off2 with value 0, when /bic/zbib_sysn contains USERID-VMC/
Can you be a little clearer in what the issue is?
DATA: off2 TYPE i.
FIND '/' IN 'this string /' MATCH OFFSET off2.
WRITE: / sy-subrc, off2.
This little program returns 0 and 12
matt -
Offset not working for fiscal year variable 0P_FYEAR
Hello all,
I am working in G/L cube. I am getting total credit and total debit keyfigures from the cube.
I want values for 2 years side by side. So I am using 0P_FYEAR as varaible for the key figure and offsetting the other by -1 but for some reason the offset is not working. ?
If I run the query just for 2007 is get the values, if i run just for 2006 I see the values for but when I use the varaible and input the fiscal year as 2007 in varaible screen than I see the values only for 2007 and not for 2006 ?
The test data in cube is for 2006 and 2007
Why can that be ?
Any suggestions?Hi KM
Thanks for your prompt reply.
I created another simple query with 2 RKF's, one RKF uses the user entered value ( 0) and onther RKF is offset to -1 and it is very straight forward query.
The second RKF query result came blank. Infact i tried with my own variable which i have created not SAP variable, but still no luck.
Do you have any thoughts.
Thanks for all your help.
Prasad -
Variable Offsets are working only partially
Hello experts, at first I thought that an offset I placed on a variable for 0FISCPER was not working. I am trying to do a report which gives me the value of couple of Key Figure "Earnings", for a certain Fiscal Period and this same Period but for the last year. That is (please consider each "/" as a blank space):
//////////// Earnings ////////////////// Earnings
/////////// on FiscPer /////////// on LastFiscPer
/////////// (E.G. 01.2008) //////// (E.G. 01.2007)
Char1 ///////// $ //////////////////////////// $
Char2 //////// $ ///////////////////////////// $
Char3 /////// $ ////////////////////////////// $
I am using a variable that I created, which takes a user input. On Selection "Earnings on FiscPer" I placed the variable with no offset. On Selection "Earnings on LastFiscPer" I placed the same variable, with a -12 offset.
The problem I have is that it is not working. The offset is not working, it just displays the value for the Fiscal Period given by the user, not last year's Fiscal Period. However, the funny thing is that if I place the offset as +12 and give as input las year's Fiscal Period, the offset works and displays the value for the next year's Fiscal Period. So the variable offset works only on one side, with possitive offset values. I have tried different approaches (some coming from other posts from this forum) but I cannot get the offset to work with negative values.
How can I manage to get this to work? Any ideas?
Edited by: Pedro Olvera on Apr 28, 2008 6:17 PMHi Pedro,
i will try to answer your questions:
a) range of values instead of individual value for variables:
-> if u use a range of values for one KF u will always get cumulated values for this range
-> for example: 0FISCPER3 with range 001-016 and 0FISCYEAR 2008 -> u get the sum of all periods for year 2008
Idea : i have a query where i have a KF with a range. I defined a solid start period (0FISCPER3) for example 001 and have an input ready variable for end period, called "Period to". Also u have input ready variable for 0FISCYEAR. This KF shows me the sum until the defined end period for a user defined year.
b) 0FISCPER3 in lines or columns:
IF u now drop 0FISCPER3 in free characteristics in query designer, u are able to do a breakdown in BEx Analyzer for 0FISCPER3 in lines or columns.
Szenario:
1) u have created your KF as i descriped in IDEA
2) u have dropped 0FISCPER as free characteristics in query designer
3) At BEx Analyzer u go to query properties -> put 0FISCPER3 in columns (-> maybe u change with properties display options for 0FISCPER to text -> it dispays for 0032008 -> Mar 2008)
4) Press ok
5) Right click on your KF and choose "Add drill down according to" -> Choose "posting period" (0Fiscper3)
6) Do a horizontal drilldown for posting period with drag and drop
-> Now u have a drill down for posting period in your KF, but also for all other KF too
-> To avoid this u can customize workbook settings
1) Change to design mode
2) open properties for analysis grid and disable display options for "Hierarchy icons"
Another way is to delete the hierachy icon
-> u now only see a drilldown with posting period for these KF u wanted to have a drilldown to.
If u now only want to see posting periods which have values and disable all which have no values, u can activate zero suppression for lines and columns in query properties.
Voila, u have a worbook which now shows for your KF all availble posting periods in one year without creating 16 monthly key figures. In addition u can change the inner year range of summation of period values
Hope it helps
Regards
Edited by: Tobias on Apr 30, 2008 8:35 AM
Edited by: Tobias on Apr 30, 2008 8:36 AM
Edited by: Tobias on Apr 30, 2008 8:36 AM -
Customer Ext Variable is NOT working correctly in the Restricted Key Figure
Hi all,
I have created a variable ZVCBLMTH (Period from 01/1996 to Last Month) with reference to
0CALMONTH and it will be populated through Customer Exit and it works fine.
In the selection for 0CALMONTH, I gave the range as '05/2008' to '08/2008' and this new
variable passed the value of range as '01/1996' to '04/2008' in RSRT.
The properties of the variable are:
Type of Variable - Characteristic, Processing by - Customer Exit, Variable Represents - Interval
and Variable is - Optional.
No change in the result after changing the 'Variable is' from Optional to 'Mandatory'.
This variable is used in Restricted Key Figure to calculate the number of matching records between
01/1996 & 04/2008 and somehow it is not recognizing this variable and NOT passing the results correctly.
But, there are records with 0CALMONTH between 01/1996 & 04/2008.
How could I test that which value is passed into the Restricted Key Figure for this variable, PLEASE ?
Thanks in advance.
Regards,
Venkat.Hi Clemens Li
I agreed on your point. When we define the Internal table the type for element EQUNR & QUMNR , we are referring the SAP data element for EQUNR, QMNUM field.
Our doubt is even though we refer the standard data element, in the ALV display, it shows with leading zeros and also it creates problems in the filtering and in the filter window all values instead of unique nos.
Hi Abhii
I have given below the fieldcat coding.
Friends, can you kindly clarify the above said problems. Since we use SAP ECC 6.0 any notes or patches apply is required. ( this is the basic functionality in ALV, that is my doubt).
wls_fieldcat-col_pos = wpv_pos.
wls_fieldcat-fieldname = wpv_champ.
wls_fieldcat-tabname = wlc_tabname.
wls_fieldcat-seltext_s = wls_fieldcat-seltext_m
wls_fieldcat-seltext_l = wpv_libelle.
wls_fieldcat-ddictxt = 'L'.
wls_fieldcat-no_out = wv_no_out.
APPEND wls_fieldcat TO gt_fieldcat.
Kind regards,
Jegathees P. -
Variable Substitution not working when using ABAP mapping
Hi all,
I am doing an IDoc to File scenario.
Due to some complex mapping requirements, i had to use ABAP mapping for IDoc to File ( IDoc : SHPMNT05)
There is also one more requirement where in i need to generate the receiver filename dynamically
i.e the filename is of the form :
GW-XYZ-DD/MM/YYYY.csv
Where
XYZ is the Shipment number (E1EDT20- TKNUM)
DD/MM/YYYY is the IDOC creation date in ECC (EDIDC-CREDAT)
so i used the variable substitution option in receiver file adapter.
But its not working.
Is there any limitation for using the variable Substitution, doesnt variable substitution work in case of ABAP mapping?
Regards,
Loveena.Hi,
u written ABAP mapping program to get the file name in the required format ,
is it rt?
when u test it at message mapping(including ABAP map program)
u get the the required format of file name in the one of target filed.
if that was fine, please check the variable substituiton parameters at receiver file adapter.
i mean, are u maintain variable name and refernece.
u have to specify the payload information.
warm regards
mahesh. -
HI Experts,
can any one suggest me on this issue . When i enter 0Material variable range selction the data is not retriving .the data has there in 0material master data. if enter other range like date with out giving materila the data is displaying . i checked user defined variable and customized variable its not displaying . but the same variable it working in quality system and its problem in production system so any one suggest me on this issue.
Regards
RkHi,
Thank you very much for your reply . User has been raised some other requirement . here 6 variables containg and out of 2 are mandtory. if the user enter the one of the optional slection screen and 2 mandatory variable also be optional. if the user is not entring the optional the 2 remains mandtory here same variable act like optional and mandatory. if it is possible In please let me know.
Regards
Rk -
Flex Time with variable tempo not working correctly.
Hey,
Has anyone else noticed that Flex Time doesn't work as intended if you have variable tempo?
To clarify, I recorded a band playing their song and then figured out their various natural tempo changes and adjusted the Global Tempo Track accordingly.
Then, the drummer recorded his part to a click on that track, obviously keeping with the natural tempo changes that the band played to.
Quantization of MIDI works just fine, as in, it matches the increases and decreases in tempo.
However, attempting to quantize an audio track using Flex Time does not work properly.
I was just wondering if there is something that I'm doing wrong or if this is a known bug.
Thanks,
WilliamThank you for your answers!
But there are several Problems using a dummy field in an IDOC structure. We have got a naming convension so that we can't create an IDOC-like structure named ORDRSP.ORDERS05.
But perhaps I am thinking to complex and there is an easier way to add a dummy field to an IDOC structure.
Could you perhaps also suggest a solution for that dummy field problem?
Many thanks and kind regards,
Steven -
Flash Variable is not working in Ipad
Hi Experts,
I'm facing with an issue, could you please suggest me your valuable suggestions.
I have created Two dashboard (Example names A1 and B1), I need to open the dashboard B1 without asking credentials, when I select an Image in A1.
To work in such a way, I have created a flash variable and pointed the range to cell J1.
I have placed a URL button on top of image in Dashboard A1. I have copied following URL in a cell, and this URL I have pointed to URL Button.
URL= (="../../../Xcelsius/opendoc/documentDownload?iDocID=M1TVABCADjs2AHoAlg123AAgoBpgwAAAA&sIDType=CUID&CELogonToken="&J1)
Opening B1 dashboard from A1 is working fine in desktop and in Android tab, but it is not working in Ipad. Not working in Ipad in the sense a new browser window is opening with empty page.
I have tested in another way like, passing opendocID and Flash variable to the URL button, It is working fine in Ipad but asking for the credentials.
Experts could you please suggest me some solution.
Ipad is Ipad2 and BO Version is 4.1 SP4.
Thanks & Regards
Karthik MHello,
You hyave to use the special flash variable "CELogonToken"
Would request you to check http://scn.sap.com/docs/DOC-36362 this is a SCN document
with title "Step by step way to create parent child dashboard in BI 4.0/4.1 using flash variable".
SWF loader is not supported for mobile.
Best regards,
Mohamed AISSA. -
Shared variable does not work in executable
In editor mode, the shared variables update fine. When I build the executable, the shared variables no longer work.
See attachment.
Attachments:
TestCitadel.vi 30 KBI found this note in the LV2010 help, I wonder if this could be related to your problem...
Note You can use scaling only for network-published
shared variables, I/O variables, or I/O aliases. When the shared
variable you want to scale is a network-published shared variable, it
must have a data source. Configure a network-published shared variable
to have a data source by placing a checkmark in the Enable Aliasing checkbox on the Variable page of the Shared Variable Properties dialog box. -
Shared variable does not work between two computers
I am using LabVIEW 8 on Windows XP computers.
1. On one computer I have created two projects, writeProject and readProject.
2. In the writeProject I have a shared variable, writeData, which is "network-published" double. In this project I have a writeData.vi which in while loop assigns a random value to the writeData variable.
3. In the readProject I have a shared variable, readData, which is "network-published" double and is bound to the writeData variable. This is on the same computer as the writeProject.
4. I run both the writeData.vi and the readData.vi and all works fine.
5. Now, I create a readProject on a diferent computer. Perform all the steps as described above and also in tools/shared variable/register computer, I have entered the IP address of the target computer on which the writeData shared variable exists.
6. Binding the readData variable fails in the following way. When I browse for the source, in the "Select Source Item" dialog, I see <IP> <Populating Node...>, where <IP> is the IP address of the source computer (on which exists the writeData shared variable). A very long time later it is still "Populating Node...". Neddless to say, this readData.vi does not work!
What am I doing wrong? Or, perhapse what else do I need to do to make it work?Hi,
I would suggest checking out the two KnowledgeBases I have linked below for common issues with Network Shared Variables. Let me know the results. Thanks!
Troubleshooting Network-Published Shared Variables
Why Are My Network Shared Variables Taking Very Long to Initialize?
Stephanie -
Security filter with variable does not work correctly
Helo,
I have one table with this columns (called BI_USERS):
USERBI | REGIONS
XXXX 10,5 -> In this case the user XXX can access the region 10 and 5
AAA 9,7
I use this table to apply the security filters. Fisrt I did a initialization block with the select: SELECT USERBI, REGIONS FROM BI_USERS WHERE USER = :USER
This select populate two variables: variable USER (system variable) and UserRegion (Non-system variable)
After I use the UserRegion variable in the securty filter of the one group of users. For exemple:
Name | Status | Business Model Filter
"Claro"."Historico Saldo Pre-Pago" Enabled "Claro"."Historico Saldo Pre-Pago"."DW_UN_NEG" In(VALUEOF(NQ_SESSION.*UserRegional)* )
But the issue is that the query is not working, because the query created for BIServer no use the IN operator. Seems the IN operator is changed for equal (=).
And the query returs error because the value 10,5 (for example) is not a numeric value.
Anybody could help me, please? I am using the version 10.1.3
Mauricio|||\/||| wrote:
Helo,
I have one table with this columns (called BI_USERS):
USERBI | REGIONS
XXXX 10,5 -> In this case the user XXX can access the region 10 and 5
AAA 9,7
I use this table to apply the security filters. Fisrt I did a initialization block with the select: SELECT USERBI, REGIONS FROM BI_USERS WHERE USER = :USER
This select populate two variables: variable USER (system variable) and UserRegion (Non-system variable)
After I use the UserRegion variable in the securty filter of the one group of users. For exemple:
Name | Status | Business Model Filter
"Claro"."Historico Saldo Pre-Pago" Enabled "Claro"."Historico Saldo Pre-Pago"."DW_UN_NEG" In(VALUEOF(NQ_SESSION.*UserRegional)* )
But the issue is that the query is not working, because the query created for BIServer no use the IN operator. Seems the IN operator is changed for equal (=).
And the query returs error because the value 10,5 (for example) is not a numeric value.
Anybody could help me, please? I am using the version 10.1.3
MauricioHi Mauricio,
First of all you have some syntax errors with your init block:
select USERBI, REGIONS from BI_USERS WHERE upper(USER)=upper(':USER');
Couple things to consider here:
1) Why are you selecting Userbi column from the table? Is USER system session variable not getting populated through other souces like LDAP or default security?
Ans: If your user session variable is getting populated from a different init block, then you dont need to select that column. Then your init block would look something like this:
select 'USERREGIONAL', REGIONS from BI_USERS WHERE upper(USER)=upper(':USER'); - Data Source
Row Wise Initialization - Data Target
Initblock that is populating the user session variable as the order of precedence.
2) If you dont have USER session variable populating from any other source, then your init block would look something like below:
select 'USER', USERBI, "USERREGIONAL', REGIONS from BI_USERS; - Data source
Row Wise Initialization - Data target
After following one of the above two steps, you need to apply the filters on the table.
"Claro"."Historico Saldo Pre-Pago"."DW_UN_NEG" IN(VALUEOF(NQ_SESSION.USERREGIONAL))
Note: Make sure you understand that variables are case sensitive.
Please award points as this is correct answer.
Thanks,
-Amith.
Edited by: Amith on May 10, 2011 3:18 PM
Maybe you are looking for
-
I admire the technology in iPods and iTunes, but I am a good deal frustrated on one issue, and I am hoping someone in development will take a look at this request and consider it for the future. Here is an example of how I work with importing books o
-
Difference on developing client applications on PC and Mac platform.
Hi, I would like to know wats the difference on developing client applications on PC and Mac platform. If i were to create software applications using Javascript, MS SQL Server 2000 and JAVA on Mac platform, would there be any difference from those w
-
I would like to record a video message for a friend. Any free recording software?
-
E90 front screen & keypad not working after change...
Hi there, can someone with knowledge on mobile repairs advise me on how to fix or solve a major problem with my E90 communicator after I changed the housing on it, the front screen & keypad failed to function completely, only the inner screen works n
-
Why is my Firefox constantly crashing? Every 5 minutes!
Lots of crashing lately. Happens randomly, usually when clicking on a web site. Sometimes with out any provocation. Version up to date, plug ins up to date, windows, drivers etc.