CUSTOMER VARIABLE FOR MONTH
Hi all,
i have one requerment. that is in the report i will give date on selection screen ,based on the date i want to get month only.
on that month ican use variable offset.. please give me the code if any body have (i_step =2).
thanks
Hi.
You can try the next:
1. create variable for user date (lets say Z_DATE)
2. create variable for month (not ready for input, mandatory, customer exit) lets say Z_MON
3. in [EXIT_SAPLRRS0_001 |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f119d9-922d-2c10-88af-8c016638bd90?quicklink=index&overridelayout=true]try to read i_t_var_range table with key Z_DATE
4. parse this value - take by ABAP only month from the date
5. set this value (month) = value - 1
6. assign this value to Z_MON variable.
Regards.
Similar Messages
-
Hi Gurus;
I am using BI 7.0. My client wants a customized variable for 0CALMONTH with 2 dialog boxes in the selection screen saying "From month" and "To Month". When you input months, say; 06.2008 in "From Month" and 08.2008 in "To Month", the output which will come is data from all the months between 06.2008 and 08.2008. The 2 dialog boxes are important in this screen. I know. it can be done through interval option in BI 7.0, but the dialog boxes doesn't appear in the first screen of the Selection Screen (Like in 3.x).Is there a way to fulfill my client's requirement? Please provide me a step - by - step guide if possible.
Regards;
SumantaSumanta,
Could you please clarify
1 ] whether you are using BEx Analyser or Web queires to execute the report? Does your query has only the custom variable as it selection parmeter?
2] Is your Custom variable(with Interval) for 0CALMONTH is defined as mandatory / optinal ?
If you are using Web queries and you variable is defined as optional, then there is setting that you need to do on the web template that you are using.
Choose you web template on the properties tab> Choose Web Template parameters>under the behaviour section ,choose check box for Display variable, as the default is off. This means that if you have Custom variables that are optional on you BI query will not be display as selection screen.
Hope this help,
Cheers,
Balaji -
How to create a custom variable for a Label?
i need my label to store a string variable in it, do you know i can create a custom variable for it.
i mean for example if it's name is "StoredString" i can access it in my code by "label1.StoredString" just like "Label1.text" or something like that.Thanks for pvdg42's help.
Hi soorena12,
Based on your issue, I suggest you can try the pvdg42's suggestion check your issue in your side.
If it still could not help you solve this issue, I suggest you can tell me which kind of application you create the label in the VS IDE?
What language you use to create for your application?
If you have any update message about your issue, please tell us.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Custom variable for fiscal year/period
Hi BW Experts,
My problem is only fiscal year/period is populated
(fiscal year and posting period is not populated) and I need to have a custom exit ...that if the user enters 006/2007 i need to have a varaible which will contain 001/2006 to 012/2006 ..i.e data for entire year.
It doesnt matter which year the user enters ...i should fetch data for the entire year
I am very weak in ABAP programming ..if any body can share their experience..I would appreicate with full points
ThanksCreate a customer exit variable(not ready for input) var1 with interval
var2 is a ready for input variable that take the value entered by the user.
IF I_STEP = 2.
WHEN 'var2'.
DATA: v_mth_beg TYPE d,
v_mth_end TYPE d
REFRESH e_t_range.
CLEAR l_s_range.
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = 'var1'.
EXIT.
ENDLOOP.
CONCATENATE loc_var_range-low+0(4) '001' INTO v_mth_beg.
CONCATENATE loc_var_range-low+0(4) '012' INTO v_mth_end
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
l_s_range-low = v_mth_beg.
l_s_range-high = v_mth_end.
APPEND l_s_range TO e_t_range.
try this out.Hope it helps.
Regards,
Rakesh -
Custom variables for reporting
Hello,
I have a customer who has UCCX 8.5 and was wondering if they can do the following. Call comes in, agent answers the call and when the call is complete, they would like the agent to add an "account code" to the call from within CAD. They then want to use this "account code "for reportings. Is this possible?
Thanks in advance!Yes but the agent won't be prompted for it so it would require some training.
The CallVariables1-10 that are stored to the ccdr table record for the call can be given a friendly name such as Account Code under Desktop Administration. You would also need to add that variable to a Layout List so it is shown in CAD.
The Script would need to set that Layout List to be used with the Set Enterprise Info step.
The Workflow Group of the agent (created in CAD Workflow Administrator, assigned in Desktop Administrator) would need to allow users to Modify Enterprise Data.
The CSQ would need to be configured to place the agent in a Work state. The agent can only modify the Enterprise Data during the Talking or subsequent Work states. Once they go Not Ready or Ready again the record is written.
With all of that in place the agent could double-click on the Account Code field within the Enterprise Data section of CAD. It will open a small dialog and they can type in the value they want.
Please remember to rate helpful responses and identify helpful or correct answers. -
Custom Variables and Scorm Compliance
In order to implement a special grading scheme for my project, I'm utilizing custom variables for my captivate presentation. How do I ensure that my variable usage is SCORM compliant?
Mike,
We do that all the time in my company. We never use the Captivate SCORM publish option but simply publish to a standard SWF.
We then add JavaScript calls within Captivate to handle the SCORM functions (e.g. navigation, unload page etc.) and build our SCORM manifest in Reload. The JS SCORM support files are the standard apiwrapper.js found on the ADL webpage and a custom JS file that contains some extra functionality for our LMS.
One of the reasons why we are doing it this way is that 99% of our courses consist of multiple chapters. This way we can easily control the entire course structure in the manifest we build in Reload and avoid using the Aggrevator ;o) Another reason is that we almost never use the Captivate quizzing features but instead use a custom Flash based quiz in our courses.
/Michael
Visit my Captivate blog with tips & tricks, tutorials and Widgets. -
Variable for calender month in BEX Query
Hi all ,
I am new to BI .
Can any one please guide on how to create a month year variable that I can get calculated from a date..
For Example
if billing date is 01.02.2009 then my variable should have 02.2009 in Query .
Regards,
ShashankHi Shashank,
You can achieve this by creating a customer exit variable for calendar month.
Function module :
READ TABLE i_t_var_range WITH KEY vnam = 'Date variable name ' INTO loc_var_range.
IF sy-subrc = 0.
year = loc_var_range-low(4).
month = loc_var_range-low+4(2).
CLEAR l_s_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
CONCATENATE year month INTO l_s_range-low.
APPEND l_s_range TO e_t_range.
ENDIF.
Hope this will help you. Let me know if you have any questions.
Regards
Suvarna -
How to create an user input variable for customer exit variable? - BW3.5
Hi Guru,
I have a requirement for the selection period of my reports. There are 3 possible reporting periods which should be user selectable:
1. Month: Current reporting month
2. Fiscal Year to Date
3. Project Year to Date
Here I need 2 variable to do these, 1 customer exit and 1 user input variable. I have created a variable customer exit to calculate all these requirement. But can any1 tell on how to create the user input variable for my customer exit? I need a user input variable with drop down list like below.
01-Current month
02- Fiscal Year to Date
03-Project Year to Date
I have create a new master data for this variable, but it's not working. What I need now is a standalone master data which do not need to link to any exiting records. Can any1 tell me how to create this?Just go to the definition of the variable for which you have created a customer exit. There you will find a check box for "Ready for Input". Just tick that checkbox and the variable will be available as a selection variable in the reports selection screen.
Regards,
Yogesh -
Customer Exit for Calendar Month based on the day (system Date)
Hello,
I need help in creating a customer exit for Calendar month without the user input. The logic is as follows:
For the BEx variable created with customer exit option and no user input:
If the day on the system date falls in between 1 to 14 take the calendar year/month value as previous month.
If the day on the system date falls in between 15 through 31 then take the calendar year/month as current month.
eg if report is run on March 24th2009 the calendar year/month variable should be calculated as 03/2009 (March 2009)
if the report is run on March 1st2009 the calendar year/month should be calculated as 02/2009 (Feb 2009).
The code should be effective when run in the first 15 days of Jan when the previous month would contain the previous year as well.
Thank You
SrishtiThanks Shanthi. I am trying to incorporate the logic when the query is run in beginning of Jan when the year should be the previous year.Following is the code.please let me know if it would work. Is there a way I can test it as well?
CASE I_VNAM.
WHEN 'ZCURCALMON'.
IF i_step = 2.
data: mm(2),
dd(2),
yy(4),
FM(6).
if sy-datum+4(2) EQ 1.
sy-datum(4) = sy-datum(4) - 1.
else.
sy-datum(4) = sy-datum(4).
endif.
if sy-datum+6(2) LE 15.
mm = sy-datum+4(2) - 1.
concatenate sy-datum(4) mm into FM.
else.
concatenate sy-datum(4) sy-datum+4(2) into FM.
endif.
l_s_range-low = FM.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
append l_s_range to e_t_range.
Endif.
ENDCASE.
Thanks
Srishti -
Variables for calendar year/month
Hi All,
My requirement is to create a headcount report which has to display the number of employees for different time period. ´
1) When user chooses calender day then the report should display total number of employees on that time period(01.01.2005)-(10.01.2009).
2) If user chooses calyear /month then he should see the report for each calyear/month (like 01.2005 , 02.2005,02,2005....)in the columns.
I tried dropping calyear/month in column and i got the result for my second scenario (like 01.2005 , 02.2005,02,2005....)
But when the user chooses the calday it still shows the report by calmonth (bcoz of calyear/month in the column).
I also tried text variable for calyear/moth(replacement path method) but i have the restriction in the interval (from date or to date - i have to choose one by default) so it shows only either date in the columns .
The two variables. 1) Calender Day (Interval,Optional)) 2) Calender Year /Month (Interval,Optional)
I got four restricted key figure to restrict number of employees by business.
Eg :
When Cal Day is choosed then the report will be :(01.01.2005 -10.01.2009)
(01.01.2005 - 10.01.2009)
Country Sales Finance
India 20 30
Denmark 30 50
When Calyear / Month is choosed then the report will be : (01.2005 - 02-2005) :
01.2005 02.2005
Country Sales Finance Sales Finance
India 24 70 70 45
Denmark 36 60 56 30
Regards
A.Vasister
Edited by: vasister a on Oct 9, 2009 11:10 AMHello,
This cannot be achived dynamically.
I think the two ways you can work out is creating two different reports one to include daywise and the other to include montwise structure.
Otherwise you can keep calday in free char and ask user to swap calmonth with calday as per requirement.
Else you have to create a workbook report and make use of VB macros to calculate report dynamically which is a very complex approach.
Regards,
Shashank -
SCCM Version = SCCM 2012 R2 CU3
Background
I would like to setup some sort of safety check to help prevent accidentally sending and OSD out to all the servers managed by SCCM. The solution I am trying to use is making the TS do a check for a custom variable. If the variable is NOT set to TRUE
then it should reboot the machine back to the currently installed OS.
The variable is called "AllowOSD"
AllowOSD is set correctly on my "Test Servers" collection
I'm using the built in "Reboot Computer" step in the TS
The condition on the Reboot Computer step is very basic - "Task Sequence Variable AllowOSD is not equal TRUE".
I am testing the TS on a VM guest (Hyper-V)
I'm deploying via PXE for these tests...
The Issue
As soon as the TS starts I get the annoyingly generic 0x80004005 error - smsts.log posted on github -
smsts.log-A
Possibly related issue:
I have a vbscript that prompts for, and sets, the computer name. This works fine if placed after the format disk step, but if I place it before the format disk step then I get error 0x800700A1. If I format the internal HD first then I don't get an error
and it all works fine.
smsts.log posted on github - smsts.log-B
Be aware VM_1 and VM_2 have unformatted disks (vhdx). I don't want them to be formatted before checking that the task sequence should really be running in the first place. As already mentioned, I am trying to prevent someone wiping out a bunch of servers
by accident.
My Task Sequences are based on the defaults created by the wizard. Here are the step I'm using...
* Reboot if AllowOSD is not TRUE
Restart in Windows PE
* set Computer Name
Partition DIsk 0 - DIOS
Partition Disk 0 - UEFI
Install Operating System
Apply Windows Settings
Apply Network Settings
Setup Windows and Config Manager
* = steps I have created.
All other steps are defaults as created by wizard.
Please note the "Restart in Windows PE" step does a conditional check on "_SMSTSInWinPE" without any errors. it is looking like the use of custom variables is not supported until the local HD is formatted and mounted. Can
anyone confirm this behaviour, or what I can do to get around this problem.
I have tried using a vbscript but triggering a reboot from VB does nothing, hence using the Reboot Computer step in the TS.
Thanks
"Well I'm all out of ideas." - 85As others have stated, your options are limited the moment you rely on PXE and WinPE but I think all you need to do is refine your collection target a bit.
Why not instead of deploying your TS to All Systems (which is what I'm guess you're doing) and trying to put a condition in, deploy to a collection that is based on a workstation collection then include unknown computers? Then any "known workstation"
will have a MAC stored and thus be permitted to use the TS, unknown machines will be as well ... but "known servers" will be blocked?
COnsidering the PXE looks for permitted MAC addresses this should work (Ill try it in my own lab).
Tested and verified:
Simply create a collection with a parent collection of all systems.
Add a workstation query:
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion LIKE "%Workstation%"
Then "include" unknown computers.
End result is any machine that has "server" in it's version that has already been deployed will not be able to use the deployment. If you'd rather base existing computer on an OU or group membership just modify the first query how you see fit.
This will let known workstations (or whatever) and unknown machines get deployed to ... but known machines NOT in that collection will be skipped. -
How to Write a CUstomer Exit for a variable in BEx
Hi,
How to write a customer exit variable in bex Query designer
Do i need developers key for this (If so what type of key do i need so that i can ask basis tean to generate)
Info Object: ZEXP_DTE (Expiry Date)
Variable on ZEXP_DTE :
ZEDTE
Type: Customer Exit
Can any one please tell me how to write a code in CMOD from this (Step-by Step)
Expiry Date > Current Cal Day
As arun said
'l_s_range-low = SY-DATUM.
l_s_range-opt = 'I'.
l_s_range-sign = 'GT'.
APPEND l_s_range TO e_t_range.'
I want to insert the above code for the above customer exit but as i am new to BW as ABAP please explain me what are the steps involved in CMOD
ThanksHi,
To write customer exit for a variable, you require Access key.
Contact your BASIS to get that.
Access Key,BASIS?
To write Customer exit,
User Exits
User Exit for Variable
/thread/809285 [original link is broken]
Hope these helps u...
Regards,
KK. -
Substitution variable for multiple months
Ideally, i would like to have a calc script with a substitution variable FIX(&Month) which points to specified months. I have tried setting the value for my substitution variable in different ways
1.
Variable = Month
Value = "January""February"
2.
Variable = Month
Value = "January","February"
However, the script seems to be failing to pick up the second month as it returns no values for February. If i specify the months in the calc script, it works just fine. This suggests to me i'm getting the syntax wrong for the substitution variable.
Any ideas?There is nothing strange it can behave. It will work.
I am using this in production for years to genarate comma seperated scenario list with out any issues.
What a substitution variable will do?
It will store a string as a value for the variable and resolve at the time of calc. if the value is a valid member set it will work.
I believe issue is not because of that.
However, the script seems to be failing to pick up the second month as it returns no values for FebruaryIs it throwing any error in syntax check or in executing. Answer is No from the above statement. But you are not seeing the expected results in the calc.
first check the application log whether the calc is happening for both jan and feb.
Then why the calc is not as of expected for feb. -
Selection variable for next month in RFPERIOD_OPEN in closing cockpit
Hi,
we would like to use RFPERIOD_OPEN in the closing cockpit in order to open the next period on D-10 automatically. I would like to use the selection variables of the closing cockpit in the program variant in order to avoid unnecessary variant maintenance every month.
Unfortunately I cannot find a variable for the next month. There is only SAP_FAST_CLOSE_PERIOD_P. Do you know if it is possible to base a calculation logic to derive the next period from SAP_FAST_CLOSE_PERIOD_P.
Thanks!
Kind regards,
MariyaThanks! I checked it, but the appearance of months and order is okay in T247.
Any other ideas?
I thought I read somewhere that this is a bug but can´t remember where I found that bug hint. -
How to find out query name in customer exit for variables
We use the same customer exit variable in different queries. In the customer exit we want to find out, which query has called the customer exit. With the technical query name we want to read a master data table entry.
e.g. If we come from query ZG1_TEST1 we want to use selection sel1
Query name | selection
ZG1_TEST1 | sel1
ZG1_TEST2 | sel2
How can we find out the query name in the customer exit for variables?
Thanks for your help,
EviHi Evi,
check out the structure I_S_RKB1D in your exit. It contains the query.
Siggi
Maybe you are looking for
-
NOW THE iPod its a 2nd Gen. I love those because the glass (plastic) doesn't break like the new ones but anyway. I let it die out as I was moving and its been tucked away needing a charge. I go to charge it and nothing a big paper weight. Pressed pow
-
Dell 2407 WFP optimal screen resolution for Mac Mini
Running Snow Leopard on Mac Mini, however I keep getting pop up saying sceen resolution is not optimal for iphoto. What is optimal resolution for Dell 2407 WFP monitor?
-
Table 053 can only be accessed by application taxes (TX)
Hi Experts, The above mentioned error message is occurring while trying to change the specified table through application area MM. Please guide me the path where condition tables for application area taxes are stored. Rgds
-
Calendar Alerts turning on when not originally set
Hi, I'm having an issue where I create a calendar event without an alert however come the event time an alert goes off! This is really annoying when I set an all day event and get woken up by a rogue alert at midnight! It happens on every event I set
-
Exe built on one machine won't work correctly on another.
Hello list! I have two identical PC's. Both run Windows 2000. Both have two NIC cards, one on the motherboard, the other in physical PCI slot 3. The 2nd NIC on both machines is the same make & model. The NIC on the motherboard on each is configured f