BSP CVAW_DOCUMENT_DISPLAY Doesnu00B4t work

Hello, please can someone tell me if there are some Exaple BSP for showing an archived document in the Internet Exploerer ?
I found the application CVAW_DOCUMENT_DISPLAY, but it doesn´t work, because OBJECTS_OBJREF_NOT_ASSIGNED.
Thanks for help.

> Did you pass these values from DRAW table?
>
> bc/bsp/sap/cvaw_document_display/document_display.htm?
> DOKAR=XXX&DOKNR=XXXXXXXXX&DOKTL=XXX&DOKVR=XX
>
> Regards
> Raja
Hello Raja,
Yes, i did so.
This is the URL
http://BSP.sap.adv:8000/sap(bD1kZSZjPTAxMA==)/bc/bsp/sap/cvaw_document_display/document_display.htm?DOKAR=BTG&DOKNR=10000000010&DOKTLl=001&DOKVR=00
The error occurs in
* get formated Doc_key
l_draw = pr_object_page->get_draw( ).
l_draw_newv = pr_object_page->get_draw_newv( ).
Line 16 in he Layout.
The Error say: <u>objects_objref_not_assigned</u><i></i>

Similar Messages

  • BSP PDF not working in ECC 6.0

    Hello all, we are upgrading from 4.7 to ECC 6.0 and we have several BSP programs that create pdf reports by converting data from the r/3 spool.  This following code works fine in SAP 4.7 but in ECC 6.0, I am getting the error: 'File does not begin with '%pdf-'.  The following is the code to convert a file from the spool and display in pdf format.  Again, this works in 4.7.
    Any help is appreciated
      IF ztsp01-rqapprule LE 99.
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = ztsp01-rqident
            no_dialog                = 'X'
          TABLES
            pdf                      = witab
          EXCEPTIONS
            err_no_abap_spooljob     = 1
            err_no_spooljob          = 2
            err_no_permission        = 3
            err_conv_not_possible    = 4
            err_bad_destdevice       = 5
            user_cancelled           = 6
            err_spoolerror           = 7
            err_temseerror           = 8
            err_btcjob_open_failed   = 8
            err_btcjob_submit_failed = 9
            err_btcjob_close_failed  = 10
            OTHERS                   = 11.
      Get spool name.
        zabapspoolid = ztsp01-rqident.
      Delete spool.
        CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
          EXPORTING
            spoolid = zabapspoolid.
        IF sy-subrc EQ 0.
          LOOP AT witab INTO itab.
            TRANSLATE itab USING ' ~'.
            CONCATENATE output itab INTO output IN CHARACTER MODE.
          ENDLOOP.
          TRANSLATE output USING '~ ' .
        Convert the Character String to Binary String.
          DATA: r_string  TYPE string.
          DATA: r_xstring TYPE xstring.
          CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
            EXPORTING
              text   = output
            IMPORTING
              buffer = outputx.
          CREATE OBJECT cached_response TYPE cl_http_response EXPORTING
              add_c_msg = 1.
          DATA:l_pdf_len TYPE i.
          l_pdf_len = XSTRLEN( outputx ).
       l_pdf_len = strlen( output ).
          cached_response->set_data( data   = outputx
         cached_response->set_cdata( data   = output
                              length = l_pdf_len ).
          cached_response->set_header_field( name  =
            if_http_header_fields=>content_type
            value = 'application/pdf' ).
          cached_response->set_status( code = 200 reason = 'OK' ).
          cached_response->server_cache_expire_rel( expires_rel = 30 ).
          CALL FUNCTION 'GUID_CREATE'
            IMPORTING
              ev_guid_32 = guid.
          CONCATENATE runtime->page_url '/' guid '.pdf' INTO
              display_url.
          cl_http_server=>server_cache_upload( url      = display_url
              response = cached_response ).
        ENDIF.
        RETURN.
      ELSE.
        zabapspoolid = ztsp01-rqident.
      Delete spool.
        CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
          EXPORTING
            spoolid = zabapspoolid.
        page->messages->add_message(
             condition = 'page'
        message =
        'Display is greater than 99 pages. Use a smaller selection.'
            severity = page->messages->co_severity_error ).
      ENDIF.

    Hello all, SAP just issued a fix for PDF conversion in a Unicode environment on 4/7/09.  This fixes function modules 'CONVERT_ABAPSPOOLJOB_2_PDF' and 'CONVERT_OTFSPOOLJOB_2_PDF' among others.  They are notes 1320163 and 1324547.  I have included the code to display a spool file in a BSP application using the lastest version of the function module.
    Data: 
      text(68)             TYPE c,
      pdf_xstring          type xstring,
      bin_size             type i,
      l_pdf_len            type i.
      IF ztsp01-rqapprule LE 99.
      Convert binary xstring to PDF.
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid                    = ztsp01-rqident
            no_dialog                      = 'X'
            pdf_destination                = 'X'
            no_background                  = 'X'
       importing
            pdf_bytecount                  = bin_size
            bin_file                       = pdf_xstring
          exceptions
            err_no_abap_spooljob           = 1
            err_no_spooljob                = 2
            err_no_permission              = 3
            err_conv_not_possible          = 4
            err_bad_destdevice             = 5
            user_cancelled                 = 6
            err_spoolerror                 = 7
            err_temseerror                 = 8
            err_btcjob_open_failed         = 9
            err_btcjob_submit_failed       = 10
            err_btcjob_close_failed        = 11
            OTHERS                         = 12.
      Get spool name.
        zabapspoolid = ztsp01-rqident.
      Delete spool.
        CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
          EXPORTING
            spoolid = zabapspoolid.
        IF sy-subrc EQ 0.
          LOOP AT witab INTO itab.
            TRANSLATE itab USING ' ~'.
            CONCATENATE output itab INTO output IN CHARACTER MODE.
          ENDLOOP.
          TRANSLATE output USING '~ ' .
        Convert the Character String to Binary String.
         CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
           EXPORTING
             text   = output
           IMPORTING
             buffer = outputx.
        Instantiate Object
          CREATE OBJECT cached_response
            TYPE
              cl_http_response
            EXPORTING
              add_c_msg        = 1.
        Determine length of pdf xstring.
          l_pdf_len = XSTRLEN( pdf_xstring ).
        Sets the HTTP body of this entity to the given binary data.
          cached_response->set_data( data = pdf_xstring
                              length = l_pdf_len ).
        Sets the value of the specified header field.
          cached_response->set_header_field( name  =
            if_http_header_fields=>content_type
            value = 'application/pdf' ).
        Sets current HTTP status code
          cached_response->set_status( code = 200 reason = 'OK' ).
        Sets relative expiry time for this response in server cache.
          cached_response->server_cache_expire_rel( expires_rel = 30 ).
        Create GUID.
          CALL FUNCTION 'GUID_CREATE'
            IMPORTING
              ev_guid_32 = guid.
        build display url.
          CONCATENATE runtime->page_url '/' guid '.pdf' INTO
              display_url.
        Put New Object in the ICM Server Clipboard (ICM)
          cl_http_server=>server_cache_upload( url = display_url
              response = cached_response ).
        ENDIF.
    Thanks, Troy

  • BSP page only works for me

    Hi,
    I have a very weird problem with a BSP-page I created.
    The situation is the following:
    - I can run my BSP page the way it should (it uploads a file of name e.g. TEST.CSV to the application server, and first checks if the files selected is really TEST.CSV.
    1 - When somebody else tries to acces my bsp page, and logs in with their own SAP login, they get the error, saying that the filename is not TEST.CSV
    2 - When I login with my SAP login (working in situation 1) on their PC, it gives the same error, saying that the filename is not TEST.CSV
    3 - When somebody uses my PC (from working situation 1) and logs in with their own SAP login, it still gives the same error
    so: only when I login with my own SAP login on my own PC, the PC does what it should do.
    What can be the problem?
    the other users should normally have more authorizations than I have, so I guess that's not the problem...
    ANY! ideas are welcome!
    thanks a lot, points will be awarded of course!

    Ok guys, I have found what is the problem: Internet Explorer.
    Everything works perfect on Firefox, but in Internet Explorer, it always goes to the "wrong_file.htm" page like you can see in the code below. Some of the elements used must me firefox-only, although this really surprises me.
    Any user can run the BSP perfectly on any pc, using firefox. Using IE, it doesn't work.
    (Schrijven naar de UNIX server werkt dus perfect Eddy)
      find multipart containing file
    clear error.
        num_multiparts = request->num_multiparts( ).
        while i <= num_multiparts.
          entity = request->get_multipart( i ).
          value = entity->get_header_field( '~content_filename' ).
          filenamecheck = entity->get_header_field( '~content_filename' ).
          if not value is initial.
          found a file!
            navigation->set_parameter( name  = 'content_filename'
                                       value = value ).
            content_type = entity->get_header_field( 'Content-Type' ).
            navigation->set_parameter( name  = 'content_type'
                value = content_type ).
          get file content
            file = entity->get_cdata( ).
          get file size
           content_length = xstrlen( file ).
            navigation->set_parameter( name  = 'content_length'
                value = content_length ).
    check if filename is correct
            TRANSLATE filenamecheck TO UPPER CASE.
            if filenamecheck ne 'CG_BRA_PRO_FIN.CSV' .
            error = 'X'.
            else.
    data: data_TAB type table of string, LIN TYPE LINE,fname type string.
    split file at CL_ABAP_CHAR_UTILITIES=>CR_LF into table data_TAB.
    fname = '/usr/sap/CG_BRA_PRO_FIN.CSV'.
    OPEN DATASET fname FOR OUTPUT in TEXT MODE encoding default.
    if sy-subrc gt 0.
    WRITE: / 'Error opening file'.
    endif.
    LOOP AT data_TAB INTO LIN.
    TRANSFER LIN TO FNAME.
    ENDLOOP.
    CLOSE DATASET FNAME.
            exit.
        endif.
    endif.
          i = i + 1.
        endwhile.
       if error eq 'X'.
    navigation->goto_page( 'wrong_file.htm' ).
    else.
    navigation->goto_page( 'end_upload.htm' ).
    endif.

  • BSP doesn't work when opened through MS Office application

    Hi Experts,
    I developped a bsp application to display directly all originals of a Document Info Record.
    The url has got some parameters:
    ex:http://maplmqa.sylvania.com:8000/sap/bc/bsp/sap/z_phl_guest/index.htm?dokar=ZPI&doknr=0000000000000000002564164&doktl=EN&dokvr=00
    When a user add this url in a MS Word document (also with XLS and PPT) and click on this link, the bsp starts but doesn't do all the process.
    When the user copy/paste the same link directly in the address bar of Internet Explorer, it works properly. I tested with open office, the hyperlink works also properly.
    So, only hyperlinks which come from MS office have problems (I checked the hyperlink, it's correct).
    Important point : the user connect with a guest user (defined in sicf) and not with his own user.
    What is the result:
    the BSP index.html page opens but it seems that the event handler "OnInitialization" is not executed. And in this event handler, I call the next page doc_list.htm which displays a table.
    The user sees a bsp page without any table.
    Does somebody already have problems with hyperlinks through MS Office applications ?
    Thanks for you answers

  • Breadcrumb in BSP is not working when application is called inside Portal.

    Dear All,
                We have implemented SAP Learning Solution by integrating it with SAP EP 7.0.
    We called the BSP Application HCM_LEARNING inside portal  using BSP iView template.
    The problem we are facing is, the breadcrumbs in the BSP application "HCM_LEARNING"  is working fine when it is called as a standalone application. But the same is not working when it is called inside portal framework page.
    Enterprise Portal breadcrumbs are working fine.
    How could we resolve this.?
    Regards,
    Eben Joyson.

    this is the radio button
    <af:selectOneRadio value="#{bindings.Gender1.inputValue}"
                                                     label="#{bindings.Gender1.label}"
                                                     required="#{bindings.Gender1.hints.mandatory}"
                                                     shortDesc="#{bindings.Gender1.hints.tooltip}"
                                                     id="sor5">
                <f:selectItems value="#{bindings.Gender1.items}" id="si7"/>
              </af:selectOneRadio>
    i use this sample
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF_Insider_Essentials/ADF_Insider_Essential_YesNoRadio/ADF_Insider_Essential_YesNoRadio.html

  • Method "lineedit" in a tableView doesnu00B4t work

    hello,
    I have a table, which is called itab_move.
    This internal table is shown on a bsp with a tableView.
    This tableView contains a button with the method "lineedit". When I click the button the actual line changes its colour and you can make changes.
    So far it works...
    But the internal table doesn´t save the changes. I don´t know where the problem is.

    Hi,
    To edit the row in tableview . You have to first catch the  event in oninputprocessing.
    Do this in following way. (dtab is your internal table)
    DATA: tv TYPE REF TO CL_HTMLB_TABLEVIEW.
      tv ?= CL_HTMLB_MANAGER=>GET_DATA(
                       request      = runtime->server->request
                       name         = 'tableView'
                       id           = 'tableViewid' ).
    IF tv IS NOT INITIAL.
    DATA: tv_data TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW.
      tv_data = tv->data.
      IF tv_data->SelectedRowIndex IS NOT INITIAL.
        FIELD-SYMBOLS: <row> LIKE LINE OF dtab.
        READ TABLE dtab INDEX tv_data->SelectedRowIndex ASSIGNING <row>.
    UPDATE Ztable set field1 = <row>-field1
    where keyfield = <row>-keyfield.
    endif.
    endif.
    Hope this helps if not revert back.
    Regards
    Amit
    Reward points if this reply helps you.

  • Breakpoints in BSP have stopped working

    Hola,
    So I am coding away at my BSP when suddenly my breakpoints have decided not to work. I am getting an error message in ST22 that states: 'A BREAK-POINT command in an ABAP/4 program occurred in an ABAP/4 program in a system status where debugging is not possible (for example, update, background processing, conversion exit). This did occur after I had put an explicit breakpoint in I.E. break userid.  But then I took it out. And still none of my breakpoints work. I spoke with some of the basis folks and they said don't do updates, background processing or conversion exits. I am not doing any of these. Anybody encounter this or have any ideas how I fix this?
    Thanks alot,
    Rich

    Got it. Not sure why (something to do with proxies based on what I read in the help) but I turned off the IP matching and my break points seem to be working again. Guess I have to RTFM about the little check box
    Cheers,
    Rich

  • Localhost doesnu00B4t work any more. No more web pages !!

    Hello,
    I´ve been working with WebDynpro for ABAP and BSP pages normally, but since yestarday and with no reason, any web page cannot be displayed from Mini SAP. After the execution, I get the classical white page in Internet Explorer indicating "Web page cannot be displayed" and as possible reason it is mentioned "you´ve created no connection to the internet".
    I didn´t move any parameter. I´ve checked the loopback adapter, file Hosts, internet protocol .... and nothing that leads to a problem in the connections.
    Reading posts here, it seems that I´m not the only one with that problem ([post|;).
    The classical "ping" page for testing (http://localhost:8000/sap/bc/gui/sap/its/webgui?sap-client=000) cannot be reached.
    Has somebody else experienced the same problem ?? what can I do ??

    Hi,
    for your information:
    Automatic updates of Windows Vista block subdirectories in c:\windows\system32\drivers\etc, where the HOSTS files can be found.
    All I had to do is release DRIVERS and ETC, so web developments can be executed again.

  • Instruction "lineedit"  of the tableView element doesnu00B4t work

    hello,
    I have a table, which is called itab_move.
    This internal table is shown on a bsp with a tableView.
    This tableView contains a button with the method "ineedit". When I click the button the actual line changes its colour and you can make changes.
    So far it works...
    But the internal table doesn´t save the changes. I don´t know where the problem is.

    post this in BSP forum (Business Server Pages (BSP)) for better response.
    the changed values will not automatically get modified into the internal table. you have to write a code in the oninputprocessing event for the same.
    check the sample application SBSPEXT_TABLE for sample code.
    Regards
    Raja

  • W/O DSO - Delta doesnu00B4t work (Request by Request)

    Hi experts,
    I´m facing something really strange to me. I really need to load data from a W/O DSO to another W/O DSO with delta functionality (request by request), but it doesn´t work at all. It´s condensing all requests in a single one in target W/O DSO. Why is this happening?
    The whole scenario:
    1) Data target is initally empty
    2) I have 3 requests in source W/O DSO with 1000 records each
    3) DTP is set Delta request by request with 50.000 size package
    After data loading, I get one single request with 3000 records. I really need 3 requests with 1000 records each.
    Any ideas????
    We are on NW 7.0 EHP1 - SP3

    Hi Fabio:
    >So you are telling me that you loaded more than one requisition in first DSO, executed the DTP and had the same number of requisitions in the second DSO?
    Exactly.
    >If it´s true, which version of Netweaver you are and SP level?
    On my BW Server, I clicked on the "System" menu, selected the "Status..." option, and clicked on the "Component Information button" to obtain the information below.
    Software Component:                      SAP_BW
    Release:                                 700
    Level:                                   0022
    Highest Support Package:                 SAPKW70022
    Short Description of Software Component: SAP NetWeaver BI 7.0
    Regards,
    Francisco Milán.
    P.S. Concerning the flags, you're right, the settings must be:
    - "Only Get Delta Once" (unchecked)
    - "Get All New Data Request By Request" (checked)
    - "Retrieve Until No More New Data" (checked)
    Edited by: Francisco Milan on Jun 18, 2010 4:40 PM

  • BSP-App not working after upgrade to Netweaver 7 / Javascript error

    Hey Gurus,
    after our upgrade the BSP Application which runs before the upgrade now displays just a plain-Design - not the Design2003 and i got Javascript errors. This results in no function whatsoever.
    Maybe someone have tipps what to look for (customizings, etc) to get this back runing?
    reg, JR

    I got the same problem but I saw in an another thread :
    BSP - non Unicode caracters - need to put an "InpuField" after a "Tray"
    Mr. bindiya have try on the same release without any problem. I sent to him an email to check.
    Regards,
    Francesco

  • Adobe Form Calling WebService Doesnu00B4t work with Adobe Reader 7

    Hi experts,
    We have created and adobe form that simulates a PM Notification in which the user, without logging into SAP, through an RFC and WebServices can create the notification into SAP.
    This process only works with Adobe Reader 9 and not with Adobe Reader 7.
    Can anyone tell me what main difference/component/functionality does Adobe Reader 9 have that Adobe Reader 7 doesn´t?
    When I call the Webservice through the form in Adobe 7, a pop-up message appears that says:
    "Error attempting to read from file.
    http://desaecc6.codelco.cl:8001/sap/bc/rfc/sap/zi_aviso_adobe_pm12/222/zi_aviso_adobe_pm12/zi_aviso_adobe_pm12"
    Any ideas why this error ocurrs only in Adobe Reader 7?
    Thanks and best regards,
    Fernando Montenegro

    Hello,
    I cannot tell what are the exact differencies between the version. But I can tell you should always use (at least try to use the newest Reader). I guess you´re not the only developer on Forms, so there are possibly more people depending on the version of the client browser/ Reader. There is a solution for this problem, which does not ask anything from you, only the user.
    You can easily test the Reader version through JS coding and act based on the result. I use this like this "if your Reader is lower than 8.1" then "message popup = We are sorry, your Reader is too old, this form won´t work for you. Please upgrade first.". It takes like 5 minutes (10 for lame users at max) to update his Reader.
    Maybe you should this about such a test, if the user passes the test, his application won´t have any problem, if not there is no guarantee. And YOU have no problem, nobody tells you "hey sir, your form is not working, I´m not gonna pay you".
    Otto

  • BSP iview not working after ECC 6.0 upgrade

    Hi,
            We are using MSS application in our portal.When we click the Employee list under manager profile it redirects us to a new page aontaining 3 to 4 iviews like general data,Personal data(Par file based iview) etc
    After selecting the employee all data pertaining to the employee appear in these iviews(data comes from SAP HR system).There is one more iview that represents the emergency information of the employee that is a BSP iview.Few days before we have upgraded ECC 4.6 to ECC 6.0 after this upgrade we are getting values in all par file based iview but the data is missing in the BSP iview.
    Can anyone help?
    Regards
    Imran

    Hi,
    Are you getting any error? After upgrade do you activated the bsp service through
    T Code: sicf
    then Service Execute, then
    defalut_host --> sap -->bc --> bsp --> sap -->your BSP Application Name, then right click and Activate.
    Regards,
    SrinivaS

  • SORT in a BSP applicaiton doesnt work

    Hi Experts,
    In my BSP Application , I use a table and below is code for the
          <htmlb:tableView id              = "WRKLST"
                           headerText      = "My Worklists"
                           headerVisible   = "true"
                           design          = "alternating"
                           visibleRowCount = "<%= RowCount%>"
                           filter = "SERVER"
                           sort   = "server"
                           fillUpEmptyRows = "TRUE"
                           emptyTableText   = "No entries found"
                           onHeaderClick   = "MyEventHeaderClick"
                           onRowSelection  = "rowselection"
                           selectionMode   = "multiselect"
                           table           = "<%= IT_WRKLIST %>"
                           iterator ="<%= iterator%>" >
    But the sort is not very efficient. ie., it always sort only on the first click of the header 's. and also it sort only on key field.
    Can anybody suggest me an option , so that on every click it sorts ascending / descending based on the click of the header.
    ie., If the user clicks on 'Partner Name' , it should sort the table content based on Partner name and if the click on 'Priority', it should sort on priority.
    Please suggest.
    Regards,
    Shiny

    Dear Shiny
    Please check these posts.
    I think you will need to sort the table yourself and then have the page refreshed.
    [Sort in a tableview;
    [Table Sort;
    Kind Regards
    /Ricardo Quintas

  • Set field in enhacement doesnu00B4t work

    Hello Collegues.
    I´ve done a enhacement on ERP_H component.
    I added a field to the view Headerdetail called "name", but when I set a value in UI, I haven´t read this field in abap code.
    The SET method (SET_NAME) in the context node is ok, in debug I see that the method  current->set_property, is work fine.
    I tried read the atributte with lr_entity->get_property_as_string( 'NAME' ), but doesn´t work.   When I read other "standard field", the statement is ok and it has value.
    I added the field with a append to the structure "CRMST_ADMINH_ERPIL" and then  I assigned to the design layer "ERP" in BSP_WD_CMPWB transaction.
    Best regards.

    Hi,
    Enter trx. SM34 -> view cluster CRMVC_SDESIGN_G then press maintain.
    UI Object Type -> ERP
    Reference Design Object-> ERPADMINH
    In Design, Press new entries
    Attribute Name -> zfield
    Object -> ERPAdminH
    Attribute -> zfield
    Flag Standard radio button.
    Best regards,
    Caíque Escaler

Maybe you are looking for

  • SAP ME 6.0 Visual Test and Repair Local file not found

    Hi, In our SAP ME 5.2 environment we have Test & Repair installed on a separate server. On that server we also have a shared directory where we are placing our GenCad files (.CAD). These files we can sucessfully view in the POD on SAP ME 5.2. Now I a

  • TakingOver the amounts in AS91

    Hi All, creating an asset by AS91, choosing the "takeover values: - when I fill in the amount of the "***.acquis.val." for the 01 depreciation area (field ANBTR01), SAP repetes it for the other depreciation areas (fields ANBTR02 and ANBTR03) ; - inst

  • How to get the Database type from weblogic Db connection

    I want to use database version control in my application . that means different database type use different Sql Statement. Such as in weblogic7.0 if I create SqlServer JDBC pool then I will use some special Sqlserver sql Statement . such as some join

  • How can I tell which apps are using data

    Perhaps this is a suggestion, just in case someone who is in a position to note this at Apple (not likely?) might read it. How about an app included in the OS that allows users to track which apps are transmitting and receiving data through cellular

  • Kleuren in InDesign CS5 worden donkerder dan gekozen kleuren

    Als ik in Indesign een kleur kies via de Colour Picker, wordt deze kleur (zodra ik op OK klik) veel donkerder in mijn document geplaatst. Het zal geheid aan de instellingen liggen, maar ik krijg het niet goed. Hieronder een printscreen van wat ik bed