Regarding intrastat inclusion/ exclusion report

Hi,
     In the billing document header data under the for trade  tab and in the declaration there is a field called inclusion/exclusion indicator.some one please explain how this field is given a value.urgent pls.
Thanks In advance

Hi
Hope this helps.
Exclusion/Inclusion indicator for declara. to authorities
Using this indicator, you can control if a document or a document item (SD billing document, MM purchase order) will be excluded from or included in one or more types of declarations to the authorities.
Proceed as follows:
1. Define the inclusion or exclusion indicator. Define for which declaration type an inclusion or exclusion is to take place.
2. Assign the indicator to the document or document item that you want to include in or exclude from a declaration. The assignment takes place in the Foreign Trade data of the document.
3. If you also want to exclude document items with particular item types from a declaration, assign an exclusion indicator to the corresponding item types in Customizing.
Example
You want to define an exclusion indicator that excludes documents from the EXTRASTAT and KOBRA declaration. Create an exclusion indicator and select the "exclusion column" in the definition of exclusion indicators for the EXTRASTAT and KOBRA declaration types.
As soon as this indicator is assigned to a document, this document will not be included in the EXTRASTAT and KOBRA declarations.
Note
Inclusion or exclusion indicators assigned at FT data header level in the document apply to all document items if there is no other indicator at item level.
Thanks
Madhu

Similar Messages

  • Free Goods (Use of Inclusive & Exclusive at the same time)

    Hi Gurrus,
    i have a scenario and i need your help.
    my company has started given free goods to the customers.
    Example,
    if a customer buy 4 PAC of material "A", He should get 1 PAC of Material "A"  and also 8 PAC of Material "B".
    That means I have to use Inclusive and Exclusive at the same time in one order for Material A.
    My requiremet is if the order booker enters 4 PAC of Material in an order so system should generate two sub item lines,
    1 PAC of Material "A" as "TANN" &
    8 PAC of Material "B" as "TANN".
    I have tried to capture this through VBN1 but system is only allowing me to enter either inclusive or exclusive condition record for one material.

    hi,
           ya, it is possible to create free goods for 1:n material for inclusive & exclusive for 2 materials.
    create a sale order  2 material with diff qty.& free goods for 2 diff qty for inclusive & exclusive
    Regards,
    A.sithanandan

  • Product Inclusion/Exclusion for customers on sales orders

    I work in a regulated industry.  To export product outside of US, many international distributors needs to register each material with their goverments, depending on the country.  We currently control this using the inclusion lists for the applicable distributors.  Until now, each distributor operated out of a single country, so we had no issues.
    We now have a situation where we will be drop shipping product on a single distributors sold to account to various ship to locatoins, each with unique registered material lists.
    Is it possible to extend the inclusion to ship to accounts?  As currently configured, It only checks against sold to accounts.

    Hello,
    Is it possible to extend the inclusion to ship to accounts? As currently configured, It only checks against sold to accounts.
    Please note: Listing and exclusion only check against your Sold to account, so it is not required to extend the inclusions or Exclusions to any other partner functions as what ever you have listed or excluded to SP (Sold to party ) will be valid for all other its partners.
    Regards,
    Sridhar.

  • Regarding upgrade of web report\web templates functionalites BW 3.5-BI 7.0

    hi all,
             I m working on a Upgrade study from BW 3.5 to BI 7.0 for Web Templates,web items and java scripts.
    Below is the scenario of the client system:
    New web templates are created from the 6 master web templates available for publishing to a custom Portal (created using BSP and hosted on the WAS). TOOLBAR and FOOTER are custom web templates used in all Master Templates and contain various JavaScript functions and footer code respectively.
    TOOLBAR provides the Toolbar, header and buttons functionalities in the Master Templates via the contained Javascript functions. FOOTER displays the date and time of issue as well the logged in user.
    FOOTER1 and FOOTER2 are web items derived from FOOTER web template. They have different set of web item properties and are used to create web templates used through the custom Portal.
    It is observed from BW Tables that out of 100 unique Web Templates available in the system, 90 are using TOOLBAR template and 95 are using FOOTER template.
    No external Javascript .js files are used in the Web templates. Most of the Javascript functionality is contained in TOOLBAR and no other custom javascript in master templates. However, there are some derived web templates where custom javascript is contained.
    Following is the process to create custom Web Templates in development server that are eventually transported to QA and Production:
    1)     The appropriate master template is identified and saved with new name in developer role.
    2)     Dataprovider is added to corresponding web items.
    3)     From the library, properties are transferred from master template to the custom template.
    4)     Report title is added in HTML tab.
    5)     No changes are needed in the Web Templates Properties except change of value in  “Show Jump Target in” field to the portal Frame ConPortal or _self in case RRI is to be used.
    6)     Some properties like Title, Width in Pixel, Affected Data Provider, etc. needs to be adjusted. Changes can be done to web items seen in Overview tab except the FOOTER and TOOLBAR web items. These web items are saved as reusable components in Library.
    7)     After all the changes the web template created is transported from development server.
    To summarize, all master data for creation of web templates like reusable master templates, web items in library, web templates containing Javascript code are stored in dev. server. Custom web templates created from these are transported.
    I want to validate the sequence of migration as below:
    Following sequence has to be followed for the Web Templates and Queries Migration in development BI 7.0 Server:
    1)     Migrate the Individual BEx Queries first and perform functional testing.
    2)     Migrate the TOOLBAR template manually (create as new in BI 7.0 Toolset) and FOOTER template automatically (using Migration Tool).
    3)     Manually migrate the JavaScript code in TOOLBAR. Please refer to section ..for more details.
    4)     Migrate the library of reusable web items, if any.
          (What to do if web item is custom or is not supported in BI 7.0)
    5)     Migrate the Master Web Templates manually (create as new in BI 7.0 Toolset) and automatically (wherever possible) and perform functional testing.
    6)     Migrate the custom web templates automatically (wherever possible) and manually, if automatic migration is not possible. Perform functional testing and data provider binding.
    7)     Perform jump target binding wherever applicable.
    8)     Transport custom templates, TOOLBAR and FOOTER to QA and Production subsequently.
    Also i have the following questions:
    1. How to migrate functionalities accessed thru web templates like jump queries, general navigation blocks with filter, table interface, and are data providers automatically linked to web items or have to be done manually post migration.
    2. Do we need to migrate the library of reusable web items also.
    3. After migrating the master  web templates and javascript containing templates to BI 7.0, can we migrate automatically the custom webtemplates derived from master templates and containing the custom javascript that is now avaialbe in BI 7.0, will they pick up the custom code automatically.
    thanks in advance
    Regards
    praveen

    No resolution found

  • Regarding the performance in report

    Hi Abap Gurus,
                              i am working on the report. my requirement is that after executing the report data gets extracting after 11 hours.the required data is comonf perfectly.  how to improve the performance. any tips to follow the performance in the report.  if possible post the code.
    Moderator Message: Please search the forum for available information.
    Edited by: kishan P on Oct 19, 2010 4:50 PM

    Hi,
    Please check below thread;
    Extract from ALV List
    Regards
    Jana

  • Question Regarding Crosstab or Matrix Reporting

    Hi,
    I have a Requirement Where I have to Create a Cross-tab Report,
    We use XMLPublisher which is Bundled with R12...
    our ERP version is :12.1.3
    Our XML Publisher is :5.6.3.x.x
    The Requirement Output is
    I have Generate a report which should be a Pivot Report for Every item Entered by the User (it may be one or Multiple Item)
    if one Item is Entered
    I have To list the report as below
    ITEM ID:1234 ITEM DESC: SquarePaper Plate =>Item Detail to be printed on top of the table.. Followed by
    DATE is the Column field for the Crosstab
    ORDER STATUS  is the Row Field( Order Status will be of Five Types( BOOKED,ENTERED,AWAITING_SHIPPING,AWAITING_SHIPPING,SHIPPED,CLOSED) for the Crosstab
    QTY is the Field Data Field  for the Row Field(Order Status)..for the Crosstab
    If More than One Entered
    Then I have to Repeat the Same Logic to Produce Pivot Table for that many Items entered by the User..
    For Cross Tab I have Found this Link by Vetsrini
    http://winrichman.blogspot.com/2008/08/pivot-table-cross-table-with-fixed.html
    I followed his Template and I am Getting the Crosstab Output but I am getting for all the Items as One report,
    I could not get a Logic to Group or ( Repeating Group) by Item and Item Description..
    Please help as I am Stuck at this Logic for almost 3 weeks and I have posted so 4-5 questions on this regards unfortunately No replies..
    Thanks

    Hi, Nagornyi,
    Thanks for the Reply,
    <?if:count(ITEM)=1?>
    CROSSTAB_1
    <?end if?>
    <?if:count(ITEM)>1?>
    CROSSTAB_2
    <?end if?>
    When I use this Method, I am getting this Error..
    ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
    Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    Template: C:\Documents and Settings\aranganathan\Desktop\Currently Working\RTF\tpc_item_count_sum_ver6_test.rtf
    RTFProcessor setLocale: en-us
    FOProcessor setData: C:\Documents and Settings\aranganathan\Desktop\cross_tab_test\tpc_item_count_sample2.xml
    FOProcessor setLocale: en-us
    Output type: MHTML
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
         at RTF2PDF.runRTFto(RTF2PDF.java:629)
         at RTF2PDF.runXDO(RTF2PDF.java:470)
         at RTF2PDF.main(RTF2PDF.java:289)
    Caused by: oracle.xdo.parser.v2.XPathException: Error in expression: './/=1'.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:614)
         ... 15 more
    Also
    My Question was
    For Every ITEM_ID entered by the User, I have to Create Crosstab result grouped by ITEM_ID's
    Say
    if the User Enters one ITEM_ID then
    I should Create the Report as
    ITEM ID : 1234 ITEM_DESC: SQUARE PAPER PLATE -- Heading
    CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
    Say if the ITEM is more than ONE
    ITEM ID : 1234 ITEM_DESC: SQUARE PAPER PLATE -- Heading
    CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
    ITEM ID : 2341 ITEM_DESC: ROUND PAPER PLATE -- Heading
    CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
    ITEM ID : 3421 ITEM_DESC: RECTANGULAR PAPER PLATE -- Heading
    CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
    ITEM ID : 4123 ITEM_DESC: TRANGULAR PAPER PLATE -- Heading
    CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
    Thanks
    once again

  • Intrastat / EC sales reporting for Italy

    Hi all. We have implemented a new company code for italy. Business is now requiring several country specific reporting, namely the intrastat and EC sales reporting. I tried going through some documentation but there are several reports available for intrastat, so i am not getting the whole picture or which report(s) i should be using. Does anyone know the sap note which describes the full intrastat reports or have any similar documentation?
    thanks in advance for your help.

    Hello Simon,
    The below documents might be helpful to you,
    http://www.scmexpertonline.com/downloads/Kees%20Intrastat%20download%201-23-07.doc
    http://www.appliconsolutions.com/fileadmin/filer_solutions/pdf/White_paper/White_Paper_APM__v._2.9.pdf
    http://mbs.microsoft.com/downloads/public/GP10Docs/EnhancedIntrastat.pdf
    This is the last one for oracle,
    http://download.oracle.com/docs/cd/A60725_05/pdf/gemmsin.pdf
    br,
    Pushkar

  • Regarding Customer Payment Summary report

    Hi Gurus,
    FI -AR:
    in Customer Payment Summary report we have key figures like Arrears with cash discount and Arrears with out cash discount along with key figures Payement with cash discount and payment without cash discount.
    Could some one explain about what does the meaning of Arrears with cash discount and Arrears with out cash discount key figures.
    Regards,
    Kotesh

    The report looking like as bellow.
              Paymt w. Cash Discnt     Arrears w Cash Disct     Paymnt w/o Cash Dist     Arrears w/o Cash Dct
    Company
    code     Customer     £                      £     
    2000     2001     0.00                                        0                                              5,104.93     152
    2000     2002     0.00                                       0                                             3,272.46         0
    2000     2002     49,609.74                                      12                                               0.00        0
    2000     4999     2,637.88                                     29                                               0.00        0
    Thanks in advance.
    Regards,
    Kotesh

  • Regarding the simple ALV report

    Hi All,
    I created the simple code for disply of the alv report the code is provided below,but the output is showing only the column heading not the data in the grid, i won't came to know where the problem is please find the problem in the code.
    Regards
    Sai
    ********sample code**********
    type-pools : slis.
    data : b_display type slis_t_fieldcat_alv,
           w_display type slis_fieldcat_alv.
    data : begin of itab_display occurs 0,
            kunnr type kna1-kunnr,
            name1 type kna1-name1,
            end of itab_display.
    data : gd_repid like sy-repid.
          itab_display-name1 = 'ram'.
          itab_display-kunnr = '10000033242'.
          append itab_display.
          clear itab_display.
          itab_display-name1 = 'sai'.
          itab_display-kunnr = '10000033243'.
          append itab_display.
          clear itab_display.
       w_display-col_pos = 0.
       w_display-fieldname = 'name1'.
       w_display-seltext_m = 'name'.
       append w_display to b_display.
       clear w_display.
       w_display-col_pos = 1.
       w_display-fieldname = 'kunnr'.
       w_display-seltext_m = 'cus.no'.
       append w_display to b_display.
       clear w_display.
    gd_repid  = sy-repid.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_CALLBACK_PROGRAM  = gd_repid
      IT_FIELDCAT       = b_display[]
      I_SAVE            = 'X'
      TABLES
        t_outtab       =  itab_display.

    Hi,
    Please use the following code.
    type-pools : slis.
    data : b_display type slis_t_fieldcat_alv,
    w_display type slis_fieldcat_alv.
    data : begin of itab_display occurs 0,
    kunnr type kna1-kunnr,
    name1 type kna1-name1,
    end of itab_display.
    data : gd_repid like sy-repid.
    itab_display-name1 = 'ram'.
    itab_display-kunnr = '10000033242'.
    append itab_display.
    clear itab_display.
    itab_display-name1 = 'sai'.
    itab_display-kunnr = '10000033243'.
    append itab_display.
    clear itab_display.
    w_display-col_pos = 0.
    w_display-fieldname = 'NAME1'.
    w_display-tabname = ITAB_DISPLAY.
    w_display-seltext_m = 'Name'.
    w_display-ddictxt   = 'M'.
    append w_display to B_DISPLAY.
    w_display-col_pos = 1.
    w_display-fieldname = 'KUNNR'.
    w_display-tabname = ITAB_DISPLAY.
    w_display-seltext_m = 'cus.no'.
    w_display-ddictxt   = 'M'.
    append w_display to B_DISPLAY.
    gd_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = gd_repid
    IT_FIELDCAT = b_display[]
    I_SAVE = 'X'
    TABLES
    t_outtab = itab_display[].
    Regards,
    Sankar.

  • Regarding MD04, Stock requirement Report

    Hi SAP Guru,
                              Hi Sir I am running MRP for the 05 finished material. All the Finished material has some material common and and Semi-finsief  also.Lot SIze for the SFG and raw material are FZ and safety stock maintained,MRP type-PD.
    Now after running MRP in MD04  report.Some of the material which are common in BOM are being being display no of times in Order tree.Couls you please explain it did so
    Regard
    Bhupendra

    Dear Sir,
    I ahve sechduiling agrrement which is being generating daily. Some of the BOM componenet exploded multiples times. I dont know why this happening although it is not affecting the overall requiremment but still client deman
    In my case me of the Semi-finshed of the BOM component multiples times
    Regard
    Bhupendra Singh
    Edited by: Bhupendrasingh on Sep 7, 2011 11:25 AM

  • Regarding settings in standrad report "s_alr_87012277"

    Dear Guru's,
    Presently we are using new version 6.0, in that i am facing a problem in the report "s_alr_87012277",This is for G/L account balances.
      when they are 2 values for one g/l account with separate business area,their total should be calculated in that column itself ,prevously in 4.7ee it was taking.
    wat r the layout screens we should take ,pls help me out..
    Thanks in advance,
    cherukuri

    Hi
    If opening balaces are not correct it seems that year-end closure is not complete. Ensure that year-end closure is complete. Further note that prior to the year-end closure the month-end process should be carried out.
    I find FS10n gives a better view option (for individual a/c analysis) than the report you've mentiones as FS10n shows Bal carried forward as a spereate line.
    Regards
    Nadini

  • Regarding Aging / Net dues report another way

    Hi,
    I have seen aging report for customer in SAP B1, its okay but not serve my purpose. i want this report little difference.
    when i run this report system will ask to put the date and all customer will show.
    example for one customer below:
    i put the date 15-01-2011 then Net Dues will show like below:
    Customer name--   Date      -Ivoice Num  Invoice AmtDue days--
      Balance
    ABC--01/01/2011INV001 1000--
    14     
    ABC      -
    03/01/2011-- INV002  4000--
    12     
    ABC -
    07/01/2011-- INV003 5000--
    8     
    ABC-- 15/01/2011 INV004  80001--
      18000
    Now, Incoming payment made on 16-01-2011 amt     4500     
    now i want to see net dues on 16-01-2011, it should come like below;
    Customer name--   Date      -Ivoice Num  Invoice AmtDue days--
      Balance
    ABC      -
    03/01/2011-- INV002  500--
    13     
    ABC -
    07/01/2011-- INV003 5000--
    9     
    ABC-- 15/01/2011 INV004  80002--
      13500
    look what has happened, INV001 has paid fully and INV002 has partial paid. ( 4500-1000-3500=500 for inv002)
    if it is possible to make query report please help me about this.
    Regards,
    Mizan
    Edited by: mizan700 on Apr 25, 2011 4:50 PM

    Hi Zal,
    Thanks for your hard work.
    please see the link below  and which i have marked red color. actually i want to know   Bangladesh Lamps Ltd total balance due is 2071528.90. against which Invoice.
    http://www.sendspace.com/file/cy9j92
    Below is my SQL query
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    -- =============================================
    -- Author:          <Mizan>
    -- Create date:      <26  Apr 2011>
    -- =============================================
    ALTER PROCEDURE [dbo].[@BGWL_NetDues]
         (@Age DATETIME)
    AS
    BEGIN
    --DECLARE @Cardcode varchar(12)
    --DECLARE @Cardname     varchar(50)
    --DECLARE @CardFName     varchar(100)
    --DECLARE @Itemcode     Varchar (8)
    --DECLARE @Dscription     varchar(100)
    --DECLARE @Quantity     FLOAT
         SET NOCOUNT ON;
         IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE NAME ='Temp_NetDues')
    Drop table Temp_Netdues
    CREATE TABLE Temp_Netdues (Cardname varchar(100),
    DocNum int, InvDate datetime, Days int, InvAmt Float, Balance FLOAT )
    INSERT INTO Temp_Netdues
    Select A.Customer [Name of Customer], A.DocNum [Invoice#], A.InvDt [Date],
    datediff(dd, A.InvDt, @Age) [Days],
    A.InvAmt [Invoice Amount],A.[balance] from
    SELECT  T0.[CardCode], max(T0.[CardName]) [Customer], T0.[DocNum],
    max(T0.[DocDate]) [InvDt], T0.[DocDueDate], T0.[DocTotal], T0.[PaidToDate],
    Doctotal - paidtodate [InvAmt], 0 as balance
    FROM OINV T0 where datediff(dd, T0.[DocDate], @Age)>0
    group by cardcode, docnum, docduedate, doctotal, paidtodate
    having ((doctotal -paidtodate) > 0)
    union all
    SELECT  T0.[CardCode], max(T0.[CardName]) [Customer], 0 as [DocNum],
    '' as  [InvDt],  '' as DocDueDate, 0 as [DocTotal],0 as [PaidToDate],
    0  as [InvAmt],T1.balance  [Balance]
    FROM OINV T0 , OCRD T1 where datediff(dd, T0.[DocDate], @Age)>0 and
    T1.[CardCode]=T0.[CardCode]
    group by T0.cardcode,T0.[CardName],T1.balance
    having ((sum(doctotal) ) > 0)
    ) A
    order by  [Name of Customer],[Invoice Amount] desc
    update Temp_Netdues set InvDate='', days=0 where docnum=''
    --delete  from Temp_NetDues where docnum=''
    SELECT  *  FROM Temp_Netdues   order by Cardname,Balance asc
    END
    Regards,
    Mizan
    Edited by: mizan700 on Apr 26, 2011 2:44 PM

  • Regarding performance of a report

    Hi friends,
    In the loop statement I am using modify statement for updating the data in the internal table .
    I have to improve the performance of a report.
    is there any alternative for Improving teh performance.,
    Regards,
    Jayan

    HI
    If u r modifying Ztable no probelm  because we will be having small amount of data .
    IF u r updating standard table Do like below .
    First collect all the records which you want to update to table into one internal table .
    Then update the table with that internal table ..
    IT will be better when you are updating standard table .
    I think this will  help you ..
    If u r not understood copy paste ur code i can solve ur probelm ...

  • Regarding conversion of PDF Reports into .XLS or .XLSX format report in SAP MII

    Hi,
    Is there any way out within the scope of SAP MII to convert PDF Reports into .XLS or .XLSX formatted output.
    It is possible to convert PDF Reports into .CSV format through SAP MII, but I am not sure about .XLS format.
    Can anyone help me doing this?

    Hi Sue,
    I would like to assist! I just reached out to you directly. It will come from: [email protected]
    Let's see what we can figure out!
    Kind regards, Stacy

  • Regarding collect statement - Production report

    Dear Experts,
    I've the following requirement
    A ) I'm creating a ALV report from Z table where i want the summary of the qty across different processing type like CT , ST , WS  & FG .
    B ) For each processing types i want the total qty to be displayed in different columns.
    C ) When i'm trying to execute , no data is displaying..
    Piece of coding is as below..  Request help to clear the below issue..
    REPORT  ZPP_PRD_REPORT.
    TABLES : ZPP_ACTUAL_PRD.
    TYPES : BEGIN OF TY_ACTUAL_PRD,
             KDAUF TYPE KDAUF,
             KDPOS TYPE KDPOS,
             WERKS TYPE WERKS_D,
             PROCTYP TYPE ZDE_PP_PROCTYP,
             AUFNR TYPE AUFNR,
             MEINS TYPE MEINS,
       END OF TY_ACTUAL_PRD.
       TYPES : BEGIN OF TY_FINAL,
             KDAUF TYPE KDAUF,
             KDPOS TYPE KDPOS,
             WERKS TYPE WERKS_D,
             PROCTYP TYPE ZDE_PP_PROCTYP,
             AUFNR TYPE AUFNR,
             MEINS TYPE MEINS,
         END OF TY_FINAL.
       DATA : GT_ACTUAL_PRD TYPE TABLE OF TY_ACTUAL_PRD,
              GS_ACTUAL_PRD TYPE TY_ACTUAL_PRD,
              GT_ACTUAL_PRD_COLLECT TYPE TABLE OF TY_ACTUAL_PRD.
       DATA : GT_FINAL TYPE TABLE OF TY_FINAL,
              GS_FINAL TYPE TY_FINAL.
        DATA : GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
               GS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
          DATA : GT_EVENTS TYPE SLIS_T_EVENT.
           DATA : GD_LAYOUT TYPE SLIS_LAYOUT_ALV.
           DATA : GS_REPID LIKE SY-REPID.
      SELECT-OPTIONS : S_KDAUF FOR ZPP_ACTUAL_PRD-KDAUF,
                        S_KDPOS FOR ZPP_ACTUAL_PRD-KDPOS.
      START-OF-SELECTION.
                     PERFORM GET_DATA.
                     PERFORM POPULATE_DATA1.
    *&      Form  GET_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM GET_DATA .
       SELECT
              KDAUF
              KDPOS
              WERKS
              PROCTYP
              AUFNR
              MEINS
    FROM ZPP_ACTUAL_PRD INTO TABLE GT_ACTUAL_PRD WHERE KDAUF IN S_KDAUF AND
                                                  KDPOS IN S_KDPOS.
    ENDFORM.                    " GET_DATA
    *&      Form  POPULATE_DATA1
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM POPULATE_DATA1 .
       LOOP AT GT_ACTUAL_PRD INTO GS_ACTUAL_PRD.
         GS_FINAL-KDAUF = GS_ACTUAL_PRD-KDAUF.
         GS_FINAL-KDPOS = GS_ACTUAL_PRD-KDPOS.
         GS_FINAL-WERKS = GS_ACTUAL_PRD-WERKS.
         GS_FINAL-PROCTYP = GS_ACTUAL_PRD-PROCTYP.
         GS_FINAL-AUFNR = GS_ACTUAL_PRD-AUFNR.
         GS_FINAL-MEINS = GS_ACTUAL_PRD-MEINS.
       COLLECT GS_ACTUAL_PRD INTO GT_ACTUAL_PRD_COLLECT.
    ENDLOOP.
    ENDFORM.                    " POPULATE_DATA1
    *&      Form  BUILD_FIELDCATALOG
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM BUILD_FIELDCATALOG .
       GS_FIELDCAT-FIELDNAME = 'KDAUF'.
       GS_FIELDCAT-SELTEXT_M = 'SALESORDER'.
       GS_FIELDCAT-OUTPUTLEN = 10.
       GS_FIELDCAT-DO_SUM = 'X'.
       GS_FIELDCAT-NO_ZERO = 'X'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-FIELDNAME = 'KDPOS'.
       GS_FIELDCAT-SELTEXT_M = 'SALESITEM'.
       GS_FIELDCAT-OUTPUTLEN = 10.
       GS_FIELDCAT-DO_SUM = 'X'.
       GS_FIELDCAT-NO_ZERO = 'X'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-FIELDNAME = 'WERKS'.
       GS_FIELDCAT-SELTEXT_M = 'PLANT'.
       GS_FIELDCAT-OUTPUTLEN = 10.
       GS_FIELDCAT-DO_SUM = 'X'.
       GS_FIELDCAT-NO_ZERO = 'X'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-FIELDNAME = 'PROCTYP'.
       GS_FIELDCAT-SELTEXT_M = 'TYPE'.
       GS_FIELDCAT-OUTPUTLEN = 10.
       GS_FIELDCAT-DO_SUM = 'X'.
       GS_FIELDCAT-NO_ZERO = 'X'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
    GS_FIELDCAT-FIELDNAME = 'AUFNR'.
       GS_FIELDCAT-SELTEXT_M = 'ORDER'.
       GS_FIELDCAT-OUTPUTLEN = 10.
       GS_FIELDCAT-DO_SUM = 'X'.
       GS_FIELDCAT-NO_ZERO = 'X'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-FIELDNAME = 'MENGE'.
       GS_FIELDCAT-SELTEXT_M = 'QTY'.
       GS_FIELDCAT-OUTPUTLEN = 10.
       GS_FIELDCAT-DO_SUM = 'X'.
       GS_FIELDCAT-NO_ZERO = 'X'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
    ENDFORM.                    " BUILD_FIELDCATALOG
    *&      Form  ALV_DISPLAY
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM ALV_DISPLAY .
       GS_REPID = SY-REPID.
       IF GS_REPID IS NOT INITIAL.
         CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
             I_CALLBACK_PROGRAM = GS_REPID
             IT_FIELDCAT        = GT_FIELDCAT[]
             IT_EVENTS          = GT_EVENTS[]
             I_SAVE             = 'A'
             I_DEFAULT          = 'X'
           TABLES
             T_OUTTAB           = GT_ACTUAL_PRD_COLLECT
           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.
       ENDIF.
    ENDFORM.                    " ALV_DISPLAY
    Z Data base table looks as below..
    Best rgds/thnks,
    Srikanth.

    Hi  Sankara ,
        Collect statement is used to add all the numeric components to the corresponding values of all the existing rows in an internal table , with the same key . The data type can be I , P , F .
        Please ensure that there is a comman value  in all the rows .
       check this out and let me know if any issues
    Regards,
    Kavitha

Maybe you are looking for

  • Exporting from CS4 doesn't work.

    I edited together some footage, exported using Media Encoder as h.264. The progress bar reaches the end and then nothing. The status remains as "Encoding". In my export folder there is a .m4v file that is 2.68 GB, and .aac file that is 172 MB and a .

  • Extracting x,y co-ordinates of SDO_GEOMETRY into two variables say x1, ya

    Hi All, I am able to store the output SDO_GEOMETRY into a variable but i am facing difficulties in extracting ordinates in sdo_geometry to two independent variables say xa, ya. Kindly suggest some solution. The procedure is as follows: CREATE OR REPL

  • Article preview not working in iPhone App

    I have free articles available for preview before you hit a paywall and have to pay for the app. This works fine in my universal app on ipad, but on iphone the preview button does not appear. Please help

  • Character Palette no longer works properly

    I use the character palette frequently and it worked beautifully in 10.4.4, especially in Keynote. Now I can not use Math symbols unless I select the symbol font. Before the symbol would appear when I double clicked it in the palette window regardles

  • Search on Chinese Characters

    Hi, I have problem with running a query where I search for records using the "like" clause. The data is in Chinese and search is inconsistent. The records are sometimes displayed right with certain like criteria where as they fail with the others. An