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

Junk values in Application server.

Former Member
0 Likes
461

Use the below code created the file in application server but the file has all values like #C#W#C#1#0#9#6.

How to replace # ( I need to store value of the internal table separated by comma delimeter in application server)

Open dataset filename for OUTPUT in BINARY MODE.

loop at lt_tab into wa_tab.

transfer wa_tab to filename NO END OF LINE.

endloop.

Dont suggest CG3y and CG3Z they are invalid T-code in SCM systems.

Please rectify the above code.

2 REPLIES 2
Read only

Former Member
0 Likes
402

Try using Text mode with requried encoding like UTF-8 and ISO.

Suresh

Read only

Former Member
0 Likes
402

Hi

From the syntax I can tell you that your system is a Non- Unicode.

Can you check the following:

1. While debugging are the values of lt_tab coming as # or this # is being generated when writing to the application server?

If the characters are getting corrupted in the application server then check the file by downloading it to the presentation server to check if the # still exists in the local system. You can use fm : archive_server_client might be( try f4 serverclient*).

Because sometimes file in the application server for some characters might be displayed as # even if they are perfect once you download the same file and check.

Let me know your findings.

You can also try opening in Text mode and with proper encoding.

Thanks

Ajay