Help in variables
Hi All,
Iam having a requirement where in during the execution of a Query, my user would enter the value for Calender date,
then my report should bring the data for same date for previous months.
Say for eg: if my user enters 27th April 2006, then my report should have data for 27th March 2006, 27th Feb 2006, 27th jan2006...... 27th April 2005.
can anyone help me in this regard.
Thanks and regards,
Manick
Hi Manick,
The logic is the following.
You have a user entry variable. Create 11 customer exit variables. Determine the month of this date (5th & 6th characters) and the year (first 4 characters).
In the exit subtract the number of month (1,2... 11) depending on the variable from the determined date month.
If the result of subtraction is less or equal zero, add 12 and subtract 1 from determined year.
Then replace by the month and year the appropriate parts of the entered date.
Create a structure in columns. In each selection put your KF and 0CALDAY restricted by appropriate variable.
Think it over what you will do if the user enters 31 day of the month (not all month have so many days).
Search forums for the code samples. Believe with them you'll be able to write the code by yourself.
Best regards,
Eugene
Similar Messages
-
F4 input help on Variable screen is not working on Portal
Dear Experts,
We are facing one issue when we run the WAD report on portal, variable screen gets hang after clicking on input help button (F4) for couple of variables. We are facing same issues when we run the base queries on portal. But when we run the same base queries in RSRT (Tcode) or in BEx Analyzer we are not facing this issue and able to get the input help screen with values.
I also have gone through some old posts related to such issues but didn't help much. We are already on SAP BW 7.4 SP Level 008 and for Char IO Query Filter Value setting is kept as "Values in Master Data Table" only. This is a MD IO with Compounding.
Kindly let me know if anyone has faced such issue.
Thanks in Advance,
NileshDear Martin,
There is a no long running work process in the backend and data volume is more in Master Data Table, there are around 19 Lacks records available.
For BI Java patch and defaultTrace for errors I will check it with BASIS Admin team. Unfortunately I don’t have rights to do same.
Thanks,
Nilesh -
F4 Input Help in Variable Screen takes about 30 Minutes to display.
Hello Experts,
We have a web-report in which the time taken to display all the entries in F4 Input Help of the variable screen takes about 30 minutes. Have anyone experienced so long a wait time while accessing F4 Input Help in the variable screen and is there anything that we can do to reduce this wait time.
Thanks
ArvindFor BEx Web 7.0 make sure you have the attributes suppressed in help with the instructions from note below:
https://service.sap.com/sap/support/notes/1144979
Also apply the optimizations provided in the notes below:
https://service.sap.com/sap/support/notes/1374724
https://service.sap.com/sap/support/notes/1379804
https://service.sap.com/sap/support/notes/1266510
Also you could try changing the read mode of the F4 help depending on the size of the cube and MD tables. -
Hi,
I'm having a query on top of 0EMPLOYEE. 0EMPLOYEE has an attribute of a business unit (which has the default BEx settings of display as text) and I have a selection option variable on top of this attribute.
Previously, on BW 3.x the variable screen used to show both the key and text, regardless of the settings in the BEx tab of the infoobject definition. in BEx Web JAVA it will only let me have the text selection. is it possible to change that without changing the default settings in the BEx tab of the infoobject definition?
Tomer.For BEx Web 7.0 make sure you have the attributes suppressed in help with the instructions from note below:
https://service.sap.com/sap/support/notes/1144979
Also apply the optimizations provided in the notes below:
https://service.sap.com/sap/support/notes/1374724
https://service.sap.com/sap/support/notes/1379804
https://service.sap.com/sap/support/notes/1266510
Also you could try changing the read mode of the F4 help depending on the size of the cube and MD tables. -
HELP: Bind Variable does't work in SQL statement
I am trying to connect a text item bind variable into the where
clause of an SQL statement. Specifically into an INSERT
statement and SELECT statement. It gives me an message box
error, saying it is unable to insert. There is no Oracle error
number associated with it. Is this a bug? Has this happened to
anyone else. PLEASE HELP! URGENT!
nullI assume this is a forms problem. You need to check out the
dbms_error_code and dbms_error_text to get your oracle error.
You can trap and report these types of errors using an on-error
trigger. Also, if you are using the default menu then check
out help -> display error immediately after the form reports
unable to insert ...... This should give you enough information
to solve your problem, or at least point you in the right
direction.
Daniel Jensen (guest) wrote:
: I am trying to connect a text item bind variable into the where
: clause of an SQL statement. Specifically into an INSERT
: statement and SELECT statement. It gives me an message box
: error, saying it is unable to insert. There is no Oracle error
: number associated with it. Is this a bug? Has this happened to
: anyone else. PLEASE HELP! URGENT!
null -
Issue in F4 help in variable screen of the report
Hi All,
I am facing an issue with Bex query, there are two navigational attributes in query, those are NAV1 and NAV2 and we have created two variable for these attributes,
When we run the query in analyzer and in the variable screen we are trying to select values for these attributes from F4 help, we are able to see both the values in each attribute.
For example NAV 1 has 100 vlues and NAV2 has 100 values, when we click on F4 help on the NAV1 attribute in variable screen we are able to see 200 entries, means it's including NAV2 values, it is vise-versa for the NAV2 attribute also.
I ran the same report in RSRT and click on F4 help for NAV1 and NAV2 attributes, here entris are fine,each attribute showing only 100 entries.
What could be reason for this issue.
Could you please adivce me how to solve this.
Thanks in advance,
Venkat KallaHi,
Please check Note 1495735 - 'check of changed records between DB and BIA after changerun'.
If BIA is in use then this can be the cause.
Otherwise check Note 1517248 - 'F4 help uses M mode instead of D mode for line item characteristic'.
Finally, verify the read modes for both InfoObjects:
1565809 - Settings for BW query F4 help
Regards,
Michael -
Please Help Session variables disappear
Hi. I am having issues with the developer's version of CF MX
7. I recently set up the developer's version on a test server, and
moved over code from a properly working site using MX 6. I have an
application.cfm file set will the correct <cfapplication> tag
attributes, and the session management is set in the CF admin. When
working on MX 6 the session variables I set were working. Now using
MX 7 none of my sessions are holding. When I first login the
sessions exist, if I click any other page, the variables disappear.
Again, this does not happen on MX 6.
Please help!
Thanks,
jlgDouble-check your sessiontimemout
Try setting up a simple test application using something
similar to the example at
http://livedocs.adobe.com/coldfusion/7/htmldocs/00000217.htm -
F4 Help in Variable Screen during Query Execution
Hi All,
We are executing queries through WAD. The F4 help in the variable screen during query execution is taking a lot of time.
SAP note 661251 suggests changing the F4 mode to M. We need to change the booked value parameter.
I looked into the standard WAD web template but i'm not seeing any options/ooked value parameter.
Please suggest where I need to go to change the parameter. Thanks.
Regards,
VivekNot much experience in WAD but I think there should be a query in BEx Query Designer.
There you can choose that characteristics which takes time. Select "Advanced" tab from right hand side.
Under "Filter Value Selection During Query Execution" you will get 4 options.
BTW if you have a query on DSO then creating index ( secondary) on the affected characteristics would also resolve your problem
Regards
Anindya -
Hi ,
I have some problem at the variable screen. When I click the possible entries for 0calmonth in the query selection screen and I could not able to see the possible entries. The screen comes blank. When I check for 0calday and ocalweek i get the possible entries.
I have checked the data inside the infoprovider and the data is available in it. I have tried activating the 0calmonth again. I have tried all the possible options. Please help as it is very urgent.
Regards
RaghuHi,
Probably for the selections given while entering the query, the 0calmonth might not have been present.
Check in the infoprovider with the same selection parameters you are initialling giving while running the query and c whether the calmonth is there or not?
Also once check infoprovder whether the 0calmonth is updating r not
***assign points if helpful******
Janardhan KUmar -
Sort values in input help for variables
Hi there,
Users often get annoyed by the input help in our web-reports. As the data in the InfoProvider grows, the variable values in the input help screens gets over-populated.
Often old values (eg. 0CALMONTH) are displayed first and users have to scroll trough 8 blocks of values before they get the value they are looking for.
It is kind of a practical issue, but does any of you know how to <b>sort</b> the values in the input help screen?
Kind regards,
Hans de KleinHi Hans,
I can suggest you one way but i am not sure it will work in your scenario.
Where ever you have used variables. Lets say 0CALMONTH.
You must have restricted this with some variable.
Goto The Property of 0CALMONTH(By right clicking) and check the sort property.Also select you want to sort on Key/Text.
Hope it helps.
Regards,
Parth. -
Timeout on input help for variable
hi all,
in a selection screen of a report i have material and material type(navigational attribute of material) as input.
the report is built on cube.
only material is coming in cube.
when i click on input help for material type the screen hangs on the report times out.
whereas on the other hand if i am clicking help for material i am getting the values.
this variable is used in other queries on different infoprovider and is running fine there.
How do i get the values for input help for material type.
all the standard settings have been maintained(such as query filter selection etc...)
regards,
Arvind.Hi,
Activate 0material masterdata.and Regenerate your query in RSRT.
If the problem still exists then debug the query using RSRT for the perticular field output.
Thanks
Kumar -
Need help on variables in webapplication
Hello Community,
I have a problem within a query.
0) I am using only 1 keyfigure Z_WEIGHT
1) I am using 2 variables on 0CALYEAR which are filled with a date range of start year and end year.
e.g. 2005 - 2008
2) The period for 2005 starts from: 12/2004 - 12/2005
How can I solve this scenario?
Any help is highly appreciated.
AndreasHi thanks for your reply.
But I dont want a variable screen - i want a pull down menu for selecting in the query.
Any ideas about that?
Thanks,
Andreas -
F4 help on variable screen only shows text or key...not both
In some queries, the F4 help will only show text oy key but not both. For example, the F4 help on 0employee only gives a list of personnel numbers. The search in the dialog box only works for the pernrs and we can't search for names.This is happening in some infoset queries and queries that are on multi-providers.
Is this something to do with read mode? Settings in the multi/infoset?
Any help is appreciated.
Thanks!Hi all,
I still have the same problem with NW7.0 SPS15. Does anyone have a solution for this? Changing the Provider specific properties in the InfoCube or MultiProvider did not help for the web variable dialog.
Regards,
Bernd -
HELP NEEDED:: variable SESSION is undefine
Guys, help me out; PLEASE. I'm stuck on this for days and am
running out of options.
I have a CFC that checks some session variables for
validation (client login etc), and I have a RemoteObject call to
said CFC.
All my other CFCs that do not reference session variables
work fine; this one bunks right when my CFC checks the session
variables.
I tried webservices, no-go (hell, I couldn't even see the
faultString!!).
I played around with my CF8 server settings and tried
everything.
I tried Ben Forta's blogs (and posted a question there) but
didn't get much help,
HOW CAN I ACCESS A CFC THAT REFERENCES SESSION VARIABLES
WITHOUT CREATING A GET/SET METHOD TO GET/SET THESE SESSION
VARIABLES!!!! (Obvious security risk).Thank you for your reply John,
Sorry I wasn't clear in my description.
I do -in fact- have a CFC check my client's log-in and return
a true or false, however in subsequent site functionality, it is
the norm to see whether the session has expired or not. From Flex I
am using a RemoteObject call to a CFC; the CFC has the following if
statement:
<cfif IsDefined(SESSION.CLIENT.boolClientLoggedIn)>
<cfif SESSION.CLIENT.boolClientLoggedIn eq "true">
<cfthrow message="Attempting to call fncClientWebSignup
when client is logged in.">
</cfif>
</cfif>
The faultString I get in Flex is 'Variable SESSION is
undefined.'
Also, I did try to change my wrapper from html to cfm and
still no success. Not only that, but I've tried Webservices (which
failed miserably because I couldn't even get the details of the
SOAP fault!!!).
I built a test cfm page that tests my cfcs (instead of Flex
calling them, I had the cfm call the same cfcs) and Session
variables were defined and everything went well.
It so happens that when Flex calls the SAME cfcs, the SESSION
variable is undefined.
I hope this clears up my problem. -
If anyone could Help Please, Variables And just how they work
I think I may have taken on a bit more than i can handle with this project.
I have been asked to create a "Picture in Picture" situation, What i am wanting is to have the background of the File Static with the food menu consistently rolling over coming from a .txt file so it is easy to change the wording and prices, while having adds (up to 50) running on the other half of the screen cutting in and out of Bloopers. I have seen in done once before and was told it was all done in flash, can anyone please help me out, even a tutorial would be great, I have tried the Variable text to no avail, does this need a starting code??
Thanks Heaps in AdvanceOK, so i use loadvars("menu.txt","C:\\Documents and Settings\\Owner\\My Documents\\Spot 81"); in the Flash file and what do is use for the txt file? for name1 would i use &name1=Soup Of The Day?? ALso fo you know whatis the best code to call a picture in? Thanks
Maybe you are looking for
-
Unable to re-install Adobe Photoshop Elements 10
My grandson uninstalled my Adobe Photoshop Elements 10 and now I can't seem to re-install it. I've entered my country location (UK) and the serial number from the CD box. The machine goes through the installation process then after a while advises th
-
Problem with PXI-8145RT Controller.
Hi All, I am preetam. I am using PXI-8145RT controller in PXI-1011 Chassis. My controller is having 64MB of Compact Flash and 128MB of SDRAM. I configured the Chassis through host PC using MAX. But if i restart the controller the configuration is goi
-
Moving playlists to a new computer
I have a few dozen playlists set up in itunes on my imac and want to move them to my ibook. The music libraries on both are identical, I also want the playlists files to be identical too. This seems like it ought to be simple. Any ideas? thanks!
-
Max hard drive for presario cq57
I have the compaq presario cq57 notebook with 250 gig hd and 4gig mem. Since 4gig is the max for mem what is max for hard drive? This question was solved. View Solution.
-
Highlighting in Adobe Reader X
How do you highligh text in Adobe Reader X? I have been using "Highlight Text" button on tollbar but it will not hightlight.