Material Type Vs Sales report.. Urgent

my client requires materail type vs sales report for particaular period... is there any standard report for these.. or how can we do with a ABAPer.. wat fields we have give to ABAper.... to get the report....
Kiran

Hi Kiran,
Please find the herewith the SAP SD Standard Reports.
Reports: Reports consist of data, which is expected to be reveiwed or checked the transaction taken in said period. Reports are useful for analysis of decision taking for future activities.
Some of the standard reports for SD & its configuration guide is as under:
Standard SAP SD Reports:=
Statistic Group:
Purpose – To capture data for Standard Reports, we require to activate Statistic Group as under:
--> Item category (Configuration)
--> Sales document type (Configuration)
--> Customer (Maintain in Master data)
--> Material (Maintain in Master data)
When you generate statistics in the logistics information system, the system uses the combination of specified statistics groups to determine the appropriate update sequence. The update sequence in turn determines for exactly which fields the statistics are generated.
Configuration:
IMG --> Logistics Information System (LIS) --> Logistics Data Warehouse --> Updating --> Updating Control --> Settings: Sales --> Statistics Groups -->
1. Maintain Statistics Groups for Customers
2. Maintain Statistics Groups for Material
3. Maintain Statistics Groups for Sales Documents
4. Assign Statistics Groups for Each Sales Document Type
5. Assign Statistics Groups for each Sales Document Item Type.....
All Standard Reports which are available are as under:
SAP Easy Access: Information Systems -> Logistics -> Sales and distribution ->
1. Customer -> Incoming orders / Returns / Sales / Credit memos / Sales activities / Customer master / Conditions / Credit Master Sheet
2. Material -> Incoming orders / Returns / Sales / Credit memos / Material master / ...
3. Sales organization -> Sales organization / Sales office / Sales employee
4. Shipping point -> Deliveries / Returns
5. SD documents -> Orders / Deliveries / Billing documents ...
& so on.
Some of the Standard reports in SD are:
Sales summary - VC/2
Display Customer Hierarchy - VDH2
Display Condition record report - V/I6
Pricing Report - V/LD
Create Net Price List - V_NL
List customer material info - VD59
List of sales order - VA05
List of Billing documents - VF05
Inquiries list - VA15
Quotation List - VA25
Incomplete Sales orders - V.02
Backorders - V.15
Outbound Delivery Monitor - VL06o
Incomplete delivery - V_UC
Customer Returns-Analysis - MC+A
Customer Analysis- Sales - MC+E
Customer Analysis- Cr. Memo - MC+I
Deliveries-Due list - VL04
Billing due list - VF04
Incomplete Billing documents - MCV9
Customer Analysis-Basic List - MCTA
Material Analysis(SIS) - MCTC
Sales org analysis - MCTE
Sales org analysis-Invoiced sales - MC+2
Material Analysis-Incoming orders - MC(E
General- List of Outbound deliveries - VL06f
Material Returns-Analysis - MC+M
Material Analysis- Invoiced Sales - MC+Q
Variant configuration Analysis - MC(B
Sales org analysis-Incoming orders - MC(I
Sales org analysis-Returns - MC+Y
Sales office Analysis- Invoiced Sales - MC-E
Sales office Analysis- Returns - MC-A
Shipping point Analysis - MC(U
Shipping point Analysis-Returns - MC-O
Blocked orders - V.14
Order Within time period - SD01
Duplicate Sales orders in period - SDD1
Display Delivery Changes - VL22
Please Reward If Really Helpful,
Thanks and Regards,
Sateesh.Kandula

Similar Messages

  • Material type vs sales  report

    my client requires materail type vs sales report for particaular period... is there any standard report for these.. or how can we do with a ABAPer.. wat fields we have give to ABAper.... to get the report....
    Kiran

    Hi,
    You might get more help by posting this on the SD board as well.
    Steve B

  • Standard Sales report :: Urgent!!

    Hi all,
    Is there any standard report that can display Product sold in different sales disctricts??
    Thanks,
    Utpal

    Hi UNP,
    You have to delevop the Reports based on the Requirements.
    Reports: Reports consist of data, which is expected to be reveiwed or checked the transaction taken in said period. Reports are useful for analysis of decision taking for future activities.
    Some of the standard reports for SD & its configuration guide is as under:
    Standard SAP SD Reports:=
    Statistic Group:
    Purpose – To capture data for Standard Reports, we require to activate Statistic Group as under:
    --> Item category (Configuration)
    --> Sales document type (Configuration)
    --> Customer (Maintain in Master data)
    --> Material (Maintain in Master data)
    When you generate statistics in the logistics information system, the system uses the combination of specified statistics groups to determine the appropriate update sequence. The update sequence in turn determines for exactly which fields the statistics are generated.
    Configuration:
    IMG --> Logistics Information System (LIS) --> Logistics Data Warehouse --> Updating --> Updating Control --> Settings: Sales --> Statistics Groups -->
    1. Maintain Statistics Groups for Customers
    2. Maintain Statistics Groups for Material
    3. Maintain Statistics Groups for Sales Documents
    4. Assign Statistics Groups for Each Sales Document Type
    5. Assign Statistics Groups for each Sales Document Item Type.....
    All Standard Reports which are available are as under:
    SAP Easy Access: Information Systems -> Logistics -> Sales and distribution ->
    1. Customer -> Incoming orders / Returns / Sales / Credit memos / Sales activities / Customer master / Conditions / Credit Master Sheet
    2. Material -> Incoming orders / Returns / Sales / Credit memos / Material master / ...
    3. Sales organization -> Sales organization / Sales office / Sales employee
    4. Shipping point -> Deliveries / Returns
    5. SD documents -> Orders / Deliveries / Billing documents ...
    & so on.
    Some of the Standard reports in SD are:
    Sales summary - VC/2
    Display Customer Hierarchy - VDH2
    Display Condition record report - V/I6
    Pricing Report - V/LD
    Create Net Price List - V_NL
    List customer material info - VD59
    List of sales order - VA05
    List of Billing documents - VF05
    Inquiries list - VA15
    Quotation List - VA25
    Incomplete Sales orders - V.02
    Backorders - V.15
    Outbound Delivery Monitor - VL06o
    Incomplete delivery - V_UC
    Customer Returns-Analysis - MC+A
    Customer Analysis- Sales - MC+E
    Customer Analysis- Cr. Memo - MC+I
    Deliveries-Due list - VL04
    Billing due list - VF04
    Incomplete Billing documents - MCV9
    Customer Analysis-Basic List - MCTA
    Material Analysis(SIS) - MCTC
    Sales org analysis - MCTE
    Sales org analysis-Invoiced sales - MC+2
    Material Analysis-Incoming orders - MC(E
    General- List of Outbound deliveries - VL06f
    Material Returns-Analysis - MC+M
    Material Analysis- Invoiced Sales - MC+Q
    Variant configuration Analysis - MC(B
    Sales org analysis-Incoming orders - MC(I
    Sales org analysis-Returns - MC+Y
    Sales office Analysis- Invoiced Sales - MC-E
    Sales office Analysis- Returns - MC-A
    Shipping point Analysis - MC(U
    Shipping point Analysis-Returns - MC-O
    Blocked orders - V.14
    Order Within time period - SD01
    Duplicate Sales orders in period - SDD1
    Display Delivery Changes - VL22
    Please Reward If Really Helpful,
    Thanks and Regards,
    Sateesh.Kandula

  • Material Group-wise Sales Report

    I want to generate Sales Report Material Group-wise is there any standard report.
    regards,
    Rajesh

    Hi Vinod,
    MB52 is giving stock of Material on Hand, I want sales report.
    regards
    Rajesh

  • Issue in selecting material types as a saleable material

    I have created different material types for finished good , like finished good, trading goods , physician sample , imported physician sample and promo materials.
    i want at the time of sales all above types of material should be available for sale.
    kindly help me out that how can i restrict system to sale only these material types.

    Hi shadab
    For the material types you want to sell stocks update the value and quantity and value in OMS2 for the plant where as for the material types which you don't wont to sell the stock don't update the quantity and value in OMS2 for the plant.Secondly for the material types which you don't want to sell the stock also don't maintain any stock.
    But if you want all above material types for sale then maintain stock to create sales order and in OMS2 also update the quantity and value for the plant
    Regards
    Srinath

  • ZPAK material type

    Hi Experts
    When I extend the packaging material (material : carton, ZPAK : material type)  to new plant with new values, the changes are applying to the previous plants as well.
    For Ex: I tried changing the values for packaging material type in sales general/plant view for a particular plant, but it was happening across all plant.
    Any suggestions how can we controll at plant level?
    Rgds
    Ram

    Hi,
    There are certain field in material master which are not plant specific (these are set at client level).
    Packaging material type is one of such field which is not plant specific.
    So when u2013 ever you will change this value in one plant it will get automatically changed for all other plants.
    Hope this will be helpful
    Award points if helpful
    Regards,

  • SAP report for movement type and material type

    Hi!
    I would like to use a standard SAP report to give me a list of all the movement types (much like MB51) but instead of material I would like to select on Material type e.g. ROH. The result should for example be a list of the movement types 501 on material type ROH.
    It is urgent, if you could help me I would be very greatful!
    Sincerely
    Anders Öhrling

    Thanks for your answer!
    I have managed to join the two tables and created a report that will work, except that the amounts in local currency that is given by movement type 201 is not negative (as in MB51). I need all movement types that generate a debit must be shown as a negative value. Wo when I summarize all the movement types I end up with the value of 101 minus 201.
    Is that possible without ABAP programming?
    Sincerely Anders Öhrling

  • Urgent: sales report

    Hi All,
    I want to devlop a sales report,
    please can any one explain me how to write select and go ahead
    the requiremnet is like this
    Based on selection criteria
    Sales organisation (VBRK-VKORG),
    Distribution channel (VBRK-VTWEG),
    Division (VBRK_SPART),
    Billing date(VBRK-ERDAT),
    Customer (VBRK-KUNAG),
    plant (VBRP-WERKS), and
    Material Group1(VBRP-MVGR1).
    Check if VBRK-FKSTO # X, VBRK-RFBSK = C, VBRK-FKART #S1 and S2, take all VBRK-VBELNs (Print in Invoice number ).
    VBRK-ERDAT(Print in Invoice Date).
    Pass VBRK-VBELN to VBRP-VBELN and check for every VBRP-MVGR1 pass VBRP-POSNR to KONV-KPOSN and
    For KONV-KSCHL =’ZPTS” sum all KONV-KWERT and display(PTS value).
    For KONV-KSCHL =”YNRV” sum all KONV-KWERT and display(NRV Value).
    thanks in advacne
    points will be rewarded if it is use full
    jay

    Hi,
    Refer this code.
    REPORT  z_daily_sales
            NO STANDARD PAGE HEADING
            MESSAGE-ID sabapdocu.
                          TABLES                                         *
    TABLES : vbak,                              "Sales Document: Header Data
             tfacs,                             "Factory calendar (display)
             vbrk,                              "Billing: Header Data
             vbrp,                              "Billing: Item Data
             vbpa,                              "Sales Document: Partner
             lips,                              "SD doc: Delivery: Item data
             mkpf,                              "Header: Material Document
             mseg,                              "Document Segment: Material
             konv.                              "Conditions (Trans Data)
                          CONSTANTS                                      *
    CONSTANTS : c_top_of_page(15) TYPE c VALUE 'SUB_TOP_OF_PAGE'.
                          TYPE-POOL                                      *
    TYPE-POOLS : slis. "Global types for generic cunning building blocks
                          VARIABLES                                      *
    DATA : v_repid    TYPE sy-repid,             "Report ID
           v_month(2) TYPE c,                    "Variable for Month
           v_year(4)  TYPE c,                    "Variable for year
           v_days(31) TYPE c,                    "Variable for days
           v_ship(10) TYPE c VALUE 0,            "Variable for total days
           v_jan(31)  TYPE c,                    "Variable for month
           v_count(2) TYPE c VALUE 0,            "Variable for count
           v_wdays(2) TYPE c VALUE 0,            "Variable for working days
           v_ndays(2) TYPE c VALUE 0,            "Variable for non work days
           v_tdays(2) TYPE c VALUE 0,            "Variable for total days
           v_oltot    TYPE i VALUE 0,            "Variable for order total
           v_sotot    TYPE i VALUE 0,            "Variable for special order
           v_corebus  TYPE kzwi2 VALUE 0,        "Variable for core bus
           v_onbulk   TYPE kzwi2 VALUE 0,        "Variable for bulk orders
           v_premier  TYPE kzwi2 VALUE 0,        "Variable for premier prog
           v_shipit   TYPE kzwi2 VALUE 0,        "Variable for ship it prog
           v_onpromo  TYPE kzwi2 VALUE 0,        "Variable for on promo
           v_netrev   TYPE kzwi2 VALUE 0,        "Variable for net rev
           v_storev   TYPE kzwi2 VALUE 0,        "Variable for store rev
           v_connet   TYPE kzwi2 VALUE 0,        "Variable for consignment
           v_sporder  TYPE kzwi2 VALUE 0,        "Variable for special order
           v_stdvd    TYPE kzwi2 VALUE 0,        "Variable for dvd
           v_totrev   TYPE kzwi2 VALUE 0,        "Variable for total rev
           v_totbud   TYPE kzwi2 VALUE 0,        "Variable for total budget
           v_ordsize  TYPE kzwi2 VALUE 0.        "Variable for order size
                          TYPES                                          *
    *--Structure for VBRP Table
    TYPES : BEGIN OF t_vbrp,
            vbeln  TYPE vbeln,                  "Billing document
            fkdat  TYPE fkdat,                  "Billing date
            fktyp  TYPE fktyp,                  "Billing category
            fkart  TYPE fkart,                  "Billing type
            vtweg  TYPE vtweg,                  "Distribution channel
            knumv  TYPE knumv,                  "Number of doc condition
            posnr  TYPE posnr,                  "Billing item
            matnr  TYPE matnr,                  "Material Number
            werks  TYPE werks_d,                "Plant
            vgbel  TYPE xblnr,                  "Referance
            vgbel1 TYPE vgbel,                  "Doc no reference document
            kzwi2  TYPE kzwi2,                  "Subtotal 2
            wavwr  TYPE wavwr,                  "Cost in document currency
            kunnr  TYPE kunnr,                  "Customer
            END OF t_vbrp,
    *--Structure for MKPF Table
            BEGIN OF t_mkpf,
            fkdat TYPE fkdat,                   "Billing date
            mblnr TYPE mblnr,                   "Number of material document
            mjahr TYPE mjahr,                   "Material doc. year
            xblnr TYPE xblnr,                   "Referance
            kunnr  TYPE kunnr,                  "Customer
            END OF t_mkpf,
    *--Structure for MSEG Table
            BEGIN OF t_mseg,
            fkdat TYPE fkdat,                   "Billing date
            mblnr TYPE mblnr,                   "Number of material document
            mjahr TYPE mjahr,                   "Material doc. year
            bwart TYPE bwart,                   "Movement type
            sobkz TYPE sobkz,                   "Special Stock indicator
            dmbtr TYPE dmbtr,                   "Amount in local currency
            kunnr TYPE kunnr,                   "Customer
            matnr TYPE matnr,                   "Material Number
            werks TYPE werks_d,                 "Plant
            END OF t_mseg,
    *--Structure for LIPS Table
            BEGIN OF t_lips,
            vbeln TYPE vbeln_vl,                "Delivery
            fkdat TYPE fkdat,                   "Billing date
            knumv TYPE knumv,                   "Number of doc condition
            matnr TYPE matnr,                   "Material Number
            werks TYPE werks_d,                 "Plant
            bwart TYPE bwart,                   "Movement type
            kzwi2 TYPE kzwi2,                   "Subtotal 2
            lfimg TYPE lfimg,                   "Quantity
            END OF t_lips,
    *--Structure for VBAK Table
            BEGIN OF t_vbak,
            erdat TYPE erdat,                   "Created On
            vbeln TYPE vbeln_va,                "Delivery
            auart TYPE auart,                   "Sales document type
            vtweg TYPE vtweg,                   "Distribution channel
            knumv TYPE knumv,                   "Number of doc condition
            END OF t_vbak,
    *--Structure for KONV Table
            BEGIN OF t_konv,
            knumv TYPE knumv,                   "Number of doc condition
            kschl TYPE kscha,                   "Condition type
            kbetr TYPE kbetr,                   "Rate
            END OF t_konv,
    *--Structure for DUMMY Table
            BEGIN OF t_dummy,
            fkdat TYPE fkdat,                   "Billing date
            matnr TYPE matnr,                   "Material Number
            bwart TYPE bwart,                   "Movement type
            kbetr TYPE kzwi2,                   "Net value of billing item
            END OF t_dummy,
    *--Structure for NDAY table
            BEGIN OF t_nday,
            erdat   TYPE erdat,                 "Created On
            flag(1) TYPE c,                     "Flag
            END OF t_nday,
    *--Structure for TFACS Table
            BEGIN OF t_tfacs,
            ident TYPE wfcid,                   "Factory calendar ID
            jahr  TYPE kjahr,                   "Fiscal Year
            mon01 TYPE mon00,                   "Calendar: Days in a month
            mon02 TYPE mon00,                   "Calendar: Days in a month
            mon03 TYPE mon00,                   "Calendar: Days in a month
            mon04 TYPE mon00,                   "Calendar: Days in a month
            mon05 TYPE mon00,                   "Calendar: Days in a month
            mon06 TYPE mon00,                   "Calendar: Days in a month
            mon07 TYPE mon00,                   "Calendar: Days in a month
            mon08 TYPE mon00,                   "Calendar: Days in a month
            mon09 TYPE mon00,                   "Calendar: Days in a month
            mon10 TYPE mon00,                   "Calendar: Days in a month
            mon11 TYPE mon00,                   "Calendar: Days in a month
            mon12 TYPE mon00,                   "Calendar: Days in a month
            END OF t_tfacs,
    *--Structure for shipping days table.
            BEGIN OF t_ship,
            title(35) TYPE c,                   "Title
            days(10)  TYPE c,                   "Days
            END OF t_ship,
    *--Structure for Final Table
            BEGIN OF t_final,
            erdat   TYPE erdat,                 "Date
            oltot   TYPE i,                     "Online Order total
            sotot   TYPE i,                     "Special Order Total
            corebus TYPE kzwi2,                 "ECS Online Promo Rev
            onbulk  TYPE kzwi2,                 "ECS online Bulk Orders
            premier TYPE kzwi2,                 "MSFT Premier Program
            shipit  TYPE kzwi2,                 "MSFT online shipit program
            onpromo TYPE kzwi2,                 "MSFT online promo rev
            netrev  TYPE kzwi2,                 "MSFT/Xbox Consignment
            storev  TYPE kzwi2,                 "MSFT Retail Store promo rev
            connet  TYPE kzwi2,                 "MSFT Retail Consign net rev
            sporder TYPE kzwi2,                 "Special order revenue
            stdvd   TYPE kzwi2,                 "Traveling Store/DVD
            totrev  TYPE kzwi2,                 "Total ECS Revenue
            totbud  TYPE kzwi2,                 "Total ECS Budget
            ordsize TYPE kzwi2,                 "Avg online order size
            END OF t_final,
    *--Structure for Total Table
            BEGIN OF t_total,
            title(10) TYPE c,                   "Date
            oltot     TYPE i,                   "Online Order total
            sotot     TYPE i,                   "Special Order Total
            corebus   TYPE kzwi2,               "ECS Online Promo Rev
            onbulk    TYPE kzwi2,               "ECS online Bulk Orders
            premier   TYPE kzwi2,               "MSFT Premier Program
            shipit    TYPE kzwi2,               "MSFT online shipit program
            onpromo   TYPE kzwi2,               "MSFT online promo rev
            netrev    TYPE kzwi2,               "MSFT/Xbox Consignment
            storev    TYPE kzwi2,               "MSFT Retail Store promo rev
            connet    TYPE kzwi2,               "MSFT Retail Consign net rev
            sporder   TYPE kzwi2,               "Special order revenue
            stdvd     TYPE kzwi2,               "Traveling Store/DVD
            totrev    TYPE kzwi2,               "Total ECS Revenue
            totbud    TYPE kzwi2,               "Total ECS Budget
            ordsize   TYPE kzwi2,               "Avg online order size
            END OF t_total,
    *--Structure for MKPF Table
            BEGIN OF t_jkmkpf,
            budat TYPE budat,                   "Posting date
            mblnr TYPE mblnr,                   "Number of material document
            mjahr TYPE mjahr,                   "Material doc. year
            END OF t_jkmkpf,
    *--Structure for MSEG Table
            BEGIN OF t_jkmseg,
            fkdat TYPE fkdat,                   "Billing date
            matnr TYPE matnr,                   "Material Number
            mblnr TYPE mblnr,                   "Number of material document
            mjahr TYPE mjahr,                   "Material doc. year
            bwart TYPE bwart,                   "Movement type
            menge TYPE menge_d,                 "Quantity
            kbetr TYPE kbetr_kond,              "Rate
            dmbtr TYPE dmbtr,                   "Amount in local currency
            END OF t_jkmseg,
    *--Structure for A006 Table
            BEGIN OF t_a006,
            fkdat TYPE fkdat,                   "Billing date
            matnr TYPE matnr,                   "Material Number
            kappl TYPE kappl,                   "Application
            kschl TYPE kschl,                   "Condition type
            vkorg TYPE vkorg,                   "Sales organization
            vtweg TYPE vtweg,                   "Distribution channel
            datbi TYPE kodatbi,                 "Validity end date
            datab TYPE kodatab,                 "Validity start date
            knumh TYPE knumh,                   "Condition record number
            END OF t_a006,
    *--Structure for KONP Table
            BEGIN OF t_konp,
            fkdat TYPE fkdat,                   "Billing date
            matnr TYPE matnr,                   "Material Number
            knumh TYPE knumh,                   "Condition record number
            kappl TYPE kappl,                   "Application
            kschl TYPE kschl,                   "Condition type
            kbetr TYPE kbetr_kond,              "Rate
            END OF t_konp.
                          WORK AREAS                                     *
    DATA : wa_vbrp   TYPE t_vbrp,          "Work area for VBRP Table
           wa_mkpf   TYPE t_mkpf,          "Work area for MKPF Table
           wa_mseg   TYPE t_mseg,          "Work area for MSEG Table
           wa_jkmkpf TYPE t_jkmkpf,        "Work area for MKPF Table
           wa_jkmseg TYPE t_jkmseg,        "Work area for MSEG Table
           wa_kjmseg TYPE t_jkmseg,        "Work area for MSEG Table
           wa_lips   TYPE t_lips,          "Work area for LIPS Table
           wa_vbak   TYPE t_vbak,          "Work area for VBAK Table
           wa_konv   TYPE t_konv,          "Work area for KONV Table
           wa_dummy  TYPE t_dummy,         "Work area for DUMMY Table
           wa_tfacs  TYPE t_tfacs,         "Work area for TFACS Table
           wa_final  TYPE t_final,         "Work area for Final Table
           wa_total  TYPE t_total,         "Work area for Total Table
           wa_ship   TYPE t_ship,          "Work area for Ship Table
           wa_a006   TYPE t_a006,
           wa_konp   TYPE t_konp,          "Work area for KONP Table
           wa_nday   TYPE t_nday,
           wa_fieldcat TYPE slis_fieldcat_alv,"Work area for fieldcatalog
           wa_layout1 TYPE slis_layout_alv,
           wa_layout2 TYPE slis_layout_alv,
           wa_layout3 TYPE slis_layout_alv.
                          INTERNAL TABLES                                *
    DATA : it_vbrp   TYPE STANDARD TABLE OF t_vbrp   INITIAL SIZE 0,
           it_mkpf   TYPE STANDARD TABLE OF t_mkpf   INITIAL SIZE 0,
           it_mseg   TYPE STANDARD TABLE OF t_mseg   INITIAL SIZE 0,
           it_jkmkpf TYPE STANDARD TABLE OF t_jkmkpf INITIAL SIZE 0,
           it_jkmseg TYPE STANDARD TABLE OF t_jkmseg INITIAL SIZE 0,
           it_kjmseg TYPE STANDARD TABLE OF t_jkmseg INITIAL SIZE 0,
           it_lips   TYPE STANDARD TABLE OF t_lips   INITIAL SIZE 0,
           it_vbak   TYPE STANDARD TABLE OF t_vbak   INITIAL SIZE 0,
           it_konv   TYPE STANDARD TABLE OF t_konv   INITIAL SIZE 0,
           it_dummy  TYPE STANDARD TABLE OF t_dummy  INITIAL SIZE 0,
           it_tfacs  TYPE STANDARD TABLE OF t_tfacs  INITIAL SIZE 0,
           it_final  TYPE STANDARD TABLE OF t_final  INITIAL SIZE 0,
           it_total  TYPE STANDARD TABLE OF t_total  INITIAL SIZE 0,
           it_ship   TYPE STANDARD TABLE OF t_ship   INITIAL SIZE 0,
           it_nday   TYPE STANDARD TABLE OF t_nday   INITIAL SIZE 0,
           it_a006   TYPE STANDARD TABLE OF t_a006   INITIAL SIZE 0,
           it_konp   TYPE STANDARD TABLE OF t_konp   INITIAL SIZE 0,
           it_fieldcat  TYPE slis_t_fieldcat_alv WITH HEADER LINE,
           it_fieldcat2 TYPE slis_t_fieldcat_alv WITH HEADER LINE,
           it_events TYPE slis_t_event,
           it_event1 TYPE slis_t_event,
           it_event2 TYPE slis_t_event,
           it_header TYPE slis_t_listheader.
                      PARAMETERS &  SELECT-OPTIONS                       *
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_erdat FOR vbak-erdat NO-DISPLAY. "Created On
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 3(10) text-003.
    PARAMETERS : p_month(7) TYPE c OBLIGATORY.  "Month
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 3(40) text-030.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 3(10) text-004.
    PARAMETERS : p_bud(16) TYPE c OBLIGATORY.   "Budget
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK blk1.
                      AT SELECTION SCREEN                                *
    AT SELECTION-SCREEN ON p_month.
    *--Create the date range
      PERFORM sub_create_date.
                      START-OF-SELECTION                                 *
    START-OF-SELECTION.
    *--Select data from TFACS Table
      PERFORM sub_read_tfacs.
    *--Select Data from VBAK Table
      PERFORM sub_read_vbak.
    *--Select Data from VBRP Table
      PERFORM sub_read_vbrp.
    *--Select Data from MKPF Table
      PERFORM sub_read_mkpf.
    *--Select Data from MSEG Table
      PERFORM sub_read_mseg.
    *--Select Data from LIPS Table
      PERFORM sub_read_lips.
    *--Select Data from KONV Table
      PERFORM sub_read_konv.
    *--Collect all the data into final inetrnal table
      PERFORM sub_collect_data.
    *--Collect all the data into final inetrnal table
      PERFORM sub_collect_vbrp.
    *--Collect all the data into final inetrnal table
      PERFORM sub_collect_lips.
    *--Collect MSFT retail store promo rev & MSFT retail
    store consignment net rev
      PERFORM sub_jk_column.
    *--Collect consignment cost
      PERFORM sub_collect_consign.
    *--Calculate Plug Numbers
      PERFORM sub_claculate_plug.
    *--Collect data from vbrp
      PERFORM sub_collect_cost.
    *--Calculate the total & avarages
      PERFORM sub_calculate_total.
    *--Collect totals & avarages into final internal table
      PERFORM sub_collect_total.
                      END-OF-SELECTION                                   *
    END-OF-SELECTION.
    *--This perform creates the ALV events
      PERFORM sub_create_events.
    *--This perform prepare field catalog.
      PERFORM sub_field_catalogmerge.
    *--This perform displays an ALV report
      PERFORM sub_alv_display.
    *&      Form  sub_read_vbrp
          text
    FORM sub_read_vbrp .
    *--Local Variables
      DATA : lv_index LIKE sy-tabix.
    *--Select query to pick the Billing document Billing date Billing
    category Billing type Distribution channel Number of doc condition
    Billing item Material Number Plant Referance Subtotal 2 Cost in
    document currency and Partner function from table VBRK VBRP and VBPA
    using inner join
      SELECT a~vbeln                            "Billing document
             a~fkdat                            "Billing date
             a~fktyp                            "Billing category
             a~fkart                            "Billing type
             a~vtweg                            "Distribution channel
             a~knumv                            "Number of doc condition
             b~posnr                            "Billing item
             b~matnr                            "Material Number
             b~werks                            "Plant
             b~vgbel                            "Referance
             b~kzwi2                            "Subtotal 2
             b~wavwr                            "Cost in document currency
             c~kunnr                            "Partner function
             FROM vbrk AS a
             INNER JOIN vbrp AS b
             ON avbeln EQ bvbeln
             INNER JOIN vbpa AS c
             ON  bvbeln EQ cvbeln
             INTO CORRESPONDING FIELDS OF TABLE it_vbrp
             WHERE fkdat IN s_erdat
             AND   parvw EQ 'ZS'.
      IF sy-subrc EQ 0.
    *--Sort table by Referance
        SORT it_vbrp BY vgbel1.
      ENDIF.
      LOOP AT it_vbrp INTO wa_vbrp.
        lv_index = sy-tabix.
        wa_vbrp-vgbel1 = wa_vbrp-vgbel.
        MODIFY it_vbrp FROM wa_vbrp INDEX lv_index TRANSPORTING
                                          vgbel1.
    *--Clear
        CLEAR : wa_vbrp.
      ENDLOOP.
    ENDFORM.                    " sub_read_vbrp
    *&      Form  sub_read_mkpf
          text
    FORM sub_read_mkpf .
    *--Local Variables
      DATA : lv_index LIKE sy-tabix.
      IF NOT it_vbrp[] IS INITIAL.
    *--Select query to pick the Number of material document Material
    document year and Referance from table MKPF
        SELECT DISTINCT
               mblnr                            "Number of material document
               mjahr                            "Material doc. year
               xblnr                            "Referance
               FROM mkpf
               INTO CORRESPONDING FIELDS OF TABLE it_mkpf
               FOR ALL ENTRIES IN it_vbrp
               WHERE xblnr EQ it_vbrp-vgbel.
      ENDIF.
    *--Sort table by No of material document and fiscal year
      SORT it_mkpf BY mblnr mjahr.
      IF sy-subrc EQ 0.
        DELETE ADJACENT DUPLICATES FROM it_mkpf COMPARING mblnr mjahr.
      ENDIF.
    *--Sort table by referance document
      SORT it_vbrp BY vgbel.
      SORT it_mkpf BY xblnr.
      IF NOT it_mkpf[] IS INITIAL.
        LOOP AT it_mkpf INTO wa_mkpf.
          lv_index = sy-tabix.
    *--Clear
          CLEAR : wa_vbrp.
          READ TABLE it_vbrp INTO wa_vbrp WITH KEY vgbel = wa_mkpf-xblnr
                                                   BINARY SEARCH.
          IF sy-subrc EQ 0.
            wa_mkpf-fkdat = wa_vbrp-fkdat.
            wa_mkpf-kunnr = wa_vbrp-kunnr.
          ENDIF.
          MODIFY it_mkpf FROM wa_mkpf INDEX lv_index TRANSPORTING
                                            fkdat kunnr.
    *--Clear
          CLEAR : wa_mkpf.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " sub_read_mkpf
    *&      Form  sub_read_mseg
          text
    FORM sub_read_mseg .
    *--Local Variables
      DATA : lv_index LIKE sy-tabix.
      IF NOT it_mkpf[] IS INITIAL.
    *--Select query to pick the Number of material document Material
    document year Movement type Special Stock indicator and Amount in
    local currency from table MSEG
        SELECT mblnr                            "Number of material document
               mjahr                            "Material doc. year
               bwart                            "Movement type
               sobkz                            "Special Stock indicator
               dmbtr                            "Amount in local currency
               matnr                            "Material
               werks                            "Plant
               FROM mseg
               INTO CORRESPONDING FIELDS OF TABLE it_mseg
               FOR ALL ENTRIES IN it_mkpf
               WHERE mblnr EQ it_mkpf-mblnr
               AND   mjahr EQ it_mkpf-mjahr.
              AND   bwart EQ '601'.
              AND   sobkz EQ 'K'.
      ENDIF.
    *--Sort table by Number of material document
      SORT it_mkpf BY mblnr.
    *--Sort table by Number of material document
      SORT it_mseg BY mblnr.
      IF NOT it_mseg[] IS INITIAL.
        LOOP AT it_mseg INTO wa_mseg.
          lv_index = sy-tabix.
    *--Clear
          CLEAR : wa_mkpf.
          READ TABLE it_mkpf INTO wa_mkpf WITH KEY mblnr = wa_mseg-mblnr
                                                   BINARY SEARCH.
          IF sy-subrc EQ 0.
            wa_mseg-fkdat = wa_mkpf-fkdat.
            wa_mseg-kunnr = wa_mkpf-kunnr.
          ENDIF.
          MODIFY it_mseg FROM wa_mseg INDEX lv_index TRANSPORTING
                                            fkdat kunnr.
    *--Clear
          CLEAR: wa_mseg.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " sub_read_mseg
    *&      Form  sub_read_lips
          text
    FORM sub_read_lips .
    *--Local Variables
      DATA : lv_index LIKE sy-tabix.
      IF NOT it_vbrp[] IS INITIAL.
    *--Select query to pick the Delivery Material Number Plant
    Movement type Subtotal 2 and Quantity from table LIPS
        SELECT vbeln                            "Delivery
               matnr                            "Material Number
               werks                            "Plant
               bwart                            "Movement type
               kzwi2                            "Subtotal 2
               lfimg                            "Quantity
               FROM lips
               INTO CORRESPONDING FIELDS OF TABLE it_lips
               FOR ALL ENTRIES IN it_vbrp
               WHERE vbeln EQ it_vbrp-vgbel1.
        IF sy-subrc EQ 0.
    *--Sort table by Delivery
          SORT it_lips BY vbeln.
        ENDIF.
      ENDIF.
    *--Sort table
      SORT it_vbrp BY vgbel1.
      LOOP AT it_lips INTO wa_lips.
        lv_index = sy-tabix.
    *--CLear
        CLEAR : wa_vbrp.
        READ TABLE it_vbrp INTO wa_vbrp WITH KEY vgbel1 = wa_lips-vbeln
                                                 BINARY SEARCH.
        IF sy-subrc EQ 0.
          wa_lips-fkdat = wa_vbrp-fkdat.
          wa_lips-knumv = wa_vbrp-knumv.
        ENDIF.
        MODIFY it_lips FROM wa_lips INDEX lv_index TRANSPORTING
                                    fkdat knumv.
    *--Clear
        CLEAR : wa_lips.
      ENDLOOP.
    ENDFORM.                    " sub_read_lips
    *&      Form  sub_read_konv
          text
    FORM sub_read_konv .
      IF NOT it_vbrp[] IS INITIAL.
    *--Select query to pick the Number of doc condition Condition type
    and Rate from table KONV
        SELECT knumv                            "Number of doc condition
               kschl                            "Condition type
               kbetr                            "Rate
               FROM konv
               INTO TABLE it_konv
               FOR ALL ENTRIES IN it_vbrp
               WHERE knumv EQ it_vbrp-knumv
               AND   kschl EQ 'ZR00'.
      ENDIF.
    ENDFORM.                    " sub_read_konv
    *&      Form  sub_read_vbak
          text
    FORM sub_read_vbak .
    *--Select query to pick the Created On Delivery Sales document type
    Distribution channel and Number of doc condition from table VBAK
      SELECT erdat                              "Created On
             vbeln                              "Delivery
             auart                              "Sales document type
             vtweg                              "Distribution channel
             knumv                              "Number of doc condition
             FROM vbak
             INTO TABLE it_vbak
             WHERE erdat IN s_erdat.
      IF sy-subrc EQ 0.
    *--Sort table by created on
        SORT it_vbak BY erdat.
      ENDIF.
    ENDFORM.                    " sub_read_vbak
    Regards,
    prashant

  • Urgent:Material Type for Packaging Material in WM and MM

    Hi
    There is a place in SPRO where i can define the material type for packaging.
    Logistics - General -> Handling Unit Management -> Basics -> Define Packaging Material Types
    How can i create a material using this material type? What is the use of material type here?
    Whenever i create material in MM01/MM41, i get the standard material type list.
    Thanks & REgards
    Kapil

    Hi,
    In T.code: OMS2, you can get standard material type list.VERP is the standard material type for packing material.You can copy VERP and rename to ur material type( as it is ur business requriement or else u can use same VERP)
    What is the use of material type here?
    With the help of ur Material Type , u can craete material like The material type,will be used while defining the material
    master.At that time,in Tcode:MM01,first screen we need to
    mention,(material type)it show the nature of material
    ex:-engineering product,finished products,semifinished
    product,etc.,
    It also play vital role on material numbering,material type in comination with plant & valuation class, play vital role in inventory & accoputning.
    To Create Material,use t. Code: MM01,
    Step-1
    Enter Material Code: ( example-Polythene Bag, If External Number Range or leave it blnak)
    Enter Industry Sector: ...................
    Enter Material Type: ..........................(VERP- Packing)
    Step-2
    Select
    Views you required( like eample:basic data-1, like basic data-2,purachsing, purchase order text,General plant data, accounting-1, accounting-2 etc)
    Step-3
    Enter Plant,
    Enter Storage location
    {{{Enter Sales organization & Distribution channel(if sales view selected)}}}
    Step-4
    You will have views like (example-1, basic data, enter Base unit of measure, material group and other details as required field,example-2,Accounting data, enter valuation class, price control; S or V & price)
    Step-5
    Save.
    Note: Before creation material you must know which Industry Sector, Material Type ur going to use and material numbering is internal or external.
    For more, check the following link for creation of material
    http://www.synactive.com/docu_e/doc_multi_mm01.html
    Regards,
    Biju K

  • Purchase report on Material Type wise

    Dear All,
    Is there any tcode avl to take the report of Purchase orders material type wise.
    Regards

    Hi,
    You can get the report as you required by standard tcode ME2n, ME2M run any of tcode then press Shift+F4 than choose purchase document item > there you will see material type > click on that it will move to ME2N screen . Now enter select material type and provide further data as per your requirement and execute.

  • Sales report: Profit center wise includes net, gross and sales tax URGENT

    Helllo Friends,
    Please help me on the below report
    Client requirement is: Sales report which includes the below
    1. Profit center
    2. Net sales
    3. Sales tax
    4. Gross sales
    5. Period
    Please help me
    Thanks for your help in advance
    Narasim

    Hi,
    You will have to get a Z report developed for  this requirement, it will be a Sales Register looking at the requirement
    Firstly discuss with the client and finalize the selection screen , based on which parameters the client wants nto check this report
    1. Customer
    2. Billinng Document
    3. Sales Area
    4. Billing Type
    5, Period
    And based on this system can collect all the billing documents (except cancelled) and pick up the required values from the billing document tables.
    Finalize if the client would also like to see the all the discounts, freights, rebate (if any) , taxes (separetly) , exchange rates (exports) and any other condition types, this will save all the modifications in the future.
    Also finalize what all billing types have to be excluded, like cancelled, credit notes, debit notes etc and also how the values have to be displayed, rounded off.

  • Sales Report Material Group-wise

    I want to generate Sales Report Material Group-wise is there any standard report.
    regards,
    Rajesh

    Hi
    Use the T.code: MCBK, this report tells you about Total stock received, total stock issue for sales order against the material group.
    Reward if it helps
    Regards
    Prasanna R

  • Purchasing Report: Plant, Purchasing group, material type, PO, GR No.

    All SAP Gurus,
    Is there any Purchasing report available which gives the information regarding:
    Plant, Purchasing group, material type, PO, GR No., vendor, amount (all in single report only).
    Regards,

    Hi,
    Refer following reports;
    ME2N - List of PO Documents (In selection Screen use Scope of List - ALLES)
    ME80FN - General Analysis (Here in Output, select option "PO History" by clicking on the button at extreme right)

  • MATERIAL GROUPS SALES REPORT

    Dear ALL
    Is there any sales  report that shows sales by Material Groups.
    Thank your very much in advance for your help.
    Best Regards
    Edited by: Fanalist on Aug 16, 2010 9:20 AM

    Hi,
    I hope there is no such standard report.However you can use SD-SIS to drill data basis product hirearchy for reporting purpose.
    If business requirement is material group wise you can simply get a report developed through ABAPer from VBRK and VBRP table.
    Regards
    Sanjay

  • Material sales report

    Hello,
    I have some troubles writting a sales report. The problem is that, in my case, sales are processed in another application, interfaced with SAP, so sales orders & stuff are automaticaly made, so I only see the sales in reports. I don't really know from what tables to get the data. I saw that I can find sales orders in VBAK and VBAP tables, but these sales orders doesn't produces goods issues, so I don't really care about them. I am interested for materials that were sold out from my warehouse, with 251 moovement type in my case. I also took into consideration the possibility to extract the data from the MSEG table, with 251 moovement type. What do you think about this? And another issue is where to get the profit margin for that sale.
    Thank you!

    Hi George,
    May be you can try writing a join on VBAK,VBAP and VBFA and in VBFA you can restrict the sub docs. cateory as 'R' for goods movement to get the sales data relevant to goods movement.
    Thus this helps?
    Cheers
    VJ

Maybe you are looking for

  • I can't print a bank document in Version 8.0 that I could in 6.1.

    When I had Firefox Version 6.1, I was able to print out my bank statement. I upgraded to Version 8.0 and the print command had a message. It said "Prop Res DLL Not Loaded. I then went back to Version 6.1 and the print worked. About a month ago, I upg

  • How to launch photoshop action?

    I'm writing a Bridge CS3 script to generate a web gallery. The user selects some files and starts the script through a context menu item. The script iterates through the selection list a couple of times, writes files, etc. As the final step, I need t

  • Graph legend and print options

    When building a graph using the graphTable bean, I'd like to place the legend below the graph instead of above. How can this be done? Also, the graph plots a number of lines, each of which is rendered in a different color. Is there a way to make the

  • Howto dispay image from binary type

    Hi, I have sucesfully displayed picture from context of type "Resource" to an Image child with binded to it context of type String. I use to it belov listed piece of code and it works fine: FileResource = value attribute if type com.sap....Resource I

  • Identifying user who submitted the data through SmartView / Planning Forms

    Hi All , We are facing one strange issue wherein data from the data files of the source system is not getting matched with the data loaded in Planning Application. We think that the data for the member combination which is not getting matched is modi