06-29-2015 12:59 PM
hi all ,
i am getting error regaurding salesorder creation.
when i am transfering data from presentation to application server text file at the end of file in application server getting # symbol
this symbol was not going and making the error in sales order creation.
and here in this text file pipe symol is using as a seperator.
even though i am using REPLACE ALL OCCURENCES this error is not moving.
please give your valuable solution.
Best regaurds,
sainath kaja.
07-23-2015 1:12 PM
Thank you all,
That hash symbol is not moving even though done with different experiments suggested by
you all .
In my internal table added one dummy field and that field i didn't passed to
BAPI function module that's it.
now my object is working fine.
thanks for u r valuable answers.
06-29-2015 1:17 PM
Hi Sainath,
Are you using 'ASC' or 'BIN' filetype in CG3Z?
Thanks,
Indrajit
06-30-2015 9:47 AM
06-30-2015 11:19 AM
06-30-2015 1:44 PM
hi indrajith,
i did with that but complete data is not taking half of the data is missing , what ever the data in apllication server that is only passing to internal table remaing data is not passing .
can u suggest me how to increase the size of application server, with that i hope v can see the complete data.
best regards,
sainath kaja
06-30-2015 2:09 PM
Sainath,
Do not worry about what you are seeing in AL11, that may be due to editor length?
But when you are doing READ DATASET in program to read AS file, what is the length of the variable you are reading into?
Thanks,
Indrajit
06-29-2015 1:18 PM
Sainath,
Try using the transfer format set to BINARY. I am guessing that should do take care of it.
Thanks,
Vikram.M
06-29-2015 8:12 PM
when i am transfering data from presentation to application server
And what do you use for that exactly?
06-30-2015 9:48 AM
06-29-2015 9:00 PM
Hi Sainath,
I would check to see if it is equal to the value of the character cl_abap_char_utilities=>newline. We have seen this in some scenarios on our system before as it is the end of line terminator on Unix/Linux. The application server does not have a way to display this control character so it will show a '#' in its place. If that is the reason then you can key in using a replace all on that with an empty string and it should clear up your problem.
Regards,
Ryan Crosby
06-30-2015 3:01 AM
Hi Sainath,
This can be prevented by saving the file in ‘ASC’ format. Save the file in App Server as ‘ASC’ (instead of BIN or RAW). This will solve your issue.
Please check the link:
Regards,
Raju.
06-30-2015 9:59 AM
If other solutions are not working , then you can try this
take string length after read dataset
and read only offset 0+(string length -1 ).
probably it works.
06-30-2015 5:20 PM
Our application server is on Linux. I took a simple text file and hit Enter at the end to create a blank line. When I used FTP or CG3Z with BIN option I saw the hash sign in AL11 when I hit Enter. After I used CG3Z with ASC option there was no hash but just blank space.
When in the program I used
OPEN DATASET ... FOR INPUT IN TEXT MODE ENCODING DEFAULT WITH SMART LINEFEED IGNORING CONVERSION ERRORS
then all 3 files look the same way and all 3 had a blank line, no hash sign was read.
In case this OPEN DATASET form doesn't work for you there is also a constant CL_ABAP_CHAR_UTILITIES=>CR_LF that may be used to eliminate the CR sign.
08-10-2022 6:06 PM
07-23-2015 1:12 PM
Thank you all,
That hash symbol is not moving even though done with different experiments suggested by
you all .
In my internal table added one dummy field and that field i didn't passed to
BAPI function module that's it.
now my object is working fine.
thanks for u r valuable answers.
07-23-2015 1:13 PM