TAx Reporter Temse Files Download Automation

Hi,
I have a reuiqrement to download the Temse files generated in Tax Reporter. I have completed the code and it works fine if we run the program in foreground. But when I run the same program in background some Temse files downloaded have junk characters. If I download the same Temse file in foreground it works fine.
There seems to be some issue with the FM when I run my progam in background.
I have searched SDN and SAP Notes for any clues but did not get any.
REPORT  ZPHOP_TEMSE  NO STANDARD PAGE HEADING
                  LINE-SIZE 1023
                  LINE-COUNT 65
                  MESSAGE-ID zz.
DATA: BEGIN OF tape OCCURS 1,
         DATA(2000),
      END OF tape.
DATA: force_ascii type c VALUE 'T'.
DATA:  BEGIN OF int_msgs2 OCCURS 10,
         errnum(2) TYPE c,
         text1(8) TYPE c,
         text2(60) TYPE c,
       END OF int_msgs2.
DATA: BEGIN OF g_int_temse OCCURS 0,
         dname    LIKE TST01-dname,
         dpart    LIKE TST01-dpart,
         dcretime LIKE TST01-DCRETIME,
         dcreater LIKE TST01-DCREATER,
      END OF g_int_temse.
DATA: record_length  TYPE i VALUE 275,
       data_length    TYPE i,
       convert_to_ebcdic,
       filesize TYPE i,
       number_of_records TYPE i VALUE 1,
       filetype(3) VALUE 'BIN',
       conv TYPE REF TO cl_abap_conv_out_ce,
       dline TYPE REF TO data,
       dtab TYPE REF TO data,
       p_compid(4),
       p_pswd(8),
       g_str(2000),
       uc_filename TYPE string.
DATA: l_nm_fixed_record.
CONSTANTS: c_lpath TYPE pathintern VALUE 'ZOUT'.
TABLES: TST01, ZPHOPFLS, ZTEMSE_LOG, V_5UXY_A.
FIELD-SYMBOLS: <dtab> TYPE STANDARD TABLE,
               <dline> TYPE ANY.
INCLUDE: dbpnpcom.           " No logical database        Do not modify!
INCLUDE: zphoptop,           " Top Include                Do not modify!
         zphopfil.           " File inlcude               Do not modify!
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE text-T01.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(30) text-001.
SELECT-OPTIONS  s_temse FOR TST01-dname NO INTERVALS.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE text-T02.
SELECT-OPTIONS  s_cai   FOR TST01-DCREATER NO INTERVALS.
SELECT-OPTIONS  s_date  FOR sy-datum.
SELECTION-SCREEN END OF BLOCK B2.
SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE text-T03.
PARAMETERS: p_ifid   LIKE t9aoa-if_id MODIF ID DIS ,
            p_fileid LIKE t9aoa-file_id MODIF ID DIS,
            p_unixf(60)  LOWER CASE MODIF ID DIS,
            p_uxdir  TYPE pathextern LOWER CASE MODIF ID DIS,
            p_dstfil(45) LOWER CASE MODIF ID DIS.
SELECTION-SCREEN END OF BLOCK B3.
PARAMETERS: p_skip AS CHECKBOX.
DATA: ws_unixr LIKE p_unixf,
      ws_trans LIKE p_unixf.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-group1 = 'DIS'.
      screen-output = '1'.
      screen-input  = '0'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
INITIALIZATION.
  p_ifid = 'PAYFLS'.
  p_compid = 'HR00'.
  p_fileid = '01'.
  p_unixf = 'AFS'.
  p_pswd = 'chevr123'.
  p_skip = 'X'.
-End of Initialization--
  PERFORM get_physical_path.
  FORMAT COLOR COL_HEADING.
  WRITE: /01 text-t04,
          10 sy-pagno,
          41 text-t05,
         110 text-t06,
         123 sy-datum.
  WRITE: /01 text-t08,
          14 sy-repid,
         110 text-t07,
         125 sy-uzeit.
  FORMAT COLOR OFF.
  SKIP.
  WRITE: /(20) text-T21       CENTERED COLOR COL_HEADING,
          (15) text-T22       CENTERED COLOR COL_HEADING,
          (20) text-T23       CENTERED COLOR COL_HEADING,
          (15) text-T24       CENTERED COLOR COL_HEADING,
          (40) text-T25       CENTERED COLOR COL_HEADING.
START-OF-SELECTION.
*Do not allow background processing
*Check if the Temse file and CAI both are entered
IF NOT S_TEMSE IS INITIAL AND NOT S_CAI IS INITIAL.
   MESSAGE W999 WITH TEXT-E01.
ELSEIF S_TEMSE IS INITIAL AND S_CAI IS INITIAL.
   MESSAGE W999 WITH TEXT-E02.
ENDIF.
Collect all temse filenames from TST01 into an internal table.
IF NOT s_temse IS INITIAL.
   SELECT dname dpart dcretime dcreater FROM TST01 INTO TABLE g_int_temse
          WHERE dname in s_temse
          AND   dpart EQ '1'.
ELSE.
   SELECT * FROM TST01
          WHERE DCREATER in s_cai
          AND   DPART EQ '1'.
     IF TST01-DCRETIME(8) GE s_date-low
         AND TST01-DCRETIME(8) LE s_date-high.
        MOVE-CORRESPONDING TST01 TO g_int_temse.
        APPEND g_int_temse.
     ENDIF.
   ENDSELECT.
ENDIF.
SORT g_int_temse BY DNAME DPART DCRETIME.
LOOP AT g_int_temse.
Check if the temse file is already processed in ZTEMSE_LOG table.
  SELECT SINGLE * FROM ZTEMSE_LOG
         WHERE DNAME = g_int_temse-dname.
  IF sy-subrc EQ 0.
error. Temse already processed
     CONTINUE.
  ENDIF.
Check if the temse file bieng processed is the eligible temse file
  SELECT SINGLE * FROM V_5UXY_A
         WHERE TSOBJ = g_int_temse-dname.
  IF sy-subrc EQ 0.
     SELECT SINGLE * FROM ZPHOPFLS
         WHERE TAXAU = V_5UXY_A-TAXAU
         AND   TXFRM = V_5UXY_A-TXFRM.
     IF sy-subrc EQ 0.
Generate the filename for the target destination
        CONCATENATE ZPHOPFLS-FILENAME '.' sy-datum '.' sy-uzeit INTO p_dstfil.
     ELSE.
error. Script not maintained in ZPHOPFLS table
        CONTINUE.
     ENDIF.
  ELSE.
error. Temse file is not the latest processed file.
     CONTINUE.
  ENDIF.
  CALL FUNCTION 'RP_TS_OPEN'
    EXPORTING
      tsobj = g_int_temse-dname
     versn = g_int_temse-dpart
      empfg = 'RPUTSVUM'.
  COMMIT WORK.
  REFRESH tape.
  CLEAR   tape.
Einlesen von der TemSe
  CALL FUNCTION 'RSTS_READ'
    EXPORTING
       PARTS1BY1 = 'X'
    TABLES
      datatab = tape.
  CALL FUNCTION 'RSTS_CLOSE'.
Read the 1st line which is supposed to contains info important for
the downloading procedure. The syntax of the line is :
  SAPxxxnnnyyyy  - the 1st 3 char 'SAP' indicates this line contains
download related info. xxx can either be 'ASC' (for ASCII) or 'EBC'
(for EBCDIC). nnn is the length of each record, e.g. 128 for SSA disk
format, 275 for SSA tape format etc. yyyy can either be 'CRLF' (each
record is delimited by CRLF) or blank (no CRLF).
After processing the 1st line, the line is deleted from the internal
table. Downloading begins on the 2nd line.
  READ TABLE tape INDEX 1.
  IF tape-data(3) EQ 'SAP'.
    IF tape-data+3(3) EQ 'EBC'.
      convert_to_ebcdic = 'x'.
    ELSEIF tape-data+3(3) EQ 'ASC'
          AND force_ascii EQ 'T'.
      filetype = 'ASC'.
    ENDIF.
    IF tape-data+6(3) NA '*'.
      record_length = tape-data+6(3).
    ELSE.
      record_length = tape-data+13(4).
    ENDIF.
    IF tape-data+9(4) EQ 'CRLF'.
      data_length = record_length + 2.
    ELSE.
      data_length = record_length.
    ENDIF.
    DELETE tape INDEX 1.
  ELSE.
    data_length = record_length.
  ENDIF.
Transfer the Temse file data to Unix file.
      PERFORM transfer_file.
Update the Log table with the temse details.
      ZTEMSE_LOG-dname = g_int_temse-dname.
      ZTEMSE_LOG-txcmp = V_5UXY_A-taxau.
      ZTEMSE_LOG-txfrm = V_5UXY_A-txfrm.
      ZTEMSE_LOG-filename = ws_unixr.
      ZTEMSE_LOG-DCREATER = g_int_temse-dcreater.
      INSERT ZTEMSE_LOG.
    WRITE: /(20) ZTEMSE_LOG-dname,
            (15) ZTEMSE_LOG-txcmp,
            (20) ZTEMSE_LOG-txfrm,
            (15) ZTEMSE_LOG-dcreater,
            (40) ZTEMSE_LOG-filename.
ENDLOOP.
*&      Form  get_physical_path
      Get Physical directory name for the given logical path name
FORM get_physical_path .
  CALL FUNCTION 'ZFILE_GET_PATH_NAME'
    EXPORTING
      LOGICAL_PATH               = c_lpath
    IMPORTING
      FILE_NAME_PATH             = p_uxdir
    EXCEPTIONS
      PATH_NOT_FOUND             = 1
      MISSING_PARAMETER          = 2
      OPERATING_SYSTEM_NOT_FOUND = 3
      FILE_SYSTEM_NOT_FOUND      = 4
      OTHERS                     = 5.
  IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDFORM.                    " get_physical_path
*&      Form  TRANSFER_FILE
FORM transfer_file.
  p_unixf = 'AFS'.
Concatenate Date with Unix File name
  CONCATENATE p_unixf '.' p_compid '.' p_ifid  '.' sy-datum '.' sy-uzeit INTO ws_unixr.
Concatenate Unix Directory with Unix File for Outbound
  CONCATENATE p_uxdir ws_unixr INTO p_unixf.
  PERFORM open_files USING p_unixf.
LOOP AT tape.
     g_str = tape-data(record_length).
    TRANSFER g_str TO p_unixf LENGTH record_length.
    IF sy-subrc <> 0.
      MESSAGE ID '00' TYPE 'E' NUMBER '398' WITH 'sy-subrc:' sy-subrc
       ' Error Transferring to: ' p_unixf.
    ENDIF.
ENDLOOP.
  PERFORM close_files USING p_unixf.
ENDFORM.                    " TRANSFER_FILE
Can anyone please check and tell me what I need to overcome this problem.

Hi Bhaskar,
I also have the same requirement to upload TemSe files in to application server.
In FDTA tcode after we enter company code and click on enter.
In the second screen checking and line item and go to edit and click on download button.
Here we see a popup with default file name, and when we say ok the file will get downloaded into C:\.....
Here our req is to upload the file automatically pick up via batch job and place it in the in to the application server and from there it should be placed in the Netwrok server (UNIX).
Pls provide me with suitable code so that i can finish it off.I tried a lot but did not work.
Thanks.

Similar Messages

  • Fi Tax report truncating while downloading to the Excel file.........

    Hi all,
           this is the tax report which when will be execute by the uses .
    when user A execute the report its giving 27000 records as out put and when he extracts to Excel shell in that excel sheet its giving 27000 records.
    whne that same report executed by the user B its giving 27000 records in output.when he try to download to excel sheet.its giving 19000 records and truncating remaining records.
    both the users having the same authorization! for the tax
    i was working fine till last Jan 2008. now its giving the truncation.
    Can any thing related to memory issue that can be resolved in Production.
    Thanks,
    Nelson

    its the problem with the MS-Exce. requested the User to Update the MS Excel software.
    lower versions of Excel will not support the Financial data.
    my proble had resolved by Updating the S/w MS-Excel in the User Mechine.
    Edited by: Nelson karunakar on Aug 27, 2008 2:36 PM
    Edited by: Nelson karunakar on Aug 27, 2008 2:37 PM

  • IRR Report PDF File download issue

    I am getting " Adobe can not open file because its either not supported or demage file." I am able to open for the different program and also with the same program I can open the CSV file.
    Please let me know if any suggestions.
    Thanks
    KP

    Please read the posts on the following forum.
    https://supportforums.cisco.com/thread/2012620
    Posted by WebUser Steven Kinney

  • MMREF Magnetic Media Files Download/Saved from Tax Reporter

    Often times when we go to download the MMREF Federal File and various state files that are generated in PU19, they are not in the correct format.  Please explain how these should be downloaded.  Is the process to take the temse file and just download via the download link in the screen?  If so, should they be saved in txt files to view?  Often times it looks like the data is wrapped.  Please help!  We seem to specifically be having a problem with AL at this time.

    Hi
    First you need to download the MMREF format in google. so that you will get an idea how it looks like and compare the same with the format you generated from tax reporter. you can download the same by hitting the disk icon and save it in your hard drive in .txt format. Pls open the downloaded txt file. you can able to read those....
    Thanks
    Muru

  • File download dialog box -running report

    I am calling one report from my Oracle 9i Developer Suite Application. When i call one report using 'delimited' format, the run runs okay opening in a new Internet Explorer(IE) instance. But, when i call another report, the File download dialog box -running report opens which asks whether u want to open the file or save it in your computer. I hope, my doubt is clear.Please help me in this as it is very urgent.
    Regards.

    This is a duplicate post. Please followup on your previous posting.
    What is the URL you specify?

  • Tax Reporter (PU19):W-2 download format has additional lines and character

    Hey experts,
    when running tax reporter (PU19) and creating the magnetic file for our W2s, our file has additional lines and characters in the file when downloading it on our desktop.
    The following occurs: At the top of the file:
    01/20/2012                                  Dynamic List Display                                                                                1
    |TEMSE OUTPUT                                                                                |
    Each line has an additional | at the beginning and end.
    At the bottom we have an additional doted line:
    How can we get rid of these lines and additional characters?
    Thanks

    Hi Arthi,
    Thanks for the reply ,  for TAX form Group W2M1, W2M2, W2M3  , while configuring Evaluation of tax form
    the following items required to select
    Evaluation of tax forms (Employee info required)
    Time ranges , in which data will be stored
    Reporting of retro calculation
    Please let me know how to configure these evaluation forms ?? and Does  any wagetypes needed to be assigned to these tax form groups ??
    Note:
    The customers has to use manual entries options in PU19 and use the below TFG to populate the respective fields accordingly.
    W2M1 MW508-Employer Total Tax Exempt Credits
    W2M2 MW508-Overpayment to be credited
    W2M3 MW508-Overpayment to be refunded

  • Download Temse file-HR_F_MMREF_1_GA.

    Hello All,
    The Magnetic Media file that is generated during W2 processing for State of Georgia is named HR_F_MMREF_1_GA.  Starting this year, Georgia is requiring us to upload the file to their website.  We have attempted to do this but are receiving errors.   When we download from PU19, the downloaded file is 1024 characters in length with 2 records of 512 on each line of the file( using Notepad to review).   This is not acceptable at the State DOR website.   The file will not upload.
    I attempted to use PU12 to export the temse file.  This time there is one record per row of data (Notepad).  GA DOR has reviewed our file and determined that the record length on our file is 550 characters long and should be 512. 
    I have checked the layout of the Magnetic file in SPRO and each record type contained in the file is defined as 512 characters in length.   The header record states that it is 512.
    Is there a better way to download TemSe files and capture all of the data with the correct record length? 
    Thanks,
    Connie Durham

    I'm using the U.S. Tax Reporting Guide for SAP Payroll Customers Year End 2010 and I'm a little confused regarding the T5UX4 and T5UX5 table referred to on page 47 or topic Generic Solution for reporting multiple tax authorities on the same magnetic media.  I cloned HR_F_MMREF_1 to ZHR_F_MMREF_1_VT so I can report to the State of Vermont.  However I do not need to report to multiple localities.  Do I need to have entries in table T5UX4 and T5UX5?
    Regards,
    Helen

  • APEX 4.0: error while opening a XLS file downloaded from interactive report

    Hi,
    I'm getting below error while opening a XLS file downloaded from an interactive report (APEX 4.0).
    "The file you trying to open, 'customer_2.xls', is in a different format than specified by the file extension.
    Verify that the is not corrupted and is from a trusted source before opening file. Do you want to open file."
    Yes No Help
    May be this one Apex 4.0 issue.
    please help me.
    Thanks
    Mukesh

    Hi,
    is the next part of the code correct.
    What i mean is packing of the attachment, finding out the size of pdf file and doc type as PDF.
    You can also try below link..
    Link: [http://wiki.sdn.sap.com/wiki/display/Snippets/SENDALVGRIDASPDFATTACHMENTTOSAPINBOXUSINGCLASSES]
    Hope this helps.
    Regards,
    -Sandeep

  • Report Print & Export Issue (File Download Box appears)

    We send a URL to Crystal Enterprise which runs a script, logs on, finds folder, finds report and displays in the Crystal report viewer. All that works fine....
    However, when you select the print icon or the export icon a Windows Internet Explorer box to select page range etc. and then when you say OK, you recieve a File Download Box asking to Open/Save/Cancel one of the following:
    Print - Name: CrystalViewer.pdf, and Type of pdf_auto_file
    Export - Name: CrystalViewer.rpt, and Type of CrystalReports
    I have no IDEA what he is trying to do but he sure ain't printing.  I can only assume that I have a missing part that he is trying to download at the time of print/export. Or that there is something set in the script that is killing me...
      Sub ViewReport( iStore, id, token)  
      URI = "./viewer/en/viewreport.csp?id=" & id & "&token=" & token & GetPrompt
       Set viewer = Server.CreateObject( "CrystalReports.CrystalReportViewer" )
       Set rptFactory = iStore.EnterpriseSession.Service("", "PSReportFactory")
       Set rptSource = rptFactory.OpenReportSource(CInt(id))
       ' Set the viewer's properties to prepare it for viewing.
       With viewer
          .ReportSource       = rptSource
          .EnterpriseLogon    = iStore.EnterpriseSession
          .URI                = URI
          .ISOWNPAGE          = TRUE
          .ISOWNFORM          = TRUE
          .HasPrintButton     = TRUE
          .ISDISPLAYPAGE      = true
          .isdisplaytoolbar   = true
          .isDisplayGroupTree = true
          .GroupTreeWidthUnit = 1
          .GroupTreeWidth     = 17
          .HasRefreshButton   = true
          .HasExportButton    = true
          .ParameterFields    = GetParams
       End With
        If Err.Number <> 0 Then
          'There was an error setting up the viewer.
          Response.Write "<p>Unable to create report viewer. " & Err.number
       Else
          'Process the request and launch the viewer.
          viewer.ProcessHttpRequest Request, Response, Session
          'viewer.refresh
       End If
    End Sub
    Help me???

    Please re-post if this is still an issue to the .NET Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

  • Change File Name In The "File Download" Dialog Box For Web Reports

    Hi All ,
    I followed the below note to change the "File Download" name.
    How To Change The File Name In The "File Download" Dialog Box For Web Reports? Doc ID: Note:418366.1
    However its not working. Has anyone tried this and works fine ?
    Basically I wanted to change the name "rwservlet" when a report is run in an
    excel format.
    Rajesh Alex
    Rajesh Alex

    Hello,
    Have you checked if a HTTP header "Content-disposition" is returned ?
    You can use ieHTTPHEaders for IE
    http://www.blunck.se/iehttpheaders/iehttpheaders.html
    and
    Live HTTP Headers for FireFox
    https://addons.mozilla.org/en-US/firefox/addon/3829
    Regards

  • "File download - security warning" when running a report

    Hi all,
    Few of our users are having an error on their PCs when trying to run a report in Internet Explorer 8 with Adobe Reader 10.1.3 installed on their PCs. The error is:
    "File Download - Security Warning"
    Do you want to save this file, or find a program online to open it?
    Name: rwservlet
    Type: Unknown File Type
    Find Save Cancel
    Other users are able to run the reports. They have IE8 and Adobe Reader 10.1.2 installed. Any ideas why this problem might occur?
    Any help is appreciated.

    Hi,
    what is the behavior if you leave adobe Reader opened and running before running the report?
    Thanks, Roberto

  • PDF Report file download problem

    Hi,
    I am using ApEx 3.1 and Oracle 10g and XSL-FO
    I have a problem in downloading a PDF file:
    (1) I have a report query (produced an xml file), report template, and report layout.
    After I linked the new PDF report into my application, when I click on the button, the PDF “File Download” popup shows only two buttons (“save” and “cancel”) with a warning message “The file you are downloading cannot be opened by the default program. It is either corrupted or it has an incorrect file type. As a security precaution, it is recommended that you cancel the download”, and the file name shows up as “f.pdf”. I am able to open the saved file (f.pdf) in Adobe Acrobat and it looks fine.
    (2) In “Home>Application Builder>Application xxx >Shared Components>Report Queries>Edit Report Query”, when I click on the “Test Report” button, the “File Download” popup shows with all three buttons, (“open”, “save”, “cancel”) --- it shows the correct name of the file, and, no warning message! At this point, the file can be opened with the “open” button”, or, be saved to the disk. The saved file opens with Adobe Acrobat and the contents are identical to that of the file “f.pdf”.
    (3) I created another application (within the same workspace) with just one page, linked the PDF report in this application, and clicked on the button, and got the same response as in (2).
    It looks like I could try to create a new application by copying page by page from the application quoted in (1), and see if that would solve the problem. It is time consuming, the outcome is uncertain, and also could create some other problems
    What could be the cause of this problem? Any alternatives? I would appreciate any help.
    Thanks
    Vasan

    We experienced the exact same problem as the OP (including corrupt files named "f.pdf" and the browser dialog box he documented). Don't know if his environment is similar, but here is how we fixed our issue:
    Our app uses an Authentication Scheme that includes under "Page Session Management" a "Session Verify Function" called like this: "return timeout_pkg.check_timeout;". This timeout_pkg I think came from code originally posted here, it works well so thanks to the original coder. However it does present a small issue in that it rewrites the mime headers in the server response in one use case. Since it is rewriting the headers to "text/html" even though we are sending back a report where the mime header should be "application/pdf", the client gets confused and the result is the symptoms the OP posted.
    So if we change the timeout package and body so the signature is like this: "function check_timeout (p_request IN VARCHAR2 DEFAULT null) return boolean;"
    And change the call in the "Session Verify Function" to pass the request as a parameter like: "return timeout_pkg.check_timeout(:REQUEST);"
    And change the body of the timeout_pkg.check_timeout function to use the correct mime type when calling a report:
    elsif not g_cookie_already_sent then
    if (p_request is not null and INSTR(p_request, 'PRINT_REPORT') != 0) then
    owa_util.mime_header('application/pdf', FALSE);
    else
         owa_util.mime_header('text/html', FALSE);
         end if;
    then we solve our particular problem... I hope this saves somebody else some time, remember this was our specific solution to the exact symptoms documented by the OP, however as a general rule I would say if you are experiencing problems with pdf printing from Apex, watch out for anything your app might be doing with the owa_util pkg in particular and mime headers in the server response in general.
    Edited by: cmcneil on Sep 5, 2008 11:45 AM
    Edited by: cmcneil on Sep 5, 2008 11:59 AM

  • Tax Reporter: magnetic media files in Excel format

    Most of the state agencies websites require a "Microsoft Excel Comma Separated Values File" or a regular Excel file for SUTA reports to be able to upload them online.
    Is it possible to generate the magnetic media files from Tax Reporter in one of these two formats?
    Not sure if I was missing a step or not, but the files are automatically generated in XML format.

    Hi Tatiana,
    May be below link would help you.
    PA SUI Magnetic media issue
    Just try doing the steps and see if it helps let you save file to csv.
    Thanks,
    Ameet

  • File creation for Generic Withholding Tax Reporting : amounts are zero

    Hi,
    I try to use the program RFIDYYWT to create the file for witholding tax reporting for France
    The format tree DMEE IDWTFILE_FR_DAS2.
    I have succeeded to create a file, with the correct format/layout (so a 10, 20, 210, 30, and 31 structure), but the amounts are all equal to zero in the fle generated compared to the result on the screen after execution of the program.
    Does anybody knows the solution for this problem ?
    Thanks a lot.

    Hi Wayne,
    We opened a note with SAP and were told that a US 1042s copy could not be used within the standard system.  Looking into it further we found that the form name was coded into a selection program.  We had an ABAP developer add code that allows us to use a "Z_"  copy form. 
    Regards,
    Gregg

  • After running csv report, open the 'File Download Dialog'

    Hello,
    I would like that, if I run a report, then I liked directly File Download Dialogue gotten.
    How can i make this?
    Thank you!

    can you give more details on how you call the report.
    if you use url method to call , it will open the excel after the report is generated
    when appropriate desformat is given

Maybe you are looking for