From & To Selection for htmlb:inputField id = "DATE"
Hi Friends,
Is there any feature like ,to select the dates in the htmlb calendar ? I need to select the from date , to date in the same calendar ,for results in that particular dates. I look for your suggestions in this regard.
Regards
CSM Reddy
You can refer to this sample code:
<htmlb:gridLayout columnSize = "2"
rowSize = "2" >
<htmlb:gridLayoutCell columnIndex = "1"
rowIndex = "1" >
<htmlb:label for = "date_frm"
required = "true"
text = "Date From"
design = "EMPHASIZED" />
</htmlb:gridLayoutCell>
<htmlb:gridLayoutCell columnIndex = "2"
rowIndex = "1" >
<htmlb:inputField id = "date_frm"
type = "date"
required = "true"
doValidate = "TRUE"
firstDayOfWeek = "2"
showHelp = "true"
value = "<%= date_frm %>" />
</htmlb:gridLayoutCell>
<htmlb:gridLayoutCell columnIndex = "1"
rowIndex = "2" >
<htmlb:label for = "date_to"
required = "true"
text = "Date To"
design = "EMPHASIZED" />
</htmlb:gridLayoutCell>
<htmlb:gridLayoutCell columnIndex = "2"
rowIndex = "2" >
<htmlb:inputField id = "date_to"
type = "date"
doValidate = "TRUE"
required = "true"
firstDayOfWeek = "2"
showHelp = "true"
value = "<%= date_to %>" />
</htmlb:gridLayoutCell>
</htmlb:gridLayout>
Now in OnInput Processing we can have:
date_frm = request->get_form_field( 'date_frm' ).
date_to = request->get_form_field( 'date_to' ).
If you need to fetch records, from a DB table within this interval you can use:
SELECT <fields> FROM INTO <itab> WHERE <date in DB table>
BETWEEN date_frm AND date_to.
Hope this helps,
Regards,
Ravikiran.
Similar Messages
-
How to fire an onblur event for htmlb:inputfield ?
Hi All,
I have a problem in creating in ONBLUR..for input field.
What i want is when i give input to the input it goes to DB and retriving some data and visible to next Dropdown.
For this if i give input to input field and press any key then it will goes to db and getting data.
I am stricking over here .
Please guide me for this.
Thanks
Nageswara.so what you need is a javscript function to get triggered onblur event and it should generate server event.
check out the following code sample.
<htmlb:inputField id = "test"
alignment = "LEFT"
size = "10"
type = "STRING" />
<bsp:htmlbEvent id = "myid"
onClick = "myonclick"
name = "ValueChanged" />
<script for="test" event=onblur type="text/javascript">
ValueChanged();
</SCRIPT>
Regards
Raja -
Define Field Selection for Move-In Contract Data
In Move-In customization, in IMG activity u201CDefine Field Selection for Move-In Contract Datau201D when you go for u201CField Selection u2013 Modifiable Fieldsu201D Screen (Transaction is EQ07), I am seeing four buttons as follows.
u2022 Modified
u2022 Influencing
u2022 Screen Groups
u2022 Influences
I would like to know the applications of that buttons.
Also, if I click the u201CModifiedu201D button, it takes me to another screen in which I am seeing seven buttons as follows.
u2022 New Values
u2022 Delete Value
u2022 Influencing
u2022 Modifiable
u2022 Screen Groups
u2022 Influences
u2022 View
It would be really great if someone explain me about this.
Thanks,
Meenakshi Sharmahi meenakshi
here are some data 4 u
modified---if u click that u will come to know whther any field is modifies or not previosuly
influence--after u make a modification the effect or the change is shown in influences
screen gpr os nothing but all the main and sub screens involved for a particular transaction
influencing field is something like u have some connection witht that field,for example click screen grp and screen modification in contract and then click infuencing u can see the 2 fields whch are set as influeincg fields for contract
u can change the selection fro i/p to diaply and save it and see the changes or details showed by clicking each button..hope u willl finds a lot urself
kr
raj -
Htmlb inputField type date: Failure
Hi
I am using a htmlb inpuField with type date.
Most of time it works fine.
However, sometimes it opens the calendar and closes imediately. After that, it does not open calendar anymore. It is necessary to submit in order to make it works normaly again.
Any ideas?
Regards,
Ronaldo.Hello.
I could not reproduce this with the following simple code:
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
<htmlb:page title = "test ">
<htmlb:form>
<htmlb:dropdownListBox id = "myDBLB">
<htmlb:listBoxItem key = "key_red" value = "Red" />
<htmlb:listBoxItem key = "key_green" value = "Green" />
<htmlb:listBoxItem key = "key_blue" value = "Blue" />
<htmlb:listBoxItem key = "key_black" value = "Black" />
</htmlb:dropdownListBox><br>
<htmlb:inputField id = "aabb"
value = "01.02.2005"
showHelp = "X"
type = "date"
/>
</htmlb:form>
</htmlb:page>
</htmlb:content>
Can you please give me some hint, what you are doing?
What SP level do you have? (Menu option System -> Status)
The two problem of yours may have something to do with each other but I am not sure.
Regards. -
How to select for Database Setup via Data Mover
install PT849+HRMS89 with MUL on REH 5.4 x64+Weblogic92+Tuxedo 91+Oracle 10g
after database instance installation manually, need to use Data Mover to import *.db file into database from windows client server.
in this step, any one can advice the setup for DEMO and SYSTEM type.
See the screen https://docs.google.com/file/d/0B50TDBQBIUW7NUZyLUpJY01zcVU/edit
PeopleTools System DataBase-->ptengs.db
PeopleSoft HRCS Database - Simplified Chinese --> hczhsa.db
PeopleSoft HRCS Database - English--> hcengs.db
if Demo selected, hcengl.db is involved, but no ptengs.db
I have tried:
1. select SYSTEM and PeopleTools Database, then import ptengs.db, Then hcengs.db and hczhsa.db.
2. Only import hcengs.db and hczhsa.db
But both are failed for there exists many database record error in the subsequent step.
Thank you very much.
AndyThe second option is the correct one, but if you already ran the 1st, then it will fail. Better to recreate the db from scratch and directly go for the 2nd option.
Nicolas. -
Document selection for initial transfer by date of creation does not work
Hello gurus,
we are trying to initially transfer purchase orders from ERP to GTS. In /SAPSLL/DS_D_MM0A_R3, when we try to select the documents by giving a date for u2018created onu2019, no documents are transferred (u2018No data was found for the selection criteriau2019, Message no. /SAPSLL/PLUGINR3205).
But when we select the documents using ME2L and insert the document numbers in the appropriate field in /SAPSLL/DS_D_MM0A_R3, all documents are transferred just fine.
So obviously the selection by date does not wok properly. Or are there other hidden criteria ERP uses to select the documents to transfer (e.g. only those without GR/IR)?
Thanks in advance
AliciaHi Alicia,
just had a customer message with the same issue.
The program for initial transfer selects the data frm table EKKO.
Please check for those 3 documents, if the AEDAT in EKKO is the same date as in the selection of ME2L.
It could be that in EKKO the AEDAT is a different date. We are selecting from this table.
I believe if you choose the documents in SE16 EKKO only by the date from ME2L you won't find them as well.
I believe the difference is between the 'Creation Date' and the 'Document Date'.
Best regards, Christin
Edited by: Christin Angus on Sep 14, 2010 2:24 PM -
DATA FROM A SELECTED RANGE COMPARED WITH OLDER DATA
Post Author: NewITGuy
CA Forum: General
Hello , I have a report that I have to write that would Look at all the orders we have placed over the last year by partnumber and compare to see how many times we have purchased that part in the last 3 years. My problem I trying to figure out is that the report range I will need to lock in a record select back to 1 year from now to only show those partnumbers.
If I lock it in that date range how will I be able to compare it to old because they wont show on the report.Post Author: V361
CA Forum: General
group by date, (select year) and setup your 1year old section, then use a subreport to pull up the current data. Subreport can use a different date range. or you can just use a or, as shown below, it would pull up orders.order date between 2/18/2003 to 2/20/2003 as well as those between 2/22/2003 to 12/20/2003
({Orders.Order Date} in Date (2003, 02, 18) to Date (2003, 02, 20)) or{Orders.order Date} in Date (2003, 02, 22) to Date (2003, 12, 20) -
I'm trying to issue a SELECT ... FROM ... FOR UPDATE, and under specific verified conditions runs an UPDATE (where the current is positioned!).
The error code I get is:
ORA-01002: Fetch out of sequence.
Here you are my code:
/////////////////////START
import java.sql.*;
import oracle.jdbc.*;
import oracle.sql.*;
public class SelForUpdDin{
static{
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
catch(Exception e){e.printStackTrace();}
// Queries and cursor name
public static void main (java.lang.String[] args){
String cursorName = null;
int codice = 0;
String cognome = null;
String job = null;
int manager = 0;
java.sql.Date dataAss = null;
int salario = 0;
int commissioni = 0;
int reparto = 0;
String rowid = null;
String sqlSelect = "SELECT empno, ename, "+
"job, mgr, hiredate, sal, comm, deptno, ROWID "+
"FROM scott.emp FOR UPDATE";
String sqlUpdate = "UPDATE scott.emp SET comm = ? WHERE ROWID = ? ";
try {
Connection con = DriverManager.getConnection("jdbc:Oracle:oci8:@","system","manager");
// Esecuzione della SELECT e produzione del RESULT SET
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(sqlSelect);
PreparedStatement ps = con.prepareStatement(sqlUpdate);
while (rs.next()) {
codice = rs.getInt(1);
cognome = rs.getString(2);
job = rs.getString(3);
manager = rs.getInt(4);
dataAss = rs.getDate(5);
salario = rs.getInt(6);
commissioni = rs.getInt(7);
reparto = rs.getInt(8);
rowid = rs.getString(9);
// Applicazione della business logic
if (reparto == 30)
{ System.out.println (cognome + " in dept= "+ reparto +
" with salary=" + salario + " has a commission= " +
commissioni);
int newcomm = 5555;
ps.setInt(1,newcomm);
ps.setString(2,rowid);
ps.executeUpdate();
else
{ System.out.println (cognome + " in dept= "+ reparto +
" with salary=" + salario + " has a commission= " + commissioni);
} // if - else
} // end while
rs.close();
ps.close();
stmt.close();
catch(Exception e)
e.printStackTrace();
} // end main()
} // end class
//PS.
//Many thanks to Bachar and Elangovan that ansewerd me to my previous posting and addressed me towards the right solutionHi
The documentation gives following explanation for the error :
ORA-01002 fetch out of sequence
Cause: In a host language program, a FETCH call was issued out of sequence. A successful parse-and-execute call must be issued before a fetch. This can occur if an attempt was made to FETCH from an active set after all records have been fetched. This may be caused by fetching from a SELECT FOR UPDATE cursor after a commit. A PL/SQL cursor loop implicitly does fetches and may also cause this error.
Action: Parse and execute a SQL statement before attempting to fetch the data.
In your program you should set auto commit to false as follows :
con.setAutoCommit(false);
Do this before executing the SELECT FOR UPDATE sql query.
At the end of program you can commit to save the updations as follows:
con.commit();
This should solve the problem.
Chandar -
I am attempting to have cells use data from a selective month from the year before so that I can show actual from the prio. year each month. I need to create a spreedsheet using the the Acutlas from the year-to-date and from last year-to-date, but need to report each month.
Hi Tony,
Answering your question would be easier given a screen shot of the source table and one of what you want the summary table to look like.
Is the data you want for each month in a single cell o the source table, or does the summary table need to collect February's data (for example) from several cells and do some math with those numbers before presenting them on the summary table?
Regards,
Barry -
Do not Extract from PSA but Access Data Source (for Small Amounts of Data)
Hi Experts,
In the DTP, the above option is available for Full Loads for certain extractors but not for others, particularly, certain HR extractors?
Is there a way to make it available for HR extractors? Is there a setting that needs to be updated in ECC or in BI?
Thank you for your help!Hi,
There is no special setting for this, Please see the detail description:
Data is not extracted from the PSA for the DataSource; it is requested from the data source directly at DTP runtime.
Use
You use this mode for small data sets and full uploads, for example, small sets of master data. With file source systems, note that the file has to be available on the application server.
Dependencies
You do not have to create an InfoPackage in order to extract data from the source.
Data in the data source is accessed in "direct access mode". This has certain consequences, especially if you are extracting data from SAPI systems:
Data is extracted synchronously. This places a particular demand on the main memory, especially in remote systems.
The SAPI extractors may respond differently than during asynchronous load since they receive information by direct access.
SAPI customer enhancements are not processed. Fields that have been added using the append technology of the DataSource remain empty. The exits RSAP0001, exit_saplrsap_001, exit_saplrsap_002, exit_saplrsap_004 do not run.
If errors occur during processing in BI, you have to extract the data again since the PSA is not available as a buffer. This means that deltas are not possible.
In the DTP, the filter only contains fields that the DataSource allows as selection fields. With an intermediary PSA, you can filter in the DTP by any field.
Regards,
Kams -
How to set the Default values for Info Objects in Data Selection of InfoPac
Hi All,
Flat file Extracion:
How to set the Default values for Info Objects in Data Selection Tab for Info Package
ex: Fiscal Year Variant Info Object having values 'K4' 'Y2' etc in Flat file
Initially default value(not constant) for this info Object value should be 'K4' in Info Package
If I set data selection value for this info object K4 it will retreive records with this selection only? how to handle
Rgds,
CVHi,
suppose as your ex. if you are having fiscalyear variant in the dataselection tab then specify K4 in the from column, again the ficalyearvariant row and click on insert duplicate row at the bottom . you will get another row . In that enter Y2 in the from column. now you can extract K4, y2 values .
haritha -
Selection for (InfoObject only date) cannot be uniquely assigned in RRI
Hello,
I have created RRI using 6 queryies. When i do jump from sender to receiver, i found the warning messages for two date fields saying that Selection for ZORAPLIC cannot be uniquely assigned and Selection for ZOR_CREAT cannot be uniquely assigned. ZORAPLIC & ZOR_CREAT are two date fields. I have supressed all messages in RSRT also.
Please help me on this.
Thanks,
AshokI do have a user exit to fill in a text variable and even though we modified the ABAP code for it, it still doesn't work
But if you tell me that the "Selection for [variable] cannot be uniquely assigned" problem comes from the user exit problem, we'll try to fix this one first.
Thanks again -
Fld selection for mvmt type 511/ acct 520302 differes from Profit center Er
Dear Gurus,
I got error Fld selection for mvmt type 511/ acct 520302 differes from Profit center (042), since we have scrapped so many times with same GL, why this issue comes.
if i do in OBC4>>>>Field status group>>>G018>>scrapping>>Additional acct assginment>>Profit center changer from suppress to opt entry. Is this error goes.
But previous we have done scrapping, no issues, but currently happening
Please advice me
Thanks
RSHi,
go to FS02 put the account 520302.then go to create/bank/interest tab .
here double click on field status group. go into the additional accounting data here make profitcenter as optional if it is supress.
OR
goto SPRO >MM> Inventory mgm >movt types > select the 511 movement type.go to its field selection .
here goto addinal accounting data and make profit cesnter as otional if it is supress
regards,
sujit -
Donot extract from PSA. Access datasource directly (for small amts of data)
Hi Experts,
I am facing issue in DTP screen. I dont see File extraction selection path in DTP screen.
My requirement is to load the csv file directly into DSO. Here I dont use PSA /Infopackage. I want to do this by DTP selection. But in DTP selection I dont see File extraction options.
In DTP screen I dont see Check Box which says " Donot extract from PSA. Access datasource directly (for small amts of data) "
Last week we have upgrade/applied support packs. So I am assuming that is this issue occured due to upgrade activity or it is something other way which iam missing.
Appreciate your early response.
Many thanks for your help.
Regards,
SajiSaji
What is the location of your CSV file? Your Local machine or Application server ?
I believe it has to be application server to have this settings.
If you think this problem got created due to upgrade , you can try to create a FULL DTP for any of the master data/text DataSource and check if the option is coming there. If yes, then upgrade did not create any problem and you are sure this is a settings problem.
Please check this thread....Do not Extract from PSA but Access Data Source (for Small Amounts of Data)
Regards
Anindya
Edited by: Anindya Bose on Mar 10, 2012 10:23 AM
Edited by: Anindya Bose on Mar 10, 2012 10:38 AM
Edited by: Anindya Bose on Mar 10, 2012 10:38 AM -
How the data is fetched from the cube for reporting - with and without BIA
hi all,
I need to understand the below scenario:(as to how the data is fetched from the cube for reporting)
I have a query, on a multiprovider connected to cubes say A and B. A is on BIA index, B is not. There are no aggregates created on both the cubes.
CASE 1: I have taken RSRT stats with BIA on, in aggregation layer it says
Basic InfoProvider *****Table type ***** Viewed at ***** Records, Selected *****Records, Transported
Cube A ***** blank ***** 0.624305 ***** 8,087,502 ***** 2,011
Cube B ***** E ***** 42.002653 ***** 1,669,126 ***** 6
Cube B ***** F ***** 98.696442 ***** 2,426,006 ***** 6
CASE 2:I have taken the RSRT stats, disabling the BIA index, in aggregation layer it says:
Basic InfoProvider *****Table Type *****Viewed at *****Records, Selected *****Records, Transported
Cube B *****E *****46.620825 ****1,669,126**** 6
Cube B *****F ****106.148337**** 2,426,030***** 6
Cube A *****E *****61.939073 *****3,794,113 *****3,499
Cube A *****F ****90.721171**** 4,293,420 *****5,584
now my question is why is here a huge difference in the number of records transported for cube A when compared to case 1. The input criteria for both the cases are the same and the result output is matching. There is no change in the number of records selected for cube A in both cases.It is 8,087,502 in both cases.
Can someone pls clarify on this difference in records being selected.Hi,
yes, Vitaliy could be guess right. Please check if FEMS compression is enabled (note 1308274).
What you can do to get more details about the selection is to activate the execurtion plan SQL/BWA queries in data manager. You can also activate the trace functions for BWA in RSRT. So you need to know how both queries select its data.
Regards,
Jens
Maybe you are looking for
-
Invoice before Goods Receipt in Intercompany
Hi all! We are setting up the Intercompany Purchasing between B1 and R/3 with local stock. In this scenario, a delivery sent from R/3 creates a draft goods receipt in B1. When the goods arrives you must manually open the draft goods receipt and add i
-
Every time I save an image my mac changes the sizing, why?
I need help. For my job I need to find images and save them in the file size I find. Every time I do this my mac changes the size of the image. For eg. I find an image that is 325x315 and then simply click "save as". I then go back into the ima
-
Ralink RT3290 802.11bgn Wi-Fi Adapter is not detecting wifi
i am using HP PAVILION 15-E015TX. i reset my windows 8 OS recently because of some corruption of data. after resetting the OS everything is reinstalled to its original state. But the Ralink RT3290 802.11bgn Wi-Fi Adapter is not detecting the wifi whi
-
Why is the recording on the cd not playable in itunes?
I inserted a cd with a recording. the recording with the ending .WAV is not playable. can anyone help? I appreciate your response
-
My Ipod touch "cannot be restored" and says "unknown error -1" when I try to update the software on it. I've reset factory settings in hopes that it would make a difference. Nothing. Help....