I have to generate a Smart Form in PDF format. I have to save this output (in any possible format which I would say is type either string
or xstring
) in a Z table so it can be generated again without the processing.
Could you please clarify if there is any way of saving the Smart Form PDF in xstring
type?
I have looked into the output of function module that generates the Smart Form and tried to look for xstring
but was unable to find it.
In the CONTROL_PARAMETERS
importing parameter of the function module you use to output the Smart Form, pass the field GETOTF = 'X'
in order to receive the field OTF_DATA
from the exporting parameter JOB_OUTPUT_INFO
.
Then you can convert the field OTF_DATA into PDF format with the function module CONVERT_OTF
.
That gives you a binary table that you can convert to the xstring
type using the function module SCMS_BINARY_TO_XSTRING
.