Skip to Content
0
Former Member
Oct 24, 2005 at 04:04 PM

Convert Smartform to RTF for display in Custom Control

435 Views

Hi Gurus,

I am building a report that uses Smartform output.

The process is as follows:

1. User enters Personnel data in selection screen.

2. Report retrieves employee data and calls Smartform.

3a. Smartform is displayed for each employee, either in Smartform format (within SAPGUI) or MS Word format (also within SAPGUI).

I'm using a Custom Control to keep the display within the SAPGUI.

However, I dont know how to do any of the following:

1. Display the Smartform directly in the custom control

2. If that is not possible, I'm trying to convert the Smartform's OTF format to RTF and display it thru Word.

I can get any of the following f'mods to work correctly:

CONVERT_ITF_TO_RTF

CONVERT_TEXT

I'm using a custom control because I am trying to use the "splitter" as well. Basically after the user enters selection criteria and executes report, I want the program to list the retrieved employees on the left-hand pane. And when user selects an employee and clicks a custom button on toolbar, I want the Smartform to appear on the right-hand pane.

Hope the above makes some sense.

Any help will be greatly appreciated.

Thanks

Rajendra