GUI_DOWNLOAD problems with CR+LF when transfering from unicode system

Hi,
I was successfuly used FM GUI_DOWNLOAD in a non-unicode systems for years. Lately I faced a challenge to rewrite my code for a unicode system. The configuration is:
- SAP R/3 unicode system;
- data to be downloaded at presentation server in a non-unicode codepage (cp 9504).
I have successfuly used a GUI_DOWNLOAD-parameter CODEPAGE and the data is translated correctly when checking local file, but due to some reasons CRLF are replaced with '#' (which is default value of REPLACEMENT parameter of this function) - means at the end of each row as a result I have '##' instead of CRLF.
My question is: how can I force correct behaviour of GUI_DOWNLOAD in order to get my output file at presentation server with CR+LF?
Any help would be highly appreciated.
Many thanks in advance.
Regards,
Ivaylo Mutafchiev
SAP/ABAP consultant
VBS Ltd.
P.S. In order to find some other way to fix my problem I'm still playing with the instanciation of a CL_ABAP_CONV_OBJ and its methods create & convert, but without success for now - resulted strings are not as expected.

Hi,
in fact, I never placed CRLF in my lines before your suggestion. The rest was done by the FM 'GUI_DOWNLOAD'. It works fine even when I use unicode file as output - means I got my CRLF at the end of the record in MY OUTPUT FILE ONLY but not in my internal table - I never placed CR+LF in there.
The problem occures when I tried to use GUI_DOWNLOAD with parameter CODEPAGE = '9504' (some non-unicode codepage), and the original data (my internal table) is in unicode. Then (in my opinion) this function doesn't translate the unicoded CR+LF into non-unicode ones (if thats possible at all, I can't be sure) and the result is '##' in the output file.
I checked the value of CL_ABAP_CHAR_UTILITIES=>CR_LF by getting it in my variable - and it is '##'.
Whet should I put into this class-attribute in order to get it working in this scenario? I have no idea...
The attribute type is ABAP_CR_LF - which is char 2.
What next?
Thanks,
Ivaylo

Similar Messages

  • Problem with BAPI BAPI_MATERIAL_SAVEDATA when calling from other system

    Hi All,
    I able create new material using the BAPI BAPI_MATERIAL_SAVEDATA in development system.
    but when i am calling this BAPI from other systems by passing the same values that i used in the development system . system is giving me an error ( in the return statement) saying that material number doesn't exists .
    Can any one have some pointers towards this ?
    Thanks & Regards,
    Praveen

    Hi,
    this FM BAPI_MATERIAL_SAVEDATA
    is used to extend a material to another plant
    for that you need to read the original data via BAPI_MATERIAL_GET_DETAIL and then select additional data from MKVE and save it via BAPI_MATERIAL_SAVEDATA with table parameter SALESDATA
    also check with
    BAPI_STANDARDMATERIAL_CREATE Create/Extend Material
    BAPI_MATERIAL_SAVEDATA - QM - Inspection Setup
    Problem in BAPI_MATERIAL_SAVEDATA
    Thanks&Regards,
    Naresh

  • Problems with sending IDOC via RFC from Unicode to NonUnic

    Hello
    I have following problem, sending an IDOC via RFC from Unicode to Non Unicode System. IDoc is not sent with error: codepage of receiver system cant determined. receiver destination was: Message no. B1999
    I have tried different options in sm59, but it didnt help.
    Any ideas? The recipient system is rather old, version 4.0

    hey,
    I had a similar experience. I was interfacing between 4.6 (RFC), PI and ECC 6.0 (ABAP Proxy). When data was passed from ECC to 4.6, RFC received them incorrectly. So i had to send trimmed strings from ECC and receive them as strings in RFC (esp for CURR and QUAN fields). Also the receiver communication channel in PI (between PI and  RFC) had to be set as Non unicode. This helped a bit. But still I am getting 2 issues, truncation of values and some additional digits !! But the above changes resolved unwanted characters problem like "<" and "#". You can find a related post in my id. Hope this info helps..

  • Problems with german umlauts when Migration from MS Access to Oracle

    When I make a Migration from MS Access 97 to Oracle 8.1.5, I have Problem with the germans characters (umlauts). The Oracle is using the rigth character Set for german characters. What can I do? Is it e problem from the MS Access ODBC Driver or the Oracle ODBC Driver?

    Is your character set for Oracle set up to UTF8??

  • Do you see problems with text size when importing from Photoshop?

    Hi all -
    We're working on improving some things in the Photoshop-to-Reflow workflow, and right
    now specifically investigating trouble with imported text.
    Aside from the desire to have support for local fonts, are there any problems you run into
    when importing text from Photoshop into Reflow? We've heard some issues with text size and position,
    but want to make sure we understand all of the cases.
    If you have problems in this area, please share them in this thread, and I'd also love to get some
    sample PSDs that demonstrate the problems. (You can send them directly to me; vmitnick at adobe dot com .)
    thanks,
    Vic

    I'm using CS4.. and I'm using the standard "Save As" .pdf features....
    and I'm reading it with adobe acrobat pro 9.1...
    i think it has something to do with compression. but i can't figure out how to solve it. converting the text to symbols maybe?

  • Problem with redirect script when calling from external - UCCX

    Hi,
    I have a problem with external calls not being redirected when the call comes from an external that begins with a certain prefix on teh ANI.
    The call path goes PSTN - VGW - UCM SUB - UCCX.
    To give you info this should be redirected to a auto attendant on unity but it just hits the fourth option unsuccessful.
    If i change it to match an internal ANI and test it works.
    What trace and log do i look at to see the call coming in from the UCM and what is happening with it why this is failing when it trys to redirect a call coming from external?
    I have also attached my script.
    Thanks for the help.
    Kev

    Hi Martin Braun,
    Go to GUI status which you set in the PBO of your screen,
    and open "Function Keys" part.
    You should have set function key F4 for a button on your GUI status,
    delete this button and create with another function key again.
    I hope it helps.

  • Problem with data format when getting from a database

    I'm trying to get a date from the database but the problem is that it also return the time. I have tried to change the format of the date when retrived from my database but it still returns the time.
    Any solutions?
    String theDBDate = rset.getString("date_of_call");
    SimpleDateFormat formatterdate = new SimpleDateFormat ("EEE, MMM d, ''yy");
    String date = formatterdate.format(theDBDate);
    theCalls.setDateofCall(date);// callin my Call Class to store the date which is a string

    Hi could any help me? I have this problem for the last few day. I gave up on it for a while but today I'm trying to get to the botton of this problem.
    I connecting to an oracle database but it return back the date & time but I want only the date.
    Here my code.
    Locale currentLocale= new Locale("en","GB");
    Date today = new Date();
    DateFormat formatter = DateFormat.getDateInstance(DateFormat.DATE_FIELD,currentLocale);
    String theSQL = (" Select * From Call ") ;
    Statement stmt;
    stmt = conn.createStatement();
    ArrayList CallsList = new ArrayList();
    ResultSet rset;
    rset = stmt.executeQuery(theSQL);
    while(rset.next() == true)
    Call theCalls = new Call();
    theCalls.setCallNo(rset.getInt("call_no"));
    theCalls.setUsername(rset.getString("username"));
    theCalls.setCompID(rset.getString("comp_id"));
    theCalls.setTimeofCall(rset.getString("time_of_call"));
    Date todaydate = rset.getDate("date_of_call");
    Timestamp theDBDate = rset.getTimestamp("date_of_call");
    SimpleDateFormat formatterdate = new SimpleDateFormat ("EEE, MMM d, ''yy");
    String date = formatterdate.format(theDBDate);
    theCalls.setDateofCall(date);
    theCalls.setPriorty(rset.getString("priorty"));
    theCalls.setProbCat(rset.getString("problem_cat"));
    theCalls.setProbDesc(rset.getString("problem_desc"));
    theCalls.setCloseDate(rset.getString("close_date"));
    theCalls.setProbSol(rset.getString("problem_sol"));
    theCalls.setStatus(rset.getString("status"));
    theCalls.setAssign(rset.getString("assign"));
    CallsList.add(theCalls);
    conn.close();
    return CallsList;

  • Problems with Capture Date when converting from PSE9

    I'm trying to troubleshoot a problem I'm having when converting my PSE9 catalog to LR3.4. Specifically, about 20% of my images (abouit 2,500 out of 12,000) didn't import with capture dates. I can clearly see the correct capture dates in PSE9 Organizer, but when I view the same imported images in LR3.4, there is no date. This occurs with dates that I've modified in PSE9 as well as dates straight out of the camera.
    This is a major problem for me because I'm used to organizing my photos in PSE9 using capture dates. On a related note, PSE9 allows you to set the capture date to a known year and unknown month, day, and time, but when imported into LR3, these dates are converted to Jan 01 of the known year. Sorry, but Jan 01 is not the same as unknown. Is there a way to correctly display unknown portions of a capture date in LR3 similar to the way it's displayed in PSE9?
    Sorry if this has been discussed before.

    How did you convert your catalog?  Did you use File > Upgrade Photoshop Elements Catalog, or did you use File > Import Photos?  You should use the former; the latter has many problems, among which PSE doesn't always correctly write medata (e.g. capture dates) into files. If you used File > Upgrade Photoshop Elements Catalog, post an image here and we can take a look at its metadata to troubleshoot.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    On a related note, PSE9 allows you to set the capture date to a known year and unknown month, day, and time, but when imported into LR3, these dates are converted to Jan 01 of the known year.
    Even though Adobe's XMP metadata standard allows for unknown month, day, or time, most programs including LR don't support it -- PSE is the only program I know of that does (and it has problems).  I use the conveniton of 1/1 12:00:00 to represent unknown values.
    See this FAQ for other issues with converting PSE catalogs to LR:
    http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#_Converting_to_Lightroom

  • Problems with custom authentication when migrating from 3.2 to 4.1.1

    Hi,
    we’re about to upgrade our APEX instances to 4.1.1 and to migrate our applications. I encountered some problems with our custom authentication schema.
    1.     Recognize already authenticated sessions: in 3.2 the sentry function could return false as long as the user was not authenticated. Public pages could still be displayed (including the login page). The result of the function apex_custom_auth.is_session_valid returned false until once the sentry function returned true. How can I recognize non authenticated sessions in 4.1.1? I looked for the test the Condition “User is the public user (user has not authenticated)” computes on a page but didn’t found the right one. It’s not what docu states here (comparison with the public user): http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/condition001.htm#HTMDB25943. I replaced the test with p_authentication.username = ‘nobody’. It works. But that doesn’t seem to me to be the right way …
    2.     Post_logout lacks session context: the Post Logout Procedure does not receive a session_id and username. Neither the V(‘APP_SESSION’) nor p_authentication.session_id are set. This applies to both plugin authentication schemes and non-plugin custom authentication schemes. Is there another way to obtain the logged-out sessions infos or is this a bug?
    See apex.oracle.com for a demo, workspace WS_MW, gast/gast. Can someone please guide me the way?
    Michael

    Hello again,
    there are no replies until now .... I reviewed some posts regarding custom authentication again and did not find any solution for the issues. Found some that worked with APEX 3.2.1 but not with 4.1.1. I can only work around
    1.) in an insecure way, because the non documented (?) user "nobody" can change and all new sessions will be considered authenticated
    2.) in a way, that ends up in implementing the logout from the non apex environment outside the authentication schema or authentication plugin.
    May be I should contact support for at least the second issue because this doesn't work as documented or am I doing something wrong?
    Michael

  • Problem with external HD when waking from sleep

    I have just bought a formac oxygen mini 80G external HD, i am using firewire to connect to my iBook. Problem is that pretty much everytime I wake from sleep the warning dialog appears saying that I didn't eject the drive properly and some data may be lost. Any ideas?
    Thanks in advance
    iBook G4   Mac OS X (10.4.6)  

    Hi, r.r.
    The behavior you describe implies that your FireWire drive is not recognizing Mac OS X power management commands: when the Mac enters sleep, the drive may actually be powering-off.
    If a FireWire drive is powered off or disconnected without first being Ejected, you would also see that message. In some cases, that can result in the partition map of the FireWire drive becoming corrupted, requiring that one use data recovery tools or services — such as discussed in my "Data Recovery" FAQ — to recover the data on the drive.
    1. Check with Formac to see if there is a firmware upgrade for your FireWire drive.
    2. In combinations, try a different FireWire cable and a different FireWire port on your Mac.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Problem with Navigation Attributes when upgrading from BI 3.1 to BI 7.0

    Hello,
    I have the following problem that occured regarding queries during the upgrade from BI 3.1 to BI 7.0:
    As far as the queries are concerned it is not possible in the 7.0 system to completely rebuild them according to the queries in 3.1. More specifically this refers to a certain number of navigation attributes that cannot be integrated into the query. In this case the following error message appears: "Error in BW: Missing mapping partprov cha <-> multiprov cha". Moreover, this error message only appears when you try to include navigation attributes into the query that are all attributes of the same specific InfoObject.
    I have already checked in the 7.0 system if the relevant objects have the status 'active' and if the identification between the Multiprovider and the InfoObjects used is correct. So, is there anybody who may has another idea why this error message appears respectively who experienced the same/similar problem?
    Thanks in advance & Regards

    Hello Martin,
    yes, I've also checked the identification in the MultiProvider for the navigational attributes. There is nothing missing.
    I've also reactivated the objects.
    Do you may have another idea?
    Thanks and regards, Ines

  • Problems with DBConnect datasources when triggered from pchain (DB2 databas

    Hello,
    We are using BI 7 and DB Connect functionality to remotely connect to our DB2/DB6 database to extract some data.
    We created source system and data sources based on dbconnect and included infopackages, etc. into our process chains to load.
    When we schedule process chain to run at certain times, InfoPackages fail at random or continue to run indefinitely. There is no clear error message, other than: Database system cannot be reached or The request is still running in the source system.
    We made sure database was up during the times we are trying to schedule process chain. So, this is not the issue. The interesting thing is that whenever we try to run InfoPackages manually (not through pchain), we do not get any errors ever.
    It appears that this issue occurs only when the load is triggered from the process chain (BWREMOTE user). And it happens at random. One day it could work fine, another day the same infopckage would fail.
    Any ideas of what might be happening?
    Thanks
    Edited by: AG on Mar 16, 2010 1:30 PM

    Hello,
    I am not sure with this just trying to help you..
    When you run the infopackage manually it uses the User name and password hard coded in the Source System Connection Settings, and when you run it from process chain does it still use the same username and password as this happens in backgroud please check that.
    Also clear any other yellow loads/pending jobs in SM37 of this job(triggered from process chain) type in the past.
    waiting for your feedback.
    Regards
    Nitin Bhatia

  • Why is there a problem with Setup.exe when upgrading from 2.0 to 3.6.3?

    I am trying to upgrade Firefox on a laptop that currently has 2.0. I downloaded 3.6.3 and opened setup. I get an error message indicating that setup cannot run setup.exe. It advises I restart my computer. When I do, it does no good. Please advise.
    == This happened ==
    Just once or twice
    == I tried to upgrade from 2.0 to 3.6.3.

    Firefox 2.0.0.20 is the last ever version of Firefox for Win98 / SE / ME.
    You can try KernelEx to get Firefox 3+ to work, but it would be very slow with an old PC of less than 750Mhz.
    http://sourceforge.net/projects/kernelex/

  • Problem With Struts Tiles When Migrating from WL 8.1 to WL 10.3

    Hi Folks,
    When migration my project from WL 8.1 to WL 10.3, I got the follow error :
    javax.servlet.jsp.JspException: Can't insert page '/tile/tilePesquisa.jsp' : null
         at org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:902)
         at org.apache.struts.tiles.taglib.InsertTag.doEndTag(InsertTag.java:465)
         at jsp_servlet._web_45_inf._jsp._ferramenta._ferramenta.__listaferramenta._jspService(__listaferramenta.java:361)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:505)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251)
         at org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
         at org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
         at org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
         at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
         at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
         at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
         at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
         at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    Can anybody help me ?
    So do I need change some XML configuration file such as web.xml or weblogic xml ?
    Thanks!!

    Hi,
    I have realized the follow:
    The error occurs on:
         <tiles:put name="pageTitle" direct="true">
              <tiles:get name="pageTitle" />
         </tiles:put>
    if I change to:
         <tiles:put name="pageTitle" direct="true">
              <tiles:getAsString name="pageTitle" />
         </tiles:put>
    it works!?
    But the application is entire using the first code example ! I need other solution to this!
    Thanks!

  • Trouble with timing/quality when transferring from iMovie to iDVD

    When I transfer an iMovie to iDVD, either the timing to the music is off or the timing works but a few slides have moments of a blank white screen before they appear. The movie plays fine on iMovie. I've tried re-importing the photos/slides, but that hasn't helped. I also tried changing the order of the slides, and the glitch appeared at the same time (not with the same photos). It may be a space issue, but I'm not sure how to get back so much space on my hard disk. I'm wondering if I should try burning to a dvd to see if the white space or timing issues remain. Any suggestions? Thanks!

    Hi
    How much free space is there on Your Start-Up (Mac OS - Main) hard disk ?
    I never go under 25Gb free space.
    To free up space - You either
    • Delete things/documents You KNOW is of no more importance to You (or for Your Mac) - by moving to trash basket down right end of Dock - Then go up to Menu row Apple --> Finder and down this to "Empty Trash"
    or
    • Copy over to another external hard disk. BUT this
    Should be a FireWire one - if You want to store video on it (USB/USB2 performs badly to me)
    MUST BE - Mac OS Extended formatted - Especially for Video material else files get's broken
    Yours Bengt W

Maybe you are looking for

  • How to extract data in a webpage to a excelsheet or back end DB

    Hi folks I'm kiran and i'm working as technical recruiter. previously i worked as a shadow associate with National Informatics center (A govt of india IT department) where i first tried my hands on JAVA and was amazed with the things which i could do

  • Error running a Copy Package from BPF (BPC7.5)

    Hi all, I'm on BPC75 NW SP09, and Iu2019m trying to run the standard u201CCopyu201D package through BPF but it gives me following error message: IMMEDIATE RUN: Error occurred while trying to run the package on the server Data not found in table (UJD_

  • EPS and Tiff Files are not open...

    Dear All, If we open the EPS or Tiff file in Illustrator CS3, we got the error message as in the screenshot which named as "Illustrator screenshot.jpg". If we open the EPS or Tiff file in Photoshop CS3, we got the error message as in the screenshot w

  • Process chain Schedule

    Hi experts, I created a process chain and activated. But when i clicked on schedule the following message is coming: =========================================== Job BI_PROCESS_DROPINDEX could not be scheduled. Termination with returncode 8 Message no

  • Form guide shows online with wrong preview PDF

    I'm using LC Designer 8.1. and tried to complete a form guide. I can't figure out why the (working) swf-online version of the formguide keeps referring to a temp. guide preview sample instead of the PDFform the guide is based on. Can I configure that