Skip to Content

Smartform - HTML or PDF or Word document

Hello Experts,


I am developing a smartform for the sales order. On the last page of this sales order form there is a full page paragraph of Terms & Conditions. I was planning to create a standard text for this T&C text. But client is expecting some user friendly way to maintain the text for T&C so that if there is any change in it user can directly maintain it. Something like they can upload the word or pdf or HTML document in DMS or SAP Web Repository and we can display it in the smartform.

Is there any way to display the document stored on DMS or SAP Web Repository in the smartform? Has anyone come across similar requirement?


Regards,

Sameer Dhuke

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Sep 12, 2016 at 03:31 PM

    Hi.


    I would print the document in a separate way from smartform.

    I didn't put logic for conversion of your PDF_Document into OTF => it_OTF_your_module


    Example:

    
    
    *...........................CALL SMARTFORM............................*
    CALL FUNCTION v_fm_name
    
    
    
    
    "Then call conversion OTF
    
    
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
    
    
    "Then change directly your OTF data
    
    
      LOOP AT IT_OTF INTO h_otf WHERE TDPRINTCOM EQ 'EP'. "End Of Page
    
    *    CHECK sy-tabix GT 1.
          f_tabix = sy-tabix.  “Insert your new OTF rows
    
    
          LOOP AT it_OTF_your_module INTO h_myotf.
    
    
                   INSERT my_otf  INTO IT_OTF  INDEX f_tabix
                   ADD 1  TO f_tabix
    
    
              ENDLOOP.
    
    EXIT
    
    
    ENDLOOP.
    
    
    
    
    "Finally PRINT
    CALL FUNCTION 'PRINT_OTF'
    EXPORTING
          PRINTOPTIONS           = ITCPO
    TABLES
          OTF                    = IT_OTF.
    
    
    
    
    

    Hope to Help

    Bye

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.