Q

Convert SAP Script to OTF

Our order confirmation letters are being generated and transferred to SAPConnect. The problem is the format is being converted from SAPScript to OTF. I need to convert the format from SAPScript to text. I am using the program RVADOR01, form routine ENTRY and calling a form to generate the output. I was attempting to add a function module 'CONVERT_OTF_MEMORY' to the program for the conversion. Do you have any suggestions?

Our order confirmation letters are being generated and transferred to SAPConnect. The problem is the format is

being converted from SAPScript to OTF. I need to convert the format from SAPScript to text. I am using the program RVADOR01, form routine ENTRY and calling a form to generate the output. I was attempting to add a function module 'CONVERT_OTF_MEMORY' to the program for the conversion. Do you have any suggestions?


Here is some sample code for achieving manual conversion to the OTF format.
* In case of more than 10 pages:
- Check the spool request
- Click Edit -> OTF display -> No. of OTF pages
* Convert SAP Script to text:
- Display the spool request
- Then click Goto -> List display

Automatic conversion to the OTF format:
 

tables: tline.
data:   begin of int_tline1 occurs 100.
             include structure tline.
data:   end of int_tline1.
call function 'OPEN_FORM'
                 device         = 'OTF_MEM'
          .........................................
* after CLOSE_FORM
call function 'CONVERT_OTF_MEMORY'
     exporting
          format                = 'ASCII'
          max_linewidth         = 132
     tables
           lines                 = int_tline1
     exceptions
          err_max_linewidth        = 1
          err_format                    = 2
          err_conv_not_possible = 3
          others                          = 4.
* write the text file to spool
loop at int_tline1.
   if int_tline1-tdline = space.
      skip.
   else.
      write:/ int_tline1-tdline.
   endif.
endloop.


 

This was first published in April 2003

Dig deeper on SAP CRM software

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close