Date format conversion in Business Server pages

Hi Floks
i am working Business server pages i got some problem in the date format. Igetting date as dd.mm.yyyy and i want to change this to MM/DD/YYYY format . i tried to change this in like in ABAP coding . it s not working can give how can fixthis issue  that i am working CRM application .so please proper code or anything ..
thanks
Preethid

Hi Preethi,
If you can not do it in SU01 you can do it using split .
Something like:
call function 'CONVERSION_EXIT_PDATE_OUTPUT'
  exporting
    input  = sy-datum
  importing
    output = gv_date.
Now you get the date in dd.mm.yyyy format .
DATA: str1 TYPE string,
      str2 TYPE string,
      str3 TYPE string.
SPLIT gv_date  AT '.'  INTO: str1 str2 str3 .
concatenate str2 '/' str1 '/' str3 into gv_date .
Where gv_date is strign type or c(10) .
I tried the above code and its working fine.
Regards,
Anubhav

Similar Messages

  • Workbooks not opening from a Business Server Page (BSP)

    Hello Experts,
    I need help with opening workbooks from a Business Server Page (BSP). The problem is that the workbook is not opening, but instead a blank Excel page opens. I am using Microsoft Excel 2003 and on BI 7.0 version. Here is the code: Could you please look at the below code and advice me. This does not have any selection screen.  Also, i have another workbook with a selection screen and I want to pass values to these selection variables. Is that possible? In the below code, my suspicion is either with 'application/vnd.ms-excel'  or moving content in to X string. Please give your suggestion. Thanks so much.
    Layout
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2002+design2003" >
    <htmlb:page title="Web Workbook LaunchPad" >
    </htmlb:page>
    </htmlb:content>
    In page attributes:
    file_content TYPE STRING
    FILE_XCONTENT TYPE XSTRING
    WA_WBDATA TYPE RSRWBSTORE
    WBDATA TYPE RSR_RPEC_BIN_FILE
    WBID TYPE RSSGUID25
    On Initialization.
    refresh wbdata .
    clear: file_content .
    data: temp_string type string .
    select * from rsrwbstore into table wbdata
    where workbookid = 'VXXGCMF53EVQAS7U8UA80OXN7'.
    if not wbdata[] is initial .
    loop at wbdata into wa_wbdata.
    clear temp_string .
    temp_string = wa_wbdata-clustd .
    concatenate file_content temp_string into file_content .
    endloop.
    clear file_xcontent .
    file_xcontent = file_content .
    response->set_header_field( name = 'content-type'
    value = 'application/vnd.ms-excel' ).
    some Browsers have caching problems when loading Excel format
    response->delete_header_field( name =
    if_http_header_fields=>cache_control ).
    response->delete_header_field( name =
    if_http_header_fields=>expires ).
    response->delete_header_field( name =
    if_http_header_fields=>pragma ).
    *start Excel viewer either in the Browser or as a separate window
    response->set_header_field(
    name = 'content-disposition'
    value = 'attachment;filename=webforms.xls' ).
    response->set_cdata( data = file_content ).
    finally display Excel format in Browser
    data: l_len type i.
    l_len = xstrlen( file_xcontent ).
    response->set_data( data = file_xcontent
    length = l_len ).
    navigation->response_complete( ).
    endif .

    Hi Friend,
    have a loook at the below specified threads.Hope it will help you.
    [link1|download to excel in diffrent window;
    [link2|Re: Exporting data from table to Excel in a particular format using BSP.]
    [link3|download to excel in diffrent window]
    With Regards,
    SHARMILA BRINDHA.M

  • Regarding Date Format Conversion

    Hi,
    In my project i am picking the date from the date picker which is a javascript program . Then i am displaying it on a jsp page .It is coming in mm/dd/yyyy format .I have to change it to dd/mm/yyyy format .
    I have the code for date formatting conversion .
    What my doubt is whether  the code should be written inside the jsp page or in the javascript .
    Thanks .

    Hi
    <%@page language="java" import="java.sql.*,java.util.*,java.text.*" %>
    <%SimpleDateFormat sdf= new SimpleDateFormat(dd/mm/yyyy );%>
    <% java.util.Date temp_date = sdf.parse(PassYourDateHere); %>
    use this with your jsp
    Regards
    Abhijith YS

  • DATE FORMAT Conversion FOR SQL Reports

    Hi,
    Am building a report and am stuck here where this piece of code that throws the following error
    The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
    My query goes some thing like this
    DECLARE @StartDate varchar(15),
    @EndDate Varchar(15)
    SELECT @StartDate = '01/08/2014',
    @EndDate = '31/08/2014'
    SELECT DISTINCT
    [Operation] = CASE WHEN p.DATE_OF_START BETWEEN @StartDate AND @EndDate THEN 'Add'
    ELSE 'Update' END
    FROM SNZ_HR_Reporting_POSMGNT as s
    LEFT OUTER JOIN PERSON as p on s.EMP_NO = p.EMP_NO
    WHERE s.CHANGE_DATE BETWEEN @StartDate AND @EndDate
    The date format in the column DATE_OF_START  is like yyyy-mm-dd 00.00.00.000 .
    My question is how to convert this format to dd/mm/yyyy format and execute the queries
    Many Thanks,
    Bhanu

    SQL Date Format:
    http://www.sql-server-helper.com/tips/date-formats.aspx
    Please Mark This As Answer if it helps to solve the issue

  • Business Server Page (BSP) error - CX_FQDN

    Hi All,
    I configured FDQN and Maintain SICF services in Solution Manager and still I am getting the following error:- Any help will be appreciated.
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    Die URL enthu00E4lt keine vollstu00E4ndige Domainangabe (prdr01d3801 statt prdr01d3801.<domain>.<ext>).
    Exception Class CX_FQDN
    Error Name 
    Program CX_FQDN=======================CP
    Include CX_FQDN=======================CM002
    ABAP Class CX_FQDN
    Method CHECK
    Line 10 
    Long text -
    Error type: Exception
    Your SAP Business Server Pages Team
    Please  see my ICM parameters in the server.
    ICM Parameter                                                                               
    Services                                                                      
    icm/server_port_0     = PROT=HTTP,PORT=8001                                   
    icm/server_port_1     = PROT=SMTP,PORT=0                                                                               
    Hard limits                                                                   
    icm/max_services               = 30                                           
    icm/listen_queue_len           = 512                                          
    icm/req_queue_len              = 500                                          
    icm/max_conn                   = 500                                          
    icm/max_sockets                = 2048                                                                               
    Thread handling                                                               
    icm/min_threads                = 10                                           
    icm/max_threads                = 50                                           
    icm/min_spare_threads          = 3                                                                               
    Tracing and statistic                                                         
    rdisp/TRACE                    = 1                                            
    icm/tracefile                  = dev_icm                                      
    icm/log_level                  = 0                                            
    icm/stat_level                 = 1                                            
    icm/security_log               = LOGFILE=dev_icm_sec,MAXSIZEKB=500            
    icm/accept_remote_trace_level  = 0                                                                               
    Monitoring                                                                    
    icm/ccms_monitoring            = 1                                            
    icm/ccms_refresh_rate (sec.)   = 30                                                                               
    Timeout handling                                                              
    icm/keep_alive_timeout (sec.)  = 60                                           
    icm/conn_timeout (msec.)       = 5000                                                                               
    HTTP settings                                                                 
    icm/HTTP/max_request_size_KB   = 102400                                       
    icm/HTTP/j2ee_0                = PREFIX=/,HOST=localhost,CONN=0-500,PORT=50100
    icm/HTTP/server_cache_0        = PREFIX=/, CACHEDIR=F:\usr\sap\S4P\DVEBMGS01\d
       ata\cache                                                                  
    icm/HTTP/admin_0               = PREFIX=/sap/admin,DOCROOT=F:\usr\sap\S4P\DVEB
       MGS01\data\icmanroot/admin,AUTHFILE=F:\usr\sap\S4P                         
    icm/HTTP/auth_0                = PREFIX=/,FILTER=SAP                                                                               
    HTTP(S) error handling                                                        
    is/HTTP/show_detailed_errors   = 1                                                                               
    HTTPS (SSL) settings                                                          
    icm/HTTPS/verify_client        = 1                                            
    ssf/name                       =                                              
    ssf/ssfapi_lib                 =                                              
    sec/libsapsecu                 =                                              
    ssl/ssl_lib                    =                                                                               
    Context Quotas                                                                
    icm/HTTP/context_quota         = 90%                                          
    icm/HTTPS/context_quota        = 90%                                          
    icm/SMTP/context_quota         = 90%                                                                               
    Memory Pipe settings                                                          
    mpi/total_size_MB              = 80                                           
    mpi/buffer_size                = 65536                                                                               
    J2EE settings                                                                 
    rdisp/j2ee_start               = 1                                            
    is/HTTP/default_root_hdl       = J2EE                                                                               
    Content Filter settings                                                       
    csi/enable                     = TRUE                                         
    csi/SAP/csa_lib                = F:\usr\sap\S4P\DVEBMGS01\exe\sapcsa.dll                                                                               
    Misc                                                                          
    icm/host_name_full             = prdr01d3801.abcd.ae                        
    icm/cancel_strategy            = cancel requests without session (stateless)  
    rdisp/plugin_auto_logout       = 1800                                         
    is/HTTP/virt_host_0            = :;                                         
    is/SMTP/virt_host_0            = :;

    Hi Eddy,
    Yes I did,  in the first instance I am getting the following error from  Internet Explorer while try to access the link http://prdr01d3801.abcd.ae:8001/sap/bc/bsp/sap/ai_proj_setup/start.htm?sap-client=100&sap-language=E
    Network Error (dns_unresolved_hostname)
    Your requested host "prdr01d3801.abcd.ae" could not be resolved by DNS. 
    For assistance, contact Customer Support.
    Regards

  • Business server pages

    hi,
    when i execute a business server page it gives the following error.
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
          Die URL enthält keine vollständige Domainangabe (160.1.1.50 statt 160.1.1.50.
    can anybody explain me about this error

    Hi Peter.
    This means that the URL generated does not contain complete domain name. Generally this error is thrown in case of the windows HOSTS file is not maintained with the domain name of the server on which you have developed your BSP.
    Just check if the 'hosts' file has an entry for the server used, if not then you can make an entry yourself by giving the IP address and then server name with tab delimited format. Then try executing your BSp.
    I hope this will help.
    Regards,
    Vaishali

  • Business Server Page error in RWB -alertConfig

    In XI, RWB, when i click to open 'Alert Configuration', it gives an error message:
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    BSP Exception: the Application Name sap in URL /sap/bc/bsp/sap/sxms_alertrules/main.do?sap-client=400&adaptertypes=RFC%20BC%20Mail%20Marketplace%20File%20XIRA%20SOAP%20RNIF11%20JMS%20JDBC%20RNIF%20XI%20CIDX%20 is invalid.
    I tried testing the related service in SICF:
    it gave almost the same error:
    The following error text was processed in the system:
    BSP Exception: the Application Name sap in URL /sap/bc/bsp/sap/sxms_alertrules?sap-client=400 is invalid.

    run RSXMB_ACTIVATE_ICF_SERVICES in se38.
    or go to SICF and follow the path: sap/bc/bsp/sap/sxms_alertrules  and make sure it is active!

  • RE: Oracle DATE data format conversion..

    <C.M> Motta's question about dates and oracle>
    Dealing with dates and Oracle is somewhat of a nuisance. Oracle is very
    particular about how date strings are formatted, and if you get it wrong,
    you get the (unhelpful) message that C.M. Motta showed us. However, if
    you pass a DateTimeData to Oracle, Forte' does the right formatting for you.
    If you do need to format the date prior to interacting with Oracle, use the
    following format:
    dd-mmm-yy <time component>
    You can change the default format, but it is not easy.
    If you customise Express generated code that interacts with an Oracle
    database, again, make sure that you pass a DateTimeData, and not the
    .TextValue.
    Good luck!
    Richard Kirk

    Date: Wed, 06 Nov 1996 08:18:37 -0500
    To: "C. M. Motta" <[email protected]>
    From: Jim Milbery <[email protected]>
    Subject: Re: Oracle DATE data format conversion..
    Cc: [email protected]
    Cheers:
    Most likely what is happening is that you are using the default date
    format of Oracle, and you are sending a four-character year. As follows:
    SQL> insert into jimbo values ('01-dec-1997')
    2 /
    insert into jimbo values ('01-dec-1997')
    ERROR at line 1:
    ORA-01830: date format picture ends before converting entire inputstring
    >
    Oracle defaults to a format of 'dd-MON-yy'
    You can either truncate the year, or manipulate the date to match the standard
    database as follows:
    insert into jimbo values (to_Date('01-jan-1997', 'DD-MON-YYYY'))
    \jimbo
    At 09:21 AM 11/6/96 -0200, you wrote:
    Forte Users,
    First, Id like to thank all those who answered my question on
    droplist & SQL. I got just what I was looking for: its up and runnunig
    now.
    I have another question: Im trying to insert a DATE into an Oracle
    database. The source date is:
    data : DateTimeData = new;
    data.SetCurrent();
    So, when I try to insert data.Value or data.textvalue into DB, I
    get the following exception:
    ORA-01830: date format picture ends before converting entire
    input string.
    Are there any suggestions?
    Thanks for your help,
    C.M. Motta
    ====================================================================
    Jim Milbery
    Milbery Consulting Group
    132 N. West St., Allentown, PA 18102
    O: 610 - 432 - 5350 F: 610 - 432 - 5380
    E-Mail : [email protected]
    ====================================================================

  • Business Server Page(BSP) Error!!

    Hi Friends,
    I have deployed the business package of Supplier Collaboration 2.0. When i click few of the iViews then i am getting the error as:
    <b>Business Server Page(BSP) error:</b>
    <u>SAP Note: The following error text was processed in the system:</u> <i>BSP Exception: Access to page default.htm requires HTTPS. HTTPS has not been configured on this server.</i>
    As per the BP guide, they havent mentioned anything to change the settings. We made sure the System alias used by this iview does exist., so there is no issue of system alias.
    Kindly let me know if anyone knows..about this.
    Thanks,
    Raghavendra Pothula

    Hi,
    Where we have to set this https service.....
    Thanks & Regards
    Ravi Shankar B

  • Business Server Page (BSP) Error from EP

    Hi,
      We are implementing the standard business packages for CRM 4.0 .The test connection to the CRM Server works fine, but when we click on a CRM transaction,  it gives an error
    Business Server Page (BSP) Error
    What happened?
    Call of BSP page terminated due to error.
    Note
    Following error text processed in system:
    URL does not specify a complete domain (172.22.2.36 instead of 172.22.2.36.<domain>.<ext>)
    Exception Class CX_FQDN
    Error name 
    Program CX_FQDN=======================CP
    Include CX_FQDN=======================CM002
    ABAP Class CX_FQDN
    Method CHECK
    Row 10 
    Long Text -
    Error Type: Exception
    Your SAP Business Server Pages Team
    There is no dump in ST22 in the CRM Server
    Please help
    Regards
    Jayesh

    Hi Jayesh,
    The error shows you are not using Fully qualified domain name.
    Instead of the IP address give the server name with the fully qualified domain name.
    Regards
    Arun

  • Business Server Page error (BSP)

    Hi everybody.
    I've installed the Partfolio Management Businnes package, but when I try to use it I have the following error
        Business Server Page error (BSP)
    BSP exception: URL /webdynpro/dispatcher/sap.com/xappscprxrpmui~navigatr/NavigationProxy;jsessionid=(J2EE6375900)ID1437280550DB01043739459538015867End denied
    Thanks
    Alex

    Hi Alex,
    Even we are facing similar kind of issue so kindly provide me solution.
    The error we encounter :
    https://URL/webdynpro/dispatcher/sap.com/xappscprzrpmui~navigatr/NavigationProxy;jsessionid=(J2EE76150300)ID2002463950DB11213908491686403207End will run with a wrong client window ID!
    Do not continue; please report this problem to your administration.
    Suggest me in this issue.
    Best Regards
    DV

  • How to create bsps(business server pages) in ic web client

    Hi All, \
    pls help me  in creating  business server pages  in ic web client  points willl be rewarded. mail me on [email protected]
    Regards,
    Madhukarreddy.A
    Edited by: madhu reddy on Mar 7, 2008 3:11 PM

    BSP are two types.
    1) Model View Controler
    2) Flow Logic
    To create BSP t-code is SE80.
    It is the excellent link pls have a look once
    /people/raja.thangamani/blog/2006/12/26/bsphow-to-navigation-between-bsp-applications-part-i
    Please Reward Points if it helps
    Regards,
    Shiva

  • Error Business Server Page (BSP)

    Hi.
    I am new to BSP.
    I have a Z_CRM_IC application and I am traying to create a new page to display into a pop-up window.
    I created a new page with flow logic type, and I include in iRecReason.htm a javascript function that open a pop-up window and activated the new page
    When run IC and select a link doesnt work.
    When a push a link the pop-up is opened but send a page error with this message:
    Error Business Server Page (BSP)
    ¿Qué ha sucedido?
    La llamada de la página PCS se ha interrumpido debido a un error
    |----
    |Nota
    |El texto de error siguiente se ha procesado en el sistema:
    |----
    Clase error:
    Su equipo de SAP Business Server Pages
    Please anybody has an idea about this problem...
    Thanks.
    Adrian

    Hi,
    Probably the javascript you are using is incorrect.There are two ways of calling your page from a link via navigation:
    1.Through defining navigation ie through creating inbound outbound plugs and a nvaigational link
    2.If you know the URL of the link and just want to call that on click..
    heres how it goes:
    1.
    For creating a navigational link follow the cookbook.Section 5.6
    2.
    In case you have a fixed URL use following code:
    <crm_bsp_ic:link id="link1" reference="http://www.google.com" target="_blank" text="Ext Link"></htmlb:link>
    thanks,
    ashish.

  • Has an error in CRM webui (Business Server Page Error)

    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    Define component usage 'CUKNOWARTValueHelp'
    Exception Class CX_BSP_WD_INCORRECT_IMPLEMENT
    Error Name
    Program CL_BSP_WD_REPOSITORY==========CP
    Include CL_BSP_WD_REPOSITORY==========CM00C
    ABAP Class CL_BSP_WD_REPOSITORY
    Method GET_CMP_USAGE_DEF
    Line 18
    Long text -
    Error type: Exception
    Your SAP Business Server Pages Team
    Not able to figure our how to fix it.
    Tx
    Sabina

    Hi Sabina,
    The error is caused because the Component usage 'CUKNOWARTValueHelp" is missing. Open the associated BSP application and check if there is a component usage defined in the Runtime Repository. If there is no custom enhancement to the BSP you are dealing with, then this issue might be present in Standard. If that is the case, check if the note suggested by Hasan helps.
    Good luck.
    Regards,
    Prathap

  • Business Server Page (BSP) Application

    I have created a BSP iView, however I'm missing some parameters and I'm not sure what shoudl be added.
    For example:
    Customer Namespace
    Application Namespace
    Business Server Page (BSP) Application
    Start Page - (is this documents_todo.htm)
    Thanks

    Application namespace: sap
    customer name space : sap
    BSP application: name of the bsp application.
    start page: start page name from the same bsp appliction.

Maybe you are looking for