RFUMSV00 (Tax report) wrong generation of DME file in Unicode system

Hello gurus,
I've a problem running the program RFUMSV00 (Advance Return for Tax on Sales/Purchases) transaction S_ALR_87012357 when "Create DME file" check box is selected and a format tree and a file name are specified.
On 4.7 it was working properly but now on ECC6.0, that is unicode compliant, does not work correctly because each char of each field on the downloaded table into Unix directory has preceeded by an hash (#).
So 1234 becomes #1#2#3#4...
The problem seems to be related to codepages and I found in debug that the RFUMSV00 program calls from the include I_RFUMS_DME_FORMS the following routine at line 119:  PERFORM write_file_to_system USING lt_dme_file.
This form contains a call to the following function:
    CALL FUNCTION 'FI_PAYM_FILE_OPEN'      
              EXPORTING
              i_temse_name = par_tems
              i_file_name  = l_file_name.
without specifying the codepage as further parameter so the function open the dataset for output in binary mode (and here the problem) because i_codepage is initial
Pls see below.
    IF i_codepage IS INITIAL.
      OPEN DATASET i_file_name FOR OUTPUT   "Open File to write
                               IN BINARY MODE.
    ELSEIF i_codepage = '4110' AND
           cl_abap_char_utilities=>charsize > 1. " UTF-8 and Unicode
      OPEN DATASET i_file_name IN TEXT MODE FOR OUTPUT
                                       ENCODING DEFAULT.
    ELSEIF i_codepage = '4102' OR i_codepage = '4103' OR i_codepage = '4110'.
      OPEN DATASET i_file_name FOR OUTPUT
                               IN BINARY MODE.
    ELSE.
      OPEN DATASET i_file_name FOR OUTPUT   "Open File to write
                               IN LEGACY BINARY MODE
                               CODE PAGE i_codepage
                               IGNORING CONVERSION ERRORS.
Putting '4110' on i_codepage all is working magically perfect.
Does anybody know where set the code page (4110) or how to solve this problem ?
Thanks a lot in advance & best regards
Tony

Hello Rob,
thanks for your reply.
Yes I did a check of the OSS notes and I found that OSS 1365764  (Pls see below) describes exactly the problem I have but it is relevant only for payments and DME files created with this purpose.
Also the DCP parameter (that has to be specified at user level) is only relevant for RFFO* programs.
Note 1365764 - Codepage of DME file
https://service.sap.com/sap/support/notes/1365764
Also the two following notes
Note 911190 - PMW: Entering the code page when writing and downloading
https://service.sap.com/sap/support/notes/911190
Note 899205 - RFUMSV00: DMEE format tree with additional parameters
https://service.sap.com/sap/support/notes/899205
So to be honest I do not really know how to look at to solve the issue.
Thanks again for your reply & best regards
Tony
Edited by: Antonio Lanza on Nov 9, 2010 9:33 AM

Similar Messages

  • Unable to Open unix file in UNICODE system which created NON-UNICODE system

    Unable to Open unix file in UNICODE system which created in NON-UNICODE system
    We have two SAP systems both are ECC6.0 but System 1 is NON-Unicode and System2 is Unicode system.
    There is a common unix directory/folder for both system.
    Our requirement is to create one file on unix common folder and write the data to file from system1 .
    In system2 open the same file for appending mode to write the data .
    The file in system 1 created with below sentence.
    OPEN DATASET g_unix_file FOR OUTPUT IN TEXT MODE ENCODING UTF-8.
    Now I have to append the data from system 2 to same file.
    I have tried to used below statement in system 2 to open the file but sy-subrc value comes as '8'.
    1> OPEN DATASET g_unix_file FOR APPENDING IN TEXT MODE ENCODING UTF-8.
    2>OPEN DATASET g_unix_file FOR APPENDING IN legacy TEXT MODE CODE PAGE
    cdp IGNORING CONVERSION ERRORS  .
    3>OPEN DATASET g_unix_file FOR APPENDING IN TEXT MODE ENCODING Default.
    4>OPEN DATASET g_unix_file FOR APPENDING IN TEXT MODE ENCODING NON-UNICODE.
    Tried out all the possibilities as per F1 help given for open dataset , but still there is problem with opn file in appending as well output mode.However the file successfully open in Input mode(Read).
    Please advice suggestion to resolve this issue.
    Thanks.

    Messgae captured as 'Permission Denied". The program gets triggered with system user Id PPID.
    How to check the security access of the User ID.

  • Generation of DME file in FI_CO

    Hi all,
    I have a requirement to generate dme file for singapore with three record sturture namely - header record, detail record, trailer record. can anyone please tell me what is the standard program which generates such kind of file format.
    Please help. Its urgent.
    Edited by: srinivas kodukula on Aug 7, 2008 5:12 PM

    Hello Rob,
    thanks for your reply.
    Yes I did a check of the OSS notes and I found that OSS 1365764  (Pls see below) describes exactly the problem I have but it is relevant only for payments and DME files created with this purpose.
    Also the DCP parameter (that has to be specified at user level) is only relevant for RFFO* programs.
    Note 1365764 - Codepage of DME file
    https://service.sap.com/sap/support/notes/1365764
    Also the two following notes
    Note 911190 - PMW: Entering the code page when writing and downloading
    https://service.sap.com/sap/support/notes/911190
    Note 899205 - RFUMSV00: DMEE format tree with additional parameters
    https://service.sap.com/sap/support/notes/899205
    So to be honest I do not really know how to look at to solve the issue.
    Thanks again for your reply & best regards
    Tony
    Edited by: Antonio Lanza on Nov 9, 2010 9:33 AM

  • DME file download unicode upgrade

    we are working on an upgrade.
    When we try to download DME files form F110. there is a space before each char in the output file,  
    eg:   K P 9 0 2 7 1.  expected result "KP90271"
    additional information
    a)user parameter is set DCP is set to NONE. b) REGUT-CODEPAGE = 4102, RUGUT-SAPRL = 620.
    Any suggestion??
    Edited by: sarath sirip on Jan 26, 2011 4:56 PM

    Hi,
    Same issue we faced in 46C NC to ECC UC upgrade.
    I guess the program used to generate the DME file is Z program, which might be copied from the SAP standard program in older release.  For the same SAP standard program there might be some of the changes related to unicode. Adjust your Z program reference to the SAP standard progam.
    Regards
    Rahul

  • DME file after unicode conversion

    Hi gurus!
    we have a problem with DME visualization after we passed to unicode system.
    if we want to create new DME with a ZF110 (copy of F110 ) the DME have incorrect character if we try to see it in transaction FDTA or in ZF110.
    i tryed with parameter 'DCP' but is the same.
    any suggest?
    best regards

    Hi,
    You need to compare the programs called by ZF110 and F110.
    I think Z110 is calling Z program which are copy of SAP standard program.
    In this case compare the Z program with the respective original program.
    You will find some difference here and you need to modify Z program with respect to original program.
    We had a same issue and solved by adjusting Z payment run program with SAP standard program.
    Regards
    Rahul

  • RFUMSV00 tax report - add column numbers

    Hello
    Is it possible to add for every column in RFUMSV00 (transaction S_ALR_87012357) a sequential number (which will correspond to numbers in legaslation vat report) ?
    Something like this:
    1               2         3       4
    Invoice nr.   Customer  Total  ID nr.
    11111        sdn forum  1000  DE111111

    Hi (again)
    After reading the SAP note number 1628714 ( https://websmp107.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=1628714&_NLANG=E ), I think that there isn't an SAP-standard solution.
    Best regards.
    Paco M

  • RFUMSV00 - tax report - add columns numbers

    Hello
    Is it possible to add for every column in RFUMSV00 (transaction S_ALR_87012357) a sequential number (which will correspond to numbers in legaslation vat report) ?
    Something like this:
    1               2         3       4
    Invoice nr.   Customer  Total  ID nr.
    11111        sdn forum  1000  DE111111

    No Body responded very strange !!!!!

  • "file -i" and "xdg-mime" reports wrong mimetype for zip files

    If I run "file something.zip" it returns "Zip archive data" as it should, but if I run "file -i something.zip" or "xdg-mime query filetype something.zip" they both return "application/octet-stream; charset=binary" instead of "application/zip; charset=binary".
    I already tried to
    remove /usr/share/mime/mime.cache and ~/.local/share/mime/mime.cache, then run update-mime-database on both folders
    delete the whole ~/.local/share/mime folder
    remove and reinstall mime-types and shared-mime-info
    without any success.
    I hope someone can help me on this because I've ran out of ideas.

    I too got annoyed at those unreliable mime-type inspectors and went searching for a better one that used the command line. I found "perl-file-mimeinfo" which comes with a wonderful script called "mimetype".

  • GUI_DOWNLOAD PDF File in Unicode System

    Hi Team.
    We are Upgrade to ECC 6.0 with Unicode.
    We are reading a PDF File from Unix directory and use the GUI_DOWNLOAD function to the user can download the file.
    Original we have a  WS_DOWLOAD function and all right.
    But with this function the file is incorrect.
    This is the right File
    %PDF-1.3%âãÏÓ1 0 obj<</Producer(htmldoc 1.8.18 Copyright 1997-2002 Easy Software Products, All Rights Reserved.)/CreationDate(D:20080814090000-0600)>>endobj 2 0 Obj<</Type/Encoding/Differences[ .......
    And in SAP the File Down with this format:
    % P D F - 1 . 3
    % â ã Ï Ó
    1   0   o b j < < / P r o d u c e r ( h t m l d o c   1 . 8 . 1 8   C o p y r i g h t   1 9 9 7 - 2 0 0 2   E a s y   S o f t w a r e   P r o d u c t s ,   A l l   R i g h t s   R e s e r v e d . ) / C r e a t i o n D a t e ( D : 2 0 0 8 0 8 1 4 0 9 0 0 0 0 - 0 6 0 0 ) > > e n d o b j
    2   0   o b j < < / T y p e / E n c o d i n g / D i f f e r e n c e s [   3 2 / s p a c e / e x c l a m / q u o t e d b l / n u m b e r s i g n / d o l l a r / p e r c e n t / a m p e r s a n d / q u o t e s i n g l e / p a r e n l e f t / p a r e n r i g h t / a s t e r i s k / p l u s / c o m m a / m i n u s / p e r i o d / s l a s h / z e r o / o n e / t w o / t h r e e / f o u r / f i v e / s i x / s e v e n / e i g h t / n i n e / c
    Any body have a Idea of this problem.
    Thanks
    We try change the table to Binary Mode, and the problem continue

    The problem continue. Our system is SAP ECC 6.0 with UNICODE.
    Ath the moment I'm test with character table and HEX table and the File download to the local PC with errors
    % P D F - 1 . 3
    % â ã Ï Ó
    1   0   o b j < < / P r o d u c e r ( h t m l d o c   1 . 8 . 1 8   C o p y r i g h t   1 9 9 7 - 2 0 0 2   E a s y   S o f t w a r e   P r o d u c t s ,   A l l   R i g h t s   R e s e r v e d . ) / C r e a t i o n D a t e ( D : 2 0 0 8 0 8 1 4 0 9 0 0 0 0 - 0 6 0 0 ) > > e n d o b j
    2   0   o b j < < / T y p e / E n c o d i n g / D i f f e r e n c e s [   3 2 / s p a c e / e x c l a m / q u o t e d b l / n u m b e r s i g n / d o l l a r / p e r c e n t / a m p e r s a n d / q u o t e s i n g l e / p a r e n l e f t / p a r e n r i g h t / a s t e r i s k / p l u s / c o m m a / m i n u s / p e r i o d / s l a s h / z e r o / o n e / t w o / t h r e e / f o u r / f i v e / s i x / s e v e n / e i g h t / n i n e / c o l o n / s e m i c o l o n / l e s s / e q u a l / g r
    The file download  in Binary mode. But continue add a blank character before each character.
    Thanks team

  • Problem in output file in unicode system

    Hi ,
    When we are downloading data from SAP to application server(Unix system)
    the output xml file contains # symbol in the begining of the file. we are using
    'Open data set dataset name for output in textmode encoding non unicode'.
    we have upgraded from SAP 4.7 to ECC6.0 recently . please advice the solution to get rid of this # sign from output file.
    thanks & Ragards,
    Sarath

    Use the following logic to remove #
    constants:c_cr_lf(1)  type c VALUE cl_abap_char_utilities=>cr_lf.
    then in open dataset after reading string from file use following statement:
    replace all occurrences OF c_cr_lf in gv_string WITH ''.
    Please reward if useful
    Edited by: arunchandra c p on Jul 24, 2008 11:47 AM

  • Reading TemSe files in unicode system showing greek letters

    Hi Gurus,
    I am facing issue with the newly converted unicode (cp 4102) spool files. I am using the standard functions RSTS_OPEN_RLC , RSTS_READ and RSTS_CLOSE to read TemSe files and create output files on application server using OPEN DATASET and TRANSFER.
    After conversion to unicode, these function calls are returning some greek characters with size of the itab doubled (and that is due to double-byte UTF-16 charcter set) .
    The program generates
    Runtime Error          CONVT_CODEPAGE
    Except.                CX_SY_CONVERSION_CODEPAGE
    " While a text was being converted from code page '4102' to '1100', on
    the following occurred:
    - an character was discovered that could not be represented in one o
    the two code pages;
    - the system established that this conversion is not supported."
    the statement
    TRANSFER TEMSE_DATA TO ACT_FILE
    generates this error.
    Can someone tell me what is missing ?
    TIA
    Wasim

    The extra characters are pasted below:
    ㄀  㤀㄀    ㈀㈀㄀㐀㄀ ㈀㜀㐀㐀㐀  㤀 ㈀ 㘀 㤀㈀ 圀 㤀㐀㄀ ㄀唀⸀匀⸀ 䈀䄀一䬀
    These kind of characters are also visible in SP11 contents for spool files.
    Again the question: which font to you use to display in your SAPGUI?
    The spool files are generated through language EN and should not show any non-english characters.
    That doesn´t tell anything. One advantage of Unicode is that you can enter, display and modify all languages/characters with an English logon.
    Another question: What technology is generating those spool files? Sapscript? Smartforms? Self written program?
    Markus

  • Tax Reporting Date for Cz Republic in report S_ALR_87012357/RFUMSV00

    Hi All,
    We activated Tax reporting date as per SAP Note 1023317. However we are not able to see in the report "S_ALR_87012357 / RFUMSV00" tax reporting date column which should show which document has which date assigned to it. I executed the report with tax reporting date.
    Please help me to find out how to get the column in this report.
    Regards,
    Abishek

    hi Giovanni Baumann  .,
             will u please tell me how u added NAME1 field to on the output list Layout on the report . please guide me on this.
    Regards.,
    S.Sivakumar

  • DME File generation

    Hi Guru's
    I am having a small problem in generation of DME file after F110 is done.
    Once the F110 has been run successfully and the Payment has been carried out, we can generate a DME file  from Environment-->Payment medium--->DME Administration, there is also T code (I don't remember the T code)
    I could see the reference no. etc in REGUT table also , but I couldn't see  or generate the  DME File
    I am getting the following error "There is no source for this data record" Error no :FZ205
    Can any one help me out in generating the file
    Regards
    VSK

    Dear
    thanks for the quick response, One small doubt
    I have recreated a Pmt medium thru the program"SAPFPAYM",... i have got a new window saying that posting orders generated , completed
    My doubt is that should we delete the previous entry because the 1st window is showing  me the generated lines...
    I have not deleted, and am still getting the same error message...
    Any pointers in this regard
    Regards
    VSK

  • Minus Sign in the Downloaded DME file using F110 Transaction

    Hi All,
    From the F110 Transaction I navigate to the DME Administration from the menu bar in order to download the DME file into my system. I could open the txt file that is downloaded. Now my requirement is to add a minus sign to the invoice amount of the txt file.
    I tried debugging the program to find out where the data is populated but was unable to. I can see the FM GUI_DOWNLOAD that downloads the file but the internal table contains hexadecimal data.I don't understand how this is converted to the text data.
    I'm unsure of what to do.... Any body has any suggestions.
    Regards,
    Shipin Paul

    Hi Anmol,
    Your answer helped me a lot. I am really thankful. But my issue is not solved.
    I went to the DMEE Transaction and gave the correct format and the tree type as input.
    Inside the format i went into the amount element as you have mentioned and included an exit module with the respective coding.
    Then i execute the transaction F110 with the Run date and Identification.
    I then navigate to the menubar Enviroment->Payment Medium->DME Administration so as to download it into my system as notepad.
    I select one of the entries and press the download button. But it does not stop at the exit which i included in the DMEE Transaction
    even though i have created a breakpoint there..
    Do you have any idea about this.
    Regards,
    Shipin Paul

  • Does SAP ECC6 support advance tax return (rfumsv00)/GST reporting for USA a

    Does SAP ECC6 support advance tax return (rfumsv00)/GST reporting for USA and Canada?

    Hello
    I think it does.
    However please check this
    In some countries, you cannot use the general program for tax returns to create the annual tax return because of specific national reporting requirements. For these countries, SAP delivers additional country-specific programs to meet these reporting requirements.
    For the individual country-specific reports, see the General Ledger menu under Reporting ® Tax Reports.
    The program RFUSVX10 performs the data medium exchange, allowing you to transfer the DME file to a hard drive or diskette. You can find more information on this topic in the program documentation.
    Regards

Maybe you are looking for