‎2008 Oct 17 5:14 PM
Hello,
How can i convert an OTF format to xstring or rawstring.
Thanks
Amina
‎2008 Oct 17 7:39 PM
Thanks Harsh.
The i need to convert PDF to Xstring is because i need to upload a PDF document using FM :
HRRCF_MDL_CAND_ATT_CREATE'
This Fm only takes Xsting as input.
This is a case in E Recruitement when i want to create attachments to candidate profiles through the system.
Thanks
Amina
‎2008 Oct 17 5:27 PM
OTF is used for storing smartforms. It's an internal table with ITCOO structure (fields TDPRINTCOM 2 char + TDPRINTPAR 70 characters)
If you want to copy internal table into xstring without transformation, first transform internal table into a string with "concatenate lines of itab into string in character mode respecting blanks". Then transform string into xstring using [Dirk Boller method |https://forums.sdn.sap.com/click.jspa?searchID=11347800&messageID=5020890]
But maybe you want to transform OTF into PDF or other external format?
‎2008 Oct 17 7:14 PM
You are right. Actually, i want to convert PDF to xstring format.
‎2008 Oct 17 7:35 PM
Hello Amina,
I know one function module which converts PDF to RAW format which looks like,
SX_OBJECT_CONVERT_OTF_RAW - Conversion From OTF to RAW
and for OTF to PDF conversion we have here,
SX_OBJECT_CONVERT_OTF_PDF - Conversion From OTF to PDF
also,
CONVERT_OTFSPOOLJOB_2_PDF - converts a OTF spool to PDF
But, Im still unable to understand your requirement, as I am not aware of any PDF to OTF or PDF to raw/x-string conversion function module.
If you think these are not the appropriate ones then please update me on the correct ones so that I can also know about.
Good Luck & Regards,
Harsh Dave
‎2008 Oct 17 7:39 PM
Thanks Harsh.
The i need to convert PDF to Xstring is because i need to upload a PDF document using FM :
HRRCF_MDL_CAND_ATT_CREATE'
This Fm only takes Xsting as input.
This is a case in E Recruitement when i want to create attachments to candidate profiles through the system.
Thanks
Amina
‎2008 Oct 17 8:08 PM