Skip to Content
avatar image
Former Member

Is this a Web Dynrpo ABAP oder JAVA?

Hi there,

in our company there are a few Dynpros.

We have a Web Programm that can reached from outside under:

http://xxx.xxxxxx.xxx:8000/sap/bc/webdynpro/sap/zfd_gh_inf

So what i know want to know is:

Is this programm a Dynpro ABAP or JAVA?

I have to modify this Dynpro. Because some people want that there is a Button to export the results of this Programm into Excel.

So what i also want to know is:

Did i have to export this Dynpro to modifiy it?

Can somebody help me?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Oct 23, 2008 at 02:15 PM

    >Is this programm a Dynpro ABAP or JAVA?

    It is ABAP - I can tell by the URL.

    >Did i have to export this Dynpro to modifiy it?

    No. You can just go to SE80 and view the source of the component and use the Component Configuration, Enhancement Framework, or Modification Assistance to change it.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 23, 2008 at 02:29 PM

    Thomas, the application name begins with Z so it must be a custom development.

    BTW, I got curious, how are the WDJ URL's formed since you noticed? I suppose the SICF environment is not there in the Java stack...

    Bjoern, to get the component to be edited in SE80, check in table WDY_APPLICATION with "zfd_gh_inf" as APPLICATION_NAME. In COMPONENT_NAME you'll get the corresponding WD Component (which may or may not have the same name).

    Add comment
    10|10000 characters needed characters exceeded

    • >BTW, I got curious, how are the WDJ URL's formed since you noticed? I suppose the SICF environment is not there in the Java stack...

      The WDJ URLs are quite different. There is not SICF as you said. Anytime you /sap/bc/ you know this is the ABAP stack. The Z-name also kind of gives things away.

  • avatar image
    Former Member
    Oct 23, 2008 at 02:48 PM

    Wow. thank you very much 😊

    Can you eventually tell me what i have to do wheni found the source?

    in SE80 i know the Package name ZZDF

    But there are so many / Tables / Programms / Transactions / Web Dynpros / Functiongroups etc...

    I know that you dont know this program.. but eventually you can tell me where i have to go... 😊

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Bjoern,

      The GUI_DOWNLOAD function module does not work in the WebDynpro context. These are only limited to the classical ABAP. In order to get the download functionality in WebDynpro you can either make use of the [FileDownload|http://help.sap.com/saphelp_erp2005/helpdata/en/09/a5884121a41c09e10000000a155106/content.htm] UI element or else you can use the workaround method suggested as below. Create an action for the button & put the below coding into it. You need to basically do the following tasks:

      1) First read the table's data into an internal table.

      2) Convert the internal table data to STRING format.

      3) Now convert it into tab delimited format.

      4) Convert this STRING format to XSTRING format

      5) Make use of the attach_file_to_response method.

      Regards,

      Uday

      Go through this [link |http://saptechnical.com/Tutorials/WebDynproABAP/Export/toexcel.htm] to get step wise explanation along with snapshots for the same task.

      METHOD onactionon_submit .
        DATA: lv_node TYPE REF TO if_wd_context_node,
              lt_mara TYPE if_main=>elements_mara,
              wa_mara TYPE if_main=>element_mara,
              lead_selection_index TYPE i,
       
              mara_string  TYPE string,
              mara_xstring TYPE xstring.
       
        lv_node = wd_context->get_child_node( name = 'MARA' ).
        CALL METHOD lv_node->get_static_attributes_table
          IMPORTING
            table = lt_mara.
       
        LOOP AT lt_mara INTO wa_mara.
          CONCATENATE mara_string
                      wa_mara-matnr
                      wa_mara-ersda
                      wa_mara-ernam
                      wa_mara-matkl
                      wa_mara-meins
                      cl_abap_char_utilities=>newline INTO mara_string
                                              SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
        ENDLOOP.
       
        CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
          EXPORTING
            text   = mara_string
          IMPORTING
            buffer = mara_xstring.
       
       
        wdr_task=>client_window->client->attach_file_to_response(  i_filename  = 'Excel.xls'
                                                                   i_content   = mara_xstring
                                                                   i_mime_type = 'EXCEL' ).
      ENDMETHOD.

      The above is the code to export the Internal Table to Excel Document. You can proceed as shown below for NOTEPAD & WORD formats.

      To Export the Internal Table to Text File:

      WDR_TASK=>CLIENT_WINDOW->CLIENT->ATTACH_FILE_TO_RESPONSE(
          I_FILENAME    = 'WDP.txt'
          I_CONTENT     =  mara_xstring
          I_MIME_TYPE   = 'NOTEPAD' ).

      To Export the Internal Table to Excel File:

      WDR_TASK=>CLIENT_WINDOW->CLIENT->ATTACH_FILE_TO_RESPONSE(
          I_FILENAME    = 'Word.doc'
          I_CONTENT     =  mara_xstring
          I_MIME_TYPE   = 'WORD' ).

  • avatar image
    Former Member
    Oct 24, 2008 at 10:20 AM

    Thanks..

    that helps me a lot 😊

    Add comment
    10|10000 characters needed characters exceeded