Excise Duty capturing in less in the fresh PO

Dear all,
I created a separate PO with material xxxx I tried to do MIRO for this Plan delivery cost then I try to do MIGO Simulated and checked the BED amount. For that  material xxxx it gave the difference in BED when i compared with MIGO and MIRO. please give some suggestion.
Regards,
Raziq.
Note - Chapter ID is maintained for that material. all condition type are working properly.when I use other materials BED is capturing properly, only for this material i am getting such problem.

hi
in Spro>Logistics - General>Tax on Goods Movements>india>Basic Settings>Maintain Excise Groups
here for the excise group you are uisng tick Ei capture , post under MIGO SETTINGS
so now the excise tab will be viewvable in MIGo
and also u have to miantain the material excise details in MM02 or in J1ID
regards
kunal

Similar Messages

  • Regarding u2013 Excise duty Capture

    Dear All,
    While capturing the excise duty end user has been changed the ED amount and Cess Amount. He has changed the amount more than 25% and GR has been completed. Now they want to reverse the excise capture and now FI period and MM period has been closed. How we can resolve this issue.
    Regards,
    Shankar G

    Hello ,,
    You Can adjust the amt thorugh J1IH transaction or else.
    For date, ---use last months date
    1) MIGO:Cancel the material document (movement type 102) & during cancellation update part1 only. This changes the excise invoice document status to In process
    2. J1IEX:Post the excise invoice referring the material document (of movement type 102). Creates an accounting document to reverse the CENVAT postings. Creates a corresponding entry in Part II of the appropriate excise register
    Thus the excise postings are reversed.
    3.J1IEX: Cancel the excise invoice (Do this if your plant does not allow multiple goods receipts per excise invoice).Now the system will allow you to cancel the vendor excise invoice
    Then next go ahead with fresh Goods receipt
    Mahesh Naik

  • Excise duty capture and posting..?

    Hi all
    Can anybody explain me about , excise invoice capture and posting ..
    What is capture and posting excise invoice in CIN..?
    1.When we capture excise duty..? were it wil go
    2.When we wil post the same..? were it wil go
    Thanks
    sap-mm

    HI,
    Capturing Excise invoice means you are updating excise register Part1 on quantity basis.(Inward movement of goods like purchasing of raw material.)
    Posting the excise is updated on value basis, in this RG23part2 rgister is been updated .it has financial implication.
    Example:
    In MIGO transaction itself, you can post Excise by choosing Capture and Post Excise Invoice. The FI document will be as follows:
    RG23A Basic Excise Duty A/c Dr
    RG23A Education Cess A/c Dr
    To CENVAT Clearing A/c
    After doing MIGO, you execute MIRO. In this transaction also, SAP will generate FI document automatically. The entry will be as follows:-
    GR/IR Clearing A/c Dr
    CENVAT Clearing A/c Dr
    VAT Setoff A/c Dr
    To AP-Vendor A/c
    Regards,
    Biju k

  • Excise duty capturing for returned goods

    i have created the normal sales order,outbound delivery,billing,excise invoice.
    then i have created the return order with reference to the billing ,and then inbound delivery,PGR ,then credit memo.Now i have capture the excise duty what i have to do?????

    For updation of excise related sales returns, run T.Code J1IH and do the following:-
    Customer Credit
    Choose Additional excise input the original excise invoice reference, document year, company code, plant and excise group and execute. There input manually what value you need to give credit and save.
    Cenvat Debit
    Choose Other Adjustment and here also, maintain the datas whatever you input as above and save.
    thanks
    G. Lakshmipathi

  • Excise Duty Capture

    Hi Gurus,
    I am getting follwoing error while capturing the Excise Duty credit thru J1IEX
    "PLA-AT2 amount 27.06.2007 is greater than availabable amount"
    may I request u 2 help me
    Thanks in advance.

    Dear Vikas,
    Check the setting at India version for  Account determination->Define G/L Account for Taxes for account Name PLA-AT2.Check there is any Debit,credit setting for this account for which Excise Transaction .If Yes Check that for that Transaction G/L Account has maintain or not at  IMG setting at Specify G/L Account per Excise transaction. OR Remove the setting account Name PLA-AT2 with Excise Transaction at Account determination->Define G/L Account for Taxes.
    Rewards if helpful
    Regards
    Sanjay L

  • Excise duty  capturing in migo

    Dear All,
    I have done all the configration in J1ID,  and   assigned  the tax code to  company code, while doing goods receipt    the excise duty is not capturing,
    please suggest,

    Hello,
    In J1ID, there are 2 settings
    1. Maintain Material Chapter ID combination and in this setting maintain Material, Plant and Material Type. Make sure the material type is Raw Material in this and Number of Goods Receipts per Excise Invoice as Multiple Goods Receipts.
    2. Cenvat Determination :- In this maintain material with Plant combination.
    Also check if Plant Excise Details are maintained..
    Thanks and Regards
    Prabhjot Singh

  • Excise duty is not coming at the time of J1IIN in stock transfer

    The value of BED, CESS is coming Zero while creating Excise Invoice for Stock Transfer. I have maintained all the default condition types. I am using STO Proforma Invocie, Excise duty is coming in STO Proforma Invoice.
    I am using TAXINN.
    Regards
    Gaurav

    Maintain pricing (TVAP-PRSFD) as X in VOV7 for your STO item category.
    Regards,
    GSL.

  • Reg Excise Duty is not coming in the Excise invoice

    Hi all,
          We are doing STO senerio between two plants while doing commercial invoice the EXcise Duty ZMOD and ZCES is determining in the commercial invoice but when we do the Excise invoice in J1IIN the ZMOD and ZCES values are not comming.
    So can you please assist to over come this issue
    Please give replay ASAP,
    Regards,
    Murali.

    Hi Alpesh,
            Thank you for your replay I already checked that the A/R BED,SED CESS condition types are maintaining to that Tax procedure.
    Can you please assist
    Regards,
    Murali.

  • Excise duty capturing

    My plant is under excise duty exemption for 10 years, presently there is no excise duty now the customer wants the excise duty to be nil.
    but he wants the registers ie., rg23 to updated as if he has paid excise duty to know his benefit from exemption.
    can this be possible, can some body guide
    thanks
    Edited by: varada rajan on Jan 16, 2008 1:06 PM

    hi,
    no. u need to maintain the txation proc cos u need to take care of sales taxes like VAT and CST and also cos u need the excise cnditions in your pricing proc. these excise cond are defined in the taxation procedure . you do not need excise registers until its a statutory requiremnt.
    subtotals are fields where u can store values of important condtions. these fields can then be made to flow in report. SAP allows u to have 6 subtotals per pp. its the 11th col in hte pp from the left.
    saurabh

  • Excise duty capture in MIGO

    Hi,
    Will anybody tel me about the configuration steps for capturing Excise Duties while doing MIGO ?????
    Thanks in advance.
    Regards,
    N. Somasundaram

    Hi,
    You can pass JV with transaction code J1IH by selecting "additional excise' tab.you can give the amounts and also excise invoice number
    regards.
    prasad

  • Excise Duty Capture of Invoice for Raw Materials

    Dear All,
    New to CIN.
    I have created a Po and while trying to capture Ex. Invoice the system gives a runtime error saying that it found a division with zero and hence the termination.
    Can some body help?
    Nagarajan

    Hi Nagarajan,
    Have you configured the TAX process  for the country. You need to create the Tax conditons, then you have to maintain these tax conditons in the tax procedure as per the calulation required. then you need to maintain the tax codes and Tax conditons in FTXP and FV11 then you need to use these tax codes are conditons while doing PO.
    If you have done the above then you can post the error number so that we can explain you further
    Cheers
    Kris

  • Excise Duty not capturing in invoice

    Dear all,
    All the configuration have been maintained for Excise duty, while doing PO the excise duty is capturing even doing MIGO and excise captured but during Invoice (MIRO) the excise is not capturing.
    Regards,
    Raziq

    Hi Raziq,
    When the Excise is Caputred at MIGO system post RE23A Part 1 entry, where as for RG23A Part II entry you need to execute J1IEX.
    In this system will show the Excise Duty and it will post the below accounting Entry:
    BED Dr
    eCess Dr
    HECess Dr
    CENVAT Clearing Account Cr
    Now when you wil do MIRO system will reverse the CENVAT Clearing Entry by creating three lines
    Please let me know if you are following above approach or not.
    Br,Vivek

  • Excise duty in the Pricing Procedure for Local Purchase / Importation

    Hi,
    I'd like to know how to set up the pricing procedure for the purchase of an IS Oil Material; for local purchase and importation, especially with regards to the excise duty posting.
    Local purchase:  the vendor will bill us inclusive of the ED tax he previously paid, so the tax is just passed on to us..  My receiving location has ED paid status. In the PO item, we need to see this price (inclusive of tax) in the net price field.
    Importation:  the vendor only bills us the cost of the material.  When we received the fuel, we paid ED tax to local tax authorities.
    I know that both in these scenarios, the system has to determine the excise duty.
    My questions are (1) how do you set up the excise duty condition type  in the pricing procedure(or do they have to be maintained in the pricing procedure?) ?   and (2)  how do you set up this condition type in the config?
    Thank you and hoping for your immediate feedback.
    zccr

    Hi,
    You can use same pricing procedure
    put 4 in subtotal in pricing procedure against the Discounr or freight cond
    and in taxinn
    BASb ALTCBV 362 and for jmop 363
    But this will work only if same  discount or freight value is in IV as that given in PO
    if freing value changes in IV then its a problem
    This is SAP bug, and SAP workes in that way only, freight value should be same in PO and IV
    other solution
    in taxinn create tax code like v8 vat 4% for 003 tax clasification
    in ftxp create tax code V8 desc vat 4%
    in fv11 for jvrd put 4
    and at the time of IV put this tax code for freight amount
    and for regular material value V1 tax code
    this will work only if u have used acess seq MWST instead of JTAX pr JST1
    hope this helps
    Vipin

  • Excise Duty issue

    Dear Sir,
    I configure Excisable depot.
    STO Process
    we created purchase order in which price is mentioned 1000 for a material, and we did delivery ,proforma invoice and excise invoice  ( Price of material 1000, Excise Duty is BED 100 Ecs 2 H Ecss 1) through J1IIN and we have done Goods receipt through MIGO while doing MIGO we have given Base Value 1000 ,BED 100, ECS 2, H Ecs 1 and J1IG document also created.
    the issue is that while selling goods, our sales price will be 2000 so naturally BED will be 200, ECS 4 and Hecss 2 in our sales invoice. but when we create Depot Excise Invoice through J1IJ . excise duties BED 100, Ecs 2 and Hecss 1 are appearing which means the amount of excise duties are picking up from J1IG document OR MIGO Document.
    question is that we need to do Price escalation in depot , how can we treat excise duties in Depot?
    Do we need to do JV in Depot for excise?
    Please give me an insight in this regard as early as possible
    Thanks
    Shibu Chandran

    As per excise law in India, whenever there is a price escalation happens in a depot we have to create a document called "A Certificate" by paying  additional excise duty on the differencial amount between STO price and Depot sales price. Because when you post incoming excise duty in J1IG after MIGO at depot, system captures BED, CESS & E.CESS as per the chapter ID of the material being transported from the factory and based on this Excise duty value for STO is calculated. 
       If the selling price of the material is higher than the STO price, we have to pay excise duty on the defference. Because law requires excise duty to be calculated on the selling price or assesible value if one exists.
    perform the following activities
    J1ILN >Indirect taxes>Procurement->Excise invoice->For Depot--> J1IGA Acertificate entry at Depot
    Here enter the internal excise invice already captured at J1IG. System will show you the excise duty values to corresponding Folio nos. Here you can enter excess amount to be paid for each line item in the excise invoice. Save.
    Now you create OR, delivery and PGI from Depot for customer. Go to J1IJ to create Depot Excise invoice. After entering the delivery document no. you will see a list internal of excise invoices choose the excise invoice to which your delivery material belongs. In the bottom you will see other table containing a list of "A Certifivates" created for all your internal excise invoices. You have to choose the "A Cerificate" of the internal invoice which you have selected already. Capture and post the document. Now RG23D will be updated.
         Now you create the commercial invoice for the customer in VF01. In item condition tab you can see the effect of "A Certificate".
    Please reward if you find this as useful
    Regards
    Ramesh

  • % Excise Duty is coming wrong in Report

    Hi,
    I have a report of Gross Margin (FI)....
    My problem is that when i m picking the % Excise Duty from J_1IEXCTAX table against the Chapter ID....it is showing the 4 values against it...means 4 time % Excise Duty....i.e. periodic changed...
    like....
    8538 90 00................1................08.12.2008................31.12.9999................10.0000
    8538 90 00................1................01.03.2008................07.12.2008................14.0000
    8538 90 00................1................28.02.2005................29.02.2008................16.0000
    8538 90 00................1................01.01.2001................28.02.2005................16.0000
    when i m executing my report with period from 01/11/2008 to 15/11/2008..it is showing the 16%...but as per my given period, it must display 14%...
    Please tell me that what should the condition there....
    I m sending my code...
    REPORT  z_fi_gross_margin NO STANDARD PAGE HEADING LINE-SIZE 125  .
    TABLES : t179t, tvkbt, mara, vbrp, s501, mbew.
    TYPE-POOLS : slis.
    DATA : BEGIN OF itab OCCURS 0,
           vkbur   LIKE s501-vkbur,
           matnr   LIKE s501-matnr,
           prodh   LIKE s501-prodh,
           ummenge LIKE s501-ummenge,
           gumenge LIKE s501-gumenge,
           umnetwr LIKE s501-umnetwr,
           gunetwr LIKE s501-gunetwr,
           sptag   LIKE s501-sptag,
           peinh   LIKE mbew-peinh,
           stprs   LIKE mbew-stprs,
           lplpx   LIKE mbew-lplpx,
           vtext LIKE t179t-vtext,
           mtart LIKE mara-mtart,
           bezei LIKE tvkbt-bezei,
           net_sqty TYPE p DECIMALS 2,
           s_amt TYPE p DECIMALS 2,
           j_1ichid LIKE j_1imtchid-j_1ichid,
           rate LIKE j_1iexctax-rate,
           excise TYPE p DECIMALS 2,
           l_excise TYPE p DECIMALS 2,
           s_unit TYPE p DECIMALS 2,
           m_unit TYPE p DECIMALS 2,
           t_mcost TYPE p DECIMALS 2,
           m_cost% TYPE p DECIMALS 2,
           g_margin TYPE p DECIMALS 2,
           g_marg% TYPE p DECIMALS 2,
           END OF itab.
    DATA : v_index TYPE sy-tabix.
    DATA : cnt TYPE i.
    DATA : w_container TYPE scrfname VALUE 'CL_GRID',
           w_cprog TYPE lvc_s_layo,
           g_repid LIKE sy-repid,
           w_save TYPE c,
           w_exit TYPE c,
           cl_grid TYPE REF TO cl_gui_alv_grid,
           cl_custom_container TYPE REF TO cl_gui_custom_container,
           it_fld_catalog TYPE slis_t_fieldcat_alv,
           wa_fld_catalog TYPE slis_t_fieldcat_alv WITH HEADER LINE ,
           layout TYPE slis_layout_alv,
           col_pos  LIKE sy-cucol ,
           alvfc TYPE slis_t_fieldcat_alv.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS   : vkbur FOR s501-vkbur.
    SELECT-OPTIONS   : matnr FOR s501-matnr.
    SELECT-OPTIONS   : sptag FOR s501-sptag.
    SELECTION-SCREEN : END OF BLOCK b1.
    PERFORM fill_catalog1 USING:
    **'SPTAG'    'ITAB'    'DATE',
    **'VKBUR'    'ITAB'    'Sales Office',
    'BEZEI'    'ITAB'    'S.Off. Desc.',
    'MATNR'    'ITAB'    'Material',
    'PRODH'    'ITAB'    'LEVEL',
    'VTEXT'    'ITAB'    'Level I',
    'MTART'    'ITAB'    'Material Type',
    'NET_SQTY' 'ITAB'    'Net Sales Qty.',
    'S_AMT'    'ITAB'    'Sales with Ex. Duty',
    'EXCISE'   'ITAB'    'Excise Duty',
    'RATE'     'ITAB'    '% Excise Duty',
    'L_EXCISE' 'ITAB'    'Sales less Ex. Duty',
    'S_UNIT'   'ITAB'    'Sales / Unit',
    'M_UNIT'   'ITAB'    'Mat / Unit',
    'T_MCOST'   'ITAB'    'Total Material Cost',
    'M_COST%'  'ITAB'    '% Material Cost',
    'G_MARGIN' 'ITAB'    'Gross Margin',
    'G_MARG%'  'ITAB'    '% Gross Margin'.
    SELECT DISTINCT a~sptag a~vkbur a~matnr a~prodh a~ummenge a~gumenge a~umnetwr a~gunetwr b~vtext c~mtart d~bezei
             INTO CORRESPONDING FIELDS OF TABLE itab
             FROM s501 AS a
             INNER JOIN t179t AS b ON a~prodh = b~prodh
             INNER JOIN mara AS c ON a~matnr = c~matnr
             INNER JOIN tvkbt AS d ON a~vkbur = d~vkbur
             WHERE a~matnr IN matnr
             AND   a~sptag IN sptag
             AND   a~vkbur IN vkbur.
    IF sy-subrc <> 0.
      MESSAGE 'DATA NOT FOUND.' TYPE 'I'(001).
    ENDIF.
    SORT itab BY matnr.
    LOOP AT itab .
      cnt = v_index.
      SELECT peinh stprs lplpx FROM mbew INTO (itab-peinh, itab-stprs, itab-lplpx) WHERE matnr = itab-matnr.
        itab-m_unit = itab-stprs - itab-lplpx / itab-peinh.
        v_index = cnt + sy-dbcnt.
        MODIFY itab INDEX v_index TRANSPORTING m_unit.
      ENDSELECT.
      SELECT j_1ichid FROM j_1imtchid INTO itab-j_1ichid WHERE matnr = itab-matnr.
        MODIFY itab INDEX sy-tabix TRANSPORTING j_1ichid .
      ENDSELECT.
      SELECT rate FROM j_1iexctax INTO itab-rate WHERE j_1ichid = itab-j_1ichid AND j_1iexcind = '1'.
        MODIFY itab INDEX sy-tabix TRANSPORTING rate .
      ENDSELECT.
    ENDLOOP.
    LOOP AT itab .
      itab-net_sqty = itab-ummenge - itab-gumenge .
      MODIFY itab INDEX sy-tabix TRANSPORTING net_sqty.
      itab-s_amt = itab-umnetwr - itab-gunetwr .
      MODIFY itab INDEX sy-tabix TRANSPORTING s_amt.
      itab-excise = itab-s_amt * itab-rate / 100.
      MODIFY itab INDEX sy-tabix TRANSPORTING excise.
      itab-l_excise = itab-s_amt - itab-excise.
      MODIFY itab INDEX sy-tabix TRANSPORTING l_excise.
      itab-s_unit = itab-l_excise / itab-net_sqty.
      MODIFY itab INDEX sy-tabix TRANSPORTING s_unit.
      itab-t_mcost = itab-m_unit * itab-net_sqty.
      MODIFY itab INDEX sy-tabix TRANSPORTING t_mcost.
      itab-m_cost% = itab-t_mcost / itab-s_amt * 100.
      MODIFY itab INDEX sy-tabix TRANSPORTING m_cost%.
      itab-g_margin = itab-l_excise - itab-t_mcost.
      MODIFY itab INDEX sy-tabix TRANSPORTING g_margin.
      itab-g_marg% = itab-g_margin / itab-s_amt * 100.
      MODIFY itab INDEX sy-tabix TRANSPORTING g_marg%.
    ENDLOOP.
    layout-zebra = 'X' .
    layout-colwidth_optimize(1) = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program = 'Z_FI_GROSS_MARGIN'
        is_layout          = layout
        it_fieldcat        = it_fld_catalog
        i_default          = 'X'
        i_save             = 'A'
      TABLES
        t_outtab           = itab
      EXCEPTIONS
        program_error      = 1
        OTHERS             = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *&      Form  FILL_CATALOG1
          text
         -->P_FIELDNAME  text
         -->P_REF_TABLE  text
         -->P_SCRTEXT    text
    FORM fill_catalog1  USING   p_fieldname TYPE any
                                p_ref_table TYPE any
                                p_scrtext   TYPE any.
      CLEAR : wa_fld_catalog.
      wa_fld_catalog-fieldname  = p_fieldname.
      wa_fld_catalog-tabname    = p_ref_table.
      wa_fld_catalog-seltext_s  = p_scrtext.
      wa_fld_catalog-seltext_m  = p_scrtext.
      wa_fld_catalog-seltext_l  = p_scrtext.
      wa_fld_catalog-outputlen = 15.
      APPEND wa_fld_catalog TO it_fld_catalog.
    ENDFORM.                    " fill_catalog1
    Please check .....
    Thanks...

    I think ur code will do the same in my report do...
    Please check my code again and modify where as u needed.....
    REPORT  z_fi_gross_margin NO STANDARD PAGE HEADING LINE-SIZE 125  .
    TABLES : t179t, t179, tvkbt, mara, vbrp, s501, mbew, t134t, v_t179, t023t, t247.
    TYPE-POOLS : slis.
    DATA : BEGIN OF itab OCCURS 0,
           vkbur   LIKE s501-vkbur,
           matnr   LIKE s501-matnr,
           prodh   LIKE s501-prodh,
           ummenge LIKE s501-ummenge,
           gumenge LIKE s501-gumenge,
           umnetwr LIKE s501-umnetwr,
           gunetwr LIKE s501-gunetwr,
           sptag   LIKE s501-sptag,
           peinh   LIKE mbew-peinh,
           stprs   LIKE mbew-stprs,
           lplpx   LIKE mbew-lplpx,
           prdha LIKE mara-prdha,       " Product hierarchy
           prdha2 LIKE mara-prdha,       " Product hierarchy
           prdha3 LIKE mara-prdha,       " Product hierarchy
           prodh_text LIKE t179t-vtext, "Product Hierarchy Text
           prodh2_text LIKE t179t-vtext, "Product Hierarchy Text
           prodh3_text LIKE t179t-vtext, "Product Hierarchy Text
           matkl LIKE mara-matkl,
           wgbez LIKE t023t-wgbez,
           fcktx LIKE t247-ktx,
           mtart LIKE mara-mtart,
           bezei LIKE tvkbt-bezei,
           net_sqty TYPE p DECIMALS 2,
           s_amt TYPE p DECIMALS 2,
           mtbez LIKE t134t-mtbez,
           j_1ichid LIKE j_1imtchid-j_1ichid,
           rate LIKE j_1iexctax-rate,
           excise TYPE p DECIMALS 2,
           l_excise TYPE p DECIMALS 2,
           s_unit TYPE p DECIMALS 2,
           m_unit TYPE p DECIMALS 2,
           t_mcost TYPE p DECIMALS 2,
           m_cost% TYPE p DECIMALS 2,
           g_margin TYPE p DECIMALS 2,
           g_marg% TYPE p DECIMALS 2,
           new TYPE i,
           new1(6) TYPE c,
           s_period TYPE i,
           END OF itab.
    DATA : BEGIN OF itab3 OCCURS 0.
            INCLUDE STRUCTURE itab.
    DATA : END OF itab3.
    DATA : v_index TYPE sy-tabix.
    DATA : cnt TYPE i.
    DATA : w_container TYPE scrfname VALUE 'CL_GRID',
           w_cprog TYPE lvc_s_layo,
           g_repid LIKE sy-repid,
           w_save TYPE c,
           w_exit TYPE c,
           cl_grid TYPE REF TO cl_gui_alv_grid,
           cl_custom_container TYPE REF TO cl_gui_custom_container,
           it_fld_catalog TYPE slis_t_fieldcat_alv,
           wa_fld_catalog TYPE slis_t_fieldcat_alv WITH HEADER LINE ,
           layout TYPE slis_layout_alv,
           col_pos  LIKE sy-cucol ,
           alvfc TYPE slis_t_fieldcat_alv.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS   : vkbur FOR s501-vkbur.
    SELECT-OPTIONS   : matnr FOR s501-matnr.
    SELECT-OPTIONS   : sptag FOR s501-sptag.
    SELECTION-SCREEN : END OF BLOCK b1.
    PERFORM fill_catalog1 USING:
    'SPTAG'    'ITAB'    'DATE',
    'VKBUR'    'ITAB'    'Sales Office',
    'BEZEI'    'ITAB'    'S.Off. Desc.',
    'MATNR'    'ITAB'    'Material',
    *'PRODH'    'ITAB'    'LEVEL',
    'PRODH_TEXT'    'ITAB'    'Level I',
    'PRODH2_TEXT'   'ITAB'    'Level II',
    'PRODH3_TEXT'   'ITAB'    'Level III',
    'WGBEZ'    'ITAB'    'Level IV',
    'MTBEZ'    'ITAB'    'Material Type',
    'NET_SQTY' 'ITAB'    'Net Sales Qty.',
    'S_AMT'    'ITAB'    'Sales with Ex. Duty',
    'EXCISE'   'ITAB'    'Excise Duty',
    'RATE'     'ITAB'    '% Excise Duty',
    'L_EXCISE' 'ITAB'    'Sales less Ex. Duty',
    'S_UNIT'   'ITAB'    'Sales / Unit',
    'M_UNIT'   'ITAB'    'Mat / Unit',
    'T_MCOST'   'ITAB'    'Total Material Cost',
    'M_COST%'  'ITAB'    '% Material Cost',
    'G_MARGIN' 'ITAB'    'Gross Margin',
    'G_MARG%'  'ITAB'    '% Gross Margin',
    'NEW1'      'ITAB'    'Month'.
    SELECT DISTINCT asptag avkbur amatnr aprodh aummenge agumenge aumnetwr agunetwr cmtart cmatkl dbezei emtbez
             INTO CORRESPONDING FIELDS OF TABLE itab
             FROM s501 AS a
             INNER JOIN mara AS c ON amatnr = cmatnr
             INNER JOIN tvkbt AS d ON avkbur = dvkbur
             INNER JOIN t134t AS e ON cmtart = emtart
             WHERE a~matnr IN matnr
             AND   a~sptag IN sptag
             AND   a~vkbur IN vkbur
             AND   e~spras EQ 'EN'.
    IF sy-subrc <> 0.
      MESSAGE 'DATA NOT FOUND.' TYPE 'I'(001).
    ENDIF.
    SORT itab BY matnr.
    LOOP AT itab .
      cnt = v_index.
      SELECT SINGLE peinh stprs lplpx FROM mbew INTO (itab-peinh, itab-stprs, itab-lplpx) WHERE matnr = itab-matnr.
      itab-m_unit = itab-stprs - itab-lplpx / itab-peinh.
      v_index = cnt + sy-dbcnt.
      MODIFY itab INDEX v_index TRANSPORTING m_unit.
      SELECT SINGLE j_1ichid FROM j_1imtchid INTO itab-j_1ichid WHERE matnr = itab-matnr.
      MODIFY itab INDEX sy-tabix TRANSPORTING j_1ichid .
      SELECT SINGLE rate FROM j_1iexctax INTO itab-rate WHERE j_1ichid = itab-j_1ichid AND j_1iexcind = '1' AND validfrom GE sptag-low AND validto LE sptag-high.
      MODIFY itab INDEX sy-tabix TRANSPORTING rate .
      SELECT SINGLE prdha FROM mara INTO (itab-prdha) WHERE matnr = itab-matnr .
      MODIFY itab INDEX sy-tabix TRANSPORTING prdha .
      SELECT SINGLE wgbez FROM t023t INTO itab-wgbez WHERE matkl = itab-matkl .
      MODIFY itab INDEX sy-tabix TRANSPORTING wgbez .
    ENDLOOP.
    LOOP AT itab .
      itab-net_sqty = itab-ummenge - itab-gumenge .
      MODIFY itab INDEX sy-tabix TRANSPORTING net_sqty.
      itab-s_amt = itab-umnetwr - itab-gunetwr .
      MODIFY itab INDEX sy-tabix TRANSPORTING s_amt.
      itab-excise = itab-s_amt * itab-rate / 100.
      MODIFY itab INDEX sy-tabix TRANSPORTING excise.
      itab-l_excise = itab-s_amt - itab-excise.
      MODIFY itab INDEX sy-tabix TRANSPORTING l_excise.
      IF itab-net_sqty NE '0'.
        itab-s_unit = itab-l_excise / itab-net_sqty.
        MODIFY itab INDEX sy-tabix TRANSPORTING s_unit.
      ENDIF.
      itab-t_mcost = itab-m_unit * itab-net_sqty.
      MODIFY itab INDEX sy-tabix TRANSPORTING t_mcost.
      itab-m_cost% = itab-t_mcost / itab-s_amt * 100.
      MODIFY itab INDEX sy-tabix TRANSPORTING m_cost%.
      itab-g_margin = itab-l_excise - itab-t_mcost.
      MODIFY itab INDEX sy-tabix TRANSPORTING g_margin.
      itab-new = itab-sptag+4(2).
      SELECT SINGLE ktx FROM t247 INTO itab-new1 WHERE mnr = itab-new AND spras EQ 'EN' .
      CONCATENATE itab-new1 itab-sptag+2(2) INTO itab-new1 SEPARATED BY '-'.
      itab-g_marg% = itab-g_margin / itab-s_amt * 100.
      MODIFY itab INDEX sy-tabix TRANSPORTING g_marg% new1.
    ENDLOOP.
    LOOP AT itab.
      SELECT SINGLE vtext INTO itab-prodh3_text FROM t179t WHERE prodh = itab-prdha.
      itab-prdha2 = itab-prdha+0(5).
      SELECT SINGLE vtext INTO itab-prodh_text FROM t179t WHERE prodh = itab-prdha2.
      itab-prdha3 = itab-prdha+0(10).
      SELECT SINGLE vtext INTO itab-prodh2_text FROM t179t WHERE prodh = itab-prdha3.
      MODIFY itab INDEX sy-tabix TRANSPORTING prodh3_text prodh_text prodh2_text prdha3.
    ENDLOOP.
    layout-zebra = 'X' .
    layout-colwidth_optimize(1) = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program = 'Z_FI_GROSS_MARGIN'
        is_layout          = layout
        it_fieldcat        = it_fld_catalog
        i_default          = 'X'
        i_save             = 'A'
      TABLES
        t_outtab           = itab
      EXCEPTIONS
        program_error      = 1
        OTHERS             = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *&      Form  FILL_CATALOG1
          text
         -->P_FIELDNAME  text
         -->P_REF_TABLE  text
         -->P_SCRTEXT    text
    FORM fill_catalog1  USING   p_fieldname TYPE any
                                p_ref_table TYPE any
                                p_scrtext   TYPE any.
      CLEAR : wa_fld_catalog.
      wa_fld_catalog-fieldname  = p_fieldname.
      wa_fld_catalog-tabname    = p_ref_table.
      wa_fld_catalog-seltext_s  = p_scrtext.
      wa_fld_catalog-seltext_m  = p_scrtext.
      wa_fld_catalog-seltext_l  = p_scrtext.
      wa_fld_catalog-outputlen = 15.
      APPEND wa_fld_catalog TO it_fld_catalog.
    ENDFORM.                    " fill_catalog1
    please tell....

Maybe you are looking for

  • I erased all my cookie history for everything and my hotmail account still won't open. Help?

    I used this support page to erase my history thinking that it would help. http://support.mozilla.com/en-US/kb/Websites%20say%20cookies%20are%20blocked But all it did was allow me to go to the sign in page and then it didn't load my inbox again. all t

  • Advice needed on combining libraries

    Hello. I am about to upgrade to A3 and would like some advice on the best way to accomplish my goal. I have an Iphoto library, and a A2 library. Neither of these is arranged in a date style file system, which is what I would like. Right now they are

  • Installing Oracle 8.1.7 on Red Hat Linux Advanced Server 2.1

    Hello, how the subject says I'd like to install Oracle 8.1.7 on Red Hat Linux Advanced Server 2.1. Can anybody of you say me where to find a good HOWTO/Documentation?? It would be nice if you help me! Konstantin

  • Only display the first character issue

    Hi, I'm using CR 2008 to generate reports. I use oracle database. I use a stored procedure to get data and everything working fine ,it return correct data. I have five details section but i display one details section and i suppress others My issue i

  • Switching to MAC from Windows: How to open files in Office 2007  VMFusion?

    Dear all, Intro: I switched to MAC and now cannot find the solution to a simple problem. First: I need an Office 2007 PowerPoint FULLY compatible solution. What did not work: IWork, NeoOffice, Office 2008 (this is not fully compatible with Office 200