Dynamic Documents in ABAP

Hi,
I have a doult about Dynamic Documents.
It seems very good and better than normal reports, and it's not very hard to implement.
My doult is, whether it's so good, why it's not very very used? does it have some big problem ou limitations?
Thanks,
Alexandre Nogueira.

one limitation which comes to my mind immediately is that you cannot create spool output of the dynamic document.
Regards
Raja

Similar Messages

  • Dynamic documents in ABAP Objects (weblog)

    Hi SDNers,
    Do you want to implement the following features in ABAP Screens?
    1. Large font sizes and more colour options than traditional ABAP/4 (There are some limitations also)
    2. ICONS and pictures in different sizes
    3. Texts
    4. Links
    5. Pushbuttons
    6. Input fields
    7. Dropdown list boxes
    8. Tables with row span and with column span
    9. Tables with frames and without frames
    10. Tables with buttons, icons, pictures, input elements and texts in it.
    Then please read the below weblog to incorporate these features...
    <a href="/people/venkata.ramisetti/blog/2005/12/20/dynamic-documents-in-abap-objects">Dynamic Documents in ABAP Objects</a>
    Thanks,
    Ramakrishna

    one limitation which comes to my mind immediately is that you cannot create spool output of the dynamic document.
    Regards
    Raja

  • Dynamic Documents & Exercise

    Hi guyzzzzzz,
    i want the document for the following........
    ·  Dynamic Documents Display
    ·  Structure of Program that Use Dynamic Documents
    ·  Classes for Dynamic Documents
    ·  Important Methods of DD Classes
    Demo/Exercise
    Its very urgent, plz help me in this
    Thanks in advance,
    Vishnu. R

    Hi,
    Dynamic documents in ABAP Objects are HTML documents that are generated during runtime using ABAP code.
    Dynamic documents enable developers to give totally a new look and feel to ABAP screens and report outputs (provided screens are used in the report output). Many features that are not possible in the traditional ABAP programming are available in dynamic documents. Why we are saying a new look and feel is it uses SAP HTML Viewer internally to bring HTML web page kind of look and feel to screens.
    Dynamic documents may contain Forms and Tables, which intern can contain elements like input fields, push buttons, dropdown lists, texts, icons and pictures in different sizes. Of course some of these features are also available in ALV reports with limited usage, but not like in dynamic documents.
    Features
    The below mentioned are some of the features of dynamic documents.
    Large font sizes and more colour options than traditional ABAP/4 (There are some limitations also)
    ICONS and pictures in different sizes
    Texts
    Links
    Pushbuttons
    Input fields
    Dropdown list boxes
    Tables with row span and with column span
    Tables with frames and without frames
    Tables with buttons, icons, pictures, input elements and texts in it
    Steps for using dynamic documents in ABAP program:
    For using dynamic documents, all that we need is a screen and a custom control in that.
    The following steps need to be done in the program in order to display a dynamic document in a screen.
    Create a screen and a custom control in that using Screen Painter (This step is not required if we already have a screen and custom control in the program)
    Define an object reference to the class CL_DD_DOCUMENT and instantiate it.
    For example:
    DATA: OBJ_DD  TYPE REF TO CL_DD_DOCUMENT.
    CREATE OBJECT OBJ_DD.
    Dynamic document is ready now for including elements in that. The below are few methods, which we can use for adding elements to the dynamic document. Method Description
    NEW_LINE To generate a line break
    UNDERLINE To draw a horizontal line across the full width of the document
    ADD_GAP To place a gap in a line
    ADD_TEXT To add a text
    ADD_PICTURE To add a picture
    ADD_ICON To add a SAP icon
    ADD_TABLE To add a table
    ADD_FORM To add a form area
           For example:
           DATA: OBJ_TABLE      TYPE REF TO CL_DD_TABLE_ELEMENT.
           CALL METHOD OBJ_DD->ADD_TABLE    
                  EXPORTING
                  NO_OF_COLUMNS        = 2
                  WIDTH                = u2018100%u2019
                  IMPORTING
                    TABLE              = OBJ_TABLE.
    Once all the elements are included, all these elements need to be merged into a single dynamic document. This can be done using method MERGE_DOCUMENT.
                            For example: CALL METHOD OBJ_DD->MERGE_DOCUMENT.
    Dynamic document is now ready for display/print/export.
    Method DISPLAY_DOCUMENT can be used to display document in the screen. Here it is possible to display dynamic document in an existing container or in the existing document also.
    Method PRINT_DOCUMENT can be used to print the dynamic document. Here system enables local printing.
    Method EXPORT_DOCUMENT can be used to export the document as a HTML file into PC.
    In case of the dynamic document need to be refreshed based on the user action, one should first call the method INITIALIZE_DOCUMENT to clear the dynamic document contents. This method does not clear the dynamic document object reference. So it is possible to include another set of elements in the same dynamic document.
    After displaying the document, any user action can be handled in the event RESOURCES_CHANGED of the class CL_GUI_RESOURCES. For example refreshing the document contents, displaying new contents on the same document etcu2026
    Event RESOURCES_CHANGED can be triggered explicitly using the method ON_RESOURCES_CHANGED of the class CL_GUI_RESOURCES.
    For showing a dynamic document in a report, a screen with custom control in it must be called from the program.
    Example programs:
    SAP provided a complete set of example programs (Package: SDYNAMICDOCUMENTS), which explain all the features mentioned in this weblog.
    Program Description
    DD_ADD_FORM_BUTTON Buttons on Forms
    DD_ADD_FORM_INPPUT Interactive Elements: Forms with buttons
    DD_ADD_LINK Interactive Elements: Links
    DD_ADD_PICTURE SAP icons and pictures stored in BDS(transaction OAOR)
    ADD_PICTURE To add a picture
    DD_ADD_TABLE Tables
    DD_ADD_TEXT Text input
    DD_SPLIT_DOCUMENT Distribution of areas on dynamic documents
    DD_STYLE_TABLE Style types & list colours
    Also refer to this links:
    /people/venkata.ramisetti/blog/2005/12/20/dynamic-documents-in-abap-objects
    http://www.sapdevelopment.co.uk/reporting/ddhome.htm
    www.saptips.com/WorkshopDescriptionsABAP.asp
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • What are the advantages to using SAP Dynamic Documents?

    Sorry, didn't realize I had this post in the Objects forum. Posting this in ABAP General.
    Posted: Dec 6, 2010 11:58 PM
    Hello,
    Are there any advantages like portability and others to using dynamic documents rather than list programming.
    The SAP provided classes have not been much used by any other SAP delivered programs, and there is less than 10 subclasses. A method CL_DD_DOCUMENT->ADD_STYLE, apparently to add style sheets, has related code commented out. The class CL_DD_STYLE_CLASS, has no methods. And we are with NetWeaver 7.0.
    Is dynamic documents something that got left hanging midway, and probably not going to have further developments?
    Would you suggest proceeding with dynamic documents for reports, would appreciate your input.
    Thank you.
    Posted: Dec 8, 2010 7:45 PM 
    Just in case, if some of you haven't read this thread, would appreciate your replies and suggestions.

    I had moved it to the objects forum because it seemed more object oriented.
    However, if you want it here, I will leave it. I have also removed the other thread.
    Rob

  • Refresh data in a Dynamic Document

    Hello,
    I'm using a Dynamic Document inside a dynpro but the data (add_text - display_document methods) are not refreshed even if I use the CL_GUI_TIMER to auto-refresh the contents of the dynpro.
    Any idea?
    Angelo

    Hi Angelo.
    Did you get any idea how to solve the problem? I face the same problem and found out, that if you use the print method (print_document) you get the refreshed document. But if you display the document you´ll get the old one.
    Thanks for your or any othe´s reply.
    Michael

  • OLE - Creating header and footer in Word document using abap

    Hi All,
    I'm using OLE to create a WORD document from abap.
    I need to insert a logo in the header and a footer text.
    Does any one know how to insert a header/footer with abap ole ?
    I tried to insert the logo as picture with:
    call method of o_inlineshapes 'AddPicture' = o_logo
      exporting
      #1 = 'C:\logo3.jpg'.
    but I can't put it in the place I want..
    thanks,
    Michal

    call method of LOBJ_MS_WORD 'ActiveWindow' = w_activewindow.
    call method of lobj_activewindow 'ActivePane' = w_activepane.
    call method of lobj_activepane 'View' = w_activeview.
    SET PROPERTY OF w_activeview 'SeekView' = '9'.   " header view.
    " This will set the view to the header view. Whatever you write here
    will go to the header.
    Get PROPERTY OF lobj_ms_word 'Selection' = w_selection.
    CALL METHOD OF w_selection 'TypeText'exporting
      #1 = 'Rahul Anand'.
    "Now set the view again to the main doc view.
       SET PROPERTY OF w_activeview 'SeekView' = '0'.
    " Now write your main doc code .
    " For footer the view is '10'.
    call method of LOBJ_MS_WORD 'ActiveWindow' = w_activewindow.
    call method of lobj_activewindow 'ActivePane' = w_activepane.
    call method of lobj_activepane 'View' = w_activeview.
    SET PROPERTY OF w_activeview 'SeekView' = '9'.   " header view.
    " This will set the view to the header view. Whatever you write here
    will go to the header.
    Get PROPERTY OF lobj_ms_word 'Selection' = w_selection.
    CALL METHOD OF w_selection 'TypeText'exporting
      #1 = 'Rahul Anand'.
    "Now set the view again to the main doc view.
       SET PROPERTY OF w_activeview 'SeekView' = '0'.
    " Now write your main doc code .
    " For footer the view is '10'.

  • Clicking on link in dynamic document does nothing

    Hello my friends,
    I Add link to my dynamic document but when I press on the link it does
    nothing. I create event handle class and connected it to the link and
    it still did not work.
    Please help me if you can, its urgent.
    Regards,
    Eitan Iluzz.

    Try this: http://helpx.adobe.com/creative-cloud/help/launch-creative-cloud-apps.html

  • 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 to add Image dynamically in Webdynpro ABAP

    Hi Experts,
    How to add Image dynamically in Webdynpro ABAP.
    My requirement is i maintain all the images in a table.
    image source has to pick the table URl dynamically and display.
    is that possible in webdynpro?
    and also please give the suggesion,
    without using MIME objects is that anyway to get images?
    Thanks in advance.
    Regrads,
    Jeyanthi

    Hi,
      are those icons wou want to display then. he following code will be useful.
    data : lo_IMG type ref to CL_WD_IMAGE.
    LO_IMG = cl_wd_IMAGE=>new_IMAGE( id = img_id SOURCE = 'ICON_BW_APD_TARGET' tooltip = sts_tltp ).
    lo_cont->add_child( the_child = lo_img ).
    here lo_cont is the container where you want to add the image dynamically and source is the attribiute through which you can change the ICON image. this thing you can getit from data base table and change accordingly.
    Regards,
    Anil kumar G

  • How to assign an output type to a document via ABAP

    Hello Guru's
    I have an interface with a 3rd party system to send information from deliveries. When a delivery is created, we trigger output with 'Post goods issue' and output triggers the interface.
    We need to also trigger output with 'reverse goods issue' and here is the problem. When GI is cancelled I don't know how to trigger the interface having the control from Sales not from MM.
    I'm thinking to use the same approach assigning an output to the delivery in a user-exit of GI cancellation process. But I don't know how to assign this output to a delivery document using ABAP. I have looked for BAPI's or Functions but no successful.
    - Do you know how to assign outputs to documents via ABAP?
    - Do you have any other idea to trigger the interface when GI is cancelled?
    Thank you in advance,
    Manuel

    Hi,
    Guess u need to maintain it in SPAD transaction.
    Cheers
    VJ

  • Parking Document  Through ABAP Program

    Dear Experts,
    I need to Park the Account Documents Using ABAP program,
    Please Suggest Any FM or Any Example.
    please suggest how to use RFBIBL00 program in my abap program. or if any other better way to post document using custom program.
    Sincerely

    Answered through sdn forums.

  • Plz suggest some documents for ABAP in ECC 6.0.

    Hello,
    Could u plz suggest some documents for ABAP in ECC 6.0.
    Regards,
    Vibhuti

    Hi,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5ac31178-0701-0010-469a-b4d7fa2721ca
    Thanks,
    Sankar M

  • Reg dynamic actions in abap-hr

    Hi Gurus ,
    What is dynamic actions in abap-hr ,can any body explains it
    with an example ...
    Thanks & Regards
    Suman

    hi dynamic actions changes or create the infotype record on maintainance  of another infotype.
    like after hiring a person if u want to default joining date in 0041 infotype.
    then u will check molga.
    p too1p-molga=40
    p is used to check conditions.
    then u will insert the records in 0041
    i ins,0041,,,(p0000-begda),(p0000-endda)/d
    /d is for processing in background.
    then u will default values in 0000
    w p0041-dar01 = 'hd'
    w p0041-dat01 = p0000-begda.
    w is for defaulting value.
    go to spro-personnel management - personnel administration-customizing procedures-dynamic action .
    here u have documentation.

  • Dynamic selections in ABAP HR

    Hi,
    What is meant by dynamic selections in ABAP HR report using a LDB?

    hi,
    use this.
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE <node>.
    Also check this.
    [https://forums.sdn.sap.com/click.jspa?searchID=20295165&messageID=5678733]

  • Where i can find the document for ABAP-SD techno functional guys

    where i can find the document for ABAP-SD techno functional guys

    Dear Jagrut,
    Well there is no separate section for technofunctional people like ABAP SD. I think it wil not be an easy proposition also to have a separate section. Regarding the documents, I have posted lot of queries on technofunctional aspect of SD and I have got good responses from the SD forum. So you can try it here.
    A small search on SDN SD forum most of the times will help you to answer your query. 
    I will suggest you to visit  http://sap-img.com/sap-sd.htm. It will give you the overview of SAP SD module.
    Moreover there is a separate section of FAQs with answers which will help you in great deal.
    Hope this helps you.
    Do award points if you found them useful.
    Regards,
    Rakesh

Maybe you are looking for

  • Connecting macbook 4.1 to hd tv

    i am trying to watch movies from my macbook on my new hd tv.  first i tried to get external hard drive and connect that through usb. did not work. then i bought the audio cables and the mini display->hdmi cord and the mini display part was too small

  • Hi all. Can I backup my external hard drive to iCloud?

    My external HD has every file I've ever created on it, not just ones using apple programs. If so, can I access these from other computers if I get an icloud account? i.e. if I have an illustrator file on iCloud can I download/edit it?

  • Where to put xsl:variable definition

    I apologize in advance if this is a really obvious question/answer for most of you. I want to use this definition code to create a variable called color: *<xsl:variable name="color" select="'red'"/>* I want to include this code in my RTF template to

  • Query Result with pagination problem

    I have a region that has a search field with a "Go" button which runs a report based on a SQL Query(PL/SQL function body returning SQL query). Works great and displays the default of 15 rows with a pagination scheme of "Row Ranges X to Y of Z(with pa

  • Turn off overprint fill

    I sometimes receive a file from a  client that has accidentally had overprint fill turned on for an object, it happens on type a lot. It happens on PDFs made in indesign and illustrator.  I was wondering is there a way inside acrobat reader pro to tu