User input selection based on Keyfigure
Hi All,
Need your inputs to the below situation.
We have a report which calculates the difference between processing date and issued date. These dates are calculated in BEx as below.
Processing date = Date where status is E0023
Issued Date = Date where status is E0045
Difference in Days = Issued Date - Processing Date
Now, the issue is user wants a selection variable on the " Difference in Days". Based on the user input like 1 day, 2 days etc, the output should be calculated. Request you to put your thoughts on this.
Regards,
Hi,
you can create the 2 formula variables on 2 date fields Processing date, Issued Date
type of variable is the formula variable and processing method is - replacement pant.
if you converting the char to KF you can easily calculate the difference days.
in rows panel put the Processing date, Issued Date then run the query in RSRT or bex analyzer.
Thanks,
Phani.
Similar Messages
-
How to create Variables(User Input Selections) in WEBI Report
Hi Team,
My requirement is to create a WEBI Report on top of BEx query,I have created a Universe and WEBI Report on this Universe but my doubt is How to create Variables for the User to select.The Input selection should be
User Iputs(All are drop downs)
Distribution Channel : ->drop down,user can select one
Division: -> drop down,user can select one
Department:
Season:
Collection:
Date Format Valid From: Fiscal Week:
When the user gives the above selections the output should be displayed as
Material No Description Markdown Week Reason code1(under this) Reason code2(under this) like that for all the
valid from Amount Valid from Amount Reason code.
I have designed the basic layout of the Report but wanted to know how to design like this,Please help me out in this Format.
Thanks & Regards,
SomuHi, depending on the way you set this up (it is not entirely clear if you are talking bex variables or report drop down filters), use the following;
For BEX variables, the choice will be in the
UserResponse("prompt message")
this you can display in the message format you want.
For drop down filters the choice will be in the DrillFilters(), this one will show all selections in one string.
However, if you want to format this to a certain message, you need to use the Formula
DrillFilters([object from drill bar])
This will give you the result of just that one selection. If the user did not select (yet), the value will be "".
Hope this helps,
Marianne -
How can i read user input value to my User exist
Hi Guru's,
I am facing one problem in Variables in BPS.
I am calculating days from Month/year .I have one variable it is for Days,Second variable it is for Month/Year.
First variable is user exist (for calculating the days),Second varible is user defined variable(this is a Input to the first variable).
When i am giving the Month/Year(02/2008)variable i am getting the 29 days from the first variable.again i am changing the value of Month/Yera(03/2008) i am not getting the desired value.
my doubt is my user exist not able to read current value of variable(month/year).how can i pass my value to user exist because this value is user input value based on this value i am calculating the days and dynamically displaying the layout.
Here is the my sample code..
seq = '0000'.
ind = 0.
i_area = 'ZTEST1'.
area_var = 'ZVar2'.
PERFORM instantiate_object USING i_area
area_var
CHANGING lsr_var.
PERFORM get_current_value_of_variable
USING lsr_var
CHANGING lto_value.
READ TABLE lto_value INTO lso_value index 1 .
i_month = lso_value-low.
iv_month = i_month+4(2).
iv_year = i_month(4).
concatenate iv_year iv_month '01' into iv_date.
begindate = iv_date.
below bracket code calculating the leap year
( IF iv_date+4(2) = lc_feb.
lv_hlp_date_year = iv_date+0(4).
lv_hlp_rest = lv_hlp_date_year MOD 4.
IF lv_hlp_rest = 0.
EV_DAYS = lc_days_29.
lv_hlp_rest = lv_hlp_date_year MOD 100.
IF lv_hlp_rest = 0.
lv_hlp_rest = lv_hlp_date_year MOD 400.
IF lv_hlp_rest NE 0.
EV_DAYS = lc_days_28.
ENDIF.
ENDIF.
ELSE.
EV_DAYS = lc_days_28.
ENDIF.)
ELSE.
below bracket code calculating the days
( CASE iv_date+4(2).
WHEN lc_jan. EV_DAYS = lc_days_31.
WHEN lc_mar. EV_DAYS = lc_days_31.
WHEN lc_may. EV_DAYS = lc_days_31.
WHEN lc_jul. EV_DAYS = lc_days_31.
WHEN lc_aug. EV_DAYS = lc_days_31.
WHEN lc_oct. EV_DAYS = lc_days_31.
WHEN lc_dec. EV_DAYS = lc_days_31.
WHEN lc_apr. EV_DAYS = lc_days_30.
WHEN lc_jun. EV_DAYS = lc_days_30.
WHEN lc_sep. EV_DAYS = lc_days_30.
WHEN lc_nov. EV_DAYS = lc_days_30.
WHEN OTHERS. CLEAR EV_DAYS.
ENDCASE.)
ENDIF.
data: st_date(2) type c.
st_date = '01'.
ind = 0.
ind = ind + 1.
here i am passing the low value and high value.
yto_charsel-chanm = '0CALDAY'.
yto_charsel-seqno = 1.
yto_charsel-sign = 'I'.
yto_charsel-opt = 'EQ'.
yto_charsel-LOW = st_date.
yto_charsel-chanm = '0CALDAY'.
yto_charsel-seqno = 1.
yto_charsel-sign = 'I'.
yto_charsel-opt = 'BT'.
yto_charsel-high = ev_days.
INSERT yto_charsel INTO sto_charsel INDEX ind.
ETO_CHARSEL = sto_charsel.
lto_value = sto_charsel.
How can i pass user input value to read this exist ,some where again i have to write code or else??
This is very urgent can you help me..Hi,
Instead of two perform statements, use single perform.
PERFORM get_value USING i_area
i_variable
CHANGING lw_varsel.
Take the values from lw_varsel-low.
FORM statement for this perform is as follows.
DATA: li_varsel TYPE STANDARD TABLE OF upc_ys_api_varsel,
lv_varsel TYPE REF TO cl_sem_variable.
FORM get_value USING p_area TYPE upc_y_area
p_variable TYPE upc_y_variable
CHANGING
p_lw_varsel TYPE upc_ys_api_varsel.
CALL METHOD cl_sem_variable=>get_instance
EXPORTING
i_area = p_area
i_variable = p_variable
I_CREATE =
RECEIVING
rr_variable = lv_varsel.
EXCEPTIONS
NOT_EXISTING = 1
others = 2
IF sy-subrc <> 0.
EXIT.
ENDIF.
REFRESH li_varsel.
****Getting the Value*********
CALL METHOD lv_varsel->get_value
EXPORTING
i_user = sy-uname
i_restrict = 'X'
RECEIVING
rto_value = li_varsel.
CLEAR : p_lw_varsel.
READ TABLE li_varsel INTO p_lw_varsel INDEX 1.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDFORM. "get_value
Try this code.
Bindu -
How to configure the schema name dynamically based on user input.
configure the schema name dynamically based on user input.
For ex:
We have two schemas:
Schema1 - base schema having 15 tables.
Schema2 - tables which is specific to modules. Having only 10 tables which is also available in Schema1
Login to application using Schema 1
Access a particlular module and select the country. Here country selection is identified.
Based on the country selection, we need to connect the schema respectively.
If the user selects France --> It should connect Schema1
If the user selects Germeny --> It should connect schema2.
Used: EclipselinkYou may want to have a different persistence unit for each country, then you just need to switch persistence units, and can put the schema in your orm.xml file.
You may also want to investigate EclipseLink multi-tenant support,
http://www.eclipse.org/eclipselink/documentation/2.5/jpa/extensions/a_multitenant.htm
You can the schema in a persistence unit in code using a SessionCustomizer and the tableQualifier. -
How to add column dynamically based on user input in oracle?
**how to add column dynamically based on user input in oracle?**
I am generating monthly report based on from_date to to_date below is my requirement sample table
EMPLOYEE_CODE| Name | CL_TAKEN_DATE | CL_BALANCE | 01-OCT-12 | 02-OCT-12 | 03-OCT-12
100001.............John...........02-OCT-12...............6
100002.............chris...........01-OCT-12...............4
Based on user input, that is, if user need the report from 01-OCT-12 TO 03-OCT-12, i need to add that dates as column in my table, like 01-OCT-12 | 02-OCT-12 | 03-OCT-12....
below is my code
create or replace
procedure MONTHLY_LVE_NEW_REPORT_demo
L_BUSINESS_UNIT IN SSHRMS_LEAVE_REQUEST_TRN.BUSINESS_UNIT%TYPE,
--L_LEAVE_TYPE_CODE IN SSHRMS_LEAVE_REQUEST_TRN.LEAVE_TYPE_CODE%TYPE,
L_DEPARTMENT_CODE IN VARCHAR2,
--L_MONTH IN SSHRMS_LEAVE_REQUEST_TRN.LVE_FROM_DATE%TYPE,
L_FROM_DATE IN SSHRMS_LEAVE_REQUEST_TRN.LVE_FROM_DATE%TYPE,
L_TO_DATE in SSHRMS_LEAVE_REQUEST_TRN.LVE_TO_DATE%type,
MONTHRPT_CURSOR OUT SYS_REFCURSOR
AS
O_MONTHRPT_CURSOR_RPT clob;
v_return_msg clob;
BEGIN
IF (L_BUSINESS_UNIT IS NOT NULL
AND L_FROM_DATE IS NOT NULL
and L_TO_DATE is not null
-- AND L_DEPARTMENT_CODE IS NOT NULL
THEN
OPEN MONTHRPT_CURSOR FOR
select EMPLOYEE_CODE, EMPLOYEE_NAME AS NAME, DEPARTMENT_CODE AS DEPARTMENT,DEPARTMENT_DESC, CREATED_DATE,
NVL(WM_CONCAT(CL_RANGE),'') as CL_TAKEN_DATE,
case when NVL(SUM(CL2),0)<0 then 0 else (NVL(SUM(CL2),0)) end as CL_BALANCE,
from
SELECT DISTINCT a.employee_code,
a.EMPLOYEE_FIRST_NAME || ' ' || a.EMPLOYEE_LAST_NAME as EMPLOYEE_NAME,
a.DEPARTMENT_CODE,
a.DEPARTMENT_DESC,
B.LEAVE_TYPE_CODE,
B.LVE_UNITS_APPLIED,
B.CREATED_DATE as CREATED_DATE,
DECODE(b.leave_type_code,'CL',SSHRMS_LVE_BUSINESSDAY(L_BUSINESS_UNIT,to_char(b.lve_from_date,'mm/dd/yyyy'), to_char(b.lve_to_date,'mm/dd/yyyy'))) CL_RANGE,
DECODE(B.LEAVE_TYPE_CODE,'CL',B.LVE_UNITS_APPLIED)CL1,
b.status
from SSHRMS_EMPLOYEE_DATA a
join
SSHRMS_LEAVE_BALANCE C
on a.EMPLOYEE_CODE = C.EMPLOYEE_CODE
and C.STATUS = 'Y'
left join
SSHRMS_LEAVE_REQUEST_TRN B
on
B.EMPLOYEE_CODE=C.EMPLOYEE_CODE
and c.EMPLOYEE_CODE = b.EMPLOYEE_CODE
and B.LEAVE_TYPE_CODE = C.LEAVE_TYPE_CODE
and B.STATUS in ('A','P','C')
and (B.LVE_FROM_DATE >= TO_DATE(L_FROM_DATE, 'DD/MON/RRRR')
and B.LVE_TO_DATE <= TO_DATE(L_TO_DATE, 'DD/MON/RRRR'))
join
SSHRMS_LEAVE_REQUEST_TRN D
on a.EMPLOYEE_CODE = D.EMPLOYEE_CODE
and D.LEAVE_TYPE_CODE in ('CL')
AND D.LEAVE_TYPE_CODE IS NOT NULL
group by EMPLOYEE_CODE, EMPLOYEE_NAME, DEPARTMENT_CODE, DEPARTMENT_DESC, CREATED_DATE
else
v_return_msg:='Field should not be empty';
end if;
END;
my code actual output
EMPLOYEE_CODE| Name | CL_TAKEN_DATE | CL_BALANCE
100001....................John............02-OCT-12.................6
100001....................chris...........01-OCT-12.................4
how to add column dynamically based on from_date to to_date?
Thanks and Regards,
Chris Jerome.You cannot add columns dynamically. But you can define a maximum number of numbers and then hide unused columns in your form useing SET_ITEM_PROPERTY(..,VISIBLE, PROPERTY_FALSE);
-
Display a specific structure based on user input
Hello All,
I have a aging report in which one aging is based on Group currency and the other aging based on Document currency, user should be able to specify which bucket he wants to see as a input selection and the report should only display that aging, is there any way to do that in BEx (7.0).
Thanks,
S.B.Thanks for the Reply,
Can you please tell me how to do that?
Thanks,
S.B. -
Auto populate a textfield based on users input
Hi All,
Working with Designer ES ver. 8.2, and I am looking to see if it is possible to auto fill another field based on an end users input.
Example: End-user enters a 6 digit departmentCode for a program; in turn the field opposite to the departmentCode auto fills with a corresponding programCode; if they do not input the correct 6 digit departmentCode the field will return a null value.
I am trying to move away from my current auto fill drop-down option, so end-user is less likely to select incorrect departmentCode from drop-down
Best Regards
Jeffradzmar,
Thank you for your response, I assumed there was a simple script to accomplish my task. I had assumed that the .rawValue property would have come into play and was unaware of the xfa.event.fullText property.
Thanks Again -
Redirect to different pages based on user input value
Hello,
Anyone please help.
I am trying to redirect to different pages based on user inputs. I have a form in which I have one text item and a submit button. For example consider text item to be empno; So once the user enters a empno and hits submit button; I need to redirect to different pages based on this job.
For Ex: if user inputs empno whose job is 'ANALYST' then redirect to page 1
if user inputs empno whose job is 'MANAGER' then redirect to page 10
For this scenario. i wrote a pl/sql process for the submit button; but no luck -- its not at all redirecting instead its in the same page. Below is the process.
declare
v_job varchar2(20);
begin
select job into v_job from emp where empno = :P9_EMPNO_R;
if v_job = 'ANALYST' then
OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:1:&SESSION.::&DEBUG.::', TRUE);
end if;
if v_job = 'MANAGER' then
OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:10:&SESSION.::&DEBUG.::', TRUE);
end if;
end;Please help. I am using Oracle APEX version 4.2 and database Oracle 11g R2
Thanks,
Ortonorton607 wrote:
Hello,
Anyone please help.
I am trying to redirect to different pages based on user inputs. I have a form in which I have one text item and a submit button. For example consider text item to be empno; So once the user enters a empno and hits submit button; I need to redirect to different pages based on this job.
For Ex: if user inputs empno whose job is 'ANALYST' then redirect to page 1
if user inputs empno whose job is 'MANAGER' then redirect to page 10
For this scenario. i wrote a pl/sql process for the submit button; but no luck -- its not at all redirecting instead its in the same page. Below is the process.
declare
v_job varchar2(20);
begin
select job into v_job from emp where empno = :P9_EMPNO_R;
if v_job = 'ANALYST' then
OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:1:&SESSION.::&DEBUG.::', TRUE);
end if;
if v_job = 'MANAGER' then
OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:10:&SESSION.::&DEBUG.::', TRUE);
end if;
end;Please help. I am using Oracle APEX version 4.2 and database Oracle 11g R2
Thanks,
OrtonI have a similar scenario in my application and this is how I handle it.
1. Create a page item on the page, say Px_PAGE_NUM
2. Create a "On Submit - After Computations and Validations" page process to set the above page item. In your case, you can use the same logic that you have already in place (except the call to OWA_UTIL.REDIRECT_URL) :
declare
v_job varchar2(20);
begin
select job into v_job from emp where empno = :P9_EMPNO_R;
if v_job = 'ANALYST' then
:Px_PAGE_NUM := '1';
end if;
if v_job = 'MANAGER' then
:Px_PAGE_NUM := '10';
end if;
end;3. Create a "On Submit: After processing" branch. Specify the "Target Type" as "Page in the application" and "Page Number" as &Px_PAGE_NUM. (with the dot).
I hope the above helps.
BTW, the following thread in the forum related to OWA_UTIL.REDIRECT_URL might help:
issue OWA_UTIL.REDIRECT_URL with APEX 4.1.1 -
How to enable/disable the input fields based on the data entered in the web dynpro application abap? If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.
Hi,
Try this code.
First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
Next go to Init method.
Set the readonly value as 'X'.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_visible TYPE wd_this->element_context-visible.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
* @TODO fill attribute
* lv_visible = 1.
* set single attribute
lo_el_context->set_attribute(
name = `READONLY`
value = 'X').
After that Go to the Action ENTER.
First read the input field ( first input field, which is value entered field) , next give a condition
if input value is not initial then set the readonly value is ' '.
DATA lo_nd_input TYPE REF TO if_wd_context_node.
DATA lo_el_input TYPE REF TO if_wd_context_element.
DATA ls_input TYPE wd_this->element_input.
DATA lv_vbeln TYPE wd_this->element_input-vbeln.
* navigate from <CONTEXT> to <INPUT> via lead selection
lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
* @TODO handle non existant child
* IF lo_nd_input IS INITIAL.
* ENDIF.
* get element via lead selection
lo_el_input = lo_nd_input->get_element( ).
* @TODO handle not set lead selection
IF lo_el_input IS INITIAL.
ENDIF.
* get single attribute
lo_el_input->get_attribute(
EXPORTING
name = `VBELN`
IMPORTING
value = lv_vbeln ).
if lv_vbeln IS not INITIAL.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_visible TYPE wd_this->element_context-visible.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
* @TODO fill attribute
* lv_visible = 1.
* set single attribute
lo_el_context->set_attribute(
name = `READONLY`
value = ' ' ). -
SQL- 2005 : User Input in select statement's where cond [Input Parameter]
Hi All
i am using SQL Server 2005 , i want to select the data based on the user input in where condition,
but i am not sure what to give in where condition,can anyone have any idea on this
SELECT [NO]
,[NAME]
,[PAGE_COUNT]
FROM [DS].[DB].[tablename]
where [NO]=???
Regards
Chaitanya.AHI
public String getEmployeeName(String employeeNumber)
// TODO : Implement
String name = new String();
String exception = new String();
try
InitialContext initialContext = new InitialContext();
DataSource dataSource =(DataSource) initialContext.lookup("jdbc/XXXX");
java.sql.Connection connection = dataSource.getConnection();
PreparedStatement stmt =connection.prepareStatement("SELECT [NAME]FROM [XXX].[ASDF].[ABCD] where [NO]=?");
stmt.setString(1,employeeNumber);
ResultSet result = stmt.executeQuery();
while (result.next())
name = result.getString("Name");
connection.close();
return name;
catch (Exception e)
exception = "Exception";
return exception;
i used the above function to achieve my requirement
Thanks
Chaitanya.A -
Script to map default printer based on user input
Hello everyone,
Complete scripting noob here but I managed to cludge together a vb script (from various sources) that will remove all current printers and then add printers based on group membership. It can also add a default printer and if they have a local printer
make that default. All that works just fine, my problem is that we have very large floors with many printer clusters. Group membership for printers is by floor and I do not have the option to further define this (Also GPO is not an option as getting
our network group to deploy anything takes years so we need to go this route).
What I would need is something graphical (like an HTA) that when run it prompts the user to input which floor they are on, then it asks them which of the print clusters (on the floor they specified) is closest to them. It would then install all the
printers on the floor and make the default printer one from the print cluster they indicated (unless they have a local printer). I hope this make sense.
I think I have most of the pieces laid out but I don't know how to get the user prompts/GUI and then perform the correct mappings. Thank you in advanced!I agree with Bill. Using the correct method will be best. You network people will be more than happy to tell you what is set up and how to use it. You just need to ask your manager to get you in contact with them for a little parley.
If you are really insisting on a script then look in the repository. There are dozens of scripts that you can use and modify.
You should try to see this as a challenge to bring modern technology to your company. Approaching this kind of thing as a global IT challenge will usually get the attention of IT and they will usually take it seriously. You will likely learn
many things about the IT resources your company has.
¯\_(ツ)_/¯
I'm sorry if I wasn't clear but I'm not asking anyone to write the script for me, as I said I have most of the parts working. My issue is getting the user input and getting the script to take the action I need it to (I can map the printers based on
AD group membership I really just need to prompt the user to select which one they want as default). My thoughts were to wrap a GUI around it but it's not needed.
I agree that GPO is the way to go but in State Government it takes an act of Congress to get anything done in the mean time I'm trying to get things done with the means available to me. -
Widget to get drop down values based on user input query string
Hi,
I have a requirement, where in user types in some text and clicks on a search button. On button click, a drop down or some box appears which has result based on the input string (from json ). User can select one of the values in the drop down or box. User should be able to select values from drop down or box only.
How can I achieve this. Is there any custom widget in CQ for this, or I have to write my own widget.
Can i use SuggestField widget for this? if yes, please give some example for this widget.
I want something similar to "authselection" widget. In case of authselection widget user names come from CQ, in this case user name will come from some other system using a CQ custom json.
If user types "gopa" and click on search , i should be able to call a json with query parameter "gopa" & the result from the query will be in the drop down.
Regards,
GopalHi Gopal,
Out of the box there are many example. You can look for siteadmin has a reference.
Thanks,
Sham -
Displaying columns based on User Input
Hi,
I have a following requirement :
I have four columns in a report : Performance Indicator ,Target (XTD) , Actual (XTD),Indicator(Traffic Lights)
Based on the prompt, which contains column named as "Review Frequency" having values as 1. Monthly 2. Quaterly 3. Yearly.
When User select "Monthly" in pormpt I want to see MTD in Actual and Target column and Indicator depending on these columns.
When User select "Quaterly" in pormpt I want to see QTD in Actual and Target column and Indicator depending on these columns.
Can anybody tell me how can we achieve this?
I think I can achieve this with guided navigation but for that I have to create 3 reports.
Can anybody have any better idea to create just one report and based on user input I can show/hide columns in a single report?
This is mainly related to Balanced ScoreCard.
Thanks in advance
Regards,
Vikasyou have seperate columns for monthly, quarterly, and yearly, right?
In the prompt, save the "Review Frequency" as a Presentation Variable "abc";
In the request, you add actual (MTD) column, edit the formula, use something like:
CASE
WHEN @{abc}='Monthly' THEN "- SalesFacts"."actual (MTD)"
WHEN @{abc}='Quarterly' THEN "- SalesFacts"."actual (QTD)"
ELSE "- SalesFacts"."actual (YTD)"
END
then do the same thing for target column. -
Displaying alert message based on user input on input param screen
Hi,
Based on user input I wish to display an alert popup on my report. I
have provided the user 2 dropdowns called sortasc and sortdesc with all
the column names used in the report to simulate dynamic sorting.This is
because we do not have dynamic sorting in CR XI R2. When the user
selects same column name in both sortasc and sortdesc then the sort
type which has priority in the record sort expert is executed. This is fine but we want an alert
or message popup displayed so as to prevent user from selecting same
column names.
I tried adding an alert with the following code:
if {?sortasc} = {?sortdesc} then true else false
So far I have not been prompted with any alert message box.
Let me know if there is any other option.Hi Shalu,
I have created a alert and it is working fine, please follow the steps
Create a new Alert using two static parameters and give the condition for message like :
if {?Myworld} = {?Myworld1} Then
'You have entered a correct word'
else
'This is not a correct word'
Then create a condition like :
{?Myworld} = {?Myworld1} or {?Myworld} <> {?Myworld1}
Also check the check box Enabled and save the alert. Now it will popup if the myworld is equal to myworld1 or myworld is not equal to myworld1.
Hope this will help you
Thanks,
Sastry -
Derive values based upon user input
Hello,
I recieved a request for a report.
When a user runs the report they are to be prompted for a fiscal year/period.
Based on the fiscal year/period that the user provides I have the following columns (in bold below are 2 examples that may make the description more clear).
1. Revenue for the Fiscal year Prior to the fiscal year of the user input value
2. Revenue for the Fiscal year/Period prior to the input Fiscal year/period
3. Revenue for the Year to date accumulation up to the prior fiscal year/period that the user input
4. Revenue for the Year to date accumulation up to the prior fiscal year (fiscal year rolls back first) and prior period (for period 01, it then rolls back the fiscal year 1 more year) that the user input
Example 1: If the user ran the query and they provided the value 05/2007, then the values that need to be obtained would be:
1. Revenue for 2006
2. Revenue for 04/2007
3. Revenue for 01/2007 to 04/2007
4. Revenue for 01/2006 to 04/2006
Example 2: If the user ran the query and they provided the value 01/2008, then the values that need to be obtained would be:
1. Revenue for 2007
2. Revenue for 12/2007
3. Revenue for 01/2007 to 12/2007
4. Revenue for 01/2006 to 12/2006
Please help me with determining how to obtain the user input value, and then how to derive the time periods for the columns based upon that value.
Thanks,
Nick
(points available)
Edited by: Nick Bertz on Mar 13, 2008 9:43 AMHello,
See my example.. I am reading the value from Keydate Variable
WHEN ZVND01
READ TABLE i_t_var_range INTO w_var_range WITH KEY vnam = 'Keydate'.
IF SY-SUBRC = 0.
CLEAR l_s_range.
l_date = w_var_range-low.
concatenate l_date(6) '01' into l_first_date.
CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
EXPORTING
day_in = l_date
IMPORTING
last_day_of_month = l_last_date
EXCEPTIONS
day_in_not_valid = 1
OTHERS = 2.
IF sy-subrc EQ 0.
l_s_range-low = l_first_date.
l_s_range-high = l_last_date.
l_s_range-sign = k_sign_inclusive.
l_s_range-opt = k_option_between.
APPEND l_s_range TO e_t_range.
ENDIF.
Hope this example helps..
Maybe you are looking for
-
I would like to receive any comments of my ipad problem. A few days ago, I charged my pad during playing podcast. I slept listening the podcat. After wake up I was just shocked. Because my pad is turned off. I tried to turn on many times by using hom
-
Im about to throw this thing through the window!!!!!
Need some help...how do i play my songs in order?...I pressed the play button 5 times...but then it only plays my first song then suffles again?
-
HI my name is Ehab Hejazeen. Im from Mapusa goa india.i have lost my iphone some time back. i recieved it as a gift from my uncle from dubai so i dont hav the imei number and he does not work there anymore. Please track my iphone . I will be waiting
-
Hi, Can any one tell how to handle the tax setup mentioned below in sales doc A = QTY * Rate B = PACKING CHARGES C = OTHER CHARGES D = (A + B + C ) *10 % >>>(EXCISE DUTY @ 10%) E = (D * 2%)
-
Hi I have an issue about workflow, I have created the automatic workflow customizing in SWU3. But when we receive a bid from our supplier the bid is not approved automatic, I have activated following workflows WS 79000002 WS 79000010 when I look into