on 12-05-2005 12:26 PM
Hi to All,
I am designing an view which contains input parameters are From date and To date, to retrivie data between the dates.
how can i set my input filed type as datetype to select date by the user?
and another thing is,
my rfc is having a date input parameters, in custom controller implementation part, how can i initialize my date fileds.
for example,
Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input(); wdContext.nodeBapi_Flight_Getlist_Input().bind(input); input.setDestination_From(<b>new Bapisfldst()</b>); input.setDestination_To(new Bapisfldst());
My RFC is, Z_Sales_Order_Register
<b>sample implementation of controller.</b>
Z_Sales_Order_Register_Input input = new Z_Sales_Order_Register_Input();
wdContext.nodeZ_Sales_Order_Register_Input().bind(input);
input.setS_FDate(----
);
what i can put here in blanks?
Reply me, if anybody can!
Regards,
sireesha.
About your second question:
go to sap transaction SE37 and check the type of the parameter that your RFC is expecting.
usually RFCs expects dates as strings in the following format: YYYYMMDD
then you should write something like:
input.setS_FDate(new String());
and later, before executing the RFC:
input.setS_FDate("20051205");
hope it helps, Adi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your reply,
I want to pass a user value i.e., at runtime to the Fromdate input field and todate inputfield.
so how can i do that. if i use input.setS_FDate(new String()) it is not supporting since my FDate filed is of type DATUM in SAP. so how can i solve this problem?
Thanks in Advance,
sireesha.
Hi sireesha,
1. in the context:
define a new value attribute.
2. go to its properties and change it's type to Date.
3. bind your input field to this value attribute.
now - when running your application the user will be able to pick a date from a calander.
hope it helps, Adi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.