Date range for a variable from number of days enterd
Hi frnds,
I have a requirement like ,
Number of Days should be enterd in the Selection screen ,
If user enters 10 Days in selection screen, then it should bring the records like date from = sy date and date to = ( the date after ten days from today ) for a characteristic( validity ) which holds the dates ,
i believe that i can create one formula variable to enter the number of days and how do i relate this with the other variable in the char ( validity ) ,
Could you please guide and sample code would be a great help ,
thanks ,
sathy
hi ,
its not working still, even i have tried with I_STEP = 2 after WHEN 'ZQUOT_N' ,
but it works if hardcode like
v_end = v_beg + 10 . ( instead of l_var_range-low ) , Appreciate your help on this thanks , sathy
WHEN 'ZQUOT_N'.
*I_STEP = 2.
v_beg = sy-datum.
CLEAR l_var_range.
READ TABLE i_t_var_range INTO l_var_range
WITH KEY vnam = 'ZQUOTE_R'.
v_end = v_beg + l_var_range-low.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
l_S_range-low = v_beg.
l_s_range-high = v_end.
APPEND l_s_range TO e_t_range.
EXIT.
ENDCASE.
Similar Messages
-
Every Shipping point has corresponding number range for the HU box number?
Hi,
Every Shipping point has corresponding number range for the HU box number assignment?
For example, we are doing packing, then a Handling Unit number has been generated. So where to define this number range of the HU number??
Is it from the SPRO or controled by programs.
Thanks.Hi,
Please find good stuff on Handling Units Below:
HANDLING UNITS CONFIGURATION:
A Step by Step Guide to the SAP Handling Unit Management Configurations
The SAP Handling Unit Management system allows you to manage the entire movement of the handling units and the materials they contain rather than tracking each material individually.
This paper is for the HUM Delivery although some of the contents is related to Inventory under the Logistics General modules.
Table of Contents
Objective
IMG Menu The Starting Point
Handling Unit Management Overview
Start of HUM Outbound Deliveries Manual Packing Configuration
Define Number Ranges for Handling Units
Define Packaging Material Types
Define Material Group for Packaging Materials
Define Allowed Packaging Materials
Use Handling Unit Supplements
Maintain Goods Movements for Handling Unit Stock-Posting
Define User Status Profile
Set QM Check and Delivery Type for Each Movement Type
HU Requirement for Storage Locations and Default Values for Deliveries
Packing Control By Item Category
Define Requirements for Packing in the Delivery
Delivery Type Determination
Set Unique Number Assignment for HU Identification
Number Range Maintenance for HU Identification
Define Number Assignment for Each Packaging Material Type
Delivery Output type for Packing List
Maintain the Delivery Output Determination Procedure
What else to maintain after the Manual Handling Units Configurations?
Start of the Automatic Packaging Configuration
Define Number Ranges for Packing Instructions
Define Determination Type for Packing Instructions
Define Number Ranges for Packing Instruction Determination Records
What else to maintain after the necessary Automatic Packaging Configurations?
Appendix A: How to do Manual Packing for Non-Assigned Handlings Units?
Appendix B: Scenario 1 How to do Manual Packing by Delivery Item?
Appendix C: Scenario 2 How to Manual Pack the Materials into Pallets?
Appendix D: How to do Automatic Packing?
Appendix E: How to do Goods Movement for Handling Unit Material?
Appendix F: How to Unpack the Handling Unit Material?
A handling unit is a physical unit that consists of the packaging materials (load carrier / packaging material) and the goods contained therein. A handling unit is always a combination of materials and packaging materials. All the information contained in the material items, such as batches and serial numbers, is always available by way of the handling units.
Handling units can be nested, meaning that you can also create new handling units from several handling units as often as you like.
Handling units have unique, scannable identification numbers that can be formed according to standards such as EAN 128 or SSCC.
Figure 1: Handling unit example
Structure
The handling unit object contains the following attributes:
Identification number
Dimensions
Weight
Volume
Status
Materials and quantities
Packaging materials
Packing instructions
A handling unit consists of a handling unit header and handling unit items. For identification purposes, it is given a unique number.
Handling unit header
The header data of a handling unit is divided in the following way:
Weight/Volume/Dimensions
General data
Means-of-transport data
Additional data
Output determination procedure
For more information about each of these detailed points, see Editing detailed data for handling units.
Status
The handling unit is linked to general status management. In this way, the various physical states (planned or implemented) and other attributes (weighed, loaded, blocked or posted goods issue) of handling units can be documented.
You can use the HU_ST_INIT user parameter when you create handling units without object reference to set which initial status the handling unit is to have when it is created.
If you want to implement a status of your own, you can define a user-specific procedure for the packaging material type (see also Define Packaging Material Types).
Handling unit item
The items of a handling unit can consist of material items, packaging materials or other handling units that appear in an overview. For more information about this overview, see the Contents section of Editing detailed data for handling units.
To access the item data of an individual handling unit, select the handling unit concerned and choose Goto  Detailed HU data  Contents.
Integration
Handling units can be used in all processes within the supply chain.
Please Reward If Really Helpful,
Thanks and Regards,
Sateesh.Kandula -
How to prompt date range for a single column in reports
Hi All,
I am having a prompt which shows from date and to date, both these columns will come from day column of calendar .We want that our report values should be between the from date and to date.Can someone tell me how can this be achieved.Because if we build a report we will pull day column from calendar and say its prompted.How can we get the condition that day clumn should be between from date and to date of prompt.
Thanks and Regards,
AmritHi vineet,
Thanks for your reply
I am having one prompt where we will have two columns from date and to date, both these columns are coming from same column called day in mth_calendar.I am having 1 report where the date range should lie between from date and to date of prompt.In this case should I use your second suggestion or the first one.
Thanks,
Amrit -
How to set a date range for date field ?
Dear Experts,
Scenario:
I have a query in validating the date field in my BSP application. My application is for maintain infotype 0023 Other/Previous Employers online by employees in the company.
As per our design we are maintaining the all employment details of the employee both ( with in the current company / previous employment outside the company) in the same infotype.
Every employee will have a hiring date within the SAP HR system. We consider this date as the cutoff date between current and previous employment in our application. When the employee updating the details wia BSP page I need to check the following.
Record inside current company: Validation that, the user should only able to enter BEGIN DATE (BEGDA) greater than or equal HIRING DATE and END DATE(ENDDA) should be greater than FROM DATE (BEGDA).
Record outside current Company: Validation that, the user should only able to enter BEGIN DATE (BEGDA) less than or equal HIRING DATE and END DATE (ENDDA) should be greater than FROM DATE (BEGDA) and less than HIRING DATE.
Technical Requirement:
How to set a date range for date field, i.e. how we can limit the date range in a HTMLB date field? Can this it be achieved via standard functionality of HTMLB?
Following is the code to describe date field in my application.
<htmlb:inputField id= "ENDDA_NEW_IN"
type= "date"
doValidate= "TRUE"
showHelp= "TRUE"
disabled= "FALSE"
width= "183"
style= "cssTextAreadate"
value= "<%='99991231'%>"/>
Thanks a lot in advance for your assistance and help.
Cibinu2026
Edited by: cibin kuruvilla on Nov 12, 2008 11:13 AMHi,
This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
Regards,
<p>Blair Wheadon</p>
<p>Product Manager, Crystal Reports</p> -
EasyDMS - search by date range for characteristics of type date
Hi Folks,
I have a characteristic of type date in the additional data of a DMS document. If I enter the date (for example validity date) as 08/31/2009 and search using cv04n and give a date range for the characteristic (i.e. 01/01/2009 - 12/31/2009), the search result will bring up the document.
However, I cannot do this from the EasyDMS find function. I need to specify an exact date. This is not very helpful for user who need to find documents with a validity date between 01/01/2009 - 12/31/2009 for example. Is there a way users can search for date range in EasyDMS find function?
Thanks,
LashanTo search a date range with EasyDMS Client you have to set the registry key
\HKEY_CURRENT_USER\Software\SAP\EasyDms\Generel\DateSearchPick to Value 0
Then you can use the input field like in SAP-Gui. (01.01.2009-31.01.2009)
If you set the value to 1 or the key is not defined you can only search for one specified date.
If you don't find this key on your PC create it as dword.
Maybe you must restart you PC for takeing effect.
Hope this will help you.
Regards Wolfgang -
Find date range for sick leaves
Hi,
Ive been trying to get readable output from HR system.
I have added the source data into Data Model, since i had to read the data with power query. Now i have pivot table like this:
date workdaY? user
6.3.2014 Sickleave user1
1.2.2014 Sickleave user2
2.2.2014 Sickleave user2
5.3.2014 Sickleave user4
5.3.2014 Sickleave user1
5.5.2014 Sickleave user1
16.9.2014 Sickleave user3
7.3.2014 Sickleave user1
6.5.2014 Sickleave user1
6.3.2014 Sickleave user4
Is there any possible way to get some kind of find function to sort and combine the data like this:
user1 Sickleave 5.3-7.3.2014
user1 Sickleave 5.5-6.5.2014
user2 Sickleave 1.2-2.2.2014
user3 Sickleave 16.9-16.9.2014
user4 Sickleave 5.3-6.3.2014One way to do this is with a VBA macro. The following should get you started.
As you can see looking at the macro, the original data is assumed to be on a worksheet named HRData and starts in A1.
The results are placed on the same worksheet but starting at cell G1. You could easily write the results to another worksheet.
The original data is copied to a temporary worksheet for sorting (and the temporary sheet is subsequently deleted).
A Class Module is added so we can use a User Defined Object which has the properties of the user name, start date and end date of the vacation period.
We then cycle through the sorted data, and create a Sickleave object and add it to a collection. If the "previous" row has the same user, and the date is one more than the previous End Date, we add one to the previous end date; if not, we
create a new object and start another sickleave period.
This is the data input:
and here are the results:
To enter this Macro (Sub), <alt-F11> opens the Visual Basic Editor.
Ensure your project is highlighted in the Project Explorer window.
First, from the top menu, select Insert/Class Module. Highlight the new class module in the Project Explorer; click F4, and rename it to cSickLeave
Then paste the code below into that class module:
=======================================
Option Explicit
Private pUser As String
Private pStartDt As Date
Private pEndDt As Date
Public Property Get User() As String
User = pUser
End Property
Public Property Let User(Value As String)
pUser = Value
End Property
Public Property Get StartDt() As Date
StartDt = pStartDt
End Property
Public Property Let StartDt(Value As Date)
pStartDt = Value
End Property
Public Property Get EndDt() As Date
EndDt = pEndDt
End Property
Public Property Let EndDt(Value As Date)
pEndDt = Value
End Property
Then, from the top menu, select Insert/Module and
paste the code below into the regular module window that opens.
To use this Macro (Sub), <alt-F8> opens the macro dialog box. Select the macro by name, and <RUN>.
====================================
Option Explicit
Option Compare Text
Sub SickLeave()
Dim cSL As cSickLeave, colSL As Collection
Dim wsSrc As Worksheet, wsRes As Worksheet
Dim wsTemp As Worksheet, rTemp As Range
Dim vSrc As Variant, rSrc As Range
Dim vRes() As Variant, rRes As Range
Dim I As Long
'set Worksheets
Set wsSrc = Worksheets("HRData")
With wsSrc
Set rSrc = .Range("A1", .Cells(.Rows.Count, "C").End(xlUp))
End With
Set wsRes = Worksheets("HRData")
Set rRes = wsRes.Range("G1") 'upper left cell of results
'Sort the HRdata on a Temp sheet
Worksheets.Add
Set wsTemp = ActiveSheet
Set rTemp = wsTemp.Range("A1")
rSrc.Copy rTemp
Set rTemp = rTemp.CurrentRegion
With rTemp
.Sort key1:=.Columns(3), order1:=xlAscending, _
key2:=.Columns(1), order2:=xlAscending, _
Header:=xlYes, MatchCase:=False
End With
vSrc = rTemp.Value
With Application
.ScreenUpdating = False
.DisplayAlerts = False
wsTemp.Delete
.DisplayAlerts = True
End With
'create collection for results
Set colSL = New Collection
For I = 2 To UBound(vSrc)
If vSrc(I, 2) = "Sickleave" Then
If I = 2 Then
Set cSL = New cSickLeave
With cSL
.User = vSrc(I, 3)
.StartDt = vSrc(I, 1)
.EndDt = vSrc(I, 1)
colSL.Add cSL
End With
ElseIf vSrc(I, 3) = colSL(colSL.Count).User And _
(vSrc(I, 1) - 1) = colSL(colSL.Count).EndDt Then
With colSL(colSL.Count)
.EndDt = .EndDt + 1
End With
Else
Set cSL = New cSickLeave
With cSL
.User = vSrc(I, 3)
.StartDt = vSrc(I, 1)
.EndDt = vSrc(I, 1)
colSL.Add cSL
End With
End If
End If
Next I
ReDim vRes(0 To colSL.Count, 1 To 3)
vRes(0, 1) = "User"
vRes(0, 2) = "workdaY?"
vRes(0, 3) = "Date Range"
For I = 1 To colSL.Count
With colSL(I)
vRes(I, 1) = .User
vRes(I, 2) = "Sickleave"
vRes(I, 3) = Format(.StartDt, "d.m\-") & _
Format(.EndDt, "d.m.yyyy")
End With
Next I
Set rRes = rRes.Resize(UBound(vRes) + 1, UBound(vRes, 2))
With rRes
.EntireColumn.Clear
.Value = vRes
.EntireColumn.AutoFit
.Rows(1).HorizontalAlignment = xlCenter
End With
Application.ScreenUpdating = True
End Sub
Ron -
Meet a problem of data exchange for sale order from CRM to R3.
Dear Friends:
I do the data exchange for sale oder from to R3 today , the problem's detail is as follows:
When i save a sale order in CRM (Version is 5.0) . it can automatically generate a bdoc which bdoc type is BUS_TRANS_MSG. but the bdoc status alway is "Sent to receivers (not all have confirmed)". and the original order in CRM can not be change .it quote that "Document is being distributed - changes are not possible", so i check the order status analysis in detail .it presents two error messages ," Event 'BEFORE_CHANGE', attribute ' FINI': Error code for function module 'CRM_STATUS_BEFORE_COMPLETED_EC' , "Item is not yet completed in OLTP system". so i check the order in R/3 ,it has already been create and without any error messages.
Would like to tell me how to solve it . thanks your any idear..Hi Benjamin,
When performing uploads to R/3 from CRM there is a response from the OTLP system that is sent back to the CRM Middleware to confirm that the data records were received and processed correctly.
Here is a checklist you can run through to verfiy that the connections, systems and objects that are needed are all in place:
<b>On R/3 system:</b>
- Check R/3 outbound queue (transaction SMQ1) for any entries that are not reaching CRM.
- Check that all RFC destinations on R/3 are defined correctly and are pointing to CRM
- Check the CRMCONSUM table in R/3 to ensure CRM is registered as a consumer
- Check the CRMRFCPAR table in R/3 to ensure that order objects are valid for exchange between R/3 and CRM
- Check for any short dumps in R/3 (ST22/ST21)
<b>On CRM:</b>
- Are there entries stuck in the inbound queue (SMQ2) with R3AU* names?
- What does the CRM Middleware Trace show (SMWT)? Sometimes this has more detail than the specific BDoc overview (SMW01)
- Check for short dums in CRM (ST22)
Let us know what else you uncover and we can work from there.
Brad -
Date Range for a fixed fiscal year
Dear All,
How to write a code to fix the date range for 12months only. Example like mine selection should be between one fiscal year only.
I have check that the date is of one year range like 1.05.2008 to 30.04.2009
month bt 05 & 04 for one particular year. how to write the code.hi,
check for the year like this.
if v_date1(4) EQ v_date2(4).
endif.
this will check for the first 4 characters of the date string which is the year.
regards,
Peter -
How can I do for a row of a query be data provider for a variable?
Hi friends, I have a problem !
How can I do for a row of a query be data provider for a variable?
I need that a value of variable be stored when the user select a row in a query. At the BPS we can do this configuring the variable selector in WIB, and in a WAB how I can do this ?
Best regards,
Gustavo LiberadoIn this case when I press the key to call other forms I need to wait for the response in the secondary form and then process the result.That is exactly what a "modal JDialog" (or JOptionPane) are used for.
Try it. Create a short demo program. All you need is a JFrame with a single button to show the modal dialog. All you modal dialog needs is a single button to close the dialog. After you show the modal dialog add a System.out.println(...) statement in your code and you will see that it is not executed until the dialog is closed.
Then once you understand the basics you add the code to your real program.
If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area. -
Date range for key date in hierarchy
Dear Friends,
Is there a work around for single key date restriction for time dependent hierarchy.Bcos i can only select one key date in teh report for my hierarchy so that it will take that hierarchy which falls in this date and display the result accordingly.
But is there a way to select the date range for key date so that more than one hierarchy can be used to display my report accrding to the time range.
Say,i have 4 hierarchies (time dependent) like v1,v2,v3,v4 and v5 for jan 08,feb 08,mar 08,apr 08 & may 08 respectively.
In my report,i want to display the result for the time interval say mar to May.
So my report should diplay the result according to the 3 different hierarchies for the time period i.e.v3,v4&v5.
How do i acheive this.
Thanks.
raguHi
I think we may do with the Char with text with replecement path.
take time char as Calmonth and set the offet value as -1 and -2 and design the report and use the hierarchies in that query.
Am not surt it willwork but better to try with this. -
Query regarding the data type for fetcing records from multiple ODS tables
hey guys;
i have a query regarding the data type for fetcing records from multiple ODS tables.
if i have 2 table with a same column name then in the datatype under parent row node i cant add 2 nodes with the same name.
can any one help with some suggestion.Hi Mudit,
One option would be to go as mentioned by Padamja , prefxing the table name to the column name or another would be to use the AS keyoword in your SQL statement.
AS is used to rename the column name when data is being selected from your DB.
So, the query Select ename as empname from emptable will return the data with column name as empname.
Regards,
Bhavesh -
How to change date format for prentation variable in Formula
Hi experts.._
I need to change date format for presentation variable in formula..
my dashbord date prompt format: mm/dd/yyyy(i have created one presentation variable for this prompt: pv_date)
now i need to show it as : month-dd-yyyy
Thanks in advance
Regards
FrndsHi Kishor...Thanks for reply...
But i need to change my precentation variable date formt...
i need to write one text like: 'Year to dd/month/yy' in one column formula..
So how can i achieve it.. -
How can I set a date range for a Date/Time Field in LiveCycle ES2?
I need to set a specific date range for a form set up in LiveCycle ES2. Cannot see where i allows me to do that without a code entered.
Hi,
You can't set a start and end date for the date/time field, the best you can do is validate the range after the user has selected it.
An alternate is to make your own date / time field, like this sample http://adobelivecycledesignercookbookbybr001.blogspot.com.au/2013/05/an-alternative-date-p icker-for.html
Regards
Bruce -
I applied for AppleCare work from home 7 days ago and haven't received an email regarding my application status. Anyone know how long this takes or if I shouldn't expect anything?
I have no idea how long it takes. I applied for one several months ago. The position is still posted but I haven't heard a thing.
-
Customer exit variable for date range for the last day
Hi,
If user enters date ranges in variable
suppose user enters 9/1/2010 to 9/15/2010 and we have to calculate currency conversion based on last day i..e 9/15/2010 . 08
2)User input is date range 08/01/2010 to 08/30/2010
I need from the customer exit 08/30/2010 (on last day) to calculate currency conversion.
Can anyone help me with ABAP code to achieve this customer exit?And please tell me how to proceed step by step
Sridharcreate a variable to enter date range (ZDATE1)
create a key date variable(ZDATE2) with processing type customer exit, should not be ready for input.
In the exit ZXRSRU01 write below code.
DATA: l_s_range TYPE rsr_s_rangesid,
loc_var_range LIKE rrrangeexit.
WHEN 'ZDATE2'.
IF i_step = 2.
read table i_t_var_range INTO loc_var_range
with key vnam = 'ZDATE1'.
CLEAR l_s_range.
l_s_range-low = loc_var_range-high.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
Maybe you are looking for
-
ORA-00600 Error when using DBCA
Hello, I installed Oracle 9.2.0.1 on Linux Redhat 7.3. The installation says everything went fine. I attempted to create a database by using the dbca just to make sure things were really working. However, I receive the following error: ORA-00600 inte
-
Can I get the Apple Color Picker in CS5 Windows?
HI - I'm a lifetime Mac and long time PShop user transplanted into a Windows shop. Of all the things that I miss on my new workplace platform, the Apple Color Picker is the one that I encounter most often. Is there a plug-in, an extension, is there
-
Flash Store/Player displaying in Chrome but not IE10
http://www.spindisc.co.uk/mp3-store.html It displays in Chrome but when I tried it in IE10 it is missing. I have tried a cache clean and also from a laptop with same results? Interesting in standalone at www.spindisc.co.uk/cart the player that is wr
-
Hello, I've posted a project at some commercial sites to find someone to help me doing it, but couldn't find any. I thought that it might be impossible doing this type of projects. The following is what was posted expecting someone could help/lead me
-
Not long ago I created a few documents and printed them out from Elements 10, now for some reason I cannot print, and I am getting error messages telling me to install my printer when there is one already installed. Please help!