Problem in Bsp

hi brian
i need a small help from you.i am uploading file into bps web,i followed your pdf guide.it is working fine.in my scenario,i had developed a screen design and in that i wants to incorporate the file upload functinality.when we generate the bps application corrsponding bsp will be generated and in bsp, the page design will be in the views not in the layout,here iam getting the problem,when i write the code in the oninputprocessing the below code is not responding,when i try to do change in the layout my original design is getting disturbed.my code is as follows in the oninputprocessing plz advice me.
iam getting dump at the bolded line below as null value is passed.plz help me out.
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
CONSTANTS:
c_memory_id_file_upload TYPE memory_id VALUE 'Z_SEM_BPS_FILE_UPLOAD'.
DATA:
lv_objname TYPE lxeobjname,
lr_page TYPE REF TO if_http_entity,
l_content_path TYPE string,
l_content TYPE string,
l_subrc TYPE sy-subrc,
ls_bapiret TYPE bapiret2,
lt_bapiret TYPE STANDARD TABLE OF bapiret2,
ls_mesg TYPE upc_ys_mesg,
lt_mesg TYPE upc_yt_mesg,
request1 type ref to IF_HTTP_REQUEST.
DATA: event TYPE REF TO CL_HTMLB_EVENT.
REFRESH lt_mesg.
IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
IF event->name = 'button' AND event->event_type = 'click'.
DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
button_event ?= event.
ENDIF.
endif.
case event->id.
when 'upload'.
lv_objname = request->get_form_field( 'file' ).
lr_page = request1->get_multipart( 1 ).
l_content_path = lr_page->get_header_field( '~content_filename' ).
l_content = lr_page->get_cdata( ).
IF l_content IS NOT INITIAL.
Export file contents to memory
EXPORT content FROM l_content TO MEMORY ID c_memory_id_file_upload.
endif.
endcase.
create statistic node for performance measurements
type-pools: upcst.
cl_upwb=>statistic_open( i_node_name = upcst_c_web_input_proc
i_page = page
i_request = request ).
call input processing here
call method application->inputProcessing(
event_id = event_id
runtime = runtime
page = page
request = request
navigation = navigation
version = 300
close the statistic node
cl_upwb=>statistic_close( i_node_name = upcst_c_web_input_proc ).

See Bps file upload error in Bsp
Regards,
Marc
SAP NetWeaver RIG

Similar Messages

  • Problem with BSP MVC

    Hi all,
    I had a bsp application which is now running live in the organization. Recently, I got a problem report back from user, which is causing data loss.
    After the support team check the problem and found out the source of the problem. Let me briefly state the problem here. The application is using bsp mvc and it is stateful.
    First, when a user open the application in IE, it is a timesheet entry application, first page will display the time entry of that user for current month. let say the default selected month is September. then if the user wan to compare the entry with previous month, then he will open a new window (ctrl + N) or new tab (ctrl + T), then open the application again. Because of using SSO, the application will not prompt user to login again and will directly lead user to the time entry page. then the user change the month to August for the second new page.
    after the user change the month to august, it will refresh the model that hold the data of the month. means the model now carry August calendar. then the user go back to the first window or the first tab with september time entry, he try to add in new data into that time entry, and save. when it is saved, the september data will go into the August data not go into the September data. this causing data loss in September.
    If I tried this again with not using (ctrl + N) or (ctrl + T) but is open another new IE broswer instance, then it wont give this problem at all. because it create another new model to hold the calendar data. It work fine as long as the user not open two or more windows or tab in a same IE instances.
    Does anyone here meet this problem before or could provide any suggestion to solve this kind of problem? I cant simply changed the application to stateless because it already using worldwide and it will cause a lot of problem. Sorry if my question here was not clear enough.
    Thanks you. (reward point will be given for helpful answer.)

    Is there anyone can understand my problem?
    Thanks you.

  • Problem launching BSP application

    Hi all,
    I'm currently working in CRM 5.0 and I'm trying to launch the BSP application (CRM_IC -> default_dh.htm). I was able to succesfully launch it in the web browser. However, I could only see the toolbar buttons in the browser. The Workarea and the Navigation bar was completely blank. I'm using DEFAULT SAP IC Web Client profile and this is assigned to my user id.
    I have also checked to see if all the services are active in the ICF. Could anyone please tell me how to resolve it?
    Thanks,
    Sahil

    Hello Experts,
    I am trying to launch CRM_IC and facing same problem either ways - CRM GUI and through web browser URL.
    I get following message:
      "Loading" on the main window and additionally a small window pops up for a fraction of seconds with following message
      "Ending the user session.....
       <img width = "1" height = "1" src = "/sap/bc/bsp/sap/crm_ic/default.htm sap-
       sessioncmd=logoff">
    After this additional window, session teminates with nothing happening on the first window and message remains as "Loading".
    Is there any way to get out of it?
    I need to launch IC webclient.
    Am I following the correct approach or there is some other approach to load BSP -
    CRM_IC ?
    Please let me know.
    Thanks in advance,
    Milind Nandedkar

  • Budget check problem in BSP screen

    Hi Experts,
                    We are using BSP internet online application to create the PR. I Configured list of Tolerance messages in the back end and i can able to see these soft warnings and hard stops in the backend PR creation process. My problem is iam unable to see any tolerance messages in the BSP screen.
    Thanks in advance,
    Peter

    You need to add these messages in BSP, as it wont show directly from back end.
    please ask your developer to add in BSP display these error messages...

  • Problem with BSP Application

    Hi all,
    We have three BSP applications running on Production Environment, but after applying Support Patches only two are running , and the third one is not running. But all three applications are running fine in Development, and Consolidation. Here are some inputs which we figure out while trying to fix this problem:
    1) When we point the Production Server to Test Server's Web Dispatcher all three applications executed well, and when we point the test server to Production Server's Web Dispatcher, two applications which were running fine executed, but the third one failed. So this excercise gave us a conculsion that problem is with Web Dispatcher of Production . but we couldn't figure what.
    2) After debugging both successful applicationa and failed application both are indeed passing some basic URL to HTML Viewer, here are the URL's
    Successful Application : https://sun109.pseg.com:443/sap/bc/bsp/sap/zhr_ta
    Failed Application :
    https://sun109.pseg.com:443/sap/bc/bsp/sap/zhr_poe
    (sun109 is host for Production Web Dispatchure)..
    and following are the URL's which i have got after i did right click on the HTML viewer when the application is pulled up.(In case of failed application i am getting blank page).
    SuccessFul Application:
    https://sun109.pseg.com/sap(bD1lbiZjPTEwMCZ0PVpQU0VHJnc9NjE1NzcyMCs=)/bc/bsp/sap/zhr_ta/ta_intro.htm?sap-htmlb-design=
    Failed Application:
    https://sun109.pseg.com/sap/bc/bsp/sap/zhr_poe
    One more point when i took the URL of successful application and changed the application name like this, and pasted it on browser :
    https://sun109.pseg.com/sap(bD1lbiZjPTEwMCZ0PVpQU0VHJnc9NjE1NzcyMCs=)/bc/bsp/sap/zhr_poe/default.htm
    it worked.
    So i think if we compare the URL's ( both input to Web Dispatcher and on properties) of both successful and failed ,  we notice somepart of URL is missing (some kind of encryption) is missing in failed application.
    I want to know why this conversion of URL is happenning , where and how can i fix this problem.
    Regards,
    Akash
    PS: It's very urgent.

    Hi,
    https://sun109.pseg.com:443/sap/bc/bsp/sap/zhr_poe
    is the url of the failed application and under SAPGui we are opening applications in HTML viewer control.This is the url which is passed to the HTML viewer control.
    Contrary, this is the URL of successful application
    https://sun109.pseg.com:443/sap/bc/bsp/sap/zhr_ta
    I have checked this URL while debugging, and this URL is getting passed to HTML Viewer control.
    Also, please let me know how to close the thread.
    Regards,
    Akash Modi

  • Calltransaction problem in BSP (po13)

    hi every one,
        i am doing one BSP application, in that i am using call transaction method to upload data to the TCODE: PO13,
    my problem is all the call transaction steps are working fine after that i am calling that call transaction with like this
    call transaction 'PO13' using i_bdcdata options from wa_options
                         messages into i_messtab.
    but when debugger comes to this step it giving me error.
    this is the dump i am getting:
    CNTL_SYSTEM_ERROR
    The ABAP call stack was:
    Method: CONSTRUCTOR of program CL_GUI_SPLITTER_CONTAINER=====CP
    Method: CREATE_SPLITTER_CONTROL of program CL_HR_OBJECTMANAGER===========CP
    Method: INIT of program CL_HR_OBJECTMANAGER===========CP
    Method: CREATE of program CL_HR_OBJECTMANAGER===========CP
    Form: CREATE_OBJECTMANAGER of program SAPMH5A0
    Form: INIT_DYNPRO_5000 of program SAPMH5A0
    Module: INIT_DYNPRO_5000 of program SAPMH5A0
    and more over it is working fine if i use session method when process session from SM35.
    can any body help me to out this .
    thanks in advance.

    Hi,
    This error occurs because a SAP GUI screen is asked to be launched, but in an HTTP context, this is not possible.
    I can see 2 solutions for that:
    - either build a BSP screen that will replace the SAP GUI screen to be launched.
    - or use WEBGUI service to call the SAP GUI from web.
    You might also be able to place the WEBGUI inside your BSP using an IFRAME HTML tag. The solution you will choose highly depends on what the BSP application is for.
    Hope it helps.
    Regards,
    Tanguy

  • Velocity problem in BSP

    Hi all!!
    I have something very strange with responses times in my BSP, and i don't know what i have to tell to my user...
    The thing is vey starge and occurs with 1 page of the project that conatins a tableview using iterator class. In 80% of the cases the first time that the user run's the BSP this is working for about 1 minute to display the data, then the next execution for different data (no data is stored between executions, i close my browser, delete internet content, etc.. ) the BSP run's few seconds and appear. I don't know how to execute a bsp with time analisis to see if there is something strange or what I can try to do..
    Any suggestions will be very appreciated,
    Regards and thanks in adavance,
    MIquel

    If problem occurs when tableview has more number of rows.
    Look at the below thread. It will solve your problem.
    Table View performance gets slow as the rows increases
    <b>Another point is:</b> Usedelta handling. This gives your page a nice flicker-free effect.
    <i>*Reward each useful answer</i>
    Raja T

  • Problem with Bsp URL !!

    This is the first time that i create an Bsp and i have some problems.
    I created a new Bsp with one  Controller , one View and One Page with logic of control.
    In these pages I scribed little rows of codice . Then these operations I have created an extern alias and I have associated to it my Bsp (Services).
    Now I have some questions:
    The First is:
    1) How can i associate an URL to BSP and set an First page to Bsp?
    Another Questions I'll explicate after to resolve this one.
    Sorry for my English and I'll hope that Anyone will answer me.
    Thank You BP.

    HI BP,
    can you please elaborate more on what exactly you need.
    here is link for <a href="http://help.sap.com/saphelp_nw70/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm">BSP</a> help.
    regards
    -Kedar Kulkarni

  • Problem Display BSP for Appraisals

    Good Night.
    I want display the layout of the pages BSP for the module of Objective and Setting Appraisals.
    I found the following information with some steps for :
    To find out, which links you need to enter the Web pages, enter the Web Application Builder (SE80). In the Repository Browser search for package PAOC_HAP_DOCUMENT_UI, and follow the path Web Objects>BSP Applications>HAP Document-->Pages with flow logic.
    Double-click on the page you want to access. On the right side of the screen, go to the Properties tab
    page.
    BSPu2019s can be started also directly from the SAP System via transaction phap_start_bsp. This
    transaction can also be used to see the parameters and to build up the link which you can copy for use in
    your portal iview.
    However , the pages no display none information or layout.
    I need help . How can display the layout of this page before the portal.??????
    Kind Regards.

    Hi everyone,
    I've run into a problem while testing with PHAP_START_BSP and wondered if anyone has seen this issue.  I am testing in the sandbox on a recently created userID that I assigned to a pernr I created.  When I test with page Documents_todo.htm, I can see the test template I released.  3 other of my teammates can see it as well.  However, when I use a test ID that isn't from my team the template does not display.  What is really confusing to me is we even copied my ID identically and assigned it to the pernr I was using and that test ID still couldn't view the template.  But when I took my ID that was working and assigned it to a random pernr it still worked.  Has anyone seen this or know of what else I could look at?  I've worked with our security team and the auths on SU01 and structural auths appear to be the same.
    Thanks,
    Eric

  • Problem in bsp layout - 'BAPI_MATERIAL_STOCK_REQ_LIST'

    Hi,
    I'm a student at HEC Montreal and i've been asked to develop a mobile application that is able to connect to SAP and display information about current stock and more. I've been asked to display a summary of the current SR list.
    I want my jsonp file to display those information:
    "Stock": "<%Stock Qty%>",
    "ProdOrder": "<%=Total qty of Production Order%>",
    "PldOrder":"<%=Total qty of Planned Order%>",
    "CusOrder": "<%=Total qty of Customer Order%>"
    I think the problem comes frome the IF statement where i try to verify if the mrp_elements (stock, prdord, plnord, etc...) = (stock, prdord, plnord, etc...). I just can't find the problem.
    Anyhelp would be appreciated.
    By the way, Sorry for the comments in the code... It's written in french. Oh and i've used the same event handler, pages attributes and type definition in an other bsp wich is working perfectly fine. So the problem is in the layout
    Thank you!
    Phil
    <%@page language="abap" %>
    Ext.util.JSONP.callback([
    <%
    Déclaration des variables
      data sto type p.
      data pro type p.
      data plo type p.
      data cuo type p.
      DATA packreq TYPE p.
      sto = 0.
      pro = 0.
      plo = 0.
      cuo = 0.
    Work area avec la table interne
      data: wa_user type BAPI_MRP_IND_LINES.
      LOOP at ZDETAILSTOCK INTO wa_user.
    Affichage de reqQty
      packreq = wa_user-REC_REQD_QTY.
      WRITE packreq ROUND 2 DECIMALS 4.
    *calcul des sommes d'élement
      IF wa_user-MRP_ELEMNT ='Stock'.
      ADD packreq to sto.
      ENDIF.
      IF wa_user-MRP_ELEMNT = 'PrdOrd'.
      ADD packreq to pro.
      ENDIF.
      IF wa_user-MRP_ELEMNT = 'PldOrd'.
      ADD packreq to plo.
      ENDIF.
      IF wa_user-MRP_ELEMNT = 'CusOrd'.
      ADD packreq to cuo.
      ENDIF.
      ENDLOOP.
    %>
    "Stock": "<%=sto%>",
    "ProdOrder": "<%=pro%>",
    "PldOrder":"<%=plo%>",
    "CusOrder": "<%=cuo%>"

    Hi,
    Use BAPI_MATERIAL_AVAILABILITY instead.
    Regards,
    Mario

  • Problems with BSP application using HTTPS in EP6.0

    We developed a custom BSP which uses HTTPS protocol and HTMLB tags.  The BSP page has a date field (htmlb inputfield of type date..which allows the user to pick a date).  If I run this BSP in its own browser window, clicking on the date field will display a calendar.  However, if I run this BSP as an iView in the portal (we use EP6.0) and click on the date, I see a Javascript error message (in the browser status area) that says "access is denied" and the calendar isn't displayed.                           
    Also, this BSP is a stateful application with the portal integration flag checked.  However the DSM terminator is not invoked when I close the iView.                                                                 
    If I change the BSP settings to use HTTP, I can run it as a portal iView without any such problems.  Has anyone experienced this and/or know how to resolve it?  Any feedback would be greatly appreciated? Thanks,                         
    Pradeep

    Hi Pradeep,
    You replied that you have "I fixed the date dropdown issue by specifying the theme in iView definition", could you please let us know where to specify the theme because when i ty to create the BSP iView i never get the option for specifying the theme,your assistance would be highly appreciated,do we have any Note on this issue.
    Regards,
    Rohit Pathak

  • Problem IXOS BSP and JPEG Format

    Hello,
    I have a problem with JPEG By displaying documents from archive Server in IE7.Only the first page of the document is displayed in Web Browser but not in the livelink viewer. if the document is TIFF type the process is correct(IE7 Browser calls The Livelink Viewer and the document is displayed through the livelink Viewer).
    thanks
    Hadi

    Refer this thread, it might help you:
    [Download without save dialog |download without save dialog;
    Raja T

  • House Bank number problem with BSP import

    Hi,
    I have a problem when i import an bank statement that i get an error that the house banknumber is not the same as in de import file. I believe the problem is that in de house bank definition in SAP there are dots (.) between the housebank number like 12.56.58.789 and in the import file on row :25 there are no dots between the number 125658789. Does anybody know how to solve this problem ? i tried something with the add-on format definition and find out that the field "AccountInfo" need some changes.
    The expression that is used in the bfp file is      (?<=:25:)[^\r\n]*(?=\r\n)
    Can somebody help me?
    THANKS
    Mark

    Hi Mark,
    The rule for importing data from a bank statement is that house bank account defined in B1 and the data filled into account number field should match bit by bit. So in your case there are two options:
    1. change the account number definition in B1 to remove all the dots.
    2. if that's impossible, you have to change the BFP file via Format Definition add-on to insert the dots into the pure digit series. that could be done by assigning a mapping method to the account number field.
    use concat() function and substring() function together. about the usage of the function ,you can refer to the online help of the tool.
    Cheers,
    Tedy

  • Session problem in BSP

    Hi,
    I have a Stateful BSP application running from portal.
    In this application INIT method is not called.
    Do_REQUEST is the first method to get executed.
    While testing in portal I logon with user id user1, after some testing, I logout using logout button from the portal and re-login with user2. But the application continues the execution in user1 login.  This does not occur when DO_INIT is used. Please suggest what could be the reason?
    Regards
    Jyoti.

    Hi Jyoti,
    it seems your logoff doesn't work correctly in the BSP application.
    To check this run your application outside the portal.
    Check TA SM04 after you've closed the browser window. Is the session gone?
    If not, look at BSP application 'system', integrate 'session_single_frame.htm' into you application,
    some documentation is included as comment, see http://help.sap.com/saphelp_47x200/helpdata/en/6b/9d91d062cc52419f23926ff1bf2ad3/content.htm for more.
    After you have done this, test again. If the session is gone after you've closed the browser window,
    repeat the test from the portal using the 'logoff' link.
    regards,
    Ulli
    Message was edited by: Ulli Hoffmann

  • Problem launching BSP app in WebAS 6.40 SP 15 in a new window

    The following logic is suppose to launch a new window and call another BSP with a new WebAS session via the URL built below.  This is working on WebAS 6.40 SP 12 but not in WebAS 6.40 SP 15.  In SP 15 it is not creating a new session it is trying to reuse the existing session so therefore when you click on another object it pulls up the information for the first object.  Any thoughts?
          WHEN 'OBJID'.  "Position Number
    Create a link which will open a new window to Display the position
            REFRESH url_params_tbl.
            url_param-name = 'posid'.
            url_param-value = search_results_row-objid.
            APPEND url_param TO url_params_tbl.
            url_param-name = 'mode'.
            url_param-value = zcl_hr_post_detls_model=>c_display_mode.
            APPEND url_param TO url_params_tbl.
            url_param-name = 'apply'.
            url_param-value = zcl_hr_post_detls_model=>c_yes.
            APPEND url_param TO url_params_tbl.
            CALL METHOD cl_http_ext_webapp=>create_url_for_bsp_application
              EXPORTING
                bsp_application      = 'Z_HR_POST_DETLS'
                bsp_start_page       = 'session.htm'
                bsp_start_parameters = url_params_tbl
              IMPORTING
                local_url            = wa_url.

    may be try the new method IF_BSP_RUNTIME~CONSTRUCT_BSP_URL for constructing the url
    Regards
    Raja

Maybe you are looking for

  • Photomerge  Adobe Photoshop Elements 7.0 (Editor) has stopped working

    When starting photomerge I'm getting the above error message. I un installed PSE 7.0 and re installed. Same problem. Any ideas what could cause this problem. Only change I saw was that Google Chrome was installed.

  • Can i store a PDF with a Music album?

    Does anyone know if it is possible to store a PDF with a music album that I have imported into iTunes? All insights, tips, and suggestions will be appreciated. Best, Gabriel.

  • XL Reporter connexion error

    Hi, I have an error occured when I select New Definition of list in XL Reporter - Report Composer : XL Reporter does not work in Microsoft Excel because of security options. Other information in Help. Thanks! for your reply.

  • PRocessing Multiple "Submit" buttons

    I want my JPS to have multiple submit buttons, one for Contineu and one for Cancel. It appears to me that the only way to detect which was clicked in the servlet is pretty inelegantly, something like this: if(request.getParameter("continue") != null)

  • Satellite A200: Some devices stoped working after BIOS update

    I recently updated my BIOS to V2.60 on my Sat A200 but ever since i apdated the BIOS some of the hardware components stoped working. So i decided to use the product recovery CD but it wont work anymore. Each time during its loading stage the system c