cancel
Showing results for 
Search instead for 
Did you mean: 

how to create entire adobe form in editable mode ?

Former Member
0 Kudos

Dear All,

how to create entire adobe form in editable mode ?

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

how to create entire adobe form in editable mode ?

What do you mean by entire adobe form? You mean a freely editable adobe form like we edit the Word document? If so, it is not possible.

However you can have editable fields in adobe form. Check this demo by Thomas: http://scn.sap.com/docs/DOC-10241

Regards,

Kiran

Former Member
0 Kudos

Hi kiran,

thank you for replay.

i have to develop  a word document for this i am created a so10 text with html tags(for alignemnt like font size , type , bold etc) . how to convert html tags .

my code:

   CALL FUNCTION 'READ_TEXT'
     EXPORTING
*     CLIENT                        = SY-MANDT
       id                            = 'ST'
       language                      = sy-langu
       NAME                          = 'ZNOTE1'
       OBJECT                        = 'TEXT'
*     ARCHIVE_HANDLE                = 0
*     LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        = thead
     TABLES
       lines                         = lt_lines.


   REPLACE ALL OCCURRENCES OF '&YEAR' IN TABLE lt_lines WITH ls_data-YEAR  .

   REPLACE ALL OCCURRENCES OF '&LETTER&' IN TABLE lt_lines WITH ls_data-LETTER  .
   REPLACE ALL OCCURRENCES OF '&AMOUNT&' IN TABLE lt_lines WITH ls_data-AMOUNT  .


   CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
     EXPORTING
       line_width_dst              = 255
     TABLES
       content_in                  = lt_lines
       content_out                 = it_lines
     EXCEPTIONS
       err_line_width_src_too_long = 1
       err_line_width_dst_too_long = 2
       err_conv_failed             = 3
       OTHERS                      = 4.

   REPLACE ALL OCCURRENCES OF '*' IN TABLE it_lines WITH ' '.
   DATA text1 TYPE STRING .
   CALL FUNCTION 'CONVERT_TABLE_TO_STRING'
     EXPORTING
       i_tabline_length = 132
     IMPORTING
       e_string         = text1
     TABLES
       it_table         = it_lines .

   data: lines2 TYPE xstring  .
*     text2 type  xstring .
   CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
     EXPORTING
       text           = text1
*   MIMETYPE       = ' '
*   ENCODING       =
    IMPORTING
      buffer         lines2
  EXCEPTIONS
    FAILED         = 1
    OTHERS         = 2 .

   CALL METHOD cl_wd_runtime_services=>attach_file_to_response
     EXPORTING
       i_filename      = 'TEST'
       i_content       lines2
       i_mime_type     = 'DOC'
       i_in_new_window = abap_false
       i_inplace       = abap_false.




Answers (0)