I'm creating a XML document to FTP up to a host. I got the XML document inside a xstring variable. I think use the
cl_bcs_convert=>xstring_to_solix routine to get the XML into the proper format to use FTP_R3_TO_SERVER to FTP it off. My problem is that when converting to the solix table, it addes '00's to the end. I guess it's just trying to fill the table. When I FTP the file, it looks ok except it adds "nulls" to the end and it's messing up the host reading them correctly. Below is my code:
CALL METHOD cl_bcs_convert=>xstring_to_solix
EXPORTING iv_xstring = p_xml_string
RECEIVING et_solix = i_xml.
DESCRIBE TABLE i_xml LINES blob_lines.
blob_length = 255 * blob_lines. " 255 is max chars for line of solix_tab
Does anyone know of a way to get rid of the extra '00's at the end of the last line of my table? Another solution is to just modify the length to exclude them. Does anyone know how I can find out how many there are at the end so I can subtract from blob_length (I do know that one '00' equals 1 char)?
Thanks,
Curtis