To check a date lies within in a range
hi,
i need a fm to check whether a date lies within a range ( eq 30.04.2007) it lies between 16.04.2007 and 30.04.2004 (inclusive).
hi,
Use the statement..
data : l_date type sy-datum value '20070430'
data : l_date1 type sy-datum value '20070416'
data : l_date2 type sy-datum value '20070430'
IF l_date BETWEEN l_date1 AND l_date2.
* Do the required Processing
ENDIF.
OR
Build the range
RANGES : R_date for sy-datum.
r_date-sign = 'I'.
r_date-option = 'BT'.
r_date-low = l_date1 .
r_date-high = l_date2.
append r_date.
IF l_date IN r_date.
* Do the required Processing
endif.
Similar Messages
-
To check posting date lies in closed period
Hi all ,
I have to check whether posting date lies in closing period.
Please let me know any FM FOR same.
Thanks in advance
RahulFirst call FM FI_PERIOD_DETERMINE and pass company code and posting date into it and get
IMPORTING
e_gjahr = v_l_gjahr
e_monat = v_l_monat
e_poper = v_l_poper
Then call FI_PERIOD_CHECK and pass v_l_poper to i_monat.
Please let me know if still it doesnt work -
Can't see the ESS Additional Personal Data link within Personal Information
Hi All,
For some reasons, I can not see the Additional Personal Data link within the ESS Personal Information iView. I have checked the Homepage framework and the existence of the iView in the PCD and everything appears to be fine.
Do I need to assign any additional infotype to my id or give myself specific authorisations to see this link?
I would really appreciate if you could provide an answer to my query.
Thanks,
VibhuHi,
I think mostly you have maintained the data in PA30 Transaction and had data in Info type 0105.
After this try to check with your EA-HR patch and SAP HR patch in the services. If both are not maintained at the same patch levels such type of problems will occur.
Regards,
kishore. -
To check the date value-Urgent
H iAll,
Please help me in this code.
I have to validate the user entry date with some dates.
User entry date must lie between 4 weeks back and 20 weeks back and it chouls be monday only.
Please check this code and suggest.
Thanks in Advance!
DATA : ZCURDATE typeD,
MONDATE Type D,
CURR_MON TYPE D,
monday type d.
ZCURDATE = sy-datum.
mondate = LOC_VAR_RANGE-LOW.
break-point.
CALL FUNCTION 'BWSO_DATE_GET_FIRST_WEEKDAY'
EXPORTING
DATE_IN = ZCURDATE
IMPORTING
DATE_OUT = curr_mon.
break-point.
do 16 times. " since 4th to 20th so 20 - 4 = 16 times and count should strt from 28
count = count + 7.
monday = curr_mon - count.
*clear : monday.
IF mondate NE monday.
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
I_CLASS = 'RSBBS'
I_TYPE = 'I'
I_NUMBER = '000'
I_MSGV1 = ' Monday Values between four weeks and 20 weeks back allowed '.
RAISE no_replacement.
ELSE.
continue.
endif.
enddo.
Endloop.Dear try this.
REPORT ZTESTU1 .
data : l_date type sy-datum.
data : g_date type sy-datum.
data : p_date1 type sy-datum.
parameter : p_date like sy-datum.
CALL FUNCTION 'BWSO_DATE_GET_FIRST_WEEKDAY'
EXPORTING
DATE_IN = p_date
IMPORTING
DATE_OUT = p_date1.
if p_date1 ne p_date.
message ID '0' type 'E' number '0' with 'Date could only be' p_date1 'as day is Monday on' p_date1.
endif.
l_date = sy-datum - 28 .
g_date = sy-datum - 112.
if p_date lt l_date and p_date gt g_date.
message ID '0' type 'E' number '0' with 'please Enter Valid Date, Date lies outside' l_date 'and' g_date .
endif.
reward if useful.
regards
Amit Singla -
'0610.05.20 data lies before start of factory calendar'
hi,
the error of '0610.05.20 data lies before start of factory calendar.' how to correct it.
but somentimes is ok ,no error.
regards
sophiahi.
if i use the plant as selection option,there has error,
if i use the plant and MRP controller as selection option,there has no error,why? i hope someone help me,thank you.
now i provide the program code :
report zreq_list message-id z01 .
tables:
mara,
marc,
mdez,
scal.
data:begin of i_alv occurs 0,
matnr like mara-matnr,
maktx like makt-maktx,
werks like marc-werks,
week like scal-week,
extra like mdez-extra,
meins like mara-meins,
meins1(3),
mng01 like mdez-mng01,
end of i_alv.
data: begin of i_cx occurs 0.
include structure mdez.
data: matnr(18).
data: werks(4).
data: week like scal-week.
data: maktx(40).
data: meins(3).
data: end of i_cx.
data:begin of i_mara occurs 0,
matnr like mara-matnr,
werks like marc-werks,
dispo like marc-dispo,
end of i_mara.
data: i_mdez like mdez occurs 0 with header line.
define add_field.
wa_field-fieldname = &1.
wa_field-reptext_ddic = &2.
append wa_field to it_field.
end-of-definition.
type-pools slis.
data: gs_layout type slis_layout_alv.
data: g_repid type sy-repid.
data: it_field type slis_t_fieldcat_alv.
data: wa_field type slis_fieldcat_alv.
g_repid = sy-repid.
gs_layout-colwidth_optimize = 'X'.
if sy-langu = '1' .
add_field 'MATNR' '物料号码'.
add_field 'MAKTX' '物料描述'.
add_field 'WERKS' '工厂'.
add_field 'WEEK' '需求时间'.
add_field 'EXTRA' 'MRP元素'.
add_field 'MEINS1' '单位'.
add_field 'MNG01' '需求量'.
else.
add_field 'MATNR' 'Material No'.
add_field 'MAKTX' 'Material description'.
add_field 'WERKS' 'Plant'.
add_field 'WEEK' 'Requirements date'.
add_field 'EXTRA' 'MRP element'.
add_field 'MEINS1' 'Unit'.
add_field 'MNG01' 'Requirement quantity'.
endif.
data: file(100) type c .
SELETION-SCREEN
selection-screen begin of block block1 with frame .
select-options:
s_delb0 for mdez-delb0 ,"MRP 元素
s_matnr for mara-matnr ,"物料编号
s_werks for marc-werks default '1000' ,"工厂
s_dispo for marc-dispo,"MRP控制者
s_week for scal-week."需求时间
parameters:
p_plscn like plsc-plscn default '000',"计划方案
p_inper like mdst-inper,"内部期间标识
p_ergbz like t462-ergbz."选择规则
selection-screen end of block block1.
B E G I N S E L E C T I O N
start-of-selection.
data i_exit.
perform get_data.
check i_exit ne 'X'.
perform display_data.
*& Form get_data
text
--> p1 text
<-- p2 text
form get_data.
select maramatnr marcwerks marc~dispo into table i_mara
from mara inner join marc on maramatnr eq marcmatnr
where mara~matnr in s_matnr
and marc~werks in s_werks
and marc~dispo in s_dispo.
loop at i_mara.
perform call_req using i_mara-matnr
i_mara-werks
p_plscn
p_inper.
endloop.
if sy-subrc <> 0.
message i000 with 'Non data!'.
i_exit = 'X'.
exit.
endif.
loop at i_cx.
call function 'DATE_GET_WEEK'
exporting
date = i_cx-dat00
importing
week = i_cx-week.
modify i_cx.
clear i_cx.
endloop.
loop at i_cx where week in s_week..
move-corresponding i_cx to i_alv.
collect i_alv.
clear i_alv.
endloop.
sort i_alv by werks matnr.
endform. " get_data
*& Form call_REQ
text
-->P_I_MARA_MATNR text
-->P_I_MARA_WERKS text
-->P_P_PLSCN text
-->P_P_INPER text
form call_req using v_matnr
v_werks
v_plscn
v_inper.
call function 'MD_STOCK_REQUIREMENTS_LIST_API'
exporting
plscn = p_plscn
matnr = i_mara-matnr
werks = i_mara-werks
inper = p_inper
ergbz = p_ergbz
importing
e_mt61d = i_mt61d
tables
mdezx = i_mdez
exceptions
material_plant_not_found = 1
plant_not_found = 2
others = 3.
loop at i_mdez where delb0 in s_delb0..
move-corresponding i_mdez to i_cx.
i_cx-matnr = v_matnr.
i_cx-werks = v_werks.
append i_cx.
clear i_cx.
endloop.
endform. " call_REQ
*& Form display_data
text
--> p1 text
<-- p2 text
form display_data.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = g_repid
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = it_field
IT_SORT = it_SORT
is_layout = gs_layout
i_save = 'A'
IT_EVENTS = i_EVENTS[]
is_variant = i_variant
tables
t_outtab = i_alv
exceptions
program_error = 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.
endform. " display_data -
To find if a date lies between a range
Hi Experts,
I have a custom table with fields Terms, Valid from date, Valid to date.
ex:
TextID1 Valid from 1.1.2007 till 31.06.2007
TextID2 Valid from 1.1.2007 till 31.12.2007
so on and so forth,
Now if the user inputes a date like 12.10.2007, i need to pick up TextID2, how do i achieve it? ( i need to find if it lies within a range)
all help is appreciated and rewarded!!
cheers,
Kdata : V_DATE type date.
" HERE U CAN USE TABLE FIELD ENISTEAD OF V_DATE."
ranges: TextID1 FOR V_DATE,
TextID2 FOR V_DATE.
TextID1-sign = 'I'.
TextID1-option = 'BT'.
TextID1-low = '01/01/2007'.
TextID1-high = '31/06/2007'.
append TextID1.
TextID2-sign = 'I'.
TextID2-option = 'BT'.
TextID2-low = '01/01/2007'.
TextID2-high = '31.12.2007'.
append TextID2.
IF '12.10.2007' IN TextID1.
WRITE: 'BC1'.
ELSE.
WRITE: 'BC2'.
ENDIF.
USE THIS CODE AND MAKE CHANGES ACCORDING UR DESIER OUTPUT
Edited by: anil chaudhary on Sep 1, 2008 8:15 AM -
How to check the data of an archived table.
I have archived a table created by me. I have executed the write program for the archiving object in SARA. Now how can check the data of my archived table.
Hello Vinod,
One thing to check in the customizing settings is your "Place File in Storage System" option. If you have selected the option to Store before deleting, the archive file will not be available for selection within the delete job until the store job has completed successfully.
As for where your archive file will be stored - there are a number of things to check. The archive write job will place the archive file in whatever filesystem you have set up within the /nFILE transaction. There is a logical file path (for example ARCHIVE_GLOBAL_PATH)where you "assign" the physical path (for example UNIX: /sapmnt/<SYSID>/archivefiles). The logical path is associated with a logical file name (for example ARCHIVE_DATA_FILE_WITH_ARCHIVE_LINK). This is the file name that is used within the customizing settings of the archive object.
Then, the file will be stored using the content repository you defined within the customizing settings as well. Depending on what you are using to store your files (IXOS, IBM Commonstore, SAP Content Server, that is where the file will be stored.
Hope this helps.
Regards,
Karin Tillotson -
My 2nd generation ipod touch is giving me the following error when I try accessing Itunes or the app store. "Cannot connect to the Store. A secure connection could not be established. Please check your date & time settings" I am on a secure networkl.
Can't connect to the iTunes Store
Make sure that time zone is correct in addition to date and time -
How to make use of adjacent data elements within the same buffer
Hi,
Does anyone know how to make use of adjacent data elements within the same buffer? To make my question clearly, I would like to give you an example. In my application, I set "sample to read" as 10 which means at each loop 10 data samples will be taken into a buffer. Now, what I would like to do is to do some calculations on adjacent data samples in same buffer. I tried to use "shift register" for this, but it seemed to me that it only can deal with the calculation between data from adjacent loops. In other words, it skips 9 data elements and take the 10th one for the calculation.
Here I also attach my VI showing what I did.
Thank you very much in advance,
Suksun
Attachments:
wheel_encoder_1.vi 98 KBHi Suksun,
I hope you'll forgive me for distilling your code - mainly to understand it better. I tried to duplicate your logic exactly - which required reversing the "derivatives"-array before concatination with the current samples array. As in your code, the last velocity is being paired with the first position. If first velocity is really supposed to be paired with first position, just remove the "Reverse 1D Array" node.
cheers
Message Edited by Dynamik on 01-07-2006 03:17 AM
Message Edited by Dynamik on 01-07-2006 03:19 AM
When they give imbeciles handicap-parking, I won't have so far to walk!
Attachments:
encoder2.GIF 14 KB
encoder2.vi 102 KB -
How to check the date and time when a material is blocked
Hello,
Please tell me how can i check the date and time when a material is blocked or unblocked.
Regards,
PriyankaHi Pryianka,
Are you speaking about blocked status of material master ('X-plant matl status' > MM03 > Basioc view 1; 'Plant-sp. matl status' > MM03 > MRP 1) or your problem is to find out the date when your material was booked into blocked state (stock category).
If your problem is about mmr you can use the above mentioned MM04 (or MM03 > menu > Environment > Display changes).
If your problem is to find out when your goods were posted to blocked stock you have to use MB51 + relevant movement types (e.g. 103, 344) + batch + etc. ()
BR
Csaba -
Hi,
I am getting below error in SharePoint PPS 2013 Dashboard Designer. While create the Analysis Service by using "PROVIDER="MSOLAP";DATA SOURCE="http://testpivot2013:9090/Source%20Documents/TestSSource.xlsx"
"An error occurred connecting to this data source. Please check the data source for any unsaved changes and click on Test Data Source button to confirm connection to the data source. "
I have checked all the Sites and done all the steps also. But still getting the error.Its frustrating like anything. Everything is configured correctly but still getting this error.
Thanks in advance.
Poomani SankaranHi Poomani,
Thanks for posting your issue,
you must have to Install SQL Server 2012 ADOMD.Net on your machine and find the browse the below mentioned URL to create SharePoint Dashboard with Analysis service step by step.
http://www.c-sharpcorner.com/UploadFile/a9d961/create-an-analysis-service-data-source-connection-using-shar/
I hope this is helpful to you, mark it as Helpful.
If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS)
Blog : http://sharepoint-community.net/profile/DharmendraSingh -
How can I verify that my App data is actually stored in the iCloud. I can see and access my notebook, contacts etc. on the iCloud website, and I can see my photos in a folder on my Windows-based desktop compter (iCloud/Photostream). But no app data.
With Dropbox, I can actually see all of my stored files. With iCloud, it seems, I'm supposed to just trust that Apple has my back. Short of deliberately trashing my app data and then attempting a restore, is there no way to check the data?You can't access them on Windows (unless you have iCloud enabled Windows programs) and I don't think any are, yet.
iCloud data is accessed via Apps/Programs, the Windows programs vendors will have to step up (just to make it worse Microsoft have not yet enabled their Mac programs, such as Office yet) I doubt that iCloud access is much of a priority for them, complain to MS, when enough Windows users complain maybe they'll do something. -
My iMessage for my Macbook Air is not working. I have updated everything. My system is running on OS X Yosemite Version 10.10. When I go to send a message, it says no delivered with a next to it. I have tried serval different options on trying to get it to work to include logging out of iCloud and checking my date and time and updating FlashPlayer. I have done about everything I can think of. Any help would be greatly appreciate!
Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
I suggest that no response is made to this duplicate thread. -
Connection failure - Itunes tells me to check my date/time. Help?
Evening, everyone.
I'm having some trouble connecting to Itunes. I get the following error message when i try -
"Itunes could not connect to the music store. A secure network connection could not be established.
Check that your computer's date and time are correct and try again."
I duly checked the date/time and found that they were wrong, so updated them and tried again and still received the same message.
I also tried turning off my Norton and trying to connect with it disabled, with no luck. The other things currently running are DVD43, Sonic Cineplayer and MSN messenger. I can't see why any of them would be interfering, but i'm happy to be corrected.
I've had no luck finding answers on the Itunes support page. I'm not sure what other information i can give to help elucidate, so feel free to ask.
Any ideas?
Hallmark Xblade Windows XPHas anyone figured this out yet - this is the same message I get. I have the newest version of iTunes and just started using it with music I already had. First time trying to buy music, and that's what I got!!
Please someone!!!!!!!!
Dell XPS 400 Windows XP -
Code of ME_process_cust_Po BADI for checking item data?
Hi all,
While users are creating new PO in ME21N, I have to check the condition records for the Materials they entered.
If the condition record is not maintained for the respective material The creation of PO while saving it , should not be allowed and a message should be displayed.
Please mention the respective method and code to do this?
Thanks
Vamshi.Hi ,
this is the sample code for Item check, by using mm_messages_mac(include u can raise error msg based on the INFNR(info record) field.
DATA: ls_mepoitem TYPE mepoitem,
ls_customer TYPE mepo_badi_exampl,
ls_tbsg TYPE tbsg.
INCLUDE mm_messages_mac. "useful macros for message handling
here we check customers data*
ls_mepoitem = im_item->get_data( ).
IF ls_mepoitem-loekz EQ 'D'.
a physical deletion of the item was carried out. therrefor we have to*
delete customer data on the level of the item*
ls_customer-ebeln = ls_mepoitem-ebeln.
ls_customer-ebelp = ls_mepoitem-ebelp.
CALL FUNCTION 'MEPOBADIEX_SET_DATA'
EXPORTING
im_data = ls_customer
im_physical_delete_request = 'X'.
ELSE.
update/insert operation*
CALL FUNCTION 'MEPOBADIEX_GET_DATA'
EXPORTING
im_ebeln = ls_mepoitem-ebeln
im_ebelp = ls_mepoitem-ebelp
IMPORTING
ex_data = ls_customer.
check customers data*
check field badi_bsgru. This should be carried out only for new items. Once the PO is posted the*
field should no longer be changeable. This is done in Method FIELDSELECTION_ITEM.*
IF im_item->is_persistent( ) EQ mmpur_no.
IF ls_customer-badi_bsgru IS INITIAL.
Place the cursor onto field badi_bsgru. The metafield was defined in BAdI ME_GUI_PO_CUST,*
Method MAP_DYNPRO_FIELDS.*
mmpur_metafield mmmfd_cust_01.
mmpur_message_forced 'W' 'ME' '083' text-002 '' '' ''.
ELSE.
check whether the field is valid*
*SELECT SINGLE * FROM tbsg INTO ls_tbsg WHERE bsgru EQ ls_customer-badi_bsgru.*
IF NOT sy-subrc IS INITIAL.
mmpur_metafield mmmfd_cust_01.
mmpur_message_forced 'E' 'ME' '083' text-004 '' '' ''.
invalidate the object*
CALL METHOD im_item->invalidate( ).
ENDIF.
ENDIF.
ENDIF.
check field badi_afnam*
IF ls_customer-badi_afnam IS INITIAL.
mmpur_metafield mmmfd_cust_02.
mmpur_message_forced 'W' 'ME' '083' text-003 '' '' ''.
ENDIF.
ENDIF.
regards
Prabhu
Maybe you are looking for
-
System Restore - what drivers do I load?
I had a self-induced computer crash with a new Lenovo x120e and am trying to restore my system. The Lenovo Operating System Recovery Disk did nothing (went to Restore and Recovery and then crashed) but fortunately someone recommended getting a Window
-
IPhone 4 and iTunes 9.2 is a miserable experience
I continue to have weird and random issues syncing iPhone 4 with iTunes 9.2. I will not have issues for days and then it will start. This morning, I had to do 4 syncs before it would complete. The prior attempts just ended in lockups: locked up sendi
-
Where Are TextEdit Documents Kept?
I use Mavericks. I just typed a letter within TextEdit, titled it, and now I can't find the letter. Where should I be looking?
-
Hi there I am having trouble with my outlook express this is the first time it has happened it keeps telling me can't connect to the SMTP server and every password I have tried is incorrect this is for 'iCloud' very frustrating as all our phones are
-
I have a question about that little x box in the upper right corner of the window. How do you have it bring up a JOptionPane.showConfirmDialog asking if you want to quit??? I know how to quit and everything, I just don't know what the event is when t