2007 May 31 5:33 PM
Hi,,
I am facing a strange problem while using fieldsymbols .Here is my requirement.
I have a custom table records ( which also contains amount fields ) in fieldsymbol , which i need to transfer to application server . But when i am trying to transfer to file , using Transfer <final> to p_file , amount fields are not getting converted to characted format and program is going to shortdump. After that i tried assigning this <final> to another fieldsymbol , of type c (using casting ) , records were able to transfer to file but the amount fields are not being converted to readable format (i.e unknown symbols , like #p## ) .
I even tried SAP_CONVERT_TO_TEX_FORMAT to convert the contents to text format but i am unable to transfer with fixed length to application server file..
As it is a dynamic program , i am using fieldsymbols instead of internal tables.
Can anybody please help me transferring amounts also to appl .server file , with fixed length..
Thanks in advance..
Hi,,
I am facing a strange problem while using fieldsymbols .Here is my requirement.
I have a custom table records ( which also contains amount fields ) in fieldsymbol , which i need to transfer to application server . But when i am trying to transfer to file , using Transfer <final> to p_file , amount fields are not getting converted to characted format and program is going to shortdump. After that i tried assigning this <final> to another fieldsymbol , of type c (using casting ) , records were able to transfer to file but the amount fields are not being converted to readable format (i.e unknown symbols , like #p## ) .
I even tried SAP_CONVERT_TO_TEX_FORMAT to convert the contents to text format but i am unable to transfer with fixed length to application server file..
As it is a dynamic program , i am using fieldsymbols instead of internal tables.
Can anybody please help me transferring amounts also to appl .server file , with fixed length..
Thanks in advance..
2007 May 31 5:39 PM
Hi
The <field symbols> doesn't change the format of the field, so you need to convert it in char format before transfering it to file.
DATA: WA TYPE STRING.
MOVE <FINAL> TO STRING.
TRANSFER WA TO P_FILE.
Max
2007 May 31 7:37 PM
Hi
Any field which is of type P will give that result. You need to transfer it Char type data element and then transfer it to application server.
Regards
Navneet
2007 Jun 01 12:05 PM
Hi Navneet,
Can you pls send me some sample code ..how to find type P & convert to Char. B'se it's a Field Symbol, not an Internal table.
Thanks
Lakshmi Narayana L