Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

transfer amount fields to app. server using fieldsymbol

Former Member
0 Likes
638

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..

3 REPLIES 3
Read only

Former Member
0 Likes
596

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

Read only

Former Member
0 Likes
596

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

Read only

0 Likes
596

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