Set condition for date to be valid
Hi
We've just implemented RC and I'm still very new in the tool. I hope to be able to take advantage of the many experts in this forum.
We have some services with longer delivery from the supplier. How do I set a condition to say that the earliest date the requestor can set in the form is, for example, 2 weeks from now?
Thanks for your help.
BR/Christine
Hi Christine,
There are a couple of posts in the portal with some information that might be helpful to you:
https://supportforums.cisco.com/message/3492704#3492704
https://supportforums.cisco.com/message/3492817#3492817
Also, attached is a zip by Emir (American Express) with some code he developed
Similar Messages
-
Give condition for date.
dear all,
if i hve to give condition for some system date that it hould be valid for some limited period ,like for any festivel.in a range.but presently i m taking any date input.
with which condition i shld compare and wht will be syntax.
thanx.Hi Robin,
You can use function module <b>DATE_CONVERT_TO_FACTORYDATE</b> to check for a particular date. You need to pass Calendar ID to <b>factory_calendar_id</b>. You can see details of different calendar using Tcode '<b>SCAL</b>'.
<b><REMOVED BY MODERATOR></b>
Regards,
Amit
Message was edited by:
Alvaro Tejada Galindo -
F4 help for Date field and Validation
Hi Friends,
I am new to BSP programming .I knew getting F4 help in normal ABAP.But i don't know in BSP .
I want simple steps to get F4 for a field on Page as well as date field .
and How to valid those entered dates.
Presently i am using length 10 character variable for DATE without F4 help and No validation.
I think you guys will help me out.
Thanks,
Venkat.OWelcome to SDN.
for F4 help with validation for dates you can use the following code.
<htmlb:inputField id = "wf_ad_date"
type = "date"
showHelp = "TRUE"
value = "<%= sy-datum %>"
visible = "true"
disabled = "false"
required = "true"
maxlength = "10"
size = "10"
doValidate = "true"
design = "standard" />
For other type of fields check out this weblog by Thomas Jung
<a href="/people/thomas.jung3/blog/2005/08/22/bsp-value-input-help-popups-version-30 Value Input Help Popups Version 3.0</a>
Regards
Raja -
How to set condition for my Choose From List
hi ..plz check my code...i want to set a condition on my CFL which opens GL Accounts..it has to show only Active Accounts...but when i run the program iam able to see all accounts..what might me the proble..
my code is as follows
'''''''''' load form
private sub loadform()
'' here iam loading form which is designed in Screen painter where i have a textbox (uid = 19) and CFL_2 as its choosefromlist and object type = 1 alias name = ActCode
conditionCFL()
oform.visble = true
end sub
'''''''''' end of load form
'''''''''setting condition
private sub ConditionCFL()
Try
Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
Dim oCons As SAPbouiCOM.Conditions
Dim oCon As SAPbouiCOM.Condition
oCFLs = oForm.ChooseFromLists
Dim oCFL As SAPbouiCOM.ChooseFromList
Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
' Adding 2 CFL, one for the button and one for the edit text.
oCFLCreationParams.MultiSelection = False
oCFLCreationParams.ObjectType = "1"
oCFLCreationParams.UniqueID = "CFL1"
oCFL = oCFLs.Add(oCFLCreationParams)
' Adding Conditions to CFL1
oCons = oCFL.GetConditions()
oCon = oCons.Add()
oCon.Alias = "Postable"
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCon.CondVal = "Y"
oCFL.SetConditions(oCons)
oCFLCreationParams.UniqueID = "CFL2"
oCFL = oCFLs.Add(oCFLCreationParams)
Catch
MsgBox(Err.Description)
End Try
end sub
'''''''''end of setting condition
i have still more code...plz follow the next code which is posted below.....continuation from above code...plz foloow complete code
'''''''''''item event
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
Dim EventEnum As SAPbouiCOM.BoEventTypes
EventEnum = pVal.EventType
Try
Select Case pVal.EventType
Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
If pVal.BeforeAction = True Then
Dim oCFLEvent As SAPbouiCOM.IChooseFromListEvent = DirectCast(pVal, SAPbouiCOM.IChooseFromListEvent)
Dim oDataTable As SAPbouiCOM.DataTable = oCFLEvent.SelectedObjects
Dim val As String
Try
If pVal.ItemUID = "19" Then
Me.oDBDataSource.SetValue("U_BalenceSheet_Acct", 0, oCFLEvent.SelectedObjects.GetValue(0, 0))
End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End If
Exit Select
End Select
Catch ex As Exception
MsgBox(ex.ToString)
End Try
end sub
''''''''''end of item event
Edited by: Shenaz Sultana on Nov 13, 2009 2:18 PM -
AJAX Report Refresh a_report- Condition for display not being validated
Hi ,
I have a report which has the following condition for dispaly:
Exists(SQL query returs atleast one row) - SELECT * from temp1The query for the report is : select * from temp1 Now I have a button on the page and on click of the button I call the below Javascript :
function f_insert_Temp_table(pTrans){
var l_Return = null;
var get = new htmldb_Get(null,$x('pFlowId').value,
'APPLICATION_PROCESS=temp_table_insert',206); // ODP to insert into temp1
get.add('TRANS_ID_ITEM',pTrans);
gReturn = get.get('');
//alert(gReturn);
//$x_Show('6342610690289435');
$a_report('6342610690289435','1','15','15');
}Everything executes fine and the report refreshes the rows but the condition used for display doesn't get checked when I call $a_report() ...
I can see the ODP execute successfully and row gets inserted into temp1 which means report condition is satisfied .
If I remove the condition for the report, I can see the report getting refreshed and showing new rows through the $a_Report() call.
Is there something that needs to be added to the script or $a_report call to validate the condition too ?Is there a way I can validate the region condition too ?
Appreciate any suggestions/pointers here. I really do not want to refresh the whole page.
Thanks,
Dippy
Edited by: Dippy on Feb 5, 2010 11:05 AMHi Flavio,
Thanks for your support.I figured where I was going completely wrong.
Its just that when the page loads for the first time the temp table is empty and hence the report is not being displayed which simply
means that the report id Im passing into the a_report function is not rendered on the page. Hence no matter what the temp table contains the report id is absent from the page.
I fixed it as follows :
Remove the condition for the report.
Added and item and computed(P_Compute) its value using select count(*) from temp.
Added an onload JS function which does a $x_Show('Report_Region') if P_Compute > 0 or $x_Hide('Report_Region') if P_Compute <0 .
Now in my JS function which has an AJAX call to an ODP does an $x_Show('Report_Region').
Flavioc : the query for my report is simple
select * from tempIt finally dawned upon me that I'm trying to catch hold of an ID that's not rendered.
So one issue is solved now the other part would be figuring out how to make $a_report work with pagination etc . -
Problem in setting condition for a period of time for SUMIFS
Dear fellows,
I have a list of transactions - column B is a value and column C is a date. I'm using SUMIF to calculate a total value per month. I set the date condition as
column C;">="&B1;column B;"<="&EOMONTH(B1;0)
it seems there is a mistake as the formula returns a value with 1 transaction missing (the last day of a month).
in my example the formula should return 125 instead of 124.
Please see the screenshotHello
I'd try:
"<"&EOMONTH(B$1;0)+1
instead of:
"<="&EOMONTH(B$1;0)
Also check B$1 is date-time value with day = 1.
* Numbers date value is actually date-time value. If time part is not 00:00:00, comparison could yield unexpected result for edge values.
Good luck,
H -
How to acheive between and condition for dates in prompts
Hi all,
can any one tell me how to achieve between and condtion in obiee 11g
i used like this,
i in the filter i put active date is between and put two presentation variables(pre_var1 and Pre_var2) and in prompts
is used to one prompt active date is between when i am passing the same date the result is not getting. the prompt that i used is set a presentation variable(Pre_var1) is it correct?
can any one help in thisHI,
What i got from ur ques is that u want single record for every customer havin oldest start date and most future end date. If it is so then in ur update routine from source ODS to Target ODS try this code :
Sort data_package by customer startdate ascending enddate descending.
delete adjacent duplicates from data_package comparing customer.
after sorting u will have all records of a customer together with oldest start date and most future end date as first record. Delete will remove rest of the records for a customer from data_package.
Regards:
Jitendra
Edited by: Jitendra Gupta on Jul 11, 2009 12:53 PM -
Extraction problem - selection conditions for data load using abap program
Hi All,
I have a problem loading data over a selected period where the selection of date range is done using ABAP routine (type 6). Here though in the request header tab in monitor screen i'm able to see the selection date range populated correctly, no records are being extracted. But if i delete the abap filter and directly give the same date range for selection we are able to extract data. if any body has faced similar problem and have a solution for it please help me with yur suggestion.
Thanks,
nithin.It seems the the data range is not properly set in the routine.
You can check the value of selection period generated by routine in the data selection tab-> execute button is there .
Click it to to test the selection values generated by the ABAP routine..
If the value here seems correct one then paste the code of the routine that u have written with brief logic details that u have applied.
Sonal..... -
Two Date Characteristics As An OR Condition For Date Range Input
Hello,
Here's the requirement. The user inputs a date range. In the query, we have two date characteristics. If at least one of the date characteristics falls between the inputted date range, then the row should show up on the report. This is essentially an OR condition. How can this be done?
Thanks!hi,
just a tought... but worth a try.
1) Create an 2 Formula variables with User Exit.(ZF1 & ZF2)
2) These will be filled with data with SETP2(User Exit) from the user Entry Variable. One variable will have from date & the next one will have to date.
3) Then create 2 more Formula variables (ZR1 & ZR2) this time with replacement path for the 2 date you have and the create a global Key Figure with If Condition.
CKF's:
(( ( ZR1 >= ZF1) AND ( ZR1 <= ZF2 ) ) * (your vales)
repeat the same for the ZR2 also.
Regards, Siva -
INFOSET QUERY: Set condition for output display
Dear Experts,
I have created a infoset query for display of Material inspection Characteristics using tables QPMK, QPMZ & QPMT.
now the user wants to display data only of those transaction no.'s starting with 'MC' or 'EQP' or 'WE' so on & so forth.
I do not know how to incorporate the same in the Infoset. I have tried putting the codes in DATA / START-OF-SELECTION / RECORD PROCESSING etc... but no use.
There is another option of filtering the transaction no,'s in Layout, but user does not want the same.
so kindly guide me.
Thanks.
Regards,
JiteshHi Jitesh,
Please follow the below stepas . (here pseudo code)
In Data Section
DATA: str1 TYPE string,
str2 TYPE string,
str3 TYPE string.
str1 = 'MC*'.
str2 = 'EQP*'.
str3 = 'WE*'.
If you have more strings to compare ..declare those like that.
In 'Record processing Event' you need to use CHECK statement with CP operatoar of String
CHECK table_name-transaction_field CP str1 OR table_name-transaction_field CP str2 OR table_name-transaction_field CP str3.
CHECK SY-SUBRC EQ 0.
Genrtae the Infoset "Important step
Go to SQ01(in a new session) , and see if your getting required result.
Regards,
Dinesh
Edited by: Dinesh Tiwari on Oct 1, 2009 7:17 AM
Edited by: Dinesh Tiwari on Oct 1, 2009 7:18 AM
Edited by: Dinesh Tiwari on Oct 1, 2009 8:07 AM -
How to set condition for Characteristic values in report
Hi Experts,
I have a report where the service order will have 1or more part and its corresponding part status.
I want to highlight or give some indication to those service orders where all the parts status are Part Received.
The service order with different part status can be ignored.
FYI: I don't have any keyfigure in my report.
Can anyone please advice me on this.
ThanksHi Ahmed,
You cannot achieve this using this Conditions, as the condition can be defined on a characteristic but u cannot say that for a service orders all the parts status are PART RECEIVED.
For this kind of requirements, you need to add an Flag (Characteristic) and check in the Transformation if all the Part Status are PART RECEIVED for a Service Order and mark the Flag as 'X'.
In the report jst filter on the flag as 'X'. It should resolve.
Regards,
Chathia. -
Any way to set StartDayOfWeek for Date Picker in af:inputDate
In af:inputDate, First Day of Week varies in different locales, is there any way the Date Picker can show it correctly without formatting-locale?
af:inputDate should do this automatically based on the browser's locale setting. Can you describe your use case in more detail where this is not the desired behavior?
-
Error when giving untill condition for System time and date
Hi Experts,
i am using Untill Loop in my workflow to set condition for System time and date.According to this condition when system date and time is greater than equal to some date and time then mail goes to an agent.But during testing , the workflow gets into error stage.
In workflow log i am getting error like
'Maximum number of 10000 nodes reached' in executed action 'DEQUEUE_NEXT_NODE' for false condition.
Please suggest what may be possible cause or solution for it?
Points will be rewarded for any good solution.
Thanks
Snehasish DasHi,
You should not use loop for that kind of purpose. It sounds to me that your workflow is looping all the time, and the maximum numer of nodes is reached soon, and the workflow goes into error.
You should use the WF deadline functionality for your purpose. For example use in a relevant step the "latest end" tab, and define the deadline there. Then when your deadline is reached, the workflow will continue in a separate outcome, and there you can send your mail.
Regards,
Karri -
hi,
I need to set DateFormat for date (dd/mm/yyyy) and meanwhile JFormattedTextField must have the MaskFormatter ##/##/####
MaskFormatter formatter = new MaskFormatter("##/##/####");
formatter.setValidCharacters("0123456789");
formatter.setPlaceholderCharacter('.');
masktxtDate = new JFormattedTextField(formatter);this sets only mask and how can I add the dateFormat also
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");ok,
now I have another task to solve masktxtDate.setValue(string) puts nothing in the formatted textfield and also deletes the mask, where is my fault? -
Approval Activation for data import
Hi,
I will be importing my sales order, purchase order, GRPO and Delivery through DTW. However I want all these transactions to be subject to approvals. But when I imported a PO through DTW it bypassed the approval procedures. Please let me know if this is how it works or I need to change the way I am importing the transaction.
ThanksDear Kapil,
You just restrict user for data import but In standeard system you cant set approval for data import.
REGARDS
MANGESH PAGDHARE.
Maybe you are looking for
-
How to find i phone 5 is on which network while its not activated
i got new mobile it was unlocked but when i restarted its not activating how to find its on what network
-
Best bookkeeping program for small business
Hi am opening up a small business and wondering what the best bookkeeping program would be for on my MB Pro?
-
3GS will not backup due to corrupt backup
I PHONE 3GS , WINDOWS XP, ITUNES 10.2.2. Hi, I am trying to backup my 3gs. I receive a error message saying i have a corrupt or not compatiable backup. I have deleted the previous backup through preferences and reinstalled itunes but i still cannot g
-
Too many extents for table on locally managed uniform ASSM tablespace
Running Oracle 9.2.0.8 on solaris 10, Enterprise edition. Tablespace configuration: select extent_management, allocation_type, segment_space_management, block_size, initial_extent, next_extent from dba_tablespaces where tablespace_name = 'PCLARGE'; L
-
Does anyone know where I can get a suitable armband for a Zen Tou
Can onyone post a link or brandname/model?