Requirement on Functions(date)

Hi ,
Jdev 11.1.1.5.0- adfbc
i had requirement like this.
Leave start date : 10/28/2012 // where i changed the start date based on the days needed result should be produced.
day needed : 1
end date : //result date
how can i achive this.?

Subu,
I'm not sure I get your problem right. Is it to add a number of days to a given date or how to trigger the update of the 'end date' according to the start date and the number days needed?
To add a number of days to a given date you can use this
    public  Date dateAddDays(Date aDate, int aDays)
            Calendar cal = Calendar.getInstance();
            cal.setTime(aDate);
            cal.add(Calendar.DATE, aDays);
            return cal.getTime();
    To trigger the update, set the 'start date' and or 'days needed' to autoSubmit, set the valueChangeListener of the start date and/or the days needed to a bean method where you get the start date and the days needed values and call the method above.
Timo

Similar Messages

  • Problems with DHTML popup: Required DHTML functions are not supported in this browser.

    When I try to open a Date calendar I receive this message:
    Required DHTML functions are not supported in this browser.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Query required to get data

    hi
    i need to a query to get the data as per given structure below.
    tha data should be based on stock code and dates.
    for example : stock_code = 01 and
    from date 01/01/08
    to date 31/01/08
    Date particulars reciepts issued returns closing bal
    01/01/08 opening balance 0
    01/01/08 recieved stock : no 1 18 18
    02/01/08 issued stock : no 5 5 13
    03/01/08 return stock : no 50 3 16
    and so on
    here is the tables i m using
    SQL> desc bal_sheet (balance sheet holds the opening and closing record)
    Name Null? Type
    BDATE DATE
    ACC_CODE VARCHAR2(20)
    OPENBAL NUMBER(20,4)
    CLOSEBAL NUMBER(20,4)
    SQL> desc stock_reg
    Name Null? Type
    STOCKCODE NOT NULL VARCHAR2(20)
    ITEM_CODE VARCHAR2(10)
    DESCR NOT NULL VARCHAR2(50)
    COMCODE VARCHAR2(6)
    COMPANY NOT NULL VARCHAR2(200)
    SHORT_NAME VARCHAR2(10)
    PACK VARCHAR2(10)
    PRICE NUMBER(10,4)
    TOTAL_STOCK NUMBER
    SQL> DESC PURCHASE_HEADER
    Name Null? Type
    P_ID NOT NULL VARCHAR2(10)
    ACC_CODE VARCHAR2(10)
    P_DATE DATE
    REMARK VARCHAR2(500)
    INVOICE_DATE DATE
    NTOTAL NUMBER(12,4)
    SQL> DESC PURCHASE_DETAIL
    Name Null? Type
    STOCKCODE VARCHAR2(20)
    P_ID VARCHAR2(10)
    QTY NUMBER
    BONUS NUMBER
    PRICE NUMBER(15,4)
    EXPIRE_DATE DATE
    DAMAGE NUMBER
    AMOUNT NUMBER(15,4)
    SQL> DESC SALES_HEADER
    Name Null? Type
    S_ID NOT NULL VARCHAR2(8)
    ACC_CODE VARCHAR2(10)
    SALES_MANID VARCHAR2(20)
    S_DATE DATE
    REMARKS VARCHAR2(500)
    NTOTAL NUMBER(12,4)
    SQL> DESC SALES_DETAIL
    Name Null? Type
    S_ID NOT NULL VARCHAR2(8)
    STOCKCODE NOT NULL VARCHAR2(20)
    QTY NUMBER
    BONUS NUMBER
    BATCH_NO NOT NULL VARCHAR2(10)
    EXPIRY_DATE DATE
    AMOUNT NUMBER(15,4)
    SQL> DESC SALES_HEADER
    Name Null? Type
    SR_ID NOT NULL VARCHAR2(8)
    ACC_CODE VARCHAR2(10)
    SALES_MANID VARCHAR2(20)
    S_DATE DATE
    REMARKS VARCHAR2(500)
    NTOTAL NUMBER(12,4)
    SQL> DESC SALES_DETAILR
    Name Null? Type
    SR_ID NOT NULL VARCHAR2(8)
    STOCKCODE NOT NULL VARCHAR2(20)
    QTY NUMBER
    BONUS NUMBER
    BATCH_NO NOT NULL VARCHAR2(10)
    EXPIRY_DATE DATE
    AMOUNT NUMBER(15,4)
    hope the information would be enough to get understand the problem

    Query required to get data Agreed ! Even on your side it is required.
    Well, please, understand we are not here to do your job. So, make effort on your side, show us what you have already done/tried, and post here your results.
    And also, use the tags [pre] and [/pre] around your code against the forum side to keep your post readable.
    Help us to help you,
    Nicolas.

  • Adhoc Query Requirement with Multiple Data Source

    Hi All,
    I have a Adhoc Query Requirement with Multiple Data Source. Is there any way to achive it. Other than Resultant set and bring into Model.
    Thanks
    SS

    You can compare stuff in the EL, but I don't think this is what you need.
    You can just use Java code in the backing bean class for all the business logic. You can use DAO classes for database access logic. Finally for displaying you can use the JSF tags such as h:outputText.

  • Require a dummy date in a sale order

    Hi gurus,
    I require a dummy date in a sales order for entering a date on which letter of indent has come to end user. This date should also appear in tcode va05.
    U can also specify a date which is not used for regular purpose in a std order.
    Note:
    USER EXIT should't be used.
    regards,
    vimal

    hi,
    check these fields in vbap STDAT, STADAT. in vbkd FBUDA, VALDT, BSTDK. i think its not mandatory for u to use a date kind of data type certain kinds of fields can be used as date even though they are not date data types- consult ur ABAP consul for this. morevover its really for you to find out which fields are avalible to you as u are the best judge of teh business process.
    saurabh

  • Does Ipad - 2 require its own data plan

    Does an ipad 2 require its own data plan? 

    Yes - if it is a 3G iPad. Each 3G device requires its own data plan. You do not have to activate a data plan - you can just use the WiFi and get a data plan if and when you need it.

  • Requirements for master data template

    HI,
    Please let me know the basic requirements for master data template. What all the infotype to be involved in collecting master data template.
    Thanks and regards,
    Aylwin

    Hi Alwyn,
    If you dealing with india payroll definately Yes subject to you business process again.
    Even though it is indian payroll some item may not applicable
    For exmple other income resourece will be  if you go to manufaturing industries you may face problem even though they got some they don't want reveal it to the employee.
    in such that infotype is not required as per your business process.
    Some states like UP there is no profession tax. Genrally we say profession tax need to be configure you need that master data.
    If such case that might be wrong for that you need to give all the info
    use PA30 t code go in side check what are the mandatory fields and take them as master data fields and put it in template.
    If your client is able to give other field you can very well add them no harm in it.
    But make sure you filled mandatory fields
    That is the reason i was asking you to tell which coutry payroll you using
    Best Regards

  • PARTNER FUNCTION DATA

    VENDOR SEGEMNT, IN THE 3rd Purchasing Orgnization Data,( in one of the partner function data) in that what is that function of partner function data

    The partner function can be used in purchasing. For example a vendor ordering goods which will be paid by the companies headquarters. In the partner functions you can distuingish between ordering and paying party.
    Regards,
    Johan

  • BP Function Data in PCUI

    Hi,
    I would like to know if it is possible to get BP function data into PCUI 5.0 and CRM 5.0 (department, functions, VIP).
    and if yes, what is the best process.
    Thanks for your precious help.
    Regards,
    Aldo

    Hi Aldo,
    You can bring all the details mentioned.
    It's available in standard application CRMM_ACCOUNT. You can create contact person in Relationship Tab with all these fields. Field VIP may not be in standard but it is available in the structure which means you can easily include it.
    You can check
    Event;ACC_CONTACT_PERSONS
    Field Group:ACC_CP_GRP_V1
    Structure:CRMT_BSP_CONTACT_OBJ_BP
    Award points if the answer is helpful.
    Regards,
    J.Prabananth

  • Error 1297 A privilege that the service requires to function properly does not exist in the service account configuration

    When I try to start Windows installer in Services.msc, it gives me this error Error 1297 A privilege that the service requires to function properly does not exist in the service account configuration. How do I fix this? I am running Windows 7 ultimate.

    Hi,
    Based on the error code, we can use the Services Microsoft Management Console (MMC) snap-in (services.msc) and the Local Security Settings MMC snap-in (secpol.msc) to view
    the service configuration and the account configuration for Windows Installer service.
    Besides, the following two threads focus on the similar issue and can be referred to as reference.
    Error 1297: "ERROR_INCOMPATIBLE_SERVICE_PRIVILEGE 1297” FTP service in Windows 7 computer
    http://social.technet.microsoft.com/Forums/windows/en-US/52329b48-1ba9-4cab-a6b2-efd8db173625/error-1297-errorincompatibleserviceprivilege-1297-ftp-service-in-windows-7-computer?forum=w7itpronetworking
    Service fails to start, error 1297 and 7000
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/419ba006-4413-4036-8c49-252b08593131/service-fails-to-start-error-1297-and-7000?forum=winserverDS
    Hope it helps.
    Best regards,
    Frank Shen

  • MRP is conflicting with Sales order requirement Qty and date

    Hi experts,
    We have below scenario:
    Material has the stock 100. It has reorder point 3 and MRP type V2 (Automatic reorder point with external requirements) and planned delivery time 10 days.
    MRP run creates purchase requisition whenever the stock falls below reorder level or/and based on customer orders requirements.
    We created first sales order for Qty 80 and delivery date 03/01/2012.  Qty 80 is confirmed against this sales order.
    We created second sales order for Qty 50 and delivery date 01/31/2012. Now remaining Qty 20 is confirmed against this order. So we have requirements of 30 Qty for this second order.
    When we run MRP, it supposes to create Purchase requisition for Qty 33 (30 + 3) including reorder point (3 Qty). As the delivery date for this order is 01/31/2012 and requirement Qty is 30, and planned delivery time is10 days, MRP run should create purchase requisition. But it is not creating.
    If I change the planned delivery time to 30 days, it is creating purchase requisition. It is considering sales order delivery date of First order (delivery date: 03/01/2012), but not for second order (delivery date: 01/31/2012).
    So MRP is conflicting with Sales order requirement Qty and date.
    Appreciate your help in this regard to resolve the issue
    Thanks,
    Srini

    Hi,
    We are using manual reorder point planning with external requirements (V1)
    Thanks,
    Srini

  • Have the document about function DATES?

    Have the document about function DATES?,I study the online help that I am illegibility.

    you can go to transaction PE04, enter DATES for the name of the function.
    Finally click on the blue colored "i" icon on the top of your SAP GUI screen.
    The documentation that will be displayed will explain how the schema function DATES should be used.

  • Master Data Required for 2LIS_02_HDR Data Source Installation

    Hi All,
                  We are trying to install  2LIS_02_HDR DataSource through BC for our purchasing implementation . Can you suggest what all the Master Data required for this Data Source.
    Regards,
    Aditya

    Hi ,
    Please see this link.
    http://help.sap.com/saphelp_nw70/helpdata/en/ed/62073c44564d59e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/ed/62073c44564d59e10000000a114084/frameset.htm
    In the same page you can find all details.
    Hope this helps.
    Thanks
    CK

  • Requirement to load data with extension as .inv.dhl of source to target as .csv

    Hi Rajendra, Though the file extension says it is of type .inv.dhl, the actual contents of the file is of type XML and it's valid too as said by AnjiReddy. I would suggest import/create your source definition from the source file by using 'Source > Import from XML Definition' menu option and use xml parser tx and go ahead with your rest of business logic within the mapping and connect to the CSV file target. Please try and let us know if you need help at anypoint or run into issues,Rajani

    Hi Friends, I have got one new requirement to load data from .inv.dhl file to target as .csv i got a file from our customer with extension of .inv.dhl in single file want to load the data available in that file to target as .csv with all information   Below is the input file and desired output files. Kindly help me in this implementation of this file.  Regards,Rajendra

  • MDG-Supplier : "role vendor requires purchasing organisation data"

    We are implementing MDG-S with the vendor UI.  (MDG 6.1)
    Has anyone come across this error while creating vendor "role vendor requires purchasing organisation data".
    This is preventing the creation of a vendor with just the general data.
    Any suggestions to resolve this ?
    Regards,
    Vinay

    Thanks Archana,
    Yes, FLVN01 has been configured. Is there a diff value that should be used for vendor UI.

Maybe you are looking for