cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms- xfs

Former Member
0 Kudos

Hi expert,

I have a smartforms that run correctly, it's print simply a internal table.

Now i want to make a modify: I want to convert a form in html ---> xfs output.

This is my FM:

DATA output_options TYPE ssfcompop.

DATA control_parameters TYPE ssfctrlop.

DATA job_output_info TYPE ssfcrescl.

output_options-xsfcmode = 'X'.

output_options-xsf = 'X'.

output_options-xsfoutmode = 'X'.

control_parameters-no_dialog = ' '.

CALL FUNCTION wk_fb

EXPORTING

control_parameters = control_parameters

output_options = output_options

user_settings = ' '

IMPORTING

job_output_info = job_output_info

job_output_option = wa_ssfcresop

TABLES

it_tab = it_tab

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

LOOP AT job_output_info-xmloutput-xsfdata INTO xsf_line.

l_line = xsf_line.

APPEND l_line TO l_table.

ENDLOOP.

The problem is: in this table there's nothing job_output_info-xmloutput-xsfdata .

Why ??

tks,

bye.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

use these.

output_options-xsfcmode = 'X'.

output_options-xsf = 'X'.

output_options-xsfoutmode = 'A'.

XSFOUTMODE

SSFXSFOMOD

CHAR(1)

Use this parameter to specify the output mode:

XSFOUTMODE=u2018Au2018 (Application): You get XSF output using the export parameter JOB_OUTPUT_INFO-XMLOUTPUT-XSFDATA.

XSFOUTMODE=u2018Su2018 (Spool): SAP Smart Forms creates a spool request for XSF output and returns its ID using the export parameter JOB_OUTPUT_INFO-SPOOLIDS

above quote from sap help:

http://help.sap.com/saphelp_nw04/helpdata/en/71/9ccd9f8e0e11d4b608006094192fe3/frameset.htm

кu03B1ятu03B9к

Edited by: kartik tarla on Jan 26, 2009 5:10 PM

Former Member
0 Kudos

Tks kartik for you reponse....

I have niw another problem, the file created is wrong... when I tri to open it, the follow message appear:

Invalid at the top level of the document. Error processing resource 'file:///C:/test.xml ....

any idea ..

tks

Former Member
0 Kudos

also include this option

output_options-XDFCMODE = SPACE.

or may be instead of changing these params in orint program try changing this from smartform itself, this option is present in form attributes i think, just check it out , try both the methods and see if u r able to get output or not.

кu03B1ятu03B9к

Answers (0)