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
Similar Messages
-
SAP standard sales report not shown data
We have following standard reports for sales. We have authorisation for these reports. But when we execute these report for 3P00 sales org., these reports will not shown any data saying that no data exist.
Customer Returns-Analysis - MC+A
Customer Analysis- Sales - MC+E
Material Analysis(SIS) - MCTC
Sales org analysis - MCTE
Sales org analysis-Invoiced sales - MC+2
Material Analysis- Invoiced Sales - MC+Q
Sales office Analysis- Invoiced Sales - MC-E
Shipping point Analysis - MC(U
Request you to kindly provide the solution.Hi,
Have u configured Logistic information system proper - mean to say r u maintained same settings for this sales organization
IMG >>> Logistic genral >>> LIS >>> Logistics data warehouse >>> Updating.
R u maintained statastical group in material & customer master, check that.
Kapil -
Hi All,
Can anyone tell me about IDocs and some standard sales reports to talk in Interview? (No need of full stories, just to talk in interviews)
Regards
Rama RaoAny updates please.
-
Standard Forecast report for Sales
Hi,
I wanted to know if there is any standard Sales forecast report available ?
I tried using tcode MC95 field Planning type as Z961 but im not getting materialwise forecast.Help if anyone is familiar with this.
Regards
DeepaHi,
When i click on MC94 system is giving me error.Error description is below
No characteristic value combinations exist for the selected data
Message no. MA360
Diagnosis
You have tried to create a plan based on an information structure for
which no characteristic value combinations have been created.
System Response
No plan can be created.
Procedure
o Either create one or more characteristic value combinations for this
information structure with Planning hierarchy -> Create in the menu
"Master data"
o Or specify a characteristic value at every level
Thanks for ur help.
Regards
Deepa -
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....
KiranHi 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 -
Hello Experts,
Please tell me the name of standard Sale Tax Reports and Standard Tax table also standard Sale Tax smartforms.
Thanks
VishuHi ,
check KONV/P , KOMV tables based on the Condition Types.
are u taling abt Excise Invoice.
check
RFKQST10
for Vendors
Regards
Prabhu
Message was edited by: Prabhu Peram -
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
jayHi,
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 -
Standard SD Reports under sales information syatem
Hi,
How to configure Standard SD Reports which fall under sales information system.Kindly tell me the
process of configuring these reports in detail in SPRO
Regards
RahulIf it is LIS there are two important things:
1) Statistics update configuration should be done at Header level OVRO and item level OVRP for the sales area.
2) Customer statistics group and material statistics group should be filled in customer and material master respectively.
Regards,
GSL. -
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
NarasimHi,
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. -
Hi,
Can anyone give me the Standard Aging report or tcodes for FI..Its very urgent..
ThanksHi,
Look at the Below link which will have a Custome Report
http://sap.ittoolbox.com/code/archives.asp?d=2424&a=s&i=10 -
Is there any Standard SAP Report?for displaying Billing block/Status-Order
Hi,
Am a ABAP Developer. I heard that there is SAP Query/ABAP Query/Standard SAP report for the below functionality/requirement. SO, pls. let me know if there is any SAP Query/ABAP Query/Standard SAP report?
"This report is suppose to display Credit and Debit memo documents which are blocked and yet has a status of APRV; the other display is for Return Documents which are blocked and yet has a status RCVD."
thanqHi,
Use t-code
V23 - Blocked sales document for billing
VA14L - Sales document blocked for delivery
VFX3 - For blocked billing documents.
Kapil
Edited by: Kapildev Farakte on Jan 8, 2010 4:15 AM -
Sales Report for US Sales and Use tax
Hi,
I'm looking for t-code to extract detailed sales report having Gross sales, Exempt sales , Ship to state, Ship to County\ City, Sales Tax collected. If I'm getting this report i can verify what my sales tax software is updating.
When i extract tcode - ZINVLIS i don't get much detail.
Please help me in extracting complete sales detail which can be used for sales and use tax verification process and audit purpose.
Thanks,
KarthikHi Karthik,
There is no standard report available as per my knowledge.You may develop Z report to achive your requirment. Check some LIS report can give data (MC01 is transaction where you can check all type of key figure reports)
Regards
Mani Kumar -
Hi Experts,
I need your help in following topic. I have a requirement to build a big (overall) sales report in BI (NW2004s).
I would like to use BI Content because I'm running out of time and try to use all preconfigured stuff if possible.
In the requirement a bunch of fields of different SD DataSources are used (mostly 2LIS_11_VAHDR and 2LIS_11_VAITM but also some fields of other Datasources).
In SE16 I know how to locate all the field in the tables VBAK, VBAP, KNA1, VBKD,
LIKP, VBRK and of course some texts. Some fields could already be located by me, others couldn't even be found in BI.
The difficulty I have is to bring all the DataSources together so that the data is displayed correct - even if there are redundant parts.
For example:
For sales orders the doc no, sales org, distr. channel (and a lot of other header data) should be displayed in each line together with item data such as item no., material code, quantity (and a lot of other item data). If an order has multiple items each item should be diplayed in one row in the report.
In the Query the report should look like a common table (e.g. as in an ALV Grid if you model a query with SQ01) --> a lot of columns.
I'm not sure if I should use one big DSO with multiple InfoSources or if I should create a MultiCube and add the BI DSOs 0SD_O03 (Orders) and 0SD_O01(Order Items).
I know this is a very common requirement in SD. Do you know how to combine the most common SD datasources that no issues come up?
Thank you very much in advance,
Horst
Message was edited by:
Horst HenkelHi Horst,
Reporting on ODS / DSo is slow. I'm here at a cleint where we have lots of reports on SD_O01 and SD_O03. The best way to have good query performance is to build cubes on top of your ODS. Build a sales cube on top of SD_O03 with all fields and a billing cube on top of SD_O01. Load the data from your ODS to your new cubes. Then create a multipovider on top of both cubes, identify the keyfigures and characteristics required for your queries. Build the queries on top of the multiprovider.
You can display all items of a bill in one row if you choose drill-across for the irems in the query, instead of drill-down. So it looks for a standard SD report.
Regards,
Juergen -
Sales employee wise sales report
Hi,
Can anyone explain me,how to write functional specifications to obtain sales employee wise sales report?
Thanks in advance..
Regards..
Yogi...Hi
This is the standard T Code for sales employee-MCTI
But as per your requirement we hv to create.
Examplemy past implimantation..we hv captured sales employee as partner function.sales employee1& 2 with peoper partner determination proceture.then we hv captured at Billing document Header Partner function.
This Sales employee name has to captured through HR Master data.According U hv to say only the business process and from where data has to captured to ABAPER.
I think it ll help
Regards
JAGA -
Sales Report Material Group-wise
I want to generate Sales Report Material Group-wise is there any standard report.
regards,
RajeshHi
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
Maybe you are looking for
-
Please help, setting up multiple ios devices
Here is what I have. Iphone 5 Iphone 5 Iphone 4 Ipad 2 Ipad 3 I would like to set up iCloud so that the devices can be backed up without the use of a computer. I would like 1 iphone 5 and Ipad 2 to share photos/data/messages 1 iphone 5 and Ipad 3 to
-
Add word document in project systems with BAPI
Hi, I want to create a project with documentation automatically. I have created a project with following structure with BAPI_PROJECTDEF_MAINTAIN. PROJECT DOCUMENTATION Now I want to add a word document in DOCUMENTATION. I know how to add a doc
-
Dear sir/Madam I have One server i.e. Windows NT. With oracle 8 database loaded and one database which is having many users, I am taking backup of one x user which is very important to me . The same is exported and Import to another server which is W
-
I have seen similiar errors to mine, but not the exact one. I'm installing Adobe LC 8.2.1 GM on a Windows server, manually configuring JBoss 4.2.0. Per the logs in the installation I can say there were no errors in the configuration, deployment and
-
Inter unit transfer -stock transfer
Hi what is the difference between Inter unit transfer & stock transfer between plants