How to get previous 2 months from current date in a dropdown?
Hello Experts ,
In the application which I am developing, there is a requirement wherein , I want to Populate current month and previous two month in a drop down depending upon today's date. please help.
Thanks & Regards,
Pratbha Shukla
The internal format for dates is yyyymmdd. Therefore you can just grab the month value from the date:
data lv_month type FCMNR.
lv_month = lv_date+4(2).
Just subtract from the month to get the two previous.
data lv_previous1 type FCMNR.
data lv_previous2 type FCMNR.
if lv_month = 1.
lv_previous1 = '12'.
else.
lv_previous1 - lv_month - 1.
endif.
if lv_previous1 = 1.
lv_previous2 = '12'.
else.
lv_previous2 - lv_previous1 - 1.
endif.
Then do your lookup for the month name by reading the table returned from function module MONTH_NAMES_GET.
Similar Messages
-
Get last august month from current date
Hi,
I need to get last august month from current date.
e.g if current date is 1-OCT-2013 need to get last August date i.e.1-AUG-2013
e.g. if current date is 1-MAY-2013 need to get last August date i.e.1-AUG-2012Something like this?
SQL> WITH table_x AS(
2 SELECT SYSDATE dt from dual UNION ALL
3 SELECT TO_DATE('20-05-2013','dd-mm-yyyy') from dual
4 )
5 --
6 ---
7 --
8 SELECT dt,
9 CASE
10 WHEN (dt >= Add_Months(TRUNC(dt,'YEAR'),7)) THEN
11 Add_Months(TRUNC(dt,'YEAR'),7)
12 WHEN (dt < Add_Months(TRUNC(dt,'YEAR'),7)) THEN
13 Add_Months(TRUNC(dt,'YEAR'),7) - 365
14 END cs
15 FROM table_x;
DT CS
24-OCT-13 01-AUG-13
20-MAY-13 01-AUG-12 -
How to get name of the month from current date.
Hi,
How to get the name of the month from current date.
Thanks,
SenthilSethil,
Use your date(let us say Date1) instead of sy-datum.
CALL FUNCTION 'MONTH_NAMES_GET'
EXPORTING
LANGUAGE = SY-LANGU
IMPORTING
RETURN_CODE =
TABLES
MONTH_NAMES = itab_month
EXCEPTIONS
MONTH_NAMES_NOT_FOUND = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE itab_month
WITH KEY MNR = date1+4(2).
itab_month-LTX will contain the value you are looking for
Good luck
Raghava -
Subtracting months from current date
how to subtract months from current date in mysql
You are in an Oracle forum, so the Oracle answer is: use add_months(sysdate,-2) to subtract two months from the current date.
Regards,
Rob. -
To show previous 12 months from current month.
I have one column Time.Month (Char column) with values in the format 2011 / 09. In my report i want to show previous 12 months from the current month. I dont have any date prompts in my report. Pls help.
Use the below query in init block to create a repository variable as PREVIOUS_12_MONTH
SELECT PRV.PER_NAME_MONTH FROM VALUEOF(OLAPTBO).W_DAY_D PRV , VALUEOF(OLAPTBO).W_DAY_D CUR WHERE convert(char(12),PRV.DAY_DT)=convert(char(12),CUR.YEAR_AGO_DT) AND convert(char(12),CUR.DAY_DT)=convert(char(12),getdate()-valueof(time_offset))
Variable PREVIOUS_MONTH: Use the below query in init block
SELECT PRV.PER_NAME_MONTH FROM VALUEOF(OLAPTBO).W_DAY_D PRV , VALUEOF(OLAPTBO).W_DAY_D CUR WHERE convert(char(12),PRV.DAY_DT)=convert(char(12),CUR.MONTH_AGO_DT) AND convert(char(12),CUR.DAY_DT)=convert(char(12),getdate()-valueof(time_offset))
Create a filter in Answers as below and use where ever you wish:
Month is between PREVIOUS_12_MONTH and PREVIOUS_MONTH
Use it in the report with current month Or previous month as per your requirements.
Pls mark if helps -
How to calulate previous fiscal year from current year and periods as input
hi all,
i have a report where i have 2 select options as year and period.
my period can be a range like( Ex: 1 to 6).
i like to know previous fiscal year from the following inputs.
Tel me a suitable conversion routine to calculate
depending on periods and fiscal year.
regards
sivaram.Hi
U need to check the lower period, if it's 1 the previous fyscal year will be the year before:
IF PERIOD = '1'.
PREV_YEAR = YEAR - 1.
ENDIF.
U can also use the fm FI_PERIOD_DETERMINE, in this case you need a date, u can get it from lower current period:
Get the first day of the period
BUDAT(4) = YEAR.
BUDAT+4(2) = PERIDO_LOW.
BUDAT+6(2) = '01'.
Now get the last day of the previous month:
BUDAT = BUDAT - 1.
Use this date to get its period by fm FI_PERIOD_DETERMINE
Max -
How to get previous tag name from a xml in java
Hai
I need to get the previous tag name from a xml in java.
I got the current tagname , i need to get the previous tagname
NodeList parentactionList = lParentRule.getElementsByTagName(
"parentactiondetails");
i use this way of getting the the current tag name, i need to get the previous tag name ie.. before "parentactiondetails"
for sample
</parentruledetails>
</Parentrule>
</SingleParentRule>
<parentactiondetails ACTION_FLAG="RulePass" PARENT_RULE_CODE="PR626"/>
<ParentCompliance>
i have xml like this i am getting the "parentactiondetails " ... now i need to get the previous tag name </SingleParentRule> in java
Can any one help me,still i am not able to get the correct value...
i used the way wat u said it is not even going inside the if condition
below is my actual xml as before i asked i need the before tag name of <parentactiondetails>
ie the closing tag of </Singleparentrule>
i have attached the xml also
pl reply me as soon as possible
<?xml version="1.0" encoding="UTF-8"?>
<GRC>
<ParentInventory>
<Vendor comment="" createdBy="root" vendorCode="1001" vendorName="Cisco">
<DeviceType createdBy="root" devTypeCode="1001" devTypeName="Router" vendorCode="1001">
<Series createdBy="root" devTypeCode="1002" seriesCode="1110" seriesName="2800" vendorCode="1001">
<Model createdBy="root" devTypeCode="1002" modelCode="1459" modelName="4506" seriesCode="1110" vendorCode="1001">
<Sub createdBy="root" devTypeCode="1002" modelCode="1459" seriesCode="1110" subCode="1695" subName="CAT4500-SUP4" vendorCode="1001">
<CodeVersion createdBy="root" devTypeCode="1002" modelCode="1459" seriesCode="1110" startCode="2207" startName="12.2(25)EWA2" subCode="1695" vendorCode="1001">
<ImageName createdBy="root" devTypeCode="1002" endCode="5508" endName="Standard" modelCode="1459" seriesCode="1110" startCode="2207" subCode="1695" vendorCode="1001"/>
</CodeVersion>
<CodeVersion createdBy="root" devTypeCode="1002" modelCode="1459" seriesCode="1110" startCode="2225" startName="12.2(5)T" subCode="1695" vendorCode="1001"/>
</Sub>
</Model>
</Series>
</DeviceType>
</Vendor>
</ParentInventory>
<Parentrule>
<parentruledetails COMMENTS="1PARENT_RULEFILT_AUDITPASS" CREATED_BY="root" DEVICE_LEVEL_FLAG="Configuration" PARENT_RULE_CODE="PR626" PARENT_RULE_TYPE="SPR_AP" RULE_NAME="1PARENT_RULEFILT_AUDITPASS">
<parentscope DEVICE_TYPE_NAME="Switch" END_CODE_VERNAME="Standard" MODEL_NAME="3750-24PS" PARENT_RULE_CODE="PR626" SERIES_NAME="3750" ST_CODE_VERNAME="12.2(25)SEE2" SUP_CPU_NAME="3750" VENDOR_NAME="Cisco"/>
<parentmultiscope COLUMN_INDEX="0" DEVICE_TYPE_NAME="Switch" END_CODE_VERNAME="Standard" MODEL_NAME="3750-24PS" MULTI_SCOPE_CODE="{1=1001~1002~ 1010~ 1131~ 1190~ 2041~E~5255}" MULTI_SCOPE_NAME="{1=Cisco~Switch~3750~3750-24PS~3750~12.2(25)SEE2~E~Standard}" OPERATOR="E" PARENT_RULE_CODE="PR626" SERIES_NAME="3750" ST_CODE_VERNAME="12.2(25)SEE2" SUP_CPU_NAME="3750" VENDOR_NAME="Cisco"/>
<SingleParentRule CHILD_TYPE="ALL" COLUMN_INDEX="0" FILT_CONDN="PA" PARENT_RULE_CODE="PR626" RULE_CODE="PR625[AND]," RULE_TYPE_FLAG="singleparentrule">
<Parentrule>
<parentruledetails COMMENTS="1CUSTRULE_PARENT_CROSSREF_FAIL" CREATED_BY="root" DEVICE_LEVEL_FLAG="Configuration" PARENT_RULE_CODE="PR625" PARENT_RULE_TYPE="PCR_CR" RULE_NAME="1CUSTRULE_PARENT_CROSSREF_FAIL">
<parentscope DEVICE_TYPE_NAME="Switch" END_CODE_VERNAME="Standard" MODEL_NAME="3750-24PS" PARENT_RULE_CODE="PR625" SERIES_NAME="3750" ST_CODE_VERNAME="12.2(25)SEE2" SUP_CPU_NAME="3750" VENDOR_NAME="Cisco"/>
<parentmultiscope COLUMN_INDEX="0" DEVICE_TYPE_NAME="Switch" END_CODE_VERNAME="Standard" MODEL_NAME="3750-24PS" MULTI_SCOPE_CODE="{1=1001~1002~ 1010~ 1131~ 1190~ 2041~E~5255}" MULTI_SCOPE_NAME="{1=Cisco~Switch~3750~3750-24PS~3750~12.2(25)SEE2~E~Standard}" OPERATOR="E" PARENT_RULE_CODE="PR625" SERIES_NAME="3750" ST_CODE_VERNAME="12.2(25)SEE2" SUP_CPU_NAME="3750" VENDOR_NAME="Cisco"/>
<ParentCommand>
<Command ChildType="Console" cmdCode="37135" cmdName="login authentication <string>"/>
</ParentCommand>
<parentcustomdetails CHILD_TYPE="Console" CMD_CODE="37135" CMD_NAME="login authentication [string]" CMD_OPTION="login authentication " COLUMN_INDEX="0" CONDN_OPER="exists" CONDN_VALUE="True" PARENT_RULE_CODE="PR625" RULE_TYPE_FLAG="Customrule"/>
<parentcustomdetails CHILD_TYPE="Console" CMD_CODE="37135" CMD_NAME="login authentication [string]" CMD_OPTION="string" COLUMN_INDEX="1" CONDN_OPER="equalsto" CONDN_VALUE="cisco" PARENT_RULE_CODE="PR625" RULE_TYPE_FLAG="Customrule"/>
<parentcustomconsole CHILD_TYPE="Console" CONSOLE_NUM="Any" PARENT_RULE_CODE="PR625"/>
<parentactiondetails ACTION_FLAG="CrossRef" PARENT_RULE_CODE="PR625"/>
<parentcrossrefdetails ACTION_FLAG="CrossRef" CHILD_TYPE="Console" CMD_CODE="37135" CMD_NAME="login authentication [string]" CMD_OPTION="login authentication " COLUMN_INDEX="0" CONDN_OPER="exists" CONDN_VALUE="True" PARENT_RULE_CODE="PR625"/>
<parentcrossrefdetails ACTION_FLAG="CrossRef" CHILD_TYPE="Console" CMD_CODE="37135" CMD_NAME="login authentication [string]" CMD_OPTION="string" COLUMN_INDEX="1" CONDN_OPER="equalsto" CONDN_VALUE="AAAAAA" PARENT_RULE_CODE="PR625"/>
<parentcrossrefconsole ACTION_FLAG="CrossRef" CHILD_TYPE="Console" CONSOLE_NUM="Any" PARENT_RULE_CODE="PR625"/>
<ParentCompliance>
<PRComp comments="Group Policy is an important and useful addition to your Active Directory deployment. Managing your internal network and ensuring compliance .Group Policies are a set of "rules" that are applied to different parts of a Windows-based network" compCode="1006" compName="INTERNAL GROUP POLICY" createdBy="root" url="http://www.INTERNAL GROUP POLICY.com"/>
<PRComp comments="This is the compliance for the department of Security agency" compCode="1012" compName="DISA" createdBy="root" url="http://iase.disa.mil/stigs/checklist/"/>
<PRComp comments="This is the compliance from the National Security Agency" compCode="1013" compName="NSA" createdBy="root" url="http://checklists.nist.gov/chklst_detail.cfm?confi"/>
<PRComp comments="he Center for Internet Security (CIS) is a not-for-profit organization that helps enterprises reduce the risk of business and e-commerce disruptions resulting from inadequate technical security controls, and provides enterprises with resources for measuring information security status and making rational security investment decisions" compCode="1020" compName="CIS" createdBy="root" url="http://www.cisecurity.org/"/>
<PRComp comments="This is a Cisco document. It outlines the key security elements identified for Network Security Baseline, along with implementation guidelines to assist in their design, integration, and deployment in production networks. " compCode="1022" compName="Cisco Secuirty Baseline" createdBy="root" url="http://www.cisco.com/en/US/docs/solutions/Enterpri"/>
<PRComp comments="This is the best practices from industry experts to help make audit recommendations in a customers environment. " compCode="1023" compName="360 GRC Best Practice" createdBy="root" url="http://www.360grc.com"/>
</ParentCompliance>
<parentriskrecommendationdetails ACTION_FLAG="CrossRef" AUDIT_RESULTS="Both_pass_fail_result" CHILD_TYPE="ALL" CMD_CODE="fdg" COMMAND_REF="dfs" DEFINITION="dfgd" DEVICE_RECOM_CATEGORY_CODE="IP - Addressing Services" DEVICE_RISK_CATEGORY_CODE="IP - Addressing Services" DISP_LEVEL="Parent and child result" PARENT_RULE_CODE="PR625" RATING1="2" RATING1_NAME="DISA" RATING2="2" RATING2_NAME="NSA" RATING3="2" RATING3_NAME="Cisco Secuirty Baseline" RATING4="2" RATING4_NAME="CIS" RATING5="2" RATING5_NAME="360 GRC Best Practice" RATING6="2" RATING6_NAME="INTERNAL GROUP POLICY" RATING_IMPACT="Low" RATING_PRIORITY="Low" RATING_URGENCY="Low" RECOMENDATION="ss" WEB_REF="sfs" WEIGHTING1="10" WEIGHTING1_NAME="DISA" WEIGHTING2="10" WEIGHTING2_NAME="NSA" WEIGHTING3="10" WEIGHTING3_NAME="Cisco Secuirty Baseline" WEIGHTING4="10" WEIGHTING4_NAME="CIS" WEIGHTING5="10" WEIGHTING5_NAME="360 GRC Best Practice" WEIGHTING6="10" WEIGHTING6_NAME="INTERNAL GROUP POLICY"/>
</parentruledetails>
</Parentrule>
</SingleParentRule>
<parentactiondetails ACTION_FLAG="RulePass" PARENT_RULE_CODE="PR626"/>
<ParentCompliance>
<PRComp comments="Group Policy is an important and useful addition to your Active Directory deployment. Managing your internal network and ensuring compliance .Group Policies are a set of "rules" that are applied to different parts of a Windows-based network" compCode="1006" compName="INTERNAL GROUP POLICY" createdBy="root" url="http://www.INTERNAL GROUP POLICY.com"/>
<PRComp comments="This is the compliance for the department of Security agency" compCode="1012" compName="DISA" createdBy="root" url="http://iase.disa.mil/stigs/checklist/"/>
<PRComp comments="This is the compliance from the National Security Agency" compCode="1013" compName="NSA" createdBy="root" url="http://checklists.nist.gov/chklst_detail.cfm?confi"/>
<PRComp comments="he Center for Internet Security (CIS) is a not-for-profit organization that helps enterprises reduce the risk of business and e-commerce disruptions resulting from inadequate technical security controls, and provides enterprises with resources for measuring information security status and making rational security investment decisions" compCode="1020" compName="CIS" createdBy="root" url="http://www.cisecurity.org/"/>
<PRComp comments="This is a Cisco document. It outlines the key security elements identified for Network Security Baseline, along with implementation guidelines to assist in their design, integration, and deployment in production networks. " compCode="1022" compName="Cisco Secuirty Baseline" createdBy="root" url="http://www.cisco.com/en/US/docs/solutions/Enterpri"/>
<PRComp comments="This is the best practices from industry experts to help make audit recommendations in a customers environment. " compCode="1023" compName="360 GRC Best Practice" createdBy="root" url="http://www.360grc.com"/>
</ParentCompliance>
<parentriskrecommendationdetails ACTION_FLAG="RulePass" AUDIT_RESULTS="Both_pass_fail_result" CHILD_TYPE="ALL" CMD_CODE="dfg" COMMAND_REF="dfgdf" DEFINITION="dfgdf" DEVICE_RECOM_CATEGORY_CODE="IP - Addressing Services" DEVICE_RISK_CATEGORY_CODE="IP - Addressing Services" DISP_LEVEL="Parent and child result" PARENT_RULE_CODE="PR626" RATING1="3" RATING1_NAME="DISA" RATING2="3" RATING2_NAME="NSA" RATING3="3" RATING3_NAME="Cisco Secuirty Baseline" RATING4="3" RATING4_NAME="CIS" RATING5="3" RATING5_NAME="360 GRC Best Practice" RATING6="3" RATING6_NAME="INTERNAL GROUP POLICY" RATING_IMPACT="Low" RATING_PRIORITY="Low" RATING_URGENCY="Low" RECOMENDATION="dfgdf" WEB_REF="dfgdf" WEIGHTING1="10" WEIGHTING1_NAME="DISA" WEIGHTING2="10" WEIGHTING2_NAME="NSA" WEIGHTING3="10" WEIGHTING3_NAME="Cisco Secuirty Baseline" WEIGHTING4="10" WEIGHTING4_NAME="CIS" WEIGHTING5="10" WEIGHTING5_NAME="360 GRC Best Practice" WEIGHTING6="10" WEIGHTING6_NAME="INTERNAL GROUP POLICY"/>
</parentruledetails>
</Parentrule>
</GRC> -
How to get sqlplus to print the current date/time
From a unix command line I can type:
prompt> date; <any_Cmd>; date
This will result in a timestamp being output before and after the command you inserted. Is there a way to make sqlplus print the current date/time after it is done executing an sql statment. This would be useful for me to know how long it took to execute and sql statement without watching it.
Something like:
SQL> select * from table; date;u cld set the following statements in sql*plus :
sql>set time on
sql>set timing on
hope this solves ur problem. -
How to get list of orders for current date.
Hi,
My requirement is to get list of orders for the date on which order was created such that I don't have to change the date in my application.
Every time I run my application it should generate orders created on that current date without manually giving current date.
This has to be done directly using BAPI and without creating a RFC.
I tried with bapi " BAPI_ALM_ORDERHEAD_GET_LIST " using parameter OPTIONS_FOR_START_DATE but there I can't enter sy-datum and hence, every time I hence to change the date.
Please tell me if there is any possible way to get fulfil above requirement.
Thanks.
Shilpi Agarwal.Hi Shilpi,
This looks simple to me.
Just create a variant in IW38 with U_your UserId as shown in the picture (Dynamic date selection for Created On set to Current Date)
The status settings obviously would be
Jogeswara Rao K -
How to get calender week (200733) from a date (20071002)
Hi All,
Could you please suggest a method or function module to get the calender week of a date.
Thanks and best regards,
Bindiyatry function DATE_GET_WEEK
Regards,
Dirk. -
How to get previous step totals from Apple Health
Is there a way (natively or via 3rd party app) to isolate step totals from previous days in Apple Health? All I can find is the weekly view, which won't let you zoom in. The daily view will not let you view anything but the current day.
I've tried a couple of apps (Runkeeper and Jawbone UP) that will read going forward, but nothing will read the historical data.Is there a way (natively or via 3rd party app) to isolate step totals from previous days in Apple Health? All I can find is the weekly view, which won't let you zoom in. The daily view will not let you view anything but the current day.
I've tried a couple of apps (Runkeeper and Jawbone UP) that will read going forward, but nothing will read the historical data. -
How to get days and months when two dates are given
Hi All,
I have a requirement where I need to return the number of months and days between given dates.
I dont need to take the year into account as the dates difference is always less than an year
I have 28-jun-2012 and 31-jan-2013 as dates.
I'm working on 10g
when I do select months_between(:a,:b) from dual and provide those dates it gives me 7.09677
I want it to give as 7 months and 9 days or what ever the exact days are.
Your inputs are much appreciatedBluShadow wrote:
874719 wrote:
Thanks a lot,BluShadow for your answer and would you mind giving it for the year as well like 0 years 7 months 3 days?Your original post said:
I dont need to take the year into account as the dates difference is always less than an yearNow you've got the idea, why not have a go yourself first, and then if you're still not getting it, post what you've tried so we can help you.Oh... go on... I'm in a good mood today...
SQL> ed
Wrote file afiedt.buf
1 with t as (select date '2012-06-28' as start_date, date '2013-01-31' as end_date from dual union all
2 select date '2012-02-29', date '2012-06-30' from dual union all
3 select date '2010-02-28', date '2012-06-30' from dual union all
4 select date '2012-02-29', date '2012-06-15' from dual
5 )
6 --
7 select start_date, end_date
8 ,months_between(end_date,start_date) as mnth_bet
9 ,floor(months_between(end_date,start_date)/12) as yr
10 ,floor(mod(months_between(end_date,start_date),12)) as mnth
11 ,case when to_number(to_char(end_date,'DD')) >= to_number(to_char(start_date,'DD')) then
12 to_number(to_char(end_date,'DD')) - to_number(to_char(start_date,'DD'))
13 else
14 (to_number(to_char(last_day(start_date),'DD'))-to_number(to_char(start_date,'DD')))+
15 (to_number(to_char(end_date,'DD')))
16 end as dys
17* from t
SQL> /
START_DATE END_DATE MNTH_BET YR MNTH DYS
28-JUN-2012 00:00:00 31-JAN-2013 00:00:00 7.09677419 0 7 3
29-FEB-2012 00:00:00 30-JUN-2012 00:00:00 4 0 4 1
28-FEB-2010 00:00:00 30-JUN-2012 00:00:00 28 2 4 2
29-FEB-2012 00:00:00 15-JUN-2012 00:00:00 3.5483871 0 3 15 -
How to get previous day of the date
Hi,
for a given date I need one day minus as a result date
my input would be any date
for example :
Input Date : 2006-03-22 ( yyyy-mm-dd)
Output should be : 2006-03-21
If my input is 1st of April 2006, output i would expect is 31st March 2006
Please suggest how to achieve this
Thanks in advance
NileshFind below the code to get previous day of the current date
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class PreviosDay
public static void main(String[] args)
DateFormat dateFormat = new SimpleDateFormat( "MM/dd/yyyy");
Calendar cl = Calendar.getInstance();
// you can use a Date object's getTime() method , which is initialiazed
// to desired date here directly ex: Date dt = new Date("10/10/2004");
// cl.setTimeInMillis(dt.getTime());
cl .setTimeInMillis(System.currentTimeMillis());
cl.add(Calendar.DAY_OF_MONTH, -1);
System.out.println("Previous date : "+dateFormat.format(
new Date(cl.getTimeInMillis() ) ) );
} -
How to get payment document number from paid column in monthly invoice
Dear experts
I use SBO japan version and i need to know how to get payment document number from paid column in monthly invoice ?
in table MIN1, only contain invoice and credit note document number, there is no payment document number
thank you for your help
Best Regards
JeiMingDear Gordon
Yeah, you are right, i can use field MIentry in RCT2
thank you
Best regards
jeiming -
How to get previous day data if i dont have current day data.
Hello Gurus,
I have a stock levels data in ODS. when there is no movements, we are not getting any stocks into ODS. So we have to get previous day data as it is for current day data into another ODS.
Could you please help me in this regard.
Thanks in advance,
RamaRama -
0CALDAY can't help us in this scenario .
Step 1 :
To do this - You have to add one ZDATE (InfoObject ) to 1st ODS. ZDATE is updated by itself from current date of system when ever you are loading data to 1st ODS.
Step 2:
You have to do full update to 2nd ods.At the selection screen of InfoPackage (from 1st ODS to 2nd ODS ) you have to write following code for ZDATE.
pseudo Code:
1) Select fields "Rec_INSERT","Time stamp","Request Status" and "Request ID" where ICUBE = ODS1 from table "RSMONICDP"
2) Populate above selected fields data in INTERNAL TABLE
3) Sort INTERNAL TABLE by Time stamp .
4)
If (Record Count = ' 0 ' for current date in internal table )
update records from ODS1 to ODS2 where ZDATE = "yesterday date"
else
update records from ODS1 to ODS2 where ZDATE= "today date"
endif.
Make sure this is full update not delta update from ODS1 to ODS2
I am sorry, I m not good in Coding but I am sure if u use this logic,You can meet your requirement.
I hope you can understand my logic. Let me know if you have any questions,
Anesh B .
Maybe you are looking for
-
I am building an application on a RT PXI system, and for one of the functions I would like the user to be able to use the browser button of the File Path Control to choose a directory on the PXI. However the browser button seems to only want open a f
-
Unfortunately, I don't know when I can get the computer fixed, but I want to be able to listen to certain music without having to stream it from the app (long plane rides in the next week). Is there any way to download them directly to the iPod witho
-
Chart legend not displaying in ERP Menu
Sir, I am create the Chart in graphics builder 6i and call the chart from form builder 6i it runnnig fine chart and Legend are displayed. then move the chart and form to Database(apps) then run the form in ERP menu Chart Only display but LEGEND not d
-
Can anyone tell me why not sign-up appears asking for permission?
-
Hi Gurus, Cna iget the bapis used for the HR module in abap-hr programming .... Thanks & Regards Suman