Reporting in ABAP WebDynpro

Hi,
Anybody can enlighten me with some ideas/sample on how can we transform back-end (SAP R3) reporting to front-end (ESS)?
What I have in mind is,
1. Develop a ABAP WDP in front-end to SUBMIT the back-end ABAP report and WRITE to MEMORY LIST
2. ABAP WDP to report in ALV base on report output saved in MEMORY.
The reason I am doing this is to minimize the coding effort and redundancy for the same coding.
Please help.

Hi,
To achieve this , you can try this option.
- Call your report from WD Component , may be from View component's WDDOINIT / on click of a button.
- Make sure to call this report in Background mode and also there should not be any dialog processing happening in your report
- Suppress any messages thrown in the reports , else you will get a dump.
- Since you just want to write to memory list and do not want to show any output to the user , the above steps should be sufficient for your requirement.
Regards,
Ashish Shah

Similar Messages

  • Passing data from report to abap webdynpro

    Hello,
    I'm calling an abap webdynpro from an abap report through CALL_BROWSER MF.
    I need to pass data from a report to a webdynpro. It is a table that I want to pass. I've tried to user memory ids, but as I was suspecting, it doesn't work.
    Is there a way of doing it?
    Thanks and best regards,
    Vasco Brandã

    Hi,
    Please read this thread : Is it possible to pass a table as input parameter to a web dynpro app?
    Regards,
    Pierre

  • Running R/3 reports from ABAp webdynpro

    Hi experts,
    I have a theoretical question:
    There is normal ABAP report (not webdynpro) in the R/3 system.
    Is it possible to run this report form an ABAP webdynpro application?
    In my understanding this means, I have to create the Selection screen of the report in Webdynpro,  then call the report from the R/3 system like:
      SUBMIT Z_REPORT
          WITH PNPPERNR = PERNR-PERNR
          AND RETURN
          EXPORTING LIST TO MEMORY.
    then retrieve the values
        IMP_KEY-PERNR = PERNR-PERNR.
        IMP_KEY-SEQNR = '99999'.
        IMPORT it_result FROM MEMORY ID IMP_KEY.
    Of course when I have the results I have to create another view, with a table to display it.
    My questions are:
    -Is my way of thinking correct?
    -Is there any other way to do this?
    Thanks
    N.G.

    >-Is my way of thinking correct?
    Pretty much so.  I guess best design long term might be to rebuild the report as native Web Dynpro - perhaps separating the data selection and logic out into a class.  However this is good way to reuse existing development.
    I notice that you have an explict IMPORT FROM MEMORY.  I assume this report is doing some custom export to memory. If you just want the list output without needing anything special within the report being called, then you should use the function module LIST_FROM_MEMORY and LIST_TO_ASCI. However if you place an export int the inner report the returned contents are probably easier to process than the list format.  I guess its really your choice.
    -Is there any other way to do this?
    This way is pretty direct.  You could redesign the report, but I'm assuming you are asking for other ways to reuse the existing report.  Your main concern might be if the report takes to long to run.  You might have to submit the report to the background.  This will likely require changes to the report to write the results into a database table instead of exporting to memory. However this has the added benefit of freeing the dialog work process of the WDA while the report runs.

  • Select Options use in ALV Report in ABAP Webdynpro

    Hello Experts,
    I Already Done ALV Report In webdynpro with use of view Container UI element.But i do not know ALV  report with help of select option.so
    Kindly Give Me simple Example of Use in select Option In ALV.
    Reply ASAP.
    Regards,
    Ameya Karadkhedkar

    First you need to add the component WDR_SELECT_OPTIONS to the tab "Used components" of your Web Dynpro component and then also in the properties tab of your view. In the layout you need to create another view container and embed the view WND_SELECTION_SCREEN of the new used component to it.
    Then in the WDDOINIT method of your view you can write this code (where SEL_OPT is the given name for the used component) in order to set the select option (This example is a select option for a date):
    DATA: lo_cmp_usage           TYPE REF TO if_wd_component_usage,
          lo_interfacecontroller TYPE REF TO iwci_wdr_select_options,
          lo_r_helper_class      TYPE REF TO if_wd_select_options,
          rt_range_date          TYPE REF TO data.
    * Instantiate used component WDR_SELECT_OPTIONS (SEL_OPT)
    lo_cmp_usage = wd_this->wd_cpuse_sel_opt( ).
    IF lo_cmp_usage->has_active_component( ) IS INITIAL.
      lo_cmp_usage->create_component( ).
    ENDIF.
    * Call method in used controller
    lo_interfacecontroller = wd_this->wd_cpifc_sel_opt( ).
    lo_r_helper_class = lo_interfacecontroller->init_selection_screen( ).
    * Create select option for the date
    CALL METHOD lo_r_helper_class->create_range_table
      EXPORTING
        i_typename    = 'DATS'
      RECEIVING
        rt_range_table = rt_range_date.
    CALL METHOD lo_r_helper_class->add_selection_field
      EXPORTING
        i_id          = 'DATS'
        it_result     = rt_range_date
        i_read_only   = ABAP_FALSE.
    * Hide unnecessary buttons
    CALL METHOD lo_r_helper_class->set_global_options
      EXPORTING
        i_display_btn_cancel  = abap_false
        i_display_btn_check   = abap_false
        i_display_btn_reset   = abap_false
        i_display_btn_execute = abap_false.
    Finally you need to write the following code in the action of the button in order to fetch the range table selected by the user.
    DATA: lo_cmp_usage            TYPE REF TO if_wd_component_usage,
          lo_interfacecontroller  TYPE REF TO iwci_wdr_select_options,
          lo_r_helper_class       TYPE REF TO if_wd_select_options,
          rt_date                 TYPE REF TO data.
    FIELD-SYMBOLS: <fs_date> TYPE table.
    * Instantiate used component WDR_SELECT_OPTIONS (SEL_OPT)
    lo_cmp_usage = wd_this->wd_cpuse_sel_opt( ).
    IF lo_cmp_usage->has_active_component( ) IS INITIAL.
      lo_cmp_usage->create_component( ).
    ENDIF.
    * Call method in used controller
    lo_interfacecontroller = wd_this->wd_cpifc_sel_opt( ).
    lo_r_helper_class = lo_interfacecontroller->init_selection_screen( ).
    * get selected range of inspections date
    CALL METHOD lo_r_helper_class->get_range_table_of_sel_field
      EXPORTING
        i_id          = 'DATS'
      RECEIVING
        rt_range_table = rt_date.
    ASSIGN rt_date->* TO <fs_date>.
    Then you can use the value that is assigned to the field symbol <fs_date> to continue with your ALV.

  • How to setup variants for webdynpro report in ABAP? Help!

    Hi Experts,
       I have a webdynpro for ABAP report with selection screen. 
       How to setup variants for webdynpro report in ABAP?
    Thanks
    Gopal

    Hi Gopal,
      There is no concept of Variant in Webdynpro ABAP. But in our project we have some tool to do that. Its not release to the client I think. In my scenarieo, We create the Screen variant and program name will be supplied to the tool that will generate the ouput in PDF and Selection screen in One view. But the same is not avilable .
    If you want the same concept in Webdynpro ABAP, you need to go for Dynamic programming only. This is the only option is avilable.
    Warm Regards,
    Vijay

  • EHS Report Near Miss  Webdynpro abap Enhancement.

    HI Experts,
    I need to add two fields in SAP EHS Report Near Miss Webdynpro abap application ( standard application ). Let me know how to Enhance the standard EHS Report Near Miss step by step.
    Thanks & Regards.
    Krishna.

    Hi Bhushan,
    If you want to add 3 radio buttons, then first of all you have to append one field in EHHSSS_INC_BASIC_INFO_ALL_D structure with Fixed Domain values.
    Then you need to enhance EHHSS_INC_REC_NRM_QAF_V3_BSCI component Configuration.
    In that Configuration you need to add field with display type Radio Button Group, with column count 3.
    Kindly refer the following snap for the same.
    Thanks and regards,
    Chetan P. Patil

  • ABAP Webdynpro reports in portal do not use portal theme for some elements

    Hi,
    I have an ABAP webdynpro screen which uses, amongst other things, a date navigator and drop down lists.  All aspects of the portal theme seem to be picked up by the webdynpro except the date navigator and drop down lists.  They don't even use the SAP standard ones.  They display as plain text using TimesNewRoman font and not the ones specified in the theme.  They also do not use any of the colours in the theme.  All tables and fields etc are all themed ok.  Any ideas how I can fix this?
    Regards
    Cindy

    Could there be a lockal cache issue?
    Clear you browser cache via Tools > Internet Options >  Delete History
    Try again after clearing the cache, if that doesn't help then try downloading the Internet Explorer Developer Toolbar:
    http://www.microsoft.com/downloadS/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en
    ...use this tool to get details about the css and classes aplied to the objects and use it to open a OSS message if it is a SAP WebDynpro application of talk to your developers if it is a Custom WebDynpro app.
    Good Luck,
    Benjamin Houttuin

  • Zci type ADOBE Interactive Form in ABAP Webdynpro short dump

    Adobe Reader version 8.1.2
    Life Cycle Designer version 7.1.4270.1.421766
    ECC 6.0 patch 13
    When I ran the 'FP_PDF_TEST_00' , it shows
    Version Information: 710.20061024154505.342190
    In my ABAP Webdynpro app., it has 3 inputfields.
    In the Form layout, I changed the form layout type to 'ZCI' for interactive form, and Insert the WebDynpro Script.
    And in the ABAP Webdynpro view layput designer, I enabled the pdf form element.
    All objects compiled without any problem.
    During the runtime, it got the following short dump:
    21 METHOD       CX_WD_GENERAL=================CP    CX_WD_GENERAL=================CM003     5
        CX_WD_GENERAL=>RAISE                                                                     
    20 METHOD       CL_WD_ADOBE_SERVICES==========CP    CL_WD_ADOBE_SERVICES==========CM008   193
        CL_WD_ADOBE_SERVICES=>CREATE_PDF                                                         
    19 METHOD       /1WDA/LADOBE==================CP    /1WDA/LADOBE==================CCIMP  1955
        CL_INTERACTIVE_FORM_ZCI=>IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT                         
    Our BASIS sent me the ADS trace:
    SAP Interactive Forms by Adobe
    Render Error Report
    'pdf' Log Entries
    restoreState is not a valid attribute of subform, Attribute not loaded. Line 5.
    Invalid node type: dataGroup
    The fault occurred on line 0.
    The SOM expression '$record.BAPIBNAME' for the dataRef specified on field 'BAPIBNAME', resolved to an incompatible node type of 'dataGroup'.
    Any comment or advise?

    Hi,
    As far as i know when you use Adobe forms in a WD4A application, language is your "web" connection language.
    You can have a look at standard class CL_WD_ADOBE_SERVICE, it's used when generating an adobe forms from WD4A. , more particulary look at method DETERMINE_DOCPARAMS.
    regards

  • ABAP WebDynpro iView with window id problem

    We have a custom ABAP webdynpro iView that is part of a dynamic navigation.  When the iView loads the following warning message is displayed...
    An error occured while starting the iView.
    Application
    https://<server>/sap/bc/webdynpro/sap/WebDynproComponent/;sap-ext-sid=J2IlkGCm4WYvxnfaQC8bVgY0oAX5DVVY3z_8GGDYcLow
    will run with wrong client window ID!
    Do not continue; please report this problem to your system administrator.
    Once you click 'Ok' on the warning message....the webdynpro iView is displayed. 
    How do you not have the message display? 
    Thanks.

    If the user is using link from favourites of browser, Ask him to delete it and manually enter the url and Try.
    In my case, The user just deleted the saved link from Favorites and tried entering the url manually,
    though it is weird it worked.
    or else try these Notes 1450543, 1171930 .

  • Editing Standard ESS Travel Abap Webdynpro Application

    Hi All,
    We used to edit ESS Java webdynpro  applications by taking a copy of the standard application
    with the help of Track created in Enterprise Portal.
    Now we have switched Travel Application from Java Webdynpro to Abap Webdynpro.
    and there is a requirement come up which requires the modification of standard WDA Application
    for Travel Request.
    Please let me know the procedure.
    Can we take the copy of that Entire package and do the necessary changes in the copied Application
    or can we proceed by editing the standard code ?
    If we are taking the copy of the Entire package does the configuration will affect on copied Application?
    Warm Regards
    Hari Sankar M

    Hi Hari Sankar,
    I have done this in my last project. You can enhance the WD Component only if you are adding functionality. Be careful to find the right component and methods. You usually do not make the change on the application itself. 
    If you want to tweak what the standard code does, that is a modification. If that, then I would advise you look into the configuration capabilities and the personalization if that meets the requirement.
    Copying the component is going to be very hard. I would definitely not get into that at all costs since the Travel WDA uses the FPM framework as well. The links between the components are very complicated to simply copy and edit the z compoenent. It does not work like that.
    Another thing: The specific challenge for the travel request is that the component you will need to change is being shared by the Expense report. It is the general data visual component. Be careful with that as you will have to differentiate in the code that you are calling it for the travel request.

  • Theme customization in ABAP WebDynpro

    >server metnioned above : is it portal server and port details
    No this isn't the portal server.  If you are running in the portal then you don't need this approach at all. The iView will automatically take on the customized portal theme as long as you have maintained the portal support package level along with the backend ABAP AS SP level. 
    >and what is the <application> here in the url..
    Your web dynpro ABAP application.
    ><folderOfYourCustomTheme>---here we need to give the folder name of our application in WebDynpro ABAP
    No.  The MIME folder where you stored your customized theme.

    Hi..
    I tried this approach and also the approach mentioned in below link
    [Re: How to call custom themes for Web Dynpro ABAP Application?;
    still unable to get the solution.
    I tried the method to run a report WD_THEME n upload the theme. getting version mismatch error.
    Request some one to clearly explain the step by step process to use the custom themes in ABAP WebDynpro.
    Regards,
    Syed Umar

  • Your opinion on:  BSP or Java Webdynpro or ABAP Webdynpro?

    Could you please give me your opinion on the business scenario we have here:
    We are implementing SRM 4.0 with backend R/3 4.6C, WAS 6.4 and Portal 6.0. SRM has its typical shopping cart applications mainly for procurement and the workflow trail displaying the approval. The client wants us to build a few custom forms on the web frontend of SRM (or may be in Portal). The idea is to store these forms and display when needed with the status info just like a shopping cart.
    <b>Now the requirements for these forms are as follows:</b>
    1. These forms will have multiple fields which need to have the F4 kind of help. (the F4 options will reside in SRM or R/3)
    2. The form should have some kind of a ALV grid  (autoexpanding feature) which will allow the user to put in multiple line items so that they could submit more items on one form.
    3. Users need to be able to attach a spreadsheet to the form which should not be editable once the form is submitted. The attached spreadsheet should be stored. (We are planning on using Archivelink Filenet for this)
    4. Upon submission, a workflow will be kicked off as per the defined Org structure for approval of the form.
    5. After submission, the user should be able to go and view the approval status of the form and also print the summary of the values that he entered in the form. (may be a smartform could be provided for this)
    We looked at different options to accomplish this task:
    <b>BSP:</b>
    Creating BSP pages and giving access as links to the user on the webfrontend of SRM. Now, if we go the BSP route, we need to develop in SRM as the R/3 4.6 c does not have BSP development capabilities. If we take this approach, I am not sure if all the above requirements (specially like attaching spreadhseets) will be met with BSP pages.
    SAP Webdynpro Java: 
    It seems that the Webdynpro is easier to use because of the graphical tools available. But the only problem if we go this route is that we will have to find a java guy.
    SAP Webdynpro ABAP:
    We currently have WAS 6.4. As per the documentation, the ABAP Webdynpro development tool is available from NW04s onwards. So, we are still not sure if we could use it. But, we want to push towards upgrading if necessary. Being an old time ABAPer, developing ABAP Webdynpro seems do-able. (i know it may not be that easy).
    Last but not the least, DIALOG Program:
    Creating a dialog program in R/3 or SRM seems fairly simple. Then, an iview could be created on the portal for this transaction, though at this point I am not sure how a spreadsheet could be attached and stored within a dialog program.
    The creation of the workflow may not be that bad after the original form is designed. The graphical display of the approval trail might be difficult, but we might get away with a report for that. For printing the details of the form, I guess I could develop a smartform and put out a button on the screen to print it out in the display view.
    Could you please give me your opinion /  best approach for accomplishing this task, keeping in mind the complexities of these new dimension products?
    Thanks
    Sri

    I would say that all four solutions to solving your tasks are technically feasible.  Here are some thoughts that I had however:
    First ABAP Webdynpro: it is true that ABAP webdynpro is only available with Netweaver04s.  04S is still in ramp-up which means that only a subset of the customer base is allow to implement it.  It will not become generally available until later this year (check the service marketplace for current release estimates).  That being said, it probably elimintes WDA as a possiblity for your project unless you are will to wait and to upgrade.
    However having worked with WDA for a while it is probably the best tool to custom develop what you describe.  It has excellent built-in F4 value help.  It also has a damn fine ALV grid implementation.  The spreadsheet could be just as simple as file upload in binary or your could try your hand at office integration.  Finally for the form you could use Adobe Interactive Forms which also has very nice integration into WDA. 
    Now to Dialog Programming: You could of course use dialog programming.  It seems a little bit of a waste to custom build something so large if WDA is in your near future.  There are obvious disadvantages (little OO structure, no MVC, etc).  You would have ALV grid, office integration and of course F4 help.  You could still use Adobe forms if you implement this on the 640 system.  However there are integration points with dialog and Adobe Interactive Forms.  You could still use printed forms however. If you did the dialog program on the 640 system, you could use the integrated ITS to expose it to the web.  The integrated ITS in my experience has quite nice performance although the look and feel remains just like the SAPGui.
    The Java Webdynpro route:  Well you hit the nail on the head - if you don't have a Java programmer already and you don't have the bandwidth to invest in learning Java, this can be a problem.  The Java Webdynpro environment is quite nice.  There are some things I like better than ABAP and some things that ABAP is defintely still better at.  However when it comes to heavy integration with an ABAP backend - ABAP Webdynpro is still the way to go.  Java Webdynpro does have a help feature (OVS), but it isn't "for free" or nearly as nice as the ABAP Webdynpro (perhaps it will get there some day).  That is one of the major advantages of WDA - its closeness to the business data brings several framework advantages like F4 and field help.  WebDynpro Java in 640 also doesn't have an ALV grid implementation.  I am sure that this is something both environments will eventually have, but right now ABAP has the advantage.  On the other hand, Webdynpro Java has equal support when it comes to office integration, file upload, and Adobe Forms support.  You would have a more difficult time integration SmartForms however.
    Finally we come to BSP.  Honestly if I were in your position I would probably choose BSP (unless you could wait for the ABAP Webdynpro upgrade).  You could build a nice MVC OO application using BSP (stateful or stateless).  The BSP product is mature and quite well documented thanks to SDN.  You have the BSP Extensions which when used in Design2003 use the Unified Renderer.  That means that your output will look nearly identical to the same UI elements in Webdynpro.  Also BSP supports portal integration (session management, eventing, and themes). 
    The downside to BSP is that it isn't a full framework (also one of its advantages).  You can insert all your own html and javascript (unlike webdynpro). But this also means that SAP doesn't delivery as many framework services.  For instance there is no ALV or Value Help.  There is no Office Integration or Adobe Forms integration.  There is some farily good Smart Forms integration.  Now the upside- many people have already hit these limitations and overcame them.  In the weblogs on SDN and in a certain SAP Press book (cough, cough) you will find out of the box solutions for many of these problems.  You can find ready to use solutions for Adobe Integration, Office Integration (using Microsoft Office Web Controls), and F4 help.  It will mean investing a little more time up front to get this "home grown framework" up and running - but it is perfectly feasible. 
    There is a learning curve to all these new technologies however.  This sounds like an abmious project.  I wouldn't want to try and tackle this project in any of these technologies if I was new to them.  With Webdynpro or BSP - consider giving yourself time to learn the environment and cut your teeth on some demo apps before jumping into such a huge development.

  • ABAP Webdynpro Rendering issues after ECC Upgrade

    Dear All,
    We recently upgraded ECC to EHP 7 (Netweaver 7.4)  but our Portal is still at Netweaver 7.0 EHP2 SP16.
    The ABAP Webdynpro iViews in Portal have the following issues. ( We use IE11).
    1. The ABAP Webdynpro Table filtering is not working. When I click the filter button it does nothing.  
    2. The cursor in the  Input fields reset back to the first position while typing and create a big mess.
    Any help appreciated.
    Thank you.
    PK

    Hi N_niki
    There is no resolution as such.
    We had raised a Customer message with SAP and were informed that this was expected as the procedure to execute the reports was changed in ECC when compared to 4.6 (technical changes) and hence this issue shall remain for some queries wherein the old changes need to be brought back using an option in the SAP Query.
    Please refer to SAP Note # 723577 which could provide a better explanation for the issue.
    Hope this helps.
    Thanks
    Vinodh Sudhakaran

  • Custom ABAP Webdynpro ESS iView Navigation

    Hi,
    Do anyone know how we can configure the out of the box SAP Business Package ESS applications to navigate to a custom page?
    Just for example, there is a button 'Create Expense Report'  in 'All my Trips and Expenses' ABAP Webdynpro app (FITV_POWL_TRIPS), on click, it takes the user to the out of the box 'Create Expense Report' page. Now, if I need to configure this button to take the user to another custom page, how can I achieve that? Is there a configuration that can be changed or we need to change the code?
    Any help will be appreciated!
    Thanks
    Kiran

    Hi,
    This will require slight modification of webdynpro abap application.
    1. Copy this web dynpro application and create a just look alike copy of it in a new package. This is done in se80 transaction. Do this only after creating a new transport package and a workbench request for it. Your basis consultant will do this.
    2.  Examine this button in the correspondiong view. It should contain the parameter for you url , Change this url to your required url in the same way.
    Thanks,
    Harish

  • ESS E-leave : which is the ABAP Webdynpro component ?

    Hi Gurus,
    I have a few questions regarding ABAP-Webdynpro.
    1. Which is the corresponding ABAP Webdynpro component for ESS E-Leave application ?
    I need to add a new report to the Leave Request page but unable to find the ABAP WD component for the same !
    2. Just by looking at the portal web-page, is it possible to find out if the page is based on Java WD or ABAP WD ? And if ABAP WD, how to find the corresponding component ?
    Any hints will be greatly appreciated and rewarded.
    Regards,
    Sandip.

    Just right click on empty space on leave application and select "more field help" then you will get technical information of the component.
    But some times, this option will be disabled by portal administrators.
    Regards
    Srinivas

Maybe you are looking for

  • Error While deleting PF Infotype

    Hi Expert, I have a query. For one employee PF is not eligible. But while performing hiring action end user wrongly maintained PF IT. And also payroll run had been for that employee for 1 month. And After running the payroll they identified he is not

  • HP Lazer Jet Pro 200 not installing with Windows 8 64 bit

    My brand new HP Laser Jet Pro 200 MFP M276mw is not installing with my brand new Acer One725-0487 Netbook that has the Windows 8 64 bit operating system. I bought them both at Office Depot this week. I downloaded the software of HP.com/support and wh

  • Disable certain changes in sales order after production order release

    We are in the MTO scenario and are also using variant configuration. The business requirement is that after a production order has been released (REL status) the preceding sales order item should be "locked" for certain changes. Such changes would in

  • Best practices or design framework for designing processes in OSB(11g)

    Hi all, We have been working in oracle 10g, now in the new project we are going to use Soa suite 11g.For 10g we designed our services very similar to AIA framework. But in 11g since OSB is introduced we are not able to exactly fit the AIA framework h

  • Quickly.....I need help....How do I close a popup box with an X....

    Hi, I need help quickly because its for a project that needs to be in soon, I have a pop up box on a button which does open and close but I would like to add an X to the corner which would also close the box... does anybody know a code for that? Plea