Input /Output VAT tax report

Dear all,
I want to see the Customer/Vendor name in VAT Report, pls help me how can set this.
Regards
Kris

Hi,
please run the report RFUMSV00 with the parameter 'Read address data' active, under folder Output Control. And you have to add field NAME1 to your display variant.
Best regards,
Andrea

Similar Messages

  • VAT Tax report S_ALR_87012357

    Hi SAP Guru's
    I am running Report S_ALR_87012357 for VAT Tax report, but the report is displaying the Tax base amount twice on the report. I have observed that, if there is more then one tax code used in the document level (exp: V0, V1) then its displaying the tax base amount repeating the line items, once with the amount and once with the amount and tax value.
    please guide me whats wrong with the report or there any issue in document level.
    Thanks,
    Anand

    Hi
    Suggest you to ask the help of the ABAPER & Debug the report  S_ALR_87012357
    Please also check field HWBAS(Tax Base Amount in Local Currency)  in Table BSET  (Tax Data Document Segment)
    Regards
    Praveen P C
    Edited by: Praveen Chirakkel on Apr 20, 2011 6:13 AM

  • RFUMSV00-VAT TAX REPORT

    Hi All,
    Can somebody provide the guide line / over all view/ importance  of the below selection parameters at the above report : RFUMSV00 / Transacion: YBE_FIXX_VAT
    Radio button of New posting
    Radio button of Old posting
    If the Tax Procedure assigned to the country and Tax codes created under it is changed to a different procedure and different tax codes created under the same will have any impact on the above selection procedure?
    Thanks alot in advance for your valuable guidance!
    Best Regards,
    K.Satish Babu

    Hi
    Suggest you to ask the help of the ABAPER & Debug the report  S_ALR_87012357
    Please also check field HWBAS(Tax Base Amount in Local Currency)  in Table BSET  (Tax Data Document Segment)
    Regards
    Praveen P C
    Edited by: Praveen Chirakkel on Apr 20, 2011 6:13 AM

  • Mexico VAT tax configuration

    Hi All,
    I have some queation about how to configure the Mexico VAT tax in SAP system.
    As I understanding, If my company which located inside of Mexico purchases material from vendor in Mexico, the payment to vendor will include cost of material and VAT tax (VAT input), and the VAT tax rate is depend on my company location.
    When my company sale product to customer, the customer will be charged the cost of product sold and VAT tax (VAT output), and the VAT tax rate is depend on location of the customer. So the VAT tax that my company need pay to the Mexican Government is (VAT output - VAT input). In other word, the VAT input amount is calculated after system generated payment to the Vendor, and VAT output amount is calculated after system generate payment from the customer.
    How can I configure the system to use this kind of Cash-base method for VAT tax payment?
    Thanks for your time
    Alvin

    Tax Code
    Definition
    See Tax Codes [Extern].
    Use
    When you create a company code using the template for Mexico, the system sets sample tax
    codes as follows:
    Input VAT
    Tax code Tax rate (%)
    V0 0
    V1 10
    V2 15
    Output VAT
    Tax code Tax rate (%)
    A0 0
    A1 10
    A2 15
    Excise Duty + VAT
    Tax code Tax rate (excise duty + VAT) (%)
    S1 30 + 15
    S2 30 + 10
    Additionaly you need to check SAP note 487616.
    Miroslav

  • Re: Tax Report and P&L Report's Sales total not matching

    Hi,
    My Total Sales Input in the tax report and my total sales in the P&L for a period doesnt match. I persume they both should match as all Tax inputs are sales. I have checked for manual journals into sales account but there are no manual journals.
    Any suggestions as to where the differnaces could be located.
    Regards

    HI,
    No I have not made any queries, but using the standard SAP tax report which is under Fianancial Reports - Accounting - Tax - Tax Report. Selected posting date as the date range for the period and Transaction types and selected all transaction types from the listing.
    Regards

  • Activate tax reporting date (VAT due date) Spain

    Dear all,
    My Spanish customer should start using electronic VAT book, Modelo 340. If I understood correct VAT due date (activate tax reporting date) is a prerequisite for this? If I activate this functionality in their system, what affect will this have except a new field?
    Is it possible to do this during a year or should it be done in the beginning of a new year, from 1st of January? Does it matter?
    What affect will it have on already existing documents?
    If they start to use electronic VAT book, do they not need to use the ordinary Tax report, transaction S_ALR_87100833, then and use only this instead?
    Please help me to understand how to tell the customer of how this will affect them.
    BR L

    Hi Paul,
    I have already red these notes but don´t think that my questions are answered by these. Escpecially the question if ordinary tax report, program RFUMSV00 (transaction S_ALR_87100833) are replaced by Modelo 340, is not answered.
    Could you please help?
    BR L

  • Input and Output VAT

    Dear Friends,
    One advise needed.
    I have created 2 VAT G/L Accounts via FS00 i.e.
    Input VAT ( which is updated in Purchase Process at the time of MIRO )
    (ii) Output VAT( which is updated in Sales Process at the time of VF01 )
    Both are balanace Sheet accounts.
    Now, I have one doubt,
    I have created Input VAT G/L with category "ASSETS"
    and Output VAT G/L with category "LIABILITIES"
    Is this OK from Concept ? Will it cause any error at the time of period closing ?
    Please reply.
    Reward Points assured.
    Thanks.
    Regards,
    Gaurav Raghav.
    Is this OK

    Hello Mr.Gourav
    Its absolutely fine.it will work.But it should have been only balancesheet grou , insted of both assets and liability separetly.
    u can directly go for both as liablity also.
    where the Debits and the Credits will automaticaaly setoff.
    and the balance will be relfected in the balance sheet
    but if ur going to do them separeelt as assts and saparetely as liablity then adjustment need to be done at the time of preparing the financial staement version
    Hope it will cleare u
    Regards
    Anup

  • Output of one report is input to another report?

    Hi Expert's,
    Is it possible to use output of one report as an input to another report.I mean to say  fields which are avialble in the first report  is used as a input for another report.
    Thanks,
    vasu.

    Hi,
    Yes, you can do that.
    You can run a first report having characteristics as output. You can then use the returned cahracteristic values as input variable for a second query.
    You can achieve this by creating a replacement path (based upon your first query) variable in the second report.
    Another option would be to use the report to report interface (RRI).
    hope this helps,
    Olivier.

  • Function module to list out a report's input/output parameters

    Hi experts,
    I'd like to know if there is a function module which can list out all the input and output parameters (variables, tables, etc.) by giving the report name as input.
    If not, please suggest a way to find out the input/output parameters.
    Regards,
    Ancy

    Well, they're not input/output parameters, and really you shouldn't refer to them as such.  A variable is simple what it says - a variable.  You could, I suppose, refer to data sources.  But then, the report could be getting data from a set of function modules.
    So my assumption is correct, you are talking about a where-used list.
    >Check out tables like CROSS. To find other useful tables, put an SQL trace on, do the where used, and see what tables are hit.
    matt

  • How to add additional field into output table for RFIDYYWT(Generic Withholding Tax Reporting)

    Hi Experts,
    How to add additional field into output table VENDORS/WH TAX TYPES AND CODES in RFIDYYWT(Generic Withholding Tax Reporting).
    I have no idea how to start with, please give some advice.
    Thanks!
    Ice

    Dear Ice,
    Use Append structure, see given link:
    https://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm
    Regards,
    Abbas.

  • Can we use the output of a report as in input for the other report?

    Dear All,
    I would like to know if we have any option in OBIEE where in we can save the output of a report and use it as a filter for another report?
    My scenario is like:
    1) I have a report on ORDERS which gave me 250 orders.
    2) I want to have a report on SHIPMENT table for these 250 Orders.
    Can we save the result of report 1 as a filter and use it in 2nd report?
    please advise.
    Thanks,
    Suma

    Hi,
    By using advanced tab in filters like filter based on another request we can achieve this
    Regards
    Naresh

  • Foreign Currency Valuations (F-05) and Tax Report  (S_ALR_87012357)

    Dear all,
    Version: 4.7 R/3
    <u>Previous steps:</u> To adjust Local Currency we have to post by using F-05.
    All line items have amount 0 for Document Currency and amount XXX for Local Currency. There is a line item of this type for Output VAT as well.
    <u>Problem:</u> After posting the document, we obtain the report S_ALR_87012357 "Advance Return for Tax on Sales/Purchases" in Local Currency; although the column "Tax Base Amount" is including the amount adjusted by F-05, the column "To be paid over", and therefore, the "Balance" is not considering the amount of the adjustment document.
    <u>Additional Keys:</u> I saw in SAP Note 1009578 that due to a program error, the Cash Management doesn't update line items with document currency or local currency with amount 0, even if the other amount respectively was not equal to zero.
    <u>Request:</u> I ignore whether it could be the same problem or not. Maybe I have overlooked something. Could you provide your inputs? Thanks.
    Please help,

    Hi,
    First define the Currency rates under the head of general settings - currency - enter exchange rates (ob08).
    Create Foriegn Exch loss or gain GL a/c under current liability, with open item management.
    And in OBA1  for Sundry Debtors you assign the Foriegn Exch loss or gain a/c under both tab (realised loss and gain, and even in valuation loss and gain).  You do same for Sundry creditos also..
    Regards,
    Shiva

  • Table ES340_OPEKEY for Model 340 - Spain Tax report

    Dear All,
    This is with regard to Model 340 tax requirement for Spain. As we all know that there are notes already released for this change, but due to lower support pack level in our  system we are develpoing new program for model 340 spain tax report.
    As we know that table 340_Operation key filter data of the report. Does any one have any information about this table. Mostly about the logic on the base of which data can filtered and displayed in that report.
    I also have one query on the way data get displayed in model 340. Does any know what should be displayed in this report. I mean other then input and output tax line item, what else should be displayed in the report? For e.g. If I have one document posted as shown below.
    Dr....Vendor Account                  200075              E2 Tax code     1000.00
    Cr....Material GL Account            4631000            E2 Tax code     925.92
    Cr....Output Tax GL Account       2013000            E2 Tax code     64.82
    Cr....Clearing tax GL Account      4306000            E2 Tax code     9.26
    E2 tax code is set against MWS (Output tax) and ASB(Clearing tax) account key
    Now under table ES340_OPEKEY If i select VAT Code 'Yes', IGIC 'NO' and Operation Key as 'None' then under Model 340 report only line item will be displayed.
    Total Base Amount: 925.92
    Total Tax: 74.08
    Total Invoice: 1000
    And if under that table If i select VAT Code 'No' IGIC 'No' and Operation Key as 'None' then three line item get displayed.
    Total Base Amount: 925.92
    Total Tax: 64.82
    Total Invoice: 990.74
    I want to understand what would be correct output for this document?
    Please guide.
    Regards.
    Vishal.

    Hola Eduardo!
    La clave de operacion ya está parametrizada en la tabla ES340_OPRKEY.Este no es el problema.
    Lo que necesitamos es poder incluir dos Tipos de libros .
    El estándar de sap solo saca dos tipos de libros
    Libro de facturas expedidas.
    Libro de facturas recibidas.
    que están identificados en el reporte con las claves de tipo de libro E y R.
    Necesitamos que el reporte obtenga tambien los libros de
    Libro de determinadas operaciones intracomunitarias.
    Libro de bienes de inversión.
    Cuyas claves de tipo de libro son: U y S
    Estas claves No tienen nada que ver con la clave de operacion.
    Este es un requerimiento a la hora de presentar el reporte y SAP no  aporta solucion.

  • Tax Report

    Hi All Friend,
    I want a tax report for input Tax and Out put Tax. (A/P Invoice,A/P Credit Memo,A/R Invoice,A/R Credit Memo)
    we use following tax group
    for input tax
    INA-TAX 14.24%  (NBT 2% +VAT 12.24% )
    INB-TAX 14          (NBT 2% +VAT 12% )
    INC-TAX 0%         (Zero Input Tax)
    for Output tax
    OUA-TAX 14.24%  (NBT 2% +VAT 12.24% )
    OUB-TAX 14          (NBT 2% +VAT 12% )
    OUC-TAX 0%         (Zero Output Tax)
    can any one help me to get Two query Report for input & Output tax like this
    Document-Posting Date-Customer/Vendor- Gross Amount-Total Tax-Tax Group-VAT-NBT-Document Total
    parameters,
    Document Series xxxx
    Date From xxxxx
    Data To xxxxx
    Thank you
    saman

    Hi Saman,
    We are deriving VAT SUMMARY like this.
    You will have to convert this into detail including series table and join.
    You can try this with changes as per your need.
    select v.taxcode , ceiling(sum(v.valuewotax)) as salevalue , 
    ceiling(sum(v.outputtax)) as outputtax ,
    ceiling(SUM(v.inputtax)) as inputtax , sum(v.outputtax-v.inputtax) as claim_liability
    from
    (select inv1.taxcode , ceiling(sum(inv1.linetotal)) as valuewotax ,
    ceiling(sum(INV1.VatSum)) as outputtax  ,
    0 as inputtax , ceiling(sum(INV1.VatSum)) - 0 as 'liability/refund'
    from NNM1 inner join OINV on NNM1.Series = OINV.Series
    inner join INV1 on OINV.DocEntry = INV1.DocEntry
    where OINV.DocDate >= '01/sep/2011' and OINV.DocDate <= '30/sep/2011'
    group by INV1.TaxCode 
    union all
    select RIN1.TaxCode , ceiling(sum(-rin1.linetotal)) as valuewotax ,
    ceiling(SUM(-rin1.VatSum)) as outputtax ,
    0 as inputtax , ceiling(SUM(-rin1.VatSum)) - 0 as 'liability/refund'
    from NNM1 inner join ORIN on NNM1.Series = ORIN.Series
    inner join rin1 on orin.DocEntry = rin1.DocEntry
    where orin.DocDate >= '01/sep/2011' and orin.DocDate <= '30/sep/2011'
    and RIN1.BaseType = -1
    group by RIN1.TaxCode
    union all
    select RIN1.TaxCode , ceiling(sum(-rin1.linetotal)) as valuewotAX,
    ceiling(SUM(-rin1.VatSum)) as outputtax ,
    0 as inputtax , ceiling(SUM(-rin1.VatSum)) - 0 as 'liability/refund'
    from NNM1 inner join ORIN on NNM1.Series = ORIN.Series
    inner join rin1 on orin.DocEntry = rin1.DocEntry
    where orin.DocDate >= '01/sep/2011' and orin.DocDate <= '30/sep/2011'
    and RIN1.BaseType = 13
    group by RIN1.TaxCode
    union all
    select pch1.taxcode ,  ceiling(sum(pch1.linetotal)) as valuewotAX ,
    0 as outputtax  ,
    ceiling(sum(pch1.VatSum)) as inputtax , 0 - ceiling(SUM(pch1.VatSum)) as 'liability/refund'
    from NNM1 inner join opch on NNM1.Series = opch.Series
    inner join pch1 on opch.DocEntry = pch1.DocEntry
    where opch.DocDate >= '01/sep/2011' and opch.DocDate <= '30/sep/2011'
    group by pch1.TaxCode 
    union all
    select rpd1.TaxCode , ceiling(sum(rpd1.linetotal)) as valuewotAX ,
    0 as outputtax ,
    ceiling(SUM(-rpd1.VatSum)) as inputtax , 0 - ceiling(SUM(-rpd1.VatSum)) as 'liability/refund'
    from NNM1 inner join orpd on NNM1.Series = orpd.Series
    inner join rpd1 on orpd.DocEntry = rpd1.DocEntry
    where orpd.DocDate >= '01/sep/2011' and orpd.DocDate <= '30/sep/2011'
    and rpd1.BaseType = -1
    group by RPD1.TaxCode
    union all
    select rpd1.TaxCode ,  ceiling(sum(rpd1.linetotal)) as valuewotAX ,
    0 as outputtax ,
    ceiling(SUM(-rpd1.VatSum)) as inputtax , 0 - ceiling(SUM(-rpd1.VatSum)) as 'liability/refund'
    from NNM1 inner join orpd on NNM1.Series = orpd.Series
    inner join rpd1 on orpd.DocEntry = rpd1.DocEntry
    where orpd.DocDate >= '01/sep/2011' and orpd.DocDate <= '30/sep/2011'
    and rpd1.BaseType = 18
    group by RPD1.TaxCode ) v
    where v.TaxCode not like 'S%'
    group by v.TaxCode
    Thanks
    Malhaar

  • 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.

Maybe you are looking for