Is it possible to create a variable in bex with the last work day?
Hi Gurus
Is it possible to create a variable in bex with the last work day?
Actually end-user every day open queries,
- Put in selection date day - 1 or
- put last Friday if the day is Monday or
- put last Thursday if the day is Monday and Friday is holiday (in a calendar for example 25 the December).
Please do the needful. It is urgent
Thanks in advance
Raj
Try this logic in a customer exit:
DATA: l_s_range TYPE rsr_s_rangesid.
DATA: X_PERIOD LIKE T009B-POPER,
X_YEAR LIKE T009B-BDATJ.
CASE I_VNAM.
WHEN 'ZPREVWORKDAY'.
DATA: l_DayOfWeek(1) TYPE C,
l_act_date TYPE d,
l_prev_date TYPE d.
l_act_date = sy-datum.
CALL FUNCTION 'DATE_COMPUTE_DAY'
EXPORTING DATE = l_act_date
IMPORTING DAY = l_DayOfWeek.
CASE l_DayOfWeek.
WHEN '1'.
l_prev_date = l_act_date - 3.
WHEN '2'.
l_prev_date = l_act_date - 1.
WHEN '3'.
l_prev_date = l_act_date - 1.
WHEN '4'.
l_prev_date = l_act_date - 1.
WHEN '5'.
l_prev_date = l_act_date - 1.
WHEN '6'.
l_prev_date = l_act_date - 1.
WHEN '7'.
l_prev_date = l_act_date - 2.
ENDCASE.
l_s_range-low = l_prev_date.
APPEND l_s_range TO e_t_range.
ENDCASE.
Edited by: Tyler Blouse on Feb 13, 2008 8:28 PM
Similar Messages
-
Is it possible to create a 1 D array with the "build array VI"? when receiving random number
Hello all,
Is it possible to create a 1 D array with the "build array VI" when receiving random number?
I am receiving random data and the build array VI always create a 2D array which might cause some problem if you want to compute certain type of operation after.
Any example will be welcomed.
Thank you,
IsraelHello Lynn and Yamaeda
First I want to Thank you Lynn for your linguistic contribution indeed "Build Array" is a primitive and not VI, thank you for the education. In reality what I am doing is simple.
I have two arrays of complex elements Array1 and Array2.
Array1 conains the complex elements ""(a0+ib0) ; (a1+ib1) ;...(an+ibn) ;
Array2 conains the complex elements ""(c0+id0) ; (c1+id1) ;...(cn+idn)
What I want to do is the multiplication of the first array by the conjugate of the second array element.
Array1*(Conjugate Array 2)" for the first element the results is "(a0.C0-b0.d0) + i(b0c0-a0d0)" and the etc...
and then taking the square root ([(a0.C0-b0.d0) power of 2]) + [(b0c0-a0d0) power of 2])
I was wondering if there were some dedicate primitive that could solve the computation above which is the cross correlation in Frequency domain.
Thank you very much.
Israel -
is there anyway i can retrieve recent text messages from the last 2 days and have them printed off after they have been deleted from my phone? this is seriously important i need this for an attourney!
click here:
Re: Can I request to get the content of old text messages -
Hello Folks,
Any idea about the Std Variable for the last working day calculation.
I have a customised Characteristics to which I want to use this variable then what steps should I follow or by installing it through content will it directly get attached, I mean will be available while choosing the variables for this characteristics in a query.
Thanks,
Suyog.Hi,
Create a customer exit variable to get last working day of the month and write the following logic in ZXRSRU01:
*Last working day of the given period(Cal Yr/Month)
WHEN '<Customer exit variable>'.
DATA : BEGIN OF i_holidays OCCURS 0.
INCLUDE STRUCTURE iscal_day.
DATA : END OF i_holidays,
v_fdate LIKE sy-datum,
v_ldate LIKE sy-datum.
IF i_step = 2.
READ TABLE i_t_var_range INTO loc_var_range
WITH KEY vnam = '<Cal yr/month selection variabel>'.
IF sy-subrc = 0.
CONCATENATE loc_var_range-low
'01' INTO v_fdate.
* to get last day of the given period
CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
EXPORTING
day_in = v_fdate
IMPORTING
last_day_of_month = v_ldate.
*To get holiday list in the given period
CALL FUNCTION 'HOLIDAY_GET'
EXPORTING
holiday_calendar = <Fact cal ID>
factory_calendar = <Fact cal ID>
date_from = v_fdate
date_to = v_ldate
TABLES
holidays = i_holidays.
SORT i_holidays BY date DESCENDING.
DELETE ADJACENT DUPLICATES FROM i_holidays.
DO.
READ TABLE i_holidays WITH KEY date = v_ldate.
IF sy-subrc NE 0.
v_ldate = v_ldate - 1.
ELSE.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = v_ldate.
APPEND l_s_range TO e_t_range.
CLEAR:l_s_range.
EXIT.
ENDIF.
ENDDO.
ENDIF.
ENDIF.
Assumptions:
Running a report by entering Cal yr/month as selection value.
hope it works...
regards,
Raju -
Is it possible to create a variable...
We're working in FM8, is it possible to create a variable (just like you would with a modification date, time) that has the modifier's name or initials? For a specific project, I want to be able to track who's working on which section(s) that way I can hold that person accountable for that particular document.
... is it possible to create a variable (just like you would with a modification date, time) ...
The examples you give are System Variables, so I'm presuming you want the system to supply this info, and all that it may have is the user's login ID, which may or may not have anything to do with their initials or name. And even this presumes that later versions of Frame can pick this up, which I doubt. I don't see any new constructs for SysVars in FM9 that would be helpful.
And it would have to be the UID of who opened the file, because who owns the file is often the original file creator, regardless of later updates (and it might even be who created the template file).
... that has the modifier's name or initials?
You can of course create an ordinary User Variable, but then you need to get the writers to set it, or overlay a script that forces it. -
Is it possible to create a generic report that accepts the SQL as a param
Is it possible to create a generic report that accepts the FULL sql statement as a paramater and returns variable results based on this?
We have a requirement to have a generic export routine to spit out csv's from clicking on a web page hyperlink, which would need to accept a "new" sql statement for every run, each containing different columsn etc that would be needed in the output.
I was hoping could have a generic Oracle report, exporting delimited data format (and as such not using a layout) and somehow pass in the "new" sql statement as a parameter at run time - each sql statement would be different with different columns etc.
Is this possible with oracle reports ?
thanksIf you need a simple dump of data you could try writing a report with a simple query such as
select 'Report title or column headers'
from dual
&data_query
then your &data_query parameter could be
union select col1||','||col2 from data_table
If you are outputing a comma separated data dump the you can concatenate together your data into a single text field.
This would allow you to have a simple heading followed by the actual data. I guess you could extend this so that the 'Report title or column headers' from the first query was also a parameter to output your row headings i.e.
select :column_headings_text
from dual
&data_query
Give it a go and good luck -
Create variables in TestStand with the PropertyLoader
Hello,
I whant to read several csv-files with the property loader of TestStand 3.1 (all FileGlobals or StationGlobals). The problem is, if the variable doen'st already exists the property loader doesn't work.
The variable I am ready in the CSV-file are alway different and I can't create manually the variable at first in TestStand or in the sequence file, before I can load them with the property loader.
Is there a possibility to create dynamically variables (Globals or Locals) with the PropertyLoader? If not, what can I do?
Cheers,
RisottoAntonio,
Thank you for your answer. I read and understood the post http://forums.ni.com/board/message?borad.id=330&message.id=8395#M8395.
Anyway, this still not really helps me. I will try to explain my problem:
We are actually upgrading from TestExec to Teststand/Labview. For our products (embedded electronic), we write for each SW release about 20 testplans in TestExec (which would be 20 sequences with Teststand). Each testplan use the same 2 symbol tables (where are defined about 100 variables definition and constants). From product to product and from SW release to SW release, there is always new/changed/deleted variables and constants. The name of the symbol table is always the same, only the contents is changing. TestExec reads this symbol tables at load-time of a test plan, so that you don't have to define the variables and constants separately and you can directly use them. Usually this variables and constants are related to voltages, currents, PWM duty cycle and so on....
Now we are trying to do almost the same thing with Teststand. We create 2 CSV-files which contains our variables and constants and we whant to link them in all the 20 sequences. We tried to use the property loader, but you need to define in each of the sequence files all the variables and constants, which is a bit unconfortable. Please see the attached file for a more graphical explanation.
What is the best was in Teststand to do something like with TestExec?
Regards,
Risotto
Attachments:
TestExec_Teststand.doc 29 KB -
How to create Text Variables in BEx Query Designer
How can i create Text Variables in Bex Q.D.
I am able to create characteristic variables
but i can't find option to create text variables.
What's the requirement to create Text variables in Bex Q.D.
When i try to create Text variable for 0calDay.. the variable type is characteristic by Default and disabled.
How can i create text variables related to 0CalDay with which i need to work in Customer Exit.Hi,
You have to create characteristic variable processing by Customer Exit by considering 0CalDay as a Reference Characteristic
After creation of the above variable, you restrict your KF with the above created variable.
Now you can create a Text variable for the description of your KF. This way it works...........
Regards,
Suman -
How to create a variable in BEx 7.0
Hi,
Can anyone please tell me how to create a variable in BEx 7.0
In 3.5, when we right click on a characteristic, we used to get an option for restrict.
I cant find any such option in 7.0Hi,
Right click on the characteristic 0CALMONTH in the default values or drag it to char. restriction section and say restrict.Pull the drop down menu in that to select variables. There u will get a create icon.Click on that...then in details tab u can specify whether mandatory,interval and all..
Regards,
Rathy -
Is it possible to create an album in gallery on the iPad or do you have to do it on your computer?
Thanks, how about in gallery on MobileMe ? As I am not near my computer for the next 3 weeks so can't do a cable sync do you think I could create and album in gallery on mobile me on a "borrowed" computer and do it throughout the cloud?
-
Is music created in logic pro compatible with the logic pro x ? for instance if you have created something in logic pro and want to add or tweak it, is that possible? I suppose you would need the original logic folder?
Yes it is more or less compatible, except the use of 32 bit plugins, which is prohibited from now on. So although you're able to open Logic projects as far as down to v5 I believe, it is advisable to remain for 'adding and tweaking' in your pre LPX environment.
Have a nice day! -
Hi All,
Is it possible to create a two node cluster with SQL server 2012 STD on node1 and SQL Server 2008 ENT on node2 on a Windows server 2012?
aaI think you are confused with the way cluster is installed. Installing SQL on cluster is a two step process. On first node you create a new SQL cluster and on second node you need "AddNode" action.
Same edition media has to be used in above two operation.
you can install two separate instances with one enterprise and one standard.
Balmukund Lakhani
Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
This posting is provided "AS IS" with no warranties, and confers no rights.
My Blog |
Team Blog | @Twitter
| Facebook
Author: SQL Server 2012 AlwaysOn -
Paperback, Kindle -
Revision: 14765
Revision: 14765
Author: [email protected]
Date: 2010-03-15 13:48:04 -0700 (Mon, 15 Mar 2010)
Log Message:
Put gate around autoRewind code, to prevent possibility of an infinite loop (which could happen if you create a SerialElement with the last child a DurationElement of duration zero).
Modified Paths:
osmf/trunk/framework/OSMF/org/osmf/media/MediaPlayer.asStep by step, how did you arrive at seeing this agreement?
-
Is it possible to create an itunes smart playlist that lists my top 25 most played songs in a specific time period (i.e. - the last 90 days)? It seems that any "most played" list I create counts every spin a track has had in it's history of being in my library.
The challenge is is not to determine which of the tracks that have been played in the last X days has been played most since the beginning of time, but which have been played most in the last X days. iTunes can do the first one but it simply doesn't have the power to do the second.
tt2 -
Is it possible to copy a Standard Program along with the enhancements?
Hi Friends,
I need to copy the program RMCE0400 (Transaction: MC$K) and modify the selection screen and select queries based on the select options.
I copied the standard program to a Z Program but the enhancements were not copied automatically.
So i copied the codes in those enhancements and pasted them in the Z Program.
But it does not replicate the selection screen as well as the output of the standard program.
Can you tell me whether there is any other way to incorporate the codes in the enhancements of the standard program to the Z Program?
Is it possible to copy the enhancements?
I can use the enhancements to enhance the standard program, but the user wants to create a new T-Code with the copied and modified program.
So can anyone let me know if there is any way to do so?
Edited by: Arunkumar Balasubramaniam on Jun 11, 2010 11:42 AMYes per this
http://download.p4c.philips.com/files/p/ppx2480_eu/ppx2480_eu_dfu_eng.pdf
The device has
Video connection .................................Mini-HDMI socket
Thus you will need an HDMI to min HDMI adopter
Maybe you are looking for
-
Unclear if Illustrator or InDesign should be used - advice needed
Hi, I've been using Illustrator for 10+ years to design my companies brochures, logos, business cards, forms, advertisements, instruction manuals, etc. LOTS of stuff. Lately it's been bothering me that I have so much duplicated content spread acros
-
Dear Sirs: I defined the following parameters in my program: SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME. PARAMETERS: p_kokrs LIKE cobk-kokrs MEMORY ID ZKO OBLIGATORY, More parameters. SELECTION-SCREEN END OF BLOCK b1. AT SELECTION-SCR
-
IP Failover between nic cards, not servers
This maybe a very simple question, I just haven't found the answer to it... Our Xserve's are running on a Cisco switch and a switch port for the primary NIC card of one AFP server recently failed. While the server had both cards connected to the swit
-
Hi Experts, when i starting the j2ee server the error is comming but the visual administrator is working 1)) i found the error in E:\usr\sap\ECC\DVEBMGS01\j2ee\admin\logviewer-standalone\server #1.5#C000AC1F643C0000000001F1005E13AD0004398D9AD41970#11
-
I am unable to install flash 9 on my intel mac. I have deleted firefox and its preferences. I have closed google desktop but still get the access denied message. Does anyone have any suggestions?