Get Months for the given date ranges on the Selection Screen
Hello All,
If I give Begin Date (Begda) and End Date (Endda) on the Selection Screen, I need to get all the months given in the selection screen ranges.
Could any one please suggest me how to proceed further on this.
Thanks in Advance
Regards
Yathish
HI,
Check this FM
HR_99S_INTERVAL_BETWEEN_DATES ---> this can help you it will return the month in this table MONTH_TAB
HR_99S_MONTHS_BETWEEN_DATES
Similar Messages
-
Find 3rd friday of the month for a given date
how to find out 3rd friday of the month for a given date? I can always pass the first day of the month as input
eg, input date is 01-JAN-09. need to get the 3rd friday 16-JAN-09 (Jan has 5 fridays 02, 09, 16,23,30)
input date : 01-feb-09, need to get 20-feb-09
Edited by: user520824 on Apr 1, 2009 12:30 PMNLS independent solution:
SELECT DT,
TO_CHAR(DT,'FMDay') day,
CASE
WHEN TRUNC(TRUNC(DT,'MM') + 7,'IW') - 3 < TRUNC(DT,'MM') THEN TRUNC(TRUNC(DT,'MM') + 7,'IW') + 18
ELSE TRUNC(TRUNC(DT,'MM') + 7,'IW') + 11
END THIRD_FRIDAY_OF_THE_MONTH
FROM (
SELECT TO_DATE(LEVEL || '/2009','MM/YYYY') DT
FROM DUAL
CONNECT BY LEVEL < 13
DT DAY THIRD_FRI
01-JAN-09 Thursday 16-JAN-09
01-FEB-09 Sunday 20-FEB-09
01-MAR-09 Sunday 20-MAR-09
01-APR-09 Wednesday 17-APR-09
01-MAY-09 Friday 15-MAY-09
01-JUN-09 Monday 19-JUN-09
01-JUL-09 Wednesday 17-JUL-09
01-AUG-09 Saturday 21-AUG-09
01-SEP-09 Tuesday 18-SEP-09
01-OCT-09 Thursday 16-OCT-09
01-NOV-09 Sunday 20-NOV-09
DT DAY THIRD_FRI
01-DEC-09 Tuesday 18-DEC-09
12 rows selected.
SQL> SY. -
Org unit is not getting defaulted for the selected position in infotype0001
Org unit is not getting defaulted for the selected position in infotype 0001 during the hiring action.
In OM Org. units and positions have been created.
The Org. unit to Position relationship is also created.
But inspite of this, In infotype 0001, the after selecting a position, the Org unit is still getting defaulted to "00000000" instead of the Org. unit Id to which the position belongs. (Please note: At the time of selecting the position, I do structure search and the position is shown under the correct Or. unit)
Have I missed any step?Have u run the RHINTE programmes properly ?
are u able to save the record?
As some times it may be display probolem, if u r able to save the record then check the relationship in pp10/po13.
and U have not answered what Mr. Valeri is asking about your Implementation/support because these type we come accress if data is not uploaded properly.
Regards
vinmax -
Status profile for the selection screen ?
Dear Shymal,
The link of thread which you sent have this line status profile for the selection screen for QA33 and QA32 . I don't users ti get those lots which are having status LTCA.
Now how can i do this? Can you explain me?
Regards,
Kaushal RaiDear Kaushal,
It is written in that reply status profile, is just a slip of mind/Fingers only. We can say a typographical error. I hearty apologies for the same.
Now a accept my regret and pls find the rectification herewith.
That is "Selection Profile", to create rather I can say configure it,
- Run trx BS42, create new profile, Name it Logically.
- Double click on the "_Selection Conditions_",system will lead you to the screen named Change View "Selection Conditions": Over View.
- Here Enter the LTCA, in the Fourth Column "STATUS".
- Click on the check box under Sixth column 'not'.
The settings should be as.....
1st Column,,,Link :- No Links (Blank0
2nd Column,,,Usr:- Don't check this box.
3rd Column,,,St.Prof.:- Blank
4th Column,,,Status:- LTCA.
5th Column,,,Status:- Lot canceled
6th Column,,,not:- Check this box.
7th Column,,,Status:- It will be 'Active' by default.
Now SAVE.....
Now in QA32, pick the section profile you just created.
Let me know if it don't work.
Regards,
Shyamal -
Name of users of a particular Tcode for a given date range
Hi experts,
I am making an alv where inputs will be
1> T_code(as parameter)
2> Date Range(as Select options)
I have to display the following fields:::
1> User name
2> Frequency of use the Tcode for the given Date range.
Please give me the tables where I can get the relation of those fields.
N.B. I know the transaction AL08 and SM04.But it won't solve my purpose.
Thanx in advance,
Sourav>
SOURAV PAUL wrote:
> Hi experts,
> I am making an alv where inputs will be
> 1> T_code(as parameter)
> 2> Date Range(as Select options)
by creating the report As per your this requirement you need not to create any Bulk on your SAP.Just use STAD/STAT transaction they are availabe for this purpose.
and more you may track by security log audit by SM20 get these details.
i'm worried about tables which sre storing these details. -
Price change report for a given date range in inforecords
hi,
Can any body suggest how we can get price changes in inforecords for given date range. is there any standard sap tcode or fuction module.Hi,
If you are referring to the changes in the condition record (for eg. for PR00), then you may go through the foll path:
Execute VK13 for any condition type - once inside the detail screen, from the menu path, choose Environment -> Changes -> change report. This will take you to a new selection screen where you can define the period you want to see the change record as well as the condition type for which you want to track the changes. Beware, this is a complex report for SAP and it will take definitely longer time to complete. So, it is better to specify short time periods and specific condition types and execute this in background.
Hope, this helps!
S. Siva -
F4 Help for the selection screen field
Hi Gurus,
I have to display F4 help for a selection screen field. i am using following code:
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CODE'
dynpprog = lw_repid
dynpnr = sy-dynnr
VALUE_ORG = 'S'
TABLES
value_tab = gi_text
field_tab = li_fields_tab
return_tab = pi_return_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
My internal table gi_emp has two fields CODE & TEXT. When i select 1 particular value, it returns the CODE value in the pi_return_tab table.
But my requirement is i have to capture the corresponding TEXT value for the Returned CODE. Ex: following is the F4 help being displayed: -
001 test
001 test1
but is i select code 001(First Value), i also need to capture it's corresponding Text value. In return table pi_return_tab i have only Code value.
Please help me out.
Note: Based on return code i can't search into the internal table gi_code, because as shown in the example, code has multiple text.Sachin,
I think this is what you need. The following code will return the key and the text (OR any other columns), if both columns are in the selection screen the selected values (both columns) will also be passed to the corresponding parameters. If you only need the text to be in the return table and not passed to the selection screen then set the parameter for text with NO-DISPLAY option.
REPORT zktest01 .
DATA :
BEGIN OF value_tab OCCURS 0,
field LIKE e070-trkorr,
text LIKE e07t-as4text,
END OF value_tab.
DATA: t_fldtab LIKE dfies OCCURS 0 WITH HEADER LINE,
t_rettab LIKE ddshretval OCCURS 0 WITH HEADER LINE,
t_dynmap LIKE dselc OCCURS 0 WITH HEADER LINE.
PARAMETERS : p_field LIKE value_tab-field,
p_text LIKE value_tab-text. "NO-DISPLAY.
INITIALIZATION.
t_fldtab-tabname = 'VALUE_TAB'.
t_fldtab-fieldname = 'FIELD'.
t_fldtab-langu = 'E'.
t_fldtab-position = 1.
t_fldtab-offset = 0.
t_fldtab-fieldtext = 'Key'.
t_fldtab-reptext = 'Key'.
t_fldtab-leng = 20.
t_fldtab-intlen = 20.
t_fldtab-outputlen = 20.
t_fldtab-datatype = 'CHAR'.
t_fldtab-inttype = 'C'.
t_fldtab-headlen = 20.
t_fldtab-keyflag = 'X'.
t_fldtab-lowercase = ' '.
APPEND t_fldtab.
t_fldtab-tabname = 'VALUE_TAB'.
t_fldtab-fieldname = 'TEXT'.
t_fldtab-position = 2.
t_fldtab-offset = 20.
t_fldtab-fieldtext = 'Text'.
t_fldtab-reptext = 'Text'.
t_fldtab-leng = 60.
t_fldtab-intlen = 60.
t_fldtab-outputlen = 60.
t_fldtab-headlen = 60.
t_fldtab-keyflag = ' '.
t_fldtab-lowercase = ' '.
APPEND t_fldtab.
value_tab-field = '101'.
value_tab-text = 'dddd'.
APPEND value_tab.
value_tab-field = '202'.
value_tab-text = 'aaaa'.
APPEND value_tab.
t_dynmap-fldname = 'FIELD'.
t_dynmap-dyfldname = 'P_FIELD'.
APPEND t_dynmap.
t_dynmap-fldname = 'TEXT'.
t_dynmap-dyfldname = 'P_TEXT'.
APPEND t_dynmap.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_field.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'FIELD'
dynpprog = 'ZKTEST01'
dynpnr = '1000'
dynprofield = 'P_FIELD'
value_org = 'S'
TABLES
field_tab = t_fldtab
value_tab = value_tab
return_tab = t_rettab
dynpfld_mapping = t_dynmap
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc EQ 0.
ENDIF.
START-OF-SELECTION.
Jeffrey Satriadi -
Is there a way to use 'GET PERNR' without the selection screens?
I would like to use the GET PERNR event in a batch program without using the default selection screens. I would like to be able to use my own selection screen and parameters, but only get them along with the default selection options for payroll period. I've tried removing the screen number from the attributes screen, but still get these options. Is this possible?
hi Kiran,
report Category is a Pushbutton on the Attributes popup, it only appears if you use PNP logical DB.
this is from SAPHelp: "Report Category
Category used for HR reports that use the PNP logical database. It controls the type and number of fields that appear on the selection screen of an evaluation report."
hope this helps
ec -
Drop down box for the selection screen field of the classical report
Hi all.
i want to have the drop down list to choose from, for the region(table:zbwcntry-field:zregion1) on the selection screen.
what is to be added to the code for this requirement.Also,please note that this is the classical report.
thanks for this answered.hi,
data : gv_name TYPE vrm_id, " used for vrm id
gv_repid TYPE sy-repid, " used to hold program name
work area to provide drop down list
DATA : gs_value TYPE vrm_value,
Internal table to provide drop down list
DATA : gt_values TYPE vrm_values,
PARAMETER : p_run(12) TYPE c AS LISTBOX VISIBLE LENGTH 12
DEFAULT 'DEFAULT' OBLIGATORY,
CONSTANTS : gc_run(5) TYPE c VALUE 'P_RUN', "constant for run mode
gv_name = gc_run.
gs_value-key = gc_v1.
gs_value-text = text-010.
APPEND gs_value TO gt_values.
gs_value-key = gc_v2.
gs_value-text = text-011.
APPEND gs_value TO gt_values.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = gv_name
values = gt_values
EXCEPTIONS
id_illegal_name = 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.
Hope this is helpful.
Rgds.,
subash -
How to get XLR to show BPs with no transaction data for a given date range
Hi -
I am building an XLR report that does a comparison of net sales data across two periods for a given sales employee's BPs.
The report has the row expansion:
FACT BPA(*) SLP(SlpName = "ASalesPersonNameHere") ARDT(Code = "ARCreditMemo", "Invoice") Group by BPA.CardName
and column expansions:
FIG(SO_TaxDate = @StartDate:@EndDate)
and
FIG(SO_TaxDate = @StartDate2:@EndDate2)
where @StartDate, @EndDate, @StartDate2, @EndDate2 are parameters that define the two ranges of dates.
The column formulas are, from left to right:
=ixDimGet("BPA", "CardName")
=ixGet("SO_DocTotal") <-- filtered by column expansion for first date range
=ixGet("SO_DocTotal") <-- filtered by column expansion for second date range
The report works fine except for one problem, I would like it to include BPs for which no transaction occurred in either date range as well.
Any help is greatly appreciated!
Thanks,
Lang RileyReally appreciate your feedback! Those are good suggestions. I should have mentioned that I had already tried both those suggestions.
Removing FACT on BPA in this case ends up returning all the BPs and not respecting the SLP(SlpName = "aName") part of the query.
Using **, i.e., * or #NULL, makes no change in the resulting data in this case. I had thought that ** would be the solution, but it didn't change the outcome. I still have BPs for which when their sales employee is used as the filter and they have no transactions for either date range, and yet they still do not appear.
I should further mention that the IXL query, as it now stands, does return BPs for which one of the periods has no data, just not both, and I have verified that applicable BPs with no transaction data for both periods do exist in my data set. It seems that perhaps the IXL query needs to be restructured? Please keep the suggestions coming including how this query might be restructured if necessary. -
How to Search BPM Processes for a Given Date Range through a VC Report
Hi All,
We have a VC component build to view the BPM process information. Here we are supposed to provide a Date range option for searching the processes. But the Range search is not working.
I tried in below ways.
1. On Action Submit, I set the Occurance_D value as "=DSTR(@DATE_FROM,"M/D/YY")&" - "&DSTR(DADD(@DATE_TO,1,"D"),"M/D/YY")" it is working only if there are processes existing either on DATE_FROM or on DATE_TO, otherwise its not working.
Like, I have 5 processes triggered on Sep-5-2011, then if i give the Date Range as 9/5/11 - 9/11/11 or 9/1/11 - 9/5/11 it is working. But if I give 9/1/11 - 9/11/11 it is not working.
I tried this way as well.
=DSTR(@DATE_FROM,"M/D/YY")&" : "&DSTR(DADD(@DATE_TO,1,"D"),"M/D/YY") . Even this is not working.
Can some one please help.
Regards,
SrinivaSDear SrinivaS,
The main things you need to consider are:
- store your date value from the UI in a store
- the store gets used to submit a filter string in format (MM/DD/YY) to
BI_START_TIME_D.
If you follow http://help.sap.com/saphelp_nw72/helpdata/en/81/541300d147
41b39057c8ab3be61f7a/frameset.htm
you find that the process data source can be filtered in format "9/9/11
- 9/12/11" for field BI_START_TIME_D and BI_END_TIME_D.
The trick is now at submission time to concatenate the strings
accordingly and submit to BI_START_TIME_D. Use the following dynamic
expression
=DSTR(store@START_DATE_FROM,"MM/DD/YY")&" - "
&DSTR(store@START_DATE_TO,"MM/DD/YY")
to format the string during submission. I was able to verify this on my
machine. I hope that also your locale settings work with this
implementation.
Find attached a link to a small sample application [(test_date.zip) |please find attached a small sample application (test_date.zip) which]which shows you the proper usage of a date picker in conjunction with the
process data source. Please import the zip file into VC and deploy it.
Best regards,
Ralf. -
Last Record Values for a given Date Range
Hi, I have a unique requirement to process/report only the values of the last record found in a date range for a given set of characteristics. The order would be by FISCPER.
For example: I have some data with 3 characteristics.
STORE001 MATN001 2004001 100 PCS
STORE001 MATN001 2004005 75 PCS
STORE001 MATN001 2004006 80 PCS
STORE002 MATN002 2003008 10 PCS
STORE002 MATN002 2004001 15 PCS
STORE002 MATN002 2004004 40 PCS
A selected date range of 2003008 to 2004001 would result in the following records being processed.
STORE001 MATN001 2004001 100 PCS
STORE002 MATN002 2004001 15 PCS
A selected date range of 2004002 to 2004006 would result in the following records being processed.
STORE001 MATN001 2004006 80 PCS
STORE002 MATN002 2004004 40 PCS
How can I accomplish this at runtime? Any ideas?Nope, it's not an inventory scenario. It could be say the last status of a gas meter within a selected date range.
Any other ideas?
I've considered using VKF, but haven't figured out how this would work yet. If I could modify the selected query data prior to query processing I might be able to number the records and then filter on that..... Anyway I'm open to any suggestions or leads!
I won't forget the points for anyone with a solution!
Thanks! -
Accounts without opportunities for a given date range
Greetings report gurus,
I am trying to develop a report that shows distinct account names that do not have any opportunities for a given period of interest. For example, I have one report that queries opportunities that closed during a given period of interest for a specific class of accounts. I would also like to be able to report on accounts associated with that specific class that did not have any opportunities on the board for a given time frame.
Many thanks for your ideas,
DanDan,
You'd need to look at negative reporting for this, you can find it in the Knowledge Base. You need to write 1 report with the Accounts within your range minus Accounts with optys within your range.
cheers
Alex -
Fetching Employee List For A WBS For A Given Date Range
Hello Friends,
I need to fetch list of employees assigned for the WBS for a particular month . The Transaction code is PPSM . Is there any standard report available. Otherwise any other way.
Regards,
Rohini.K.The standard report behind the t-code PPSM is RHSTRPF0.
You may like to copy this report into a custom Z program using t-code SE38 and modify it according to your requirements with the help of an ABAP'er. -
F4 help for the selection screen field designed in screen painter
Hi all,
I have designed selection screen in the screen painter. in that for one of the fields i have to give f4 help. for that i have writter the code in PAI event. in this event i have used the standard Function module for f4 help. but no f4 help is comming for that field. can any body suggest what i have to do.
Thanks & Regards,
Giri.Hi,
You must use the correct event to meet ur requirement use POV event instead of PAI event.
for more clarification and example program see below the demo program
DEMO_DYNPRO_F4_HELP_DYNPRO
DEMO_DYNPRO_F4_HELP_MODULE
Cheers
fareed
Maybe you are looking for
-
Document could not be printed - no pages selected to print
I am running into this well-known issue with several documents, but unfortunately none of the fixes I have come across have worked. Some background: -Using Windows 7 Pro -Happening with both Adobe Reader XI and Acrobat X, clean installs. and happenin
-
No push mail After update on iOS 4.1
Hi, I have now updated to 4.1 on a 3gs and no longer receive push for my gmail accounts. I can manually fetch mail ok but push no longer comes through. My wife has also updated to 4.1 on a 3G with no data but still gets push on wifi ok on the same gm
-
External Display and Closing the Lid
I'd like to be able to connect my MB Pro to a external display and close the lid without it going to sleep. How do i do it.
-
10.8.4 will not update...stuck at 10.8.3
My app store has the 10.8.4 update in queue and ready to go. When I click update, it asks to restart...so I do. Upon restarting, the app store loads again with the update ready to go, but when I click it, the download bar appears for a very quick mom
-
Unable to start JDeveloper 10.1.3. Please help.
Hi I am unable to start JDev using jdeveloper.exe. The JDev install root directory is jdevj2ee1013. Recently, i have this problem after i had installed Oracle 10g client in my local workstation which is under jdevj2ee1013. I have setup ORACLE_HOME as