F4 option for Month and Year
hi
In Selection Screen i have Month and Year as input.....
How to give "F4" Option for both Month and Year?
Regards
Smitha
hi,
this will help u get the month in f4 help .
similarly u can fill up the itab for year and get that f4 help too i guess.
TABLES: T247 ,
DFIES.
PARAMETERS:P_MONTH LIKE T247-MNR.
DATA: BEGIN OF ITAB OCCURS 0,
MNR LIKE T247-MNR,
KTX LIKE T247-KTX,
END OF ITAB .
DATA : LT_FIELDS TYPE TABLE OF DFIES,
LWA_FIELD TYPE DFIES.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MONTH.
SELECT MNR
KTX
FROM T247 INTO CORRESPONDING FIELDS OF TABLE ITAB
WHERE SPRAS = 'EN'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'P_MONTH'
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = 'MNR'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = ITAB
FIELD_TAB = LT_FIELDS.
Similar Messages
-
Data element for Month and Year
Hello All,
Is there any data element which will have only Month and Year.
I have to introduce this field in a table. It should have convesion exits also.
Ex: If i give 092009, it sould come like 09.2009
Thank you.
Best Regards,
Sasidhar Reddy Matli.Kindly Try this code for Month and year as input and having standard F4 help..
INCLUDE RMCS0F0M.
TYPES : BEGIN OF TY_SELECT,
MONTH TYPE FTI_MONTH_YEAR,
END OF TY_SELECT.
DATA : WA_SELECT TYPE TY_SELECT.
SELECTION-SCREEN : BEGIN OF BLOCK SANDEEP WITH FRAME.
SELECT-OPTIONS : S_MONTH FOR WA_SELECT-MONTH OBLIGATORY NO INTERVALS NO-EXTENSION.
SELECTION-SCREEN : END OF BLOCK SANDEEP.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MONTH-LOW.
PERFORM MONAT_F4.
SANDEEP JAIN -
SELECTION SCREEN FIELD FOR MONTH AND YEAR
Hi All.
We are developing a 'Monthly Sales Tax(payable) Report.
they want the report based on the date(in the selection screen it will come only month and year only.).Depends on that month and year for that select-options ,it will pick up the record.
like if, jan 2005 to march 2006.
then it will pick up from 01.01 .20005 to 31.03.2006 records.
Can any body help me to resolve this.
Thanks in advance,
Regards,
VenkatHi Venkat,
Copy the following code.
DATA : ws_billfrom TYPE dats,
ws_billto TYPE dats.
DATA : mon TYPE fcltx.
SELECT-OPTIONS: s_month FOR mon
MATCHCODE OBJECT zsdhtch_sh_mnth
OBLIGATORY. "o get values for F4
PARAMETER : p_year LIKE bkpf-gjahr
MATCHCODE OBJECT zsdhtch_sh_year
OBLIGATORY.
RANGES : s_date FOR sy-datum.
DATA : ws_fcmnr TYPE fcmnr.
START-OF-SELECTION.
SELECT SINGLE mnr
INTO ws_fcmnr
FROM t247
WHERE ltx = s_month-low.
CONCATENATE p_year ws_fcmnr '01' INTO ws_billfrom.
CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
EXPORTING
iv_date = ws_billfrom
IMPORTING
ev_month_begin_date = ws_billfrom
ev_month_end_date = ws_billto.
s_date-low = ws_billfrom.
s_date-high = ws_billto.
s_date-sign = 'I'.
s_date-option = 'BT'.
IF NOT s_month-high IS INITIAL.
SELECT SINGLE mnr
INTO ws_fcmnr
FROM t247
WHERE ltx = s_month-high.
CONCATENATE p_year ws_fcmnr '01' INTO ws_billfrom.
CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
EXPORTING
day_in = ws_billfrom
IMPORTING
last_day_of_month = ws_billto.
s_date-high = ws_billto.
ENDIF.
APPEND s_date.
WRITE s_date.
You can write your select statement here.
select * from dbtable where date in s_date.
If 'HR_JP_MONTH_BEGIN_END_DATE' is nto there in your server, you can use 'RP_LAST_DAY_OF_MONTHS' in both cases.
Regards,
Susmitha.
Dont forget to reward points for useful answers -
How to set filter criteria for month and year using in timestamp input field?
Hi,
I am using jdev 11.1.2.3,
I have one problem with Report generation,,,,,,I have one report table which is in the form of VO(query based) and i want to search this table as month and year basis
but in this table(query) that field having timestamp based value.. how to search with month name and year only.. Here i am using totally query base VO's for generating
reports........ Can any one guide me.
Thank You.You can use a inputdate, which allows you to selecte a moth, year and a day. Once the selection is made you convert it to only allow moth and date like
<af:inputDate label="Label 1" id="id1" autoSubmit="true" value="#{bindings.myMonthYear1.inputValue}">
<f:convertDateTime pattern="MM/yyyy"/>
</af:inputDate>
<af:outputText value="Selected #{bindings.myMonthYear1.inputValue}" id="ot1" partialTriggers="id1"/>
then you have a string holding month and year only. This value you split into two variables you or pass it as a whole parameter to the query and split it there.
Another way is to add two static lovs one for month and one for year and use them to get to the filter values.
Timo -
F4 help for month and Year field in ztable please
I have created a ztable.
The first field in my ztable is a primary key field and it holds MM/YYYY(eg. 08/2011).
How ever my requirement is when ever we want to see the output, uer wants F4 help on that fields and when he selects the range , the ztable should display the values in that range.
For eg.
1). if user selects 01/2011 to 08/2011 using F4 Help,
2). then the ztables should display all the records in that range.
Thanks in advance for your help.
Best regards,Sam
Moderator message : Spec dumping / Outsourcing is not allowed. Thread locked.
Edited by: Vinod Kumar on Aug 8, 2011 11:17 AMHi Sam,
Create an F4 help using this FM
l_t_date" has month and date
l_f_programm = sy-repid.
l_f_dynnr = sy-dynnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'Date'"Field name of coloum of value tab
dynpprog = l_f_programm
dynpnr = l_f_dynnr
dynprofield = <>"Screen field name'
value_org = 'S'
callback_program = l_f_programm
callback_form = ''
TABLES
value_tab = l_t_date"Value table for date and month
* FIELD_TAB = L_T_RETURN
return_tab = l_t_return_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
READ TABLE l_t_return_tab INDEX 1.
IF sy-subrc = 0 .
<fields> = l_t_return_tab-fieldval.
ENDIF.
Regards,
Amit
then filter the ztable accordingly -
Outlook 2013 Calendar lacks color options for months and "Today"?
Am I missing settings in Outlook 2013 that would allow me to color months different/alternating colors and brightly highlight "Today", specifically in the Month view for the calendar? I see I can change the color of the overall calendar,
but that does nothing to address my problems.
Background: The month view for the calendar in Outlook 2010 was wonderfully glance-able. The current month had one color background, and the bordering months had a different color, allowing you to easily see the months. Also, "Today" was brightly
highlighted in light yellow, making it easy to discern which day on the calendar was the current day. As far as I can see in Outlook 2013, these are both now missing. Months are all the same color, making it hard to scroll through and keep any
sense of what's being presented visually. Today is denoted by a tiny blue bar that blends into all the blue bars of uncategorized appointments, again making it much harder to find than it should be. If there is no option to change the highlighting,
Outlook has taken a huge step back in usability in my eyes.I found a good way of highlighting today's appointments in weekly and monthly view using conditional formatting:
. go to Edit - Automatic Formatting
. click Add
. in the Name field enter "Today"
. in the Label field choose a color
. click on Condition...
. on Appointments and Meetings tab where it says Time:
. choose "starts"
. choose "today"
. click OK
. click OK
While not ideal, that sounds like a decent hack to highlight today, provided I have an appointment.
However, in trying to put into practice, it's picking up all of my reoccurring appointments that are set to reoccur with no end by date, and it's not picking up the reoccurring appointments that have a defined end by date that it should be getting highlighted
(as they occur today).
Even using the advanced filter to require the "Start" be "today" and the "End" be "today" it still highlights the same wrong appointments. And unless I'm misunderstanding the logic, the "Recurrence Range End" field flag appears to be broken, as I _still_
get the same behavior by setting the condition to "exists" (apparently a setting of "No End Date" puts some sort of data into the field). -
FM for month and year to Fiscal year period
Hello ABAP Experts,
Please suggest a FM to convert month+year to fiscal year period.
Suggestions appreciated.
Thanks in advance,
BWeruse the function moduleGM_GET_FISCAL_YEAR
pass date and fiscal year variant as 24..
see all the values of the fiscal year variant in the table T009
Check with fm FI_PERIOD_DETERMINE
Thanks
Seshu -
Calculate different month and year
Dear experts,
Hereby, i have 2 questions:
1)Are any data type for month and year format (YYYYMM)? Generally, we have the data type for date which is 'D', but it is in YYYYMMDD format. Currently, i define the data type as length 6 type c.
2) Does SAP function module have functions to calculate the different month? For example: 11.2009 - 01.2010 = 2
Because currently, i define the type as length 6 type c, thus, the calculation for this difference are quite tedious. Or does anyone have any sample for this type of function?
Thanks in advance.Hi, Starry
Please Search in SCN or Google, Date Related Question are not allowed. Check the bellow Thread for more info.
How to post code in SCN, and some things NOT to do...
Regards,
Fasial -
How to get currect date by using month and year
hai,
By using month like 'Jul' and year like 2007 i want to get full date like 01/06/2007(format).Please give me query for this?My fields for month and year are respectively vr_mnth(varchar) and in_year(number)i used to_date function but it accepts only one string .if i give like this
to_date(vr_mnth,in_year,'dd/mm/yy') it will gives me syntax error.
If i give like this vr_mtnh='Jan'
to_date(vr_mtnh,'Mon') it will give output
01/01/2008 it shows me current year
if i choose from table wich is strored with month-'Jul' and year=2006 it shows me
01/07/2008 only .It doesn't shows me that 2006 year
If i give in_year in to_date it gives me that currect year.
Ex:to_date(in_year,'YY')..............>01/01/2006
Individually to_date function works fine but i want to club both to get accurate date format of specified month and year.Is there any function for that in sql to get 01/07/2006? -
Returning 'Day' value based on month and year parameters
Hi,
Is there a code that would return an end of the month Day value based on month and year parameters?
For example if my parameters yield 9 or September for a month value and 08 or 2008 for the year value, can a formula generate a value of 30 (the last day of the given month in the specific year)?
This way the formula would pick up the different last day of the month in February for the leap years.
Thank you.
Vic1. Open the formula workshop.
2. From the Repository Custom Functions, under Crystal and then Date, RIGHT click on cdlastdayofmonth, click on ADD TO REPORT.
3. Create a new formula, in the formula workshop, under FUNCTIONS, go down the list till you see "CUSTOM FUNCTIONS", expand that till you see cdlastdayofmonth.
4. In your formula, type cdlastdayofmonth(currentdate)
5. Save and close and display the formula in your report, you should see 11/30/2008.
If you want just the day then modify the formula to:
totext(day(cdlastdayofmonth(currentdate)),0,'','');
since you have parameters for month and year, do this:
totext(day(cdlastdayofmonth(date({?year},{?month},01))),0,'','');
to give you the last day of the month. -
How to save and month and year wise values
Hi friends,
in my ztable i have to enter values manually for month and year wise..
so i have to create parameter for month and year how to create it.
in my parameter month and year fields..
once he given month and year then he should enter values for fields..
i have doubt how to give parameter for this...table..
example: month: 1
year : 2007
after that user enter values for following fields.
kunnr
name
core values
noncorevalues
above fields user will enter values month wise ..
once he enter the values for january it should save ...
next he enter values for february and it will save..
when ever he want to see the january month data how can he see..
is there any logic for the above problem...Hai venkat,
I am not totally clear with your question some how i understood. I give my opinion may be it ll help ful to you.
In your ztable you want to enter the values for the fields kunnr, name, core values ,noncorevalues as per month.
As i say in your ztable add another field as month with other 4 fields. Provide the table maintenance for your table or else in se11 -> table display ->utilities -> table contents -> create entries is one way.
If you proivided maintenance for your table go to SM30. where you can manually enter values .
<b>reward if useful</b>
Regards,
sunil kairam. -
Needing a multi-month and year-in-view option for ical!
Hello all!
I could really use a multi-month and year-in-view format in ical... I've seen some dated posts - is anyone aware of any new developments/options for this?
thanks and peace-
DWI turn off all calendars but the birthdays. Select [Print]. Choose all the months you want to see. Deselect all calendars but birthdays. Click [Continue]. On the next menu, go to "Layout", select how many pages to print on the paper. I usually print a border around each calendar then you're good to go!
By only printing the birthdays calenar, you won't get too many appointments to get in the way of brain storming and future planning, yet the computer still thinks its printing a useful calendar. -
How to have more months and years appear for selection in the archives for blog posts?
Hello,
How to have more months and years appear for selection in the archives for blog posts? It just shows past 3 months in the year 2014, but we have many blog posts in years 2013, 2012 and 2011 and further back. I am using the OOB SharePoint blog
feature.
PaulHi,
Thanks for the reply; it doesn't add anything as RSA6 was one of the options I listed and this was my fall back option if there was no other special treatment for the COPA datasources.
I have found out why this, and other fields, are not available in KEB0. The program uses a Function called KERA_COPA_METADATA_INTERFACE within which there is a section that selects the COPA fields:
***** 1. RULES (choice/class)
* set rules for fixed fields
PERFORM COPA_SET_RULES_FIXED_FIELDS USING I_ACCTCOST
CHANGING E_T_RULES[].
When you look at this code section there is a hard coded list of fields to exclude:
MRULE 'MANDT ' NEVER FORGET_IT NEVER FORGET_IT.
MRULE 'PAOBJNR ' NEVER FORGET_IT NEVER FORGET_IT.
MRULE 'PASUBNR ' NEVER FORGET_IT NEVER FORGET_IT.
MRULE 'PAPAOBJNR ' NEVER FORGET_IT NEVER FORGET_IT.
MRULE 'PAPASUBNR ' NEVER FORGET_IT NEVER FORGET_IT.
MRULE 'HRKFT ' NEVER FORGET_IT NEVER FORGET_IT.
MRULE 'HZDAT ' NEVER FORGET_IT NEVER FORGET_IT.
MRULE 'USNAM ' NEVER FORGET_IT NEVER FORGET_IT.
MRULE 'RKESTATU ' NEVER FORGET_IT NEVER FORGET_IT.
MRULE 'TIMESTMP ' NEVER FORGET_IT NEVER FORGET_IT.
MRULE 'PERDE ' NEVER FORGET_IT NEVER FORGET_IT.
MRULE 'PERIO ' OBLIGATORY CHAR_CE3 OBLIGATORY CHAR_CE3.
MRULE 'COPA_AWTYP' NEVER FORGET_IT NEVER FORGET_IT.
MRULE 'COPA_AWORG' NEVER FORGET_IT NEVER FORGET_IT.
As this is a standard delivered SAP function I do not recommend that you change this code as you will invalid your SAP support and upgrade paths.
Thanks
Neil -
I am looking to upgrade to the entire CC suite from the Lightroom/Photoshop package. The packages page says the complete suite is available to existing customers for 29.99 monthly. But when I try to upgrade I only get one option for 599.99 yearly. Can I get clarification on the $29.99 offer and who it is available for. Thank you
Hi there
The 29.99 introductory offer is for existing CS customers ie customers with a CS3-CS6 product (suite or individual product).
Hope this clarifies matters.
Thanks
Bev -
Sales report for current month and year a go month
i could you please guide me builting report for current monthwise for current month and year a ago month
report parameter month_year='06-2010'
tables = sales and below are the table fields
customer_id
invoice_dt
invoice_am
thanks
nhmOkay, Still you did not mention how you will pass value in report while generating.
Anyway the query with UNION ALL will work. For Example.
I am assuming that the parameter for date/month you will pass in range like 01-JUN-2010 to 30-JUN-2010
SELECT customer_id, SUM(curr_value) curr_value, SUM(past_value) past_value
FROM
SELECT customer_id, NVL(SUM(invoice_amount),0) curr_value, 0 past_value
FROM sales
WHERE invoice_dt BETWEEN :P_FROM_DATE AND :P_TO_DATE -- here P_FROM_DATE and P_TO_DATE will be the date range for current year as i showed above.
AND -- Any Condition goes here...
GROUP BY customer_id
UNION ALL
SELECT customer_id, 0, NVL(SUM(invoice_amount),0)
FROM sales
WHERE invoice_dt BETWEEN ADD_MONTHS(:P_FROM_DATE,-12) AND ADD_MONTHS(:P_TO_DATE,-12) -- This add_months function for the previous year same month.
AND -- Any condition goes here...
GROUP BY customer_id
GROUP BY customer_idNow using the above query you can design the tabular report as you showed the format.
-Ammad
Edited by: Ammad Ahmed on Jul 3, 2010 7:55 PM
added GROUP BY
Maybe you are looking for
-
HOw to write/Develop this Start & Field Routine
Hi Experts, As i am new(Learner) to BW Please advise me on how can i achieve this and update me with Releavent Start Routine and Field Routine....please My Requirment is Employee is Compounded on Location. On Weekly or Monthly basis (dependending on
-
Please provide code for this logic
Hi, table id code 145623 xyz001 178956 sbh002 165895 sbi003 As per this logic,for every new entity of id a new autogenerated code will be generated. This (xyz or sbh or sbi) code should be fetched using
-
Hi, I've been following a strange issue between Macs and Windows Server based DHCP for some time. Mac's got their IP address via DHCP, just like Windows machines. The compter name is set up in Sharing in System Preferences. Everything seems to be no
-
MacBook Pro is slow, EtreCheck Results
Please Help, Below are my EtreCheck results. My computer has been slow for a long time now (over a year) and only getting worse. I've had it for 4.5 years. Thanks for the help. EtreCheck version: 1.9.15 (52) Report generated September 24, 2014 1:00:1
-
Problems setting up video chat
I have an AIM account and use it with iChat and my friend has a .mac account that she uses with iChat. When we tried to set up a video conversation, it sends the invite and one of us accepts it starts to set up the video conversation. Then it stops a