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.

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

  • 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

  • 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

  • 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

  • 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

  • Exporting Dynamic Document Output to a file

    Hi,
         Is it possible to export the output generated using Dynamic documents to a file other than *.html format? I am now using the method EXPORT_DOCUMENT, but it allows only HTML format. Please help

    hi,
    we can also view output in an excel sheet using BEx analyser.

  • Dynamic documents

    Hi guys,
    I spent few hours with reading of documentation to dynamic
    documents and always I'm asking myself, what are advantages
    and usage area of this "approach". e.g. in comparison to ALV,
    list processing ...
    Pls If you have experiences with dynamic documents, write some notes.
    Thanks a lot !
    Edited by: Josif Abramovic on Sep 2, 2008 4:45 PM

    Hi,
    yes I've checked example programs and that was also one of reason why asked here   (only one difference among screen and DD, that I remarked, is another "look&feel", but no difference in functionality)
    There is possibility to use more styles, but still the number of styles is limited.
    Concerning ALV, I didn't find any functionality, that I'm not able to implement in ALV and in DD I can.
    So please. write me reason, why to use DD and not e.g. ALV or list processing.
    Thank you !
    Edited by: Josif Abramovic on Sep 2, 2008 6:12 PM

  • Dynamic Documents missing plugin

    Hello,
    I tried to open an InCopy today and recieved an error that I was missing a plugin called "Dynamic Documents.InDesignPlugin." I checked in my plugin folder and sure enough it was still in the "Graphics" folder. What does this plugin control? Is there a PDF of what each needed Plugin controls? I'd love to have that.
    The document won't open. What could this mean?
    Rob

    I'm having the exact same problem and it has nothing to do with trying to open a file created with a newer version of Indesign. It happens the moment I try to launch InDesign and it started immediately following Adobe Updates. So it is not a "version conflict," it was caused by running an Adobe Update. Rather than "moving this discussion to the InDesign forum," which I can't find (and why do the breadcrumbs at the top list "All Communities > InDesign > Discussions" if this isn't the InDesign forum?), how about actually thinking about answering the question?

  • Dynamic documents indesign plugin

    i am getting this error:
    Cannot load Adobe InDesign CC 2014 because it requires version 10.1 or later of the Dynamic Documents.InDesignPlugin plug-in. Please contact vendor for compatible version of Dynamic Documents.InDesignPlugin.
    i have reinstalled indesign , applied updates… still not working
    how do i fix?

    I'm having the exact same problem and it has nothing to do with trying to open a file created with a newer version of Indesign. It happens the moment I try to launch InDesign and it started immediately following Adobe Updates. So it is not a "version conflict," it was caused by running an Adobe Update. Rather than "moving this discussion to the InDesign forum," which I can't find (and why do the breadcrumbs at the top list "All Communities > InDesign > Discussions" if this isn't the InDesign forum?), how about actually thinking about answering the question?

  • Dynamic Documents ( CL_DD_DOCUMENT ) in background to generate spool

    Hi Everyone,
    Is it possible for a Dynamic Document with the use of CL_DD_DOCUMENT to run in background and generate spool output?
    If it is possible, can you please tell me how?
    Thanks in advance.

    Hi Denver,
    dynamic documents are screen controls to be put in a (enjoy) container controlled by SAPGUI. In background, SAP just ignores any display processing for GUI controls.
    The CL_GUI_ALV_GRID is an exception here, in background output is converted to an ALV list. I don't know and I don't think that for dynamic documents anything comparable exists.
    Regards,
    Clemens

  • Dynamic Documents do not appear in GUI

    Hello,
    I am running SAP GUI 6.20 patch level 49 on my work pc and SAP GUI 6.40 patch level 23 on my home pc. I use Aventail version 5.31.183 to connect with my companies intranet.
    When I try and access any transaction that use dynamic documents the area of screen where the documents should be appears as a blank white space when I use my home pc. For example, when I access SE80 from my work pc the program field area appears correctly. However, on my home pc this area appears as blank white space.
    Has anyone experienced this problem and more importantly heard of a solution?

    Hi Pierre,
    For troubleshooting this issue, please help check the following stuffs.
    1. Aren't all documents showed in search results page(i.e. results.aspx) within enterprise search center site?
    2. Does it happen to all users? All FBA users? All Windows users?
    3. Have you tried creating a new enterprise search center site for testing this issue? Verify if there is customization on search/results web parts.
    4. Have you find related Events/ULS log with more useful error messages when search a document with this issue, which would help troubleshoot the issue?
    http://melcher.it/2014/10/hes-dead-jim-sharepoint-2013-search-troubleshooting/
    5. If possible, perform a reset of search index, run a full crawl, then test search again.
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have
    feedback for TechNet Subscriber Support, contact [email protected]
    Daniel Yang
    TechNet Community Support

  • Create Dynamic documents without screen.

    Is this possible ?
    Create a dynamic document (CL_DD_DOCUMENT) without creating any screen.
    Thank you.

    Is this possible ?
    Create a dynamic document (CL_DD_DOCUMENT) without creating any screen.
    Thank you.

  • Printing dynamic documents

    Hi,
    I was using dynamic documents for creating tables and forms. I used the print_document command for printing the tables. The problem is that the document does not print from my machine but I could print it from 3 other machines. Is there any specific setting that I need in order to print from my machine?
    Thanks,

    Hi.,
    Back Ground will not be print using cl_dd_document.,  Check  DD_STYLE_TABLE  Program.. this will help u., to print document.,
    also you can see backgrund colors cannot be print...  but you can print text color..
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • Dynamic Documents Format cells

    Hi everyone,
    I created a Dynamic Document and I had insert a table in it.
    Now I want to format some column headers. I want that some of them have Left Alignment and others Center Alignment.
    Is it possible to format only the header columns and not the table rows?
    The only way that I know to do align format is using the method SET_COLUMN_STYLE but with this I format the entire column and that's not what I want.
    Thanks.
    Silvia

    may be you can use the approach as in this program
    DD_ADD_TABLE
    or you can also just add plain html code which can handle that
    <cl_dd_document>->ADD_STATIC_HTML

Maybe you are looking for

  • How to give other material as a free good

    Hi all, Here i am getting doubt how to give free good for one material to another material. for ex:- if customer buy product A he will get product B as a free good how do we configure in to sap. i tried in exclusive method in the sales order it is ex

  • Trying to return the size of the bag's range

    can some one help me with these... im not sure if i just need to do a return statement. if someone can give some advice that would be great.. thanks         public interface BagOverIntRange {       * Returns the size of the bag's range (high - low +

  • Simple AS3 to AS2 translation (display list manipulation)

    Can anybody translate this piece of code to AS2? Don't ask why Thanks. var pictureIndex:int = 0; var pictures:Array = []; mc_animation.gotoAndStop(1); mc_animation.visible = false; mc_animation.addEventListener(Event.COMPLETE, animationCompleteHandle

  • Mulitcam with more than 4 cams?

    i am about to shoot a live music concert with 9 cams. will also shoot a rehearsal, with 8 or 9 cams. the show is almost 2 hours long. i did this last year and manually edited 18 tracks of video, took a long time, but looked nice. anyone done a multic

  • Problem to start photoshop elements

    When start executing Photoshop elements version 8 I receive an error message regarding  C:\windows\AppPatch\AcLayers.dll containing an error. I have followed the recommendation in the error massage and reinstall Photoshop. What to do