Displaying Smartforms in Webdynpro ABAP

Hi All,
I have to display smartforms in WDA. For that I'm using following link.
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785?quicklink=index&overridelayout=true]
Now, in my case --
Form Name - 'ZFORM'
Importing Field - 'VBELN'
But, my problem is I'm unable to understand some of the fields, used in Tutorial in the link above, which are --
element_zinput
pernr = stru_input1-zpernr
reinr = stru_input1-zreinr
pdvrs = stru_input1-zpdvrs
I can understand that these must be user-defined. But, it has not defined in tutorial and hence, I'm confused.
Can anyone tell me what are these fields and from where are these coming?
Thakns.
Kumar Saurav.

hi:Thomas
     I have a requirement which smartform convert to pdf in web dynpro for abap ,But garbled for the Chinese.why is this?
    my code:
method ONACTIONPDF2 .
DATA FM_NAME TYPE RS38L_FNAM.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME                 = 'ZTEST_WDA'
IMPORTING
FM_NAME                  = FM_NAME
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DATA: JOB_OUPUT TYPE SSFCRESCL,
LT_OTFDATA TYPE TABLE OF ITCOO.
DATA: LA_CTRL_FORM TYPE SSFCTRLOP,
LA_OUTPUT_OPT TYPE SSFCOMPOP.
** Spool Parameters
*LA_OUTPUT_OPT-TDIMMED = 'X'.
*LA_OUTPUT_OPT-TDDELETE = 'X'.
*LA_OUTPUT_OPT-TDLIFETIME = 'X'.
*LA_OUTPUT_OPT-TDDEST = 'LOCL'.
* Parameters passes to get the output in PDF format
LA_CTRL_FORM-NO_DIALOG = 'X'.
*LA_CTRL_FORM-PREVIEW = 'X'.
LA_CTRL_FORM-GETOTF = 'X'.
LA_CTRL_FORM-LANGU = '1'.
*LA_CTRL_FORM-DEVICE = 'PRINTER'.
  LA_OUTPUT_OPT-tdprinter = 'PDF1'.
CALL FUNCTION FM_NAME
EXPORTING
CONTROL_PARAMETERS         =  LA_CTRL_FORM
OUTPUT_OPTIONS             = LA_OUTPUT_OPT
IMPORTING
JOB_OUTPUT_INFO            = JOB_OUPUT
EXCEPTIONS
FORMATTING_ERROR           = 1
INTERNAL_ERROR             = 2
SEND_ERROR                 = 3
USER_CANCELED              = 4
OTHERS                     = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REFRESH LT_OTFDATA.
LT_OTFDATA[] = JOB_OUPUT-OTFDATA[].
CALL FUNCTION 'SSFCOMP_PDF_PREVIEW'
EXPORTING
I_OTF                    = LT_OTFDATA
EXCEPTIONS
CONVERT_OTF_TO_PDF_ERROR = 1
CNTL_ERROR               = 2
OTHERS                   = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DATA: L_DUMMY TYPE STANDARD TABLE OF TLINE,
PDF_DATA TYPE XSTRING,
PDF_SIZE TYPE I.
CLEAR: PDF_DATA, PDF_SIZE.
* convert otf to pdf
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT                = 'PDF'
MAX_LINEWIDTH         = 255
IMPORTING
BIN_FILESIZE          = PDF_SIZE
BIN_FILE              = PDF_DATA
TABLES
OTF                   = LT_OTFDATA[]
LINES                 = L_DUMMY
EXCEPTIONS
ERR_MAX_LINEWIDTH     = 1
ERR_FORMAT            = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS                = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WDR_TASK=>CLIENT_WINDOW->CLIENT->ATTACH_FILE_TO_RESPONSE(
*    *path to the word file
I_FILENAME = 'WDA_SMARTFORMS.pdf'
*     String Variable
I_CONTENT =  PDF_DATA
*     File Type
I_MIME_TYPE = 'PDF' ).
endmethod.
image1 for smartforms
image2 for pdf

Similar Messages

  • Smartforms in Webdynpro Abap

    Hi Experts,
    I am having smartform using this smartform i need to use in Webdynpro Abap.Can any one tell how to use is there any example component using smartform in webdynpro Abap.

    Hello Durga,
    you want to display the smart form in WDA or do you want to just get the output of the smartform and display it in PDF.
    for the first case you need to use Interactive forms and for the second case you need to simply call the FM generated for the smart form and display th output in PDF
    check this thread
    smart forms in web dynpro abap
    BR, Saravanan

  • Display attachments through WebDynpro Abap

    Hi all,
    I am currently working on the Generic Object Services and I manage to create attachment and retrieve them. however I can't find how to display attachments into a WebDynpro interface.
    The context:
    I have two applications which communicate with RFC:
        - The first application is the business application. It contains some RFC functions to handle data, business objects and attachments. This application is under SAP R/3 4.6.C environment and attachments are stored via GOS linked to standard transactions (VA03 / CV03 / IW53).
        - The other application is a WDA interface for the final users which calls, via RFC, the functions implemented in the first application. This application is under SAP R/3 ECC6.0 environment.
    The goal:
    I would like to implement the possibility to display some documents (PDF, DOC, XLS) stored with GOS in the first application (SAP R/3 4.6.C) via the web application (SAP R/3 ECC6.0). To do this, I will use RFC functions but I don't know the functions/methods I have to call to perform this process.
    Does someone know the information that I need? Please do not hesitate to ask me should you need further information.
    Many thanks.

    Hi.,
    For Displaying PDF use interactive form UI and bind data source to context attribute. Now set  the  downloaded data from RFC to the context attribute. It will display the PDF.,
    let the experts reply for ur query..
    Thanks & Regards
    Kiran

  • Smartforms and webdynpro ABAP

    Hi
    I want to download a smartform to PDF file.
    Can anyone post the code please from calling the FM of smartforms to the call of 
    cl_wd_runtime_services=>attach_file_to_response
    Best regards

    I'm sharing my code to call smartforms and pass value through internal table. Enjoy guys.
      DATA lt_c_et_result TYPE STANDARD TABLE OF WD_THIS->Element_et_result .
      DATA wa_et_result LIKE LINE OF lt_c_et_result .
      DATA lo_nd_et_result TYPE REF TO if_wd_context_node.
      DATA lo_el_et_result TYPE REF TO if_wd_context_element.
      DATA ls_et_result TYPE wd_this->element_et_result.
    *   navigate from <CONTEXT> to <ET_RESULT> via lead selection
      lo_nd_et_result = wd_context->get_child_node( name = wd_this->wdctx_et_result ).
    *   @TODO handle not set lead selection
      IF lo_nd_et_result IS INITIAL.
      ENDIF.
      lo_nd_et_result->get_static_attributes_table(
        IMPORTING
          table = lt_c_et_result ).
      DATA it_sfaktviti TYPE TABLE OF ZPM_AKTIVITI_STRUC.
      DATA wa_sfaktviti  LIKE LINE OF it_sfaktviti.
      LOOP AT lt_c_et_result INTO  wa_et_result.
        MOVE-CORRESPONDING wa_et_result TO wa_sfaktviti .
    *      MODIFy it_sf_et_result FROM wa .
    *      APPEND wa_sf_result TO it_sf_et_result.
        APPEND wa_sfaktviti  TO it_sfaktviti.
      ENDLOOP.
      DATA: l_pdfstring TYPE xstring.
      DATA: lv_buffer TYPE xstring.
      DATA: lv_string TYPE string.
      DATA: lv_fnam  TYPE rs38l-NAME.
      DATA: lv_bytecount TYPE i.
      DATA: l_xline TYPE xstring.
      DATA: lt_lines TYPE TABLE OF tline,
            ls_line TYPE tline.
      DATA: ls_ssfctrlop TYPE ssfctrlop,
            ls_output_options TYPE ssfcompop,
            ls_job_output_info TYPE ssfcrescl,
            ls_job_output_options TYPE ssfcresop.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          FORMNAME                 = 'ZPM_KERJA'
    *   VARIANT                  = ' '
    *   DIRECT_CALL              = ' '
       IMPORTING
         FM_NAME                  = lv_fnam
    * EXCEPTIONS
    *   NO_FORM                  = 1
    *   NO_FUNCTION_MODULE       = 2
    *   OTHERS                   = 3
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ls_ssfctrlop-no_dialog = 'X'.
      ls_ssfctrlop-getotf = 'X'.
      ls_ssfctrlop-preview = 'X'.
      " Call smartforms
      call function lv_fnam
        EXPORTING
          control_parameters = ls_ssfctrlop
          output_options     = ls_output_options
        IMPORTING
          job_output_info    = ls_job_output_info
          job_output_options = ls_job_output_options
        TABLES
          IT_Aktiviti        = lt_c_et_result
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          others             = 5.
      " Convert to PDF
      call function 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
        IMPORTING
          bin_filesize          = lv_bytecount
        TABLES
          otf                   = ls_job_output_info-otfdata
          lines                 = lt_lines
        EXCEPTIONS
          err_conv_not_possible = 1
          err_bad_otf           = 2.
      loop at lt_lines into ls_line. "into l_line.
        lv_string = ls_line.
        export my_data = lv_string to data buffer lv_buffer.
        import my_data to l_xline from data buffer lv_buffer in char-to-hex mode.
        concatenate l_pdfstring l_xline into l_pdfstring in byte mode.
      endloop.
    *  p_pdf = l_pdfstring.
      " Call print
      cl_wd_runtime_services=>attach_file_to_response(
      i_filename = 'AktivitiKerja.pdf'
      i_content = l_pdfstring
      i_mime_type = 'application/pdf'
      i_in_new_window = abap_false
      i_inplace = abap_false ).

  • Problem while calling smartform in webdynpro

    Hi Experts,
    I  am calling a smartform in webdynpro abap. It was working fine in development server. I have ported the same request to Quality Server, there it was not working.it is giving sy-subrc = 1 and it is displaying a blank screen
    I m following the following steps for calling smartform in webdynrpo.
    I am calling the smartform by
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM_NAME'
    importing
    fm_name = fname
    exceptions
    no_form = 1
    no_function_module = 2
    others = 3
    if sy-subrc  0.
    Error MESSAGE
    endif.
    call function fname
    exporting
    control_parameters = lv_control_parameters
    output_options = lv_output_options
    user_settings = space
    pernr = stru_input1-zpernr
    reinr = stru_input1-zreinr
    pdvrs = stru_input1-zpdvrs
    importing
    job_output_info = lv_ssf_output
    exceptions
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    others = 5
    if sy-subrc  0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    But it is not passing otfdata and it is returning 1 in sy-subrc.
    Please help me to solve this issue.

    I m not using any image.
    I have checked through debug and the function module is not transfering any file to OTF table.
    Please suggest me..
    Edited by: zakirriyaz on Nov 4, 2011 9:47 AM

  • Calling smartform and displaying ALV grid in ABAP WEBDYNPRO

    Hi all,
    I am new to ABAP web dynpro.I ahve few custom reports which are simple ALV list reports which I now need to convert to ABAP web dynpro application .
    For one particular report,based on the selection screen input,I need to display the ALV list and when I select the records from the ALV list,I need to call a smartform on clik of a push button.
    My questions:
    1. Im using 'REUSE_ALV_GRID_DISPLAY' FM  to display the o/p in my report.Is there any similar FM in webdynpro ABAP which will display my list in ALV GRID in my web dynpro application??/
    2. How to call a smartfrm in ALV grid in web dynpro??
    Edited by: abap_1000 on Jan 9, 2011 6:09 PM

    Hi,
    You can search SDN, there are several posts available. Just to get some idea, you can check --
    [Beginneru00B4s questions on WDA ALV;
    [Reg ALV Display;
    For clicking event on ALV --
    [Reg Row Data fetching on click in ALV;
    For ALV display on WDA --
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/101df93f-4b5c-2910-14aa-9eb0338c2110?quicklink=index&overridelayout=true]
    Thanks.
    Kumar Saurav.

  • Display Smartform Pdf output in ABAP Webdynpro application

    Hello,
    there is a solution for displaying Smartform output in Java Webdynpro application in this forum. Since i want to start an project in ABAP Webdynpro i need a solution for this technology since i don't want to recreate all the paperwork again using Adobe. Is there any solution available?
    Thanks
    Udo Ahle

    Hello,
    this is the solution which i was able to implement using the hints given by Heidi and Thomas. Thank you for the support. With this solution it is possible to reuse oldstyle sapscripts and smartforms in todays environment.  Here is the sample code which solves the problem:
    In WDA you define for example a pushbutton to start the display of the PDF.
    In the onaction method you implement:
    method ONACTIONSHOW_PDF .
      data LX_pdf type xstring.
    * get PDF from existing sapscript or smatform
      call function 'Y_PDF_GET' destination '46c'
        IMPORTING
          ex_PDF = LX_PDF.
    * append the pdf to the response
      cl_wd_runtime_services=>attach_file_to_response(
        i_filename  = 'Hello.PDF'
        i_content   = lx_pdf
        i_mime_type = 'application/pdf'
        i_in_new_window = 'X'
        i_inplace       = 'X' ).
    endmethod.
    The function 'Y_PDF_GET' is implemented as follows:
    FUNCTION Y_PDF_GET .
    *"*"Local interface:
    *"  EXPORTING
    *"     VALUE(EX_PDF) TYPE  XSTRING
    *"  TABLES
    *"      ET_OTF STRUCTURE  ITCOO OPTIONAL
      data: lf_filesize type i,
            lt_otf type table of ITCOO,
            lt_lines type table of tline,
            tline type tline.
    * start sapscript or smatforms and return
      perform make_otf.
      CALL FUNCTION 'READ_OTF_FROM_MEMORY'
        TABLES
          OTF                = lt_otf
       EXCEPTIONS
         MEMORY_EMPTY       = 1
         OTHERS             = 2
      et_otf[] = lt_otf.
      CALL FUNCTION 'CONVERT_OTF'
       EXPORTING
         FORMAT                      = 'PDF'
    *   MAX_LINEWIDTH               = 132
    *   ARCHIVE_INDEX               = ' '
       IMPORTING
         BIN_FILESIZE                = lf_filesize
        TABLES
          OTF                         = lt_otf
          LINES                       = lt_lines
       EXCEPTIONS
         ERR_MAX_LINEWIDTH           = 1
         ERR_FORMAT                  = 2
         ERR_CONV_NOT_POSSIBLE       = 3
         OTHERS                      = 4
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * convert tline to xstring as needed in
    * in web dynpro            
      field-symbols <X>.
      data: st(268) type c.
      data l1 type i.
      data len type i.
      data maxline type i value 134.
      l1 = 0.
      loop AT lt_lines INTO tline.
        clear st.
        st+l1(maxline) = tline.
        len = maxline + l1.
        l1 = maxline - strlen( tline ).
        ASSIGN st TO <x> TYPE 'X'.
        CONCATENATE ex_pdf <x>(len) INTO ex_pdf.
      endloop.
    ENDFUNCTION.
    The make_otf for sapscript is the following:
    * the next attribute enables the otf output.
    * no other output will be generated
    <b>options-TDGETOTF = 'X'</b>
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING
    *         APPLICATION        = 'TX'
    *         ARCHIVE_INDEX      = ARCHIVE_INDEX
             ARCHIVE_PARAMS     = ARCHIVE_PARAMS
                DEVICE             = DEVICE
                DIALOG             = ' '
                FORM               = FORM
                LANGUAGE           = language
               OPTIONS            = OPTIONS
    *     IMPORTING
    *          LANGUAGE           =
    *          NEW_ARCHIVE_PARAMS =
    *          RESULT             =
           EXCEPTIONS
                CANCELED           = 1
                DEVICE             = 2
                FORM               = 3
                OPTIONS            = 4
                UNCLOSED           = 5
                OTHERS             = 6.
    *... make some write forms
      data lT_OTF     type table of     ITCOO.
    * get the otf data
      CALL FUNCTION 'CLOSE_FORM'
    *     IMPORTING
    *          RESULT   = result
           TABLES
               OTFDATA  = lt_otf
           EXCEPTIONS
                UNOPENED = 1
                OTHERS   = 2.
    * put otf into memory for later usage
      if not lt_otf is initial.
        CALL FUNCTION 'SAVE_OTF_TO_MEMORY'
    * EXPORTING
    *   MEMORY_KEY       = 'DEF_OTF_MEMORY_KEY'
          TABLES
            OTF              = lt_otf.
      endif.
    For Smartforms technology it is possible to implement the same concept.

  • How to display summation of a field in table displayed in Webdynpro ABAP

    Hi,
    I am displaying a table in Webdynpro ABAP. This consists of data for different PERNRs.
    I need to display the sum of a particular column for each PERNR, after the end of each PERNR data. (table sorted by PERNR).
    Is there any way to display this in the table? If so then please let me know.
    Regards
    Moderator message: wrong forum, please have a look in the "Web Dynpro ABAP" forum.
    Edited by: Thomas Zloch on Mar 7, 2011 9:20 AM

    Hello,
    I believe you have created the query in SQ00.
    Go to SQ00.
    Select your Query.
    Click on Change
    On the Top Left Hand Corner, you will find "BASIS MODE"
    Click on the Basis Mode Button
    Once you click on Basis Mode Button, you will get "Title"
    Change the title what you are intended to change.
    SAVE the entries.
    Execute the Query.
    You will be able to see new Heading on the Query.
    Hope this helps you.
    Regards,
    Ravi

  • Display Word Document in ABAP WebDynpro

    Hi All,
    We have a number of word documents stored in the Business Document Navigator (Transaction OAOR) that we would like to display within a simple ABAP WebDynpro.  Demo program SAPRDEMO_FORM_INTERFACE shows how to retrieve a document from BDS via class cl_bds_document_set.  However, I am not seeing a similiar program for ABAP Web Dynpro.
    I was hoping that WebDynpro test application IOS_TEST_SIMPLE_MS would do the trick; however that appears to only work for a MIME repository object.  Is there a way to display these documents through ABAP WebDynpro?  Can anyone point me to a sample program?  Thanks.
    John

    Hi John
    Have a look at this thread [     Approach content repository other way then URL approach  |Re: Approach content repository other way then URL approach;.
    Thomas Jung delivers some (as always) excellent answers to a very similar problem. If the document is in DMS or BDS really doesn't matter so if I were you I would follow the "cached response" path.
    Also, do a google-search for --  abap "cached response" -- and you will find some additional links here (Thomas has even more to offer...).
    If you do follow this path please share some details as a follow up in this thread for the benefit of the community at large.
    Regards, Johan

  • How can we display photo of particular person on webdynpro abap view

    hello gurus,
                     i am very new to webdynpro abap.i have one requirement.could any one can suggest me to overcome my requirement.
    in my requirement i have one view.in that view i need to display one photo image which ever saved on my desktoop.if i click on save button i should generate one doc number and update what ever the photo image i have displayed in the view against this doc number.after some time if give the doc number in to docnumber field and click on display button it should display what ever the photo we have saved previously against this doc number.this is my exact requirement.i think for this we need to maintain one Z table to stroe the photo and respective doc.number.for this how can we stroe photo against doc number in ztables.what is the type i supposed to give for photo image field.
    could you please any one suggest me on this and could any one send me the sample code if possible.
    regards,
    babu.

    Hello Babu,
    I doubt whether you can directly display the image from your desktop into the webdynpro application using Image UI Element. Only solution what I can think of is to load the image into the MIME folder and then bind the path of image in the Source property of the image UI element. But if you ask me this is not a good solution. Let me propose my solution. If no one get back to issue with better approach then you can follow the same
    1. whenever the image the is uploaded from the desktop, create this image in the MIME folder ( you search in SDN for creating objects in MIME folder )
    2. then bind the path of the image in Mime folder to the Source property of the Image UI Element
    3. Once the image is persisted in the DDIC table, delete the image from the MIME folder.
    4. to persist the image in DDIC table, create an attribute of type RAWSTRING.
    5. Whenever you want to display image from DDIC table into the UI, then again create the image in MIME folder and delete the image from MIME folder when you are existing from the application.
    Alternative would be to use the Mime repository for storing the image and in the DDIC table just maintain the Mime folder path for the document number.
    Hope this helps you.
    BR, Saravanan

  • Display pdf file using webdynpro abap

    Hi Friends,
    My requirement is to display pdf file in the second page with the input  text  entered in the fisrt page when clicked on action
    button( in the first page) using webdynpro abap.
    Can anybody explain the step by step procedure as I am new to this area.
    Thanks in advance.
    Reagrds,
    Nagaraju

    Hi,
    Check this.,
    Creating a PDF file in webdynpro abap.
    Web Dynpro ABAP display pdf
    hope this helps u.,
    Thanks & Regards
    Kiran

  • Standard program to display which tables are used by Webdynpro ABAP program

    Hi Gurus,
    I am working on a couple of enhancements in SAP Promotion Management for Retail (SAP PMR) which works on the principle of Floor Plan Management.
    I was wondering if anyone would know of a standard program to display the tables used by Webdynpro ABAP?
    (or)
    Where can I get info of SAP Tables associated to SAP PMR?

    Hi,
    I am not aware of any standard reports that displays the tables.
    If I have to view the tables, I would go to se80, give the package and view all the tables in the package.
    Regards,
    Daz.

  • Regarding Tree structure display in Webdynpro ABAP

    Hi Experts,
    I am very new to webdynpro ABAP , I was asked to implement some functionalities of RWBE transaction in webdynpro , in RWBE transaction list can be displayed as Tree structure , in webdynpro how i can implement this ? using ALV UI element is it possible . Please help .
    Regards,
    Ratheesh BS

    Hi ,
    I need an output like the below
    <material number                 a1           a2        a3
              < plant                       b1          b2        b3
                 . org                        c1          c2        c3
    <material number                 A1          A2       A3
    is it possible to show the output as in this format using ALV ?.
    I have tried with the help provided by SDN , but not succeed .
    also i need to capture double click event and show the currosponding result in a seperate view.
    here material number is the parent node , plant and org were child nodes
    Regards,
    Ratheesh BS
    Edited by: Ratheesh Bhaskaran on Oct 7, 2008 4:22 PM
    Edited by: Ratheesh Bhaskaran on Oct 7, 2008 4:26 PM
    Edited by: Ratheesh Bhaskaran on Oct 7, 2008 4:29 PM

  • Display RSS flows in WebDynpro ABAP

    Hi,
    I was surprised that my search in this topic on "RSS" did not return any result.
    I need for a customer to develop a couple of WebDynpro ABAP screens (without any portal) and to display information coming from a RSS flow inside these WD4A screens.
    Any idea how to achieve this, standard solution preferred or via custom coding?
    Thanks
    Yann

    Your question isn't really Web Dynpro ABAP centric.  The process to consume and parse the RSS is indepent of the use of classic dynpro, BSP, or Web Dynpro ABAP as the UI.  You are probably just going to use the CL_HTTP_CLIENT class to make the HTTP call from ABAP and then parse the RSS with XML or an XSLT.  Brian McKellar wrote a nice blog on this some time ago.
    /people/brian.mckellar/blog/2004/06/25/bsp-programming-rss-httpclient-xml-xslt
    He does his output in BSP, but that part can easily be adapted to Web Dynpro.

  • Webdynpro ABAP - ALV how can i display Total of Column

    Hi friends,
    Webdynpro ABAP - ALV how can i display Total of Columns.
    Please tell me any metod is there or any solution.
    Thanks,
    Kumar.

    Hi
    You can take help of following code snippet to create totals for a particular column
    Data: lr_function_settings TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
            lr_column          TYPE REF TO cl_salv_wd_column,
            lt_column type salv_wd_t_column_ref,
            ls_column type salv_wd_s_column_ref.
    Data:  lr_field_amnt type REF TO CL_SALV_WD_FIELD.
    * get reference of ALV component
      lr_salv_wd_table = wd_this->wd_cpifc_OVERVIEW_EARNED_ALV( ).
      wd_this->alv_config_table = lr_salv_wd_table->get_model( ).
    *  get function settings
      lr_function_settings ?= wd_this->alv_config_table.
    * display columns in correct order
      lr_column_settings ?= wd_this->alv_config_table.
      lt_column = lr_column_settings->get_columns( ).
      loop at lt_column into ls_column.
    CASE ls_column-id.
    when 'AMOUNT'
    * aggregate field
            CALL METHOD LR_FUNCTION_SETTINGS->IF_SALV_WD_FIELD_SETTINGS~GET_FIELD
              EXPORTING
                FIELDNAME = 'AMOUNT'
              RECEIVING
                VALUE     = lr_field_amnt.
    * create aggregate rule as total
            CALL METHOD LR_FIELD_AMNT->IF_SALV_WD_AGGR~CREATE_AGGR_RULE
              EXPORTING
                AGGREGATION_TYPE = IF_SALV_WD_C_AGGREGATION=>AGGRTYPE_TOTAL
              RECEIVING
                VALUE            = lv_aggr_rule.
    endcase.
    Regards
    Manas DUa

Maybe you are looking for

  • Problem with Edge Animate oam file's autoplaying inside Muse

    Hi, I have created a Donut Chart animation in Edge Animate. It has 6 donut charts. Each chart is a symbol with animation inside. Everything looks good in edge animate. But, the problem is the .oam file is not working like I want inside Muse. The scro

  • Mapping 1D array of sensor data to a 3D graphical model

    does anyone have any ideas how to approach this matter in LabVIEW. I have a measurement that is an array of 1D values. I would like to display that 1D array of values as points of specific color on a 3D model of some sort. What is the best software t

  • HP Laptop motherboards compatibility.

    Hello agin my well experienced HP friends! I have, at this time, a question about 2 laptops. First, I have an HP DV9910-us. It had Vista, which has been upgraded to Win. 7. Now, I had posted this question before,  about the sound issue, This one work

  • Using FlipView to create a PhotoViewer with pinch to zoom capability (like WP8 PhotoApp)

    Hello, I'm currently developing a Universial App using WinRT to develop for Windows 8.1 and WP8.1. Inside that app I want to view a couple of images. Viewing the images works just fine with a FlipView but the disadvantage is, you cannot zoom. I searc

  • Convert file format into UTF-8 while generating text file on FTP server

    Hi Expert, I have the requirement to generate text file store it in FTP server and file format should be in UTF-8. ABAP Development is completed but text file format generate in ANSI which not acceptable by client.For generating text file and store i