LIST materials
Hi ,
Can any one explain me about this program.
REPORT Z_LIST_MATERIALS.
TYPE-POOLS: SLIS.
TABLES:MARC, MARD, VBAP, LIPS, EKPO, VBFA, EKBE, MARM, VBBE, MARA, MBEW.
SELECTION-SCREEN BEGIN OF BLOCK SEL WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_WERKS FOR MARC-WERKS, " Plant
S_MATNR FOR MARC-MATNR, " Material
S_MTART FOR MARA-MTART. " Material Type SELECTION-SCREEN END OF BLOCK SEL.
PARAMETERS: P_VARI LIKE DISVARIANT-VARIANT. " ALV Variant
CONSTANTS: FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.
DATA: BEGIN OF INV OCCURS 100,
WERKS LIKE MARD-WERKS, " Plant
MATNR LIKE MARD-MATNR, " Material
MTART LIKE MARA-MTART, " Material Type
STPRS LIKE MBEW-STPRS, " Standard Price
AVAIL LIKE MARD-LABST, " Available
LABST LIKE MARD-LABST, " Unrestricted use
INSME LIKE MARD-INSME, " Quality Inspection
RETME LIKE MARD-RETME, " Returns
TRANS LIKE MARC-UMLMC, " Stock in transit (calculated)
UMLMC LIKE MARC-UMLMC, " Stock Transfer (plant)
UMLME LIKE MARD-UMLME, " Transfer (SLoc)
WESBS LIKE EKBE-WESBS, " GR Blocked Stock
TRAME LIKE MARC-TRAME, " Stock in transit
SPEME LIKE MARD-SPEME, " Blocked
KWMENG LIKE VBAP-KWMENG, " Sales orders
LFIMG LIKE LIPS-LFIMG, " Scheduled for Delivery
MENGE LIKE EKPO-MENGE, " Open Purch. Orders
VALUE LIKE MBEW-SALK3, " Stock Value (Calculated)
MEINS LIKE MARA-MEINS, " Unit of measure
END OF INV.
DATA: FIELDTAB TYPE SLIS_T_FIELDCAT_ALV,
HEADING TYPE SLIS_T_LISTHEADER,
LAYOUT TYPE SLIS_LAYOUT_ALV,
EVENTS TYPE SLIS_T_EVENT,
REPNAME LIKE SY-REPID,
F2CODE LIKE SY-UCOMM VALUE '&ETA',
G_SAVE(1) TYPE C,
G_EXIT(1) TYPE C,
G_VARIANT LIKE DISVARIANT,
GX_VARIANT LIKE DISVARIANT.
INITIALIZATION.
REPNAME = SY-REPID.
PERFORM INITIALIZE_FIELDCAT USING FIELDTAB[].
PERFORM BUILD_EVENTTAB USING EVENTS[].
PERFORM BUILD_COMMENT USING HEADING[].
PERFORM INITIALIZE_VARIANT.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARI.
PERFORM F4_FOR_VARIANT.
AT SELECTION-SCREEN.
PERFORM PAI_OF_SELECTION_SCREEN.
START-OF-SELECTION.
PERFORM GET_MARD.
PERFORM GET_UNIT_OF_MEASURE.
PERFORM GET_MARC.
PERFORM GET_EKPO.
PERFORM GET_LIPS.
PERFORM GET_VBAP.
PERFORM GET_OPEN.
PERFORM GET_PRICE.
END-OF-SELECTION.
PERFORM BUILD_LAYOUT USING LAYOUT.
PERFORM WRITE_OUTPUT.
*& Form INITIALIZE_FIELDCAT
text
-->P_FIELDTAB[] text *
FORM INITIALIZE_FIELDCAT USING P_FIELDTAB TYPE SLIS_T_FIELDCAT_ALV.
DATA: L_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
fixed columns (obligatory)
CLEAR L_FIELDCAT.
L_FIELDCAT-TABNAME = 'INV'.
L_FIELDCAT-FIX_COLUMN = 'X'.
L_FIELDCAT-NO_OUT = 'O'.
L_FIELDCAT-FIELDNAME = 'WERKS'.
APPEND L_FIELDCAT TO P_FIELDTAB.
L_FIELDCAT-FIELDNAME = 'MATNR'.
APPEND L_FIELDCAT TO P_FIELDTAB.
totalized columns
CLEAR L_FIELDCAT.
L_FIELDCAT-TABNAME = 'INV'.
L_FIELDCAT-SP_GROUP = 'A'.
L_FIELDCAT-DO_SUM = 'X'.
L_FIELDCAT-FIELDNAME = 'LABST'.
APPEND L_FIELDCAT TO P_FIELDTAB.
L_FIELDCAT-FIELDNAME = 'INSME'.
APPEND L_FIELDCAT TO P_FIELDTAB.
L_FIELDCAT-FIELDNAME = 'RETME'.
APPEND L_FIELDCAT TO P_FIELDTAB.
L_FIELDCAT-FIELDNAME = 'UMLME'.
APPEND L_FIELDCAT TO P_FIELDTAB.
L_FIELDCAT-FIELDNAME = 'WESBS'.
APPEND L_FIELDCAT TO P_FIELDTAB.
L_FIELDCAT-FIELDNAME = 'SPEME'.
APPEND L_FIELDCAT TO P_FIELDTAB.
columns with different description
L_FIELDCAT-FIELDNAME = 'KWMENG'.
L_FIELDCAT-SELTEXT_M = 'Sales Orders'.
L_FIELDCAT-SELTEXT_S = 'Sales Or'.
L_FIELDCAT-SELTEXT_L = 'Sales Orders Qty'.
APPEND L_FIELDCAT TO P_FIELDTAB.
L_FIELDCAT-FIELDNAME = 'LFIMG'.
L_FIELDCAT-SELTEXT_M = 'Sched. Delivery'.
L_FIELDCAT-SELTEXT_S = 'Schd. Del'.
L_FIELDCAT-SELTEXT_L = 'Scheduled for Delivery'.
APPEND L_FIELDCAT TO P_FIELDTAB.
L_FIELDCAT-FIELDNAME = 'TRANS'.
L_FIELDCAT-SELTEXT_M = 'Stk. in transit'.
L_FIELDCAT-SELTEXT_S = 'Stk. trns'.
L_FIELDCAT-SELTEXT_L = 'Stock in transit (sum)'.
APPEND L_FIELDCAT TO P_FIELDTAB.
L_FIELDCAT-FIELDNAME = 'AVAIL'.
L_FIELDCAT-SELTEXT_M = 'Available'.
L_FIELDCAT-SELTEXT_S = 'Avail.'.
L_FIELDCAT-SELTEXT_L = 'Stock Available'.
APPEND L_FIELDCAT TO P_FIELDTAB.
L_FIELDCAT-FIELDNAME = 'MENGE'.
L_FIELDCAT-SELTEXT_M = 'Open Orders'.
L_FIELDCAT-SELTEXT_S = 'Open Ord'.
L_FIELDCAT-SELTEXT_L = 'Open Purchase Orders'.
APPEND L_FIELDCAT TO P_FIELDTAB.
columns not displayed
CLEAR L_FIELDCAT.
L_FIELDCAT-TABNAME = 'INV'.
L_FIELDCAT-SP_GROUP = 'A'.
L_FIELDCAT-NO_OUT = 'X'.
L_FIELDCAT-FIELDNAME = 'MEINS'.
APPEND L_FIELDCAT TO P_FIELDTAB.
L_FIELDCAT-FIELDNAME = 'UMLMC'.
APPEND L_FIELDCAT TO P_FIELDTAB.
L_FIELDCAT-FIELDNAME = 'TRAME'.
APPEND L_FIELDCAT TO P_FIELDTAB.
L_FIELDCAT-FIELDNAME = 'STPRS'.
APPEND L_FIELDCAT TO P_FIELDTAB.
L_FIELDCAT-FIELDNAME = 'VALUE'.
APPEND L_FIELDCAT TO P_FIELDTAB.
ENDFORM. " INITIALIZE_FIELDCAT
*& Form BUILD_EVENTTAB
text
-->P_EVENTS[] text *
FORM BUILD_EVENTTAB USING P_EVENTS TYPE SLIS_T_EVENT.
DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = P_EVENTS.
READ TABLE P_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE
INTO LS_EVENT.
IF SY-SUBRC = 0.
MOVE FORMNAME_TOP_OF_PAGE TO LS_EVENT-FORM.
APPEND LS_EVENT TO P_EVENTS.
ENDIF.
ENDFORM. " BUILD_EVENTTAB
*& Form BUILD_COMMENT
text
-->P_HEADING[] text *
FORM BUILD_COMMENT USING P_HEADING TYPE SLIS_T_LISTHEADER.
DATA: HLINE TYPE SLIS_LISTHEADER,
TEXT(60) TYPE C,
SEP(20) TYPE C.
CLEAR: HLINE, TEXT.
HLINE-TYP = 'H'.
WRITE: TEXT-101 TO TEXT+23.
HLINE-INFO = TEXT.
APPEND HLINE TO P_HEADING.
CLEAR TEXT.
WRITE: 'User: ' TO TEXT,
SY-UNAME TO TEXT+6,
'Date: ' TO TEXT+25,
SY-DATUM TO TEXT+31,
'Page: ' TO TEXT+50,
SY-PAGNO TO TEXT+56.
HLINE-INFO = TEXT.
APPEND HLINE TO P_HEADING.
ENDFORM. " BUILD_COMMENT
FORM TOP_OF_PAGE *
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = HEADING.
ENDFORM.
*& Form INITIALIZE_VARIANT
text
FORM INITIALIZE_VARIANT.
G_SAVE = 'A'.
CLEAR G_VARIANT.
G_VARIANT-REPORT = REPNAME.
GX_VARIANT = G_VARIANT.
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
I_SAVE = G_SAVE
CHANGING
CS_VARIANT = GX_VARIANT
EXCEPTIONS
NOT_FOUND = 2.
IF SY-SUBRC = 0.
P_VARI = GX_VARIANT-VARIANT.
ENDIF.
ENDFORM. " INITIALIZE_VARIANT
*& Form F4_FOR_VARIANT
text
FORM F4_FOR_VARIANT.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
IS_VARIANT = G_VARIANT
I_SAVE = G_SAVE
IMPORTING
E_EXIT = G_EXIT
ES_VARIANT = GX_VARIANT
EXCEPTIONS
NOT_FOUND = 2.
IF SY-SUBRC = 2.
MESSAGE ID SY-MSGID TYPE 'S' NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
IF G_EXIT = SPACE.
P_VARI = GX_VARIANT-VARIANT.
ENDIF.
ENDIF.
ENDFORM. " F4_FOR_VARIANT
*& Form PAI_OF_SELECTION_SCREEN
text
FORM PAI_OF_SELECTION_SCREEN.
IF NOT P_VARI IS INITIAL.
MOVE G_VARIANT TO GX_VARIANT.
MOVE P_VARI TO GX_VARIANT-VARIANT.
CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
EXPORTING
I_SAVE = G_SAVE
CHANGING
CS_VARIANT = GX_VARIANT.
G_VARIANT = GX_VARIANT.
ELSE.
PERFORM INITIALIZE_VARIANT.
ENDIF.
ENDFORM. " PAI_OF_SELECTION_SCREEN
*& Form GET_MARD
text
FORM GET_MARD.
SELECT MATNR WERKS LABST INSME RETME UMLME SPEME
FROM MARD
INTO CORRESPONDING FIELDS OF INV
WHERE MATNR IN S_MATNR
AND WERKS IN S_WERKS.
COLLECT INV.
ENDSELECT.
PERFORM FILTER_BY_MATERIAL_TYPE.
ENDFORM. " GET_MARD
*& Form FILTER_BY_MATERIAL_TYPE
text
FORM FILTER_BY_MATERIAL_TYPE.
LOOP AT INV.
CLEAR INV-MTART.
SELECT SINGLE MTART
INTO INV-MTART
FROM MARA
WHERE MATNR EQ INV-MATNR
AND MTART IN S_MTART.
IF SY-SUBRC EQ 0.
MODIFY INV.
ELSE.
DELETE INV.
ENDIF.
ENDLOOP.
ENDFORM. " FILTER_BY_MATERIAL_TYPE
*& Form GET_MARC
text
FORM GET_MARC.
LOOP AT INV.
SELECT SINGLE UMLMC TRAME
FROM MARC
INTO CORRESPONDING FIELDS OF INV
WHERE MATNR EQ INV-MATNR
AND WERKS EQ INV-WERKS.
IF SY-SUBRC EQ 0.
INV-TRANS = INV-UMLMC + INV-TRAME.
MODIFY INV.
ENDIF.
ENDLOOP.
ENDFORM. " GET_MARC
*& Form GET_EKPO
text
FORM GET_EKPO.
DATA: WESBS LIKE INV-WESBS,
SHKZG LIKE EKBE-SHKZG,
MEINS LIKE EKPO-MEINS,
LMEIN LIKE EKPO-LMEIN.
LOOP AT INV.
CLEAR: WESBS, SHKZG, MEINS, LMEIN.
SELECT YWESBS YSHKZG XMEINS XLMEIN
INTO (WESBS, SHKZG, MEINS, LMEIN)
FROM EKPO AS X JOIN EKBE AS Y
ON XEBELN = YEBELN
AND XEBELP = YEBELP
WHERE XMATNR EQ INV-MATNR
AND XWERKS EQ INV-WERKS
AND XLOEKZ NE 'L'.
IF SHKZG EQ 'H'.
MULTIPLY WESBS BY -1.
ENDIF.
IF MEINS NE LMEIN.
PERFORM CONVERT_UNIT_OF_MEASURE CHANGING INV-MATNR MEINS WESBS.
ENDIF.
ADD WESBS TO INV-WESBS.
ENDSELECT.
MODIFY INV.
ENDLOOP.
ENDFORM. " GET_EKPO
*& Form GET_LIPS
text
FORM GET_LIPS.
DATA: LFIMG LIKE INV-LFIMG.
LOOP AT INV.
CLEAR: LFIMG, INV-LFIMG.
SELECT OMENG
INTO LFIMG
FROM VBBE
WHERE MATNR EQ INV-MATNR
AND WERKS EQ INV-WERKS
AND VBTYP EQ 'J'.
ADD LFIMG TO INV-LFIMG.
ENDSELECT.
MODIFY INV.
ENDLOOP.
ENDFORM. " GET_LIPS
*& Form GET_VBAP
text
FORM GET_VBAP.
DATA: KWMENG LIKE INV-KWMENG.
LOOP AT INV.
CLEAR: KWMENG, INV-KWMENG.
SELECT OMENG
INTO KWMENG
FROM VBBE
WHERE MATNR EQ INV-MATNR
AND WERKS EQ INV-WERKS
AND VBTYP EQ 'C'.
ADD KWMENG TO INV-KWMENG.
ENDSELECT.
INV-AVAIL = INV-LABST - INV-INSME - INV-KWMENG - INV-LFIMG.
MODIFY INV.
ENDLOOP.
ENDFORM. " GET_VBAP
*& Form GET_UNIT_OF_MEASURE
text
--> p1 text
<-- p2 text
FORM GET_UNIT_OF_MEASURE.
LOOP AT INV.
SELECT SINGLE MEINS
FROM MARA
INTO INV-MEINS
WHERE MATNR EQ INV-MATNR.
MODIFY INV.
ENDLOOP.
ENDFORM. " GET_UNIT_OF_MEASURE
*& Form GET_OPEN
text
FORM GET_OPEN.
DATA: BEGIN OF XTAB OCCURS 10, " Open orders table
WERKS LIKE EKPO-WERKS,
LGORT LIKE EKPO-LGORT,
MATNR LIKE EKPO-MATNR,
MENGE LIKE EKPO-MENGE,
MENGK LIKE EKPO-MENGE,
END OF XTAB.
RANGES: L_WERKS FOR MARD-WERKS.
LOOP AT INV.
REFRESH XTAB.
CLEAR: XTAB, L_WERKS.
MOVE INV-WERKS TO L_WERKS-LOW.
CALL FUNCTION 'MB_ADD_PURCHASE_ORDER_QUANTITY'
EXPORTING
X_MATNR = INV-MATNR
X_MEINS = INV-MEINS
X_ELIKZ = SPACE
X_LOEKZ = SPACE
TABLES
XTAB = XTAB
XWERKS = L_WERKS.
MOVE XTAB-MENGE TO INV-MENGE.
MODIFY INV.
ENDLOOP.
ENDFORM. " GET_OPEN
*& Form GET_PRICE
text
FORM GET_PRICE.
LOOP AT INV.
SELECT SINGLE STPRS
FROM MBEW
INTO INV-STPRS
WHERE MATNR EQ INV-MATNR
AND BWKEY EQ INV-WERKS
AND BWTAR EQ SPACE.
IF SY-SUBRC EQ 0.
INV-VALUE = INV-STPRS *
( INV-LABST + INV-INSME + INV-TRANS + INV-SPEME ).
MODIFY INV.
ENDIF.
ENDLOOP.
ENDFORM. " GET_PRICE
FORM CONVERT_UNIT_OF_MEASURE *
text *
--> P_MATNR *
--> P_VRKME *
--> P_QUANT *
FORM CONVERT_UNIT_OF_MEASURE USING P_MATNR P_VRKME P_QUANT.
DATA: UMREZ LIKE MARM-UMREZ,
UMREN LIKE MARM-UMREN.
SELECT SINGLE UMREZ UMREN
INTO (UMREZ, UMREN)
FROM MARM
WHERE MATNR EQ P_MATNR
AND MEINH EQ P_VRKME.
IF SY-SUBRC EQ 0.
COMPUTE P_QUANT = ( P_QUANT * UMREZ ) / UMREN.
ENDIF.
ENDFORM.
*& Form BUILD_LAYOUT
text
-->P_LAYOUT text *
FORM BUILD_LAYOUT USING P_LAYOUT TYPE SLIS_LAYOUT_ALV.
P_LAYOUT-F2CODE = F2CODE.
P_LAYOUT-ZEBRA = 'X'.
P_LAYOUT-DETAIL_POPUP = 'X'.
ENDFORM. " BUILD_LAYOUT
*& Form WRITE_OUTPUT
text
FORM WRITE_OUTPUT.
SORT INV BY WERKS MATNR.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = REPNAME
I_INTERNAL_TABNAME = 'INV'
I_INCLNAME = REPNAME
CHANGING
CT_FIELDCAT = FIELDTAB.
IF SY-SUBRC <> 0.
WRITE: 'SY-SUBRC: ', SY-SUBRC, 'REUSE_ALV_FIELDCATALOG_MERGE'. ENDIF. CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = REPNAME
I_STRUCTURE_NAME = 'INV'
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FIELDTAB
I_DEFAULT = 'A'
I_SAVE = G_SAVE
IS_VARIANT = G_VARIANT
IT_EVENTS = EVENTS[]
TABLES
T_OUTTAB = INV.
IF SY-SUBRC <> 0.
WRITE: 'SY-SUBRC: ', SY-SUBRC, 'REUSE_ALV_LIST_DISPLAY'. ENDIF.
ENDFORM. " WRITE
Hi Priya,
Hope you want an Idea on ALVs ..The ALV Grid control is a flexible tool for displaying lists. The tool provides common list operations as generic functions and can be enhanced by self-defined options..
The ALV Grid control is used to build non-hierarchical, interactive, and modern-design lists. As a control, it is a component that is installed on the local PC...
The wrapper class implemented to encapsulate ALV Grid functionality is CL_GUI_ALV_GRID. in this code.. the other way to display lists with ALV utilizing REUSE_ALV... is being used...
And for the selection-screens..
for the events..
AT SELECTION-SCREEN.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARI.
are the events triggered from the selection-screeen..
on VALUE REQUEST is triggered on a F4 key press on the parameter..
This is the technical explanation that you can give..
hope this helps you..
ps:reward points if you find it helpful
regards
satesh
Similar Messages
-
Good morning.
I have a problem with list materials in deliveries.
When you enter a product into an order, whose included into a list of materials, it explotes and create automatically others positions. If you modify the quantity of the main position, the system changes the quantity of the others positions automatically.
For exemple:
Pos qty Main pos
10 100 0
20 50 10
30 40 10
If I modify the main position quantity it automatically change the positions 20 and 30:
Pos qty Main pos
10 50 0
20 25 10
30 20 10
But this not happen in deliveries.You have to change the subpositions manually. So if you change the main position, and do not change the subpositions, the delivery is incorrect:
Pos qty Main pos
10 50 0
*20 50 10*
*30 40 10*
Is there any way to change the subpositions automatically in deliveries when you change the main position, like occurs in ordres?
Thanks.hello, friend.
i assume you are dealing with BOM and it is the main item quantity you are changing. please check the item category group of the main item (using MM03). is it LUMF? if so, then i have a hunch that this could be the reaon why only the component items that are relevant for delivery, and the quantities are copied from the sales order and not as a result of the main items.
however, i will try to test this hypothesis.
regards. -
List of materials with no associated routing...report
Hi all,
I need to develop a program to display a list of materials that do not have an associated routing. SAP tcode C223 lists materials with associated production versions. Do you think there is another standard SAP transaction that might get me close to my goal?
regards,
MatNot sure about a standard transaction, but I have written a program to do this same exact thing in the past.
Really all you need to do is check against table MAPL.
Regards,
Rich Heilman -
Problem with bex query listing sales "this month" and "same month last year
Hi,
I've created a query in BW BEx, where I have a mandatory variable for 0calmonth, and I list 0material and sales (in volume, liter). And I have a restricted key figure giving me sales (volume in liter) restricted with 0calmonth = variable - 12, to give me the sale for the same month the user select, previous year.
This seems to be working, the sum is correct, but when adding up the number for the sales in the month previous year, the numbers does not fit the sum in the end.
I think the report only lists materials with sales the month selected in the variable, if a material has not been sold that month, but in the same month last year, it's not listed in the reports, but it's added in the sum in the end.
Example.
We have three records like this:
material - calmonth - volume
101 - 01.2010 - 5
101 - 01.2011 - 8
201 - 01.2010 - 7
The report will give the following (calmonth variable = 01.2011)
Material - volume this month - volume same month last year
101 - 8 - 5
Sum 8 - 12
Any way to solve this issue? We noticed because we run BO - Webi on top of the BEx query, and BO sum's the values per material, and in webi the report would give us the sum 8 and 5.
Any input is appreciated.
Regards,
ØysteinHi,
thanks for your reply.
The error is that the report only seems to list materials that has been sold "this month", and if the same material was sold the same month last year, it will also list the volume for this.
But if the material is only sold in the same month last year, it's not listed in the report, but it's calculated into the sum at the end.
The report is listing material, which is why the error presents itself, as you said
Getting 8 minus 12 is correct unless you drill down by material. In that case, it should be 8 minus 5 and 0 minus 7.
The row with 0 - 7 is not shown, and my guess is that the report will only list materials that has sales this month (which has been selected in the variable)
Regards,
Øystein
Edited by: Oystein Gundersen on Mar 21, 2011 4:36 PM -
Report with EAN/UPC by article/vendor
We are looking for a report of EAN/UPC numbers by article. We would like to be able to select by Article, Vendor and/or Merchandise Category. If there are multiple EAN/UPCs by vendor, each should be listed with it's category.
Although I could write such a report in ABAP, it seems that this should be a standard report. Does any one know a t-code for such a report?
Thanks in advance,
DebI donot think there is a standard report to List the materials (Or Articles in IS - Retail) by EAN numbers.
I do not know the Business requirement, but I can tell you that when you go to MM03 and ask for the list of matrials, you can select the materials based on the selection Criteria (List materials by EAN), which will give you all the matrials for which EAN has been maintained.
Unlucky. MM60 does not have the option you are looking
Hope this helps.
Regards
SS
Edited by: Shankar Shivappa on Mar 27, 2009 1:28 AM -
Dear Friends,
My client wants standard report for the following areas in MM
Overview of PO value per Requester
Product Category ID
Product
Vendor
Cost Center
Chart of accounts
G/L Account
Company code
Tracking Number
Requester
Transaction Type
Calendar Day
Approved Shopping Cart Value
Purchase Order Value
Cost Center Overview
Cost Center
Material group
WBS Element
Chart of accounts
Requester
G/L Account
Company code
Tracking Number
Purchase Order Value - Quarter
Shopping Cart Value - Quarter
Purchase Order Value u2013 Current Month
Invoice Value u2013 Current Month
Invoice Value Previous Year
Procurement Summary Report
Purchase Order No.
Supplier
Company code
Tracking Number
Shopping Cart Quantity in Shopping Cart Unit
Net Shopping Cart Value in Default Currency
Order Quantity in Base Unit
Net Order Value in Default Currency
Confirmed Quantity in Base Unit
Net Confirmed Value in Default Currency
Invoiced Quantity in Base Unit
Net Invoiced Value in Default Currency
Workload per purchasing group
ERP Purchasing Group
SRM Purchasing Group
Purchase Order No.
Product
Vendor
Calendar Week
SRM Purchasing Organization
ERP Purchasing Organization
Company code
Tracking Number
Processing Status
Product Category ID
Total Order Value
No. of Purch. Orders
No. of Order Items
Delivery Delays
Item No.in Order Doc
Limit GUID
Confirmation number
Item No. Confirmatn
Purchase Order No.
Name of PO
Invoice Number
Item No. in Invoice
Seq. No. Acct.Assign
Calendar Day
Company code
Delayed Delivery
Delivery Time (Purchase Order to Confirmation)
Date of Confirmation
Purchase Order Date
Invoice Date
Requested deliv.date
Confirmation document Overview
Confirmation number
PO number
Name
Approval Status of Goods/Service Confirmation
Processing Status Goods and Services Confirmation
Product Category
Product Category ID
Company code
Transfer Status Goods and Services Confirmation
Calendar Day
Number of Confirmed Items
Confirmed Value
Confirmed Quantity
Open Item (Confirmations)
Calendar Day
Product
Supplier
Catalog
Item No.in Order Doc
G/L Account
Company code
Tracking Number
Purchase Order Number
Name
Goods Recipient
Open Order Value
Open Delivery Value in %
Open Order Quantity
Excessive Invoices
Purchase Order No.
Name of PO
Calendar Day
Requester
Vendor
Item No.in Order Doc
Invoice Number
Company code
Tracking Number
Invoice value is too high
Open Item (Invoices)
Purchase Order No.
Name of PO
Calendar Day
Product Description
Product
Vendor
Material
Company code
Tracking Number
Item No.in Order Doc
Product Category ID
Open Invoice Value
Open Invoice Quantity
Variance Invoice Value/Order Value
Product
Product Description
Vendor
Calendar Day
Purchase order number
Name of PO
Company code
Product Category ID
Requester
Order Quantity in Base Unit
Net Order Value in Default Currency
Expected Net Order Value in Defalt Currency
Confirmed Quantity (BUoM) for Order Date
Net Confirmed Value in Default Currency for Order Date
Quantity Variance Confirmation
Price Variance Confirmation
Invoiced Quantity (BUoM) for Order Date
Net Invoiced Value in Default Currency for Order Date
Quantity Variance Invoice
Price Variance Invoice
Deadline monitoring u2013 Current values of required delivery date
Requested Deliv.Date
Purchase Order No.
Name of PO
Product Description
Product
Vendor
Requester
Purch. Organization
Product Category
Product Category ID
Company code
Tracking Number
Perform to
Performed from
Open Order Value
Open Delivery Value in %
Net Order Value in Default Currency
Expected Net Order Value in Defalt Currency
Net Limit in Default Currency
Net Confirmed Value in Default Currency for Order Date
Net Invoiced Value in Default Currency for Order Date
Purchase order status
Processing Status of Purchase Order
Purchase Order Number
Transaction Description
Calendar Day
Category
Product Description
Company code
Item No.in Order Doc
Product Category
Product Category ID
Order Value
Order Quantity
Net Limit
Unit Price
Purchase Order per product/product category (UNSPSC)
Product
Processing Status of Purchase Order
Company code
Product Category ID
Name
Calendar Day
Purchase Order No.
Product ID
Item No.in Order Doc
Vendor
Net Order Value in Order Currency
Order Quantity in Base Unit
Unit Price
Net Limit
Kindly help me in getting MM standard reports for the above funtionalities.
Product means --> material
Product ID means--> material ID
Product category ID, UNSPSC means--> material Group
Confirmations means--> Goods reciept
Thanks in advance.
Regards,
William
Edited by: william wales on Aug 24, 2011 6:09 AM
Edited by: william wales on Aug 24, 2011 6:12 AMHi
Here are some std. reports in SAP check if it is useful
MM Reports
Materials Management: Master Data Reports
*Master Data *
MM03 Display Material Master
MK03 Display Vendor u2013 Purchasing
MK04 Purchasing Vendor Changes
XK03 Display Vendor u2013 Central
XK04 Central Vendor Changes
ME1L Info Records by Vendor
ME1M Info Records by Material
ME1P Purchase Order Price History
ME1E Quotation Price History
ME13 Display Info Record
ME14 Display Info Record Changes
ME03 Display Source List
ME04 Display Source List Changes
MEQ3 Display Quota Arrangement
MEQ4 Display Quota Arrangement Changes
MKVZ Display Purchasing Vendor List
MKVG Display Vendor Condition Groups
MSC3N Display Batch
MEKA Display Purchasing Conditions
MN03 Display Message Condition u2013 RFQ
MN06 Display Message Condition u2013 Purchase Order
MN09 Display Message Condition u2013 Scheduling Ag.
MN12 Display Message Condition u2013 Delivery Sched.
MM60 Display Materials List
Materials Management: Procurement and Stock Reports
*Logistics Information Reports (Stock) *
MCBA Plant
MCBC Storage Location
MCBE Material
MCBR Batches
MC.9 Material Stock
MC.A Material Receipts / Issues
MC.B Inventory Turnover u2013 Material
MC.1 Plant Stock
MC.2 Plant Receipts / Issues
MC.3 Plant Inventory Turnover
MC.5 Stock u2013 Storage Location
MC.6 Storage Location Receipts / Issues
MC.7 Storage Location Inventory Turnover
*Purchasing Information System *
MCE1 Purchase Group Analysis
MCE3 Vendor Analysis
MCE5 Material Groups Analysis
MCE7 Material Analysis
MC$G Material Purchasing Values
MC$I Material Purchasing Quantities
MC$O Material Frequencies
MC$4 Vendor Purchasing Values
MC$6 Vendor Purchasing Quantities
MC$: Vendor Frequencies
MC$0 Purchasing Group Values
MC$2 Purchasing Group Frequencies
MC$< Material Group Purchasing Values
MC$> Material Group Purchasing Quantities
MC$E Material Group Frequencies
Purchasing Reports
ME80FN General Analysis of Purchasing Documents
ME81N Analysis of Order Values
ME23N Display Purchase Order
ME53N Display Purchase Requisition
ME5A List Display Of Requistions
ME33L Display Scheduling Agreement
ME39 Display Delivery Schedule
ME43 Display RFQ
ME4L List RFQ by Vendor
ME4M List RFQ by Material
ME4S List RFQ by Collective Number
ME48 Display Quotation
ME2L Purchasing Documents per Vendor
ME2M Purchasing Documents per Material
ME2K Purchasing Documents by Account Assignment
ME2W Purchasing Document by Supplying Plant
ME2V Expected Goods Receipts
MD13 Display Planned Order Single
MD16 Display Planned Order Collective
Invoice Reports
MB5S List of GR/IR balances
MIR6 Invoice Overview
MIR4 Display Invoice
MIR5 Display Invoice List
Stock Reports
MMBE Stock Overview
MB51 Material Document List
MB03 Display Material Document
MB54 Vendor consignment stocks
CO09 Material Availability
MB5C Batch Where Used Pick Up List
Physical Inventory Reports
MI22 Physical Inventory Document u2013 material
MI23 Physical Inventory Data u2013 material
MIDO Physical Inventory Overview
MI03 Display Physical Inventory Document
MI06 Display Count Document
MRP Reorder Point
MD21 Display Planning File Entries
MDRE Planning File Entries Consistency Report
MD04 Stock Requirements List
MD05 MRP List Material Display
MD06 MRP List Collective Display
MD07 Stock Requirements List Collective
Thanks
Edited by: Nijamudeen**MM on Aug 24, 2011 10:18 AM -
How get report of short text in tcode MCS3N ?
Hello Experts,
I need to provide report to the client listing Materials and corresponding bathes with short text (DFBATCH-KZTXT) and Shelf Life Exp. Date
I understand from community that I can Use FM 'READ_TEXT' to get this values but the problem is it provides value for one record and need this information for about 500 records. Is there any better way to do this ?
Please advise !
Thanks,
DarshakHi,
As my knowledge there is no other way to read, however this will retrieve the result very fast so there wont be any performance issue you can use this read_text FM within the loop.
If its an format_message so we can achieve other way I suppose.
Regards,
Vadamalai A -
Physical inventory document - for all A parts
Hi,
We are in the process of preparing our system for physical inventory count for all A parts (Cycle count indicator is A).
1. We ran MI24 to get all open physical inventory documents.(they are around 100).
2.Then we ran MI31 (didn't create batch input) for all A parts and the following are checked - 1. Material marked for deletion 2. only materials w/o zero stock 3. Unrestrcited use 4. Blocked 4. Include inventoried materials 5. Included inventoried batches. The variant for MI31 includes all A parts in the material selection and the required plant and SL are input. The output said, phy inventory documents could be created for 656 materials.
3. I wrote a query with MARC and MARD to get all A parts with unrestricted quantity > 0 for the above specified plant and SL. The list produced 882.
The above two counts are not matching.
I ran MI31 for some of the materials which are in the list materials as per point 3 but not in the above 2. But MI31 said, no physical inventory document can be created.
We want to make sure both the both numbers are equal (step 1 + 2 = step 3), to make sure all A parts will be counted. Can anyone explain why they are not matching? or Am I missing something?
OR any other ways to make sure all A parts will be counted. Thanks,
Regards,
Sundar.Please refer my comment. It may be useful for you.
There are two ways if you want to carry out Physical Inventory count
1)Manual -
First check if there are no open PI document for a material using MI31.
Then carry out three transactions one after another MI01, MI04, MI07
2) Automatic
Maintain CC physical inv. indicator in material master i.e A, B, C
Before that ensure that you have maintained SPRO setting for A, B and C.
Ok Now check the planned count date in MARC table. Run a Z program to change the last count date
Now run MICN and schedule a job to create PI documents -
How to configure item proposal
Hello Gurus, i'm trying to configure item proposal...but can't see the effect on VA01..i've created VA51 record for item proposal and then assigned in XD02 at sales in sales data....is there any thing else i've to still do...so that when i put the partnet function-SP number in VA01...it should give the message or record of the existing item proposal? Please correct me if i'm wrong. Thanx
Hi,
Item propsal is a list of materials which you can call up during the order entry.
You create the item proposal by trazaction VA51.
Where as Dunamic Product Prossal( which you are refering as Product proposal )is dynamic order entry tool.
Dynamic Product proposal can be determined by different data sources as below.
Order history.
Listed materials .
Excluded materials .
Item proposal .
Customer/material info records .
Customer-specific data sources.
In the dynamic product proposal You can combine/exclude materials from different data sources mentioned above.
Say for example, you could combine the total of all materials in the last n-sales plus all materials in certain item proposals, but excluding those specified in the exclusion.
Dynamic Product Proposal is called /determined as soon as you enter the sold party in the order.
You can reach IMG customising steps by
IMG >SD>Basic functions>Dynamic Product Proposal .
regards,
Siddharth. -
Collective Release of Purchase Requistion
Hi,
Is there a way that i can enhnace the screen of multiple release of PR (tcode: me55).
we are using ecc6 at the moment and the screen for this tcode is not really friendly compare to ME28
is there anyway to improve the me55 screen to behave like alv
pls. advise. thanks
sheHi
Also you can default in SPRO.Please follow the below path to default the Scope of list:
Materials Management--PurchasingReportingMaintain Purchase Requisition List--
Define default values for Transaction
Here you can default the scope of list.
Regards,
Manish -
Hi Friends,
All the configuration has been setup properly for dynamic product proposal like:
u2022 Define the customer pricing procedure for the product proposal
u2022 Define the document pricing procedure for the product proposal
u2022 Assign the document pricing procedure for the product proposal to sales document types
u2022 Maintain the table of origin for the product proposal
u2022 Define the procedure for the product proposal and specify the access sequences
u2022 Maintain procedure determination (in background) for the product proposal
u2022 Maintain procedure determination (online) for the product proposal
In background product proposal procedure I have mentioned access sequence like below mention:
Function Module FM ACTY Source Sorting
1 SD_DPP_HISTORY A A Order History 1
2 SD_DPP_EXCLUSION A E Exclusion 2
3 SD_DPP_LISTING A B Listing 3
Online procedure Details is like below mention :
Function module FM ACTY Sorting
1 SD_DPP_READ A 1
Table of origin is maintained for :
u2022 Order history
u2022 Listed materials
u2022 Excluded materials
u2022 Item proposal
u2022 Customer/material info records
Now I am getting the below mentioned error :
1) If I do not run report SDPVGEN the sales order material created after running this report does not comes while create a new sales order
2) While creating the sales order for the same customer material numbers are automatically coming in the sales order without quantityu2026u2026. According to me it should not come directly in sales order it should give the selection screen to select the material with quantity
3) It does not consider material which is in material listing, if no any order is created for that material number
4) Its not taking in to consideration to item proposal material automatically, to get the item proposal material in newly created sales order I need to press CNTRL+F1
Kindly Help.
Regards
SVhi,
1) sdpv is the report you need to generate for the explosion of Dynamic product proposal into the sales order.
2) Dynamic product proposal is an extension to Item proposal, in Item proposal you have to click " propose items"
button to display the selection and so on........ however, in DPP system will automatically retrieve the data
using the Function module and source you have mentioned say " order history " without quantity. -
Dear Gurus
Can any one tell me the configuration of Dynamic item proposal
Thnaks in advance
Sneha ReddyDynamic Product Proposal
A product proposal is a list of products for a specific customer that is automatically proposed during sales document processing. You can decide for yourself which materials should be displayed as product proposals in the sales document. You can also determine the sequence in which the materials appear in the product proposal.
During sales document processing, the system displays a product proposal in the item overview according to the customer and the business transaction. It displays the material number, material description, and historical order quantites in the sales unit last used. To use a material again, you just have to copy it. The system does not run the standard checks (pricing, availability, incompletion, material determination, free goods determination and so on) until you have entered the order quantities.
The product proposal is both an entry help and an aid to sales support and promotions. It is particularly useful in Telesales, where the employee automatically receives a display of all the materials that are of interest to a particular customer. This helps them to provide appropriate advice to the customer quickly and easily. The sales document history enables you to analyse the purchasing behaviour of a customer and recognize early on if it changes, for instance, when the customer suddenly stops ordering a product.
The product proposal differs to cross-selling in that it is dependent on the customer and sales area, and is displayed in the sales document as soon as you have entered a customer. Cross-selling, on the other hand, is triggered by a material. In other words, the system proposes cross-selling materials according to the material or a characteristic of the material you have entered.
You can determine the product proposal from different data sources:
Order history
Listed materials
Excluded materials
Item proposal
Customer-material info records
Customer-specific data sources
You can combine materials from these data sources to create a product proposal. The system then accesses the data sources either online or in the background.
To define a product proposal for sales document processing, you must carry out the following activities in Customizing:
Define customer procedure for product proposal
Define document procedure for product proposal
Assign document procedure for product proposal to order types
Maintain table of origin for product proposal
Define product proposal procedure and determine access sequences
Maintain procedure determination (in background) for product proposal
Maintain procedure determination (online) for product proposal
The product proposal procedure determines how the system displays the product proposal in the sales document. For instance, if the system has accessed the order history, it determines how many columns should be displayed in the sales document, in which period intervals thehistoric order quantities should be displayed (for instance, day, week, or month), and most importantly, the sequence in which the system should access the data sources (for example, order history, listing, exclusion).
The product proposal procedure depends on the:
Customer determination procedure
The customer procedure determines which product proposal procedure the system automatically uses when you create a sales document for a particular customer.
It is specified in the customer master record per sales area.
Document determination procedure
The document procedure determines which product proposal procedure the system automatically uses for a certain document type. The document procedure is stored as a key in the header for the sales document type.
If you use online processing, the product proposal procedure is determined according to the customer and document determination procedures.
If you use background processing, the product proposal procedure is determined according to the sales area in the customer master and the customer determination procedure. It does not use the document determination procedure because the document type is not recognized in background processing.
It will help .
Regards,
Subbarao -
Mass upload of Alternative unit of measure using MASS
Hi All,
Can some one guide me how to upload alternative unit of measure using MASS Transaction - can you elaborate like fields to be considered also, as I am trying using MM17 but could not go further.
Thanks,
Vengal Rao.it is possible to create alternative units using MM17. But I would not use the word upload in that matter, as you cannot upload from an external file.
start MM17-
select table MARM and execute
you see 2 tabs,
you are at the Change record tab, please set indicator for do not change existing data, then go to the creation tab
enter the material number and the alternative unit you want add .
then execute
Now you see your material number, the new unit and the material description
click the icon for field selection and add the field nominator and denominator (and all other fields where you usually enter data) to your shown fields.
enter the value of your choice and save.
if you want add the same value for nominator and denominator to all the materials listed, then enter the value in the fields that are listed above the listed materials. then click the header title above all fields that shall be distributed followed by the mass change button. Finally press save button. -
Experts:- In FI related T-codes and Co related transaction codes using the in End User part or End user postings plz including description, means which one purpose.
T codes to be used for Controlling-
KA01 KA01 - Create Primary cost element
KA06 KA06 - Create Secondary
KA02 KA02 - Change
KA03 KA03 - Display
KA04 KA04 - Delete
KAH1 KAH1 - Create primary cost eelement group
KAH2 KAH2 - Change
KAH3 KAH3 - Display
KS01 KS01 - Create cost center
KS02 KS02 - Change
KS03 KS03 - Display
KS04 KS04 - Delete
KSH1 KSH1 - Create cost center group
KSH2 KSH2 - Change
KSH3 KSH3 - Display
KL01 KL01 - Create activity
KL02 KL02 - Change
KL03 KL03 - Display
KL04 KL04 - Delete
KP06 KP06 - Change cost center planning input / activity
KP06 KP06 - Change Cost center budget input/ activity
KO01 KO01 - Create internal order
KO02 KO02 - Change internal order
KO03 KO03 - Display internal order
KOH1 KOH1 - Controlling -> Internal Orders -> Master Data -> Order Group -> C
KOH3 KOH3 - Controlling -> Internal Orders -> Master Data -> Order Group -> D
KOH2 KOH2 - Controlling -> Internal Orders -> Master Data -> Order Group -> C
KPF6 KPF6 - Change internal ordr planning
CK40N CK40N - Edit Costing Run
CK11N CK11N - Create cost estimate with qty. structure
CK13N CK13N - Display cost estimate with qty. structure
CKMLCP CKMLCP - Edit Costing Run
KKF6N KKF6N - Edit product cost collector
MF30 MF30 - Preliminary Costing for Product Cost Collectors
KRMI KRMI - Actual Costs product cost colector
KKBC_PKO KKBC_PKO - detailed Report For Product Cost Collectors
Target/Actual/Production Variances Target/Actual/Production Variances
S_ALR_87013139 S_ALR_87013139 - Cumulative
S_ALR_87013140 S_ALR_87013140 - Periodic
S_ALR_87008180 S_ALR_87008180 - IMG Activity: over head rate changes for secondary cost element (SIMG_ORKK_SERIE_KZM2
S_ALR_87013611 S_ALR_87013611 - Plan/Actual Comparisons -> Cost Centers: Actual/Plan/Va
S_ALR_87013614 S_ALR_87013614 - Plan/Actual Comparisons -> Cost Centers: Current Period
S_ALR_87012249 S_ALR_87012249 - Actual/Actual Comparisons -> Actual/Actual Comparison f
OKENN OKENN - Cost Center Accounting -> Master Data -> Standard Hierarchy -> D
OKEON OKEON - Cost Center Accounting -> Master Data -> Standard Hierarchy -> C
KE51 KE51 - Create profit center
KE52 KE52 - Change
KE53 KE53 - Display
KE54 KE54 - Delete
KE56 KE56 - Company Code Assignment profit center
KCH5N KCH5N - Standard hierarchy Change
KCH6N KCH6N - Display Standard hierarchy
KCH1 KCH1 - Create profit center group
KCH2 KCH2 - Change profit center group
KCH3 KCH3 - Display profit center group
S_ALR_87013326 S_ALR_87013326 - Reports Profit Center Group: Plan/Actual/Variance
CK13 Display Cost estimate for materials-Initial screen
CK24 Cost Release of individual materials
KSPI Execute Plan Price calculation
KP26 Change Activity Type
CS15 Where used list - Materials
CO43 Actual Overhead Updation Run
CO99 & KO8G Engineering Spares Cost Run
IW39 Engineering Mis
MC.9 Closing Stock datewise
CS03 Display Material BOM -
ND material with new s/order
Hello,
I have few materials with ND (MRP type) but no stock, When new sales order is created then there is no way MRP controller can pick these materials in MD07. (but System is showing green light). I have made the settings in SD also that for ND type with CP (schedule line category).
Is there anyway, MRP controller can be pick these ND materials if new order has been raised.
Please suggest.
regards,
JPSDear,
You call up the collective overview of the current stock/requirements list with activated MRP areas for these types of materials with a selection via the plant:
Here, the system lists materials also with plant MRP area although the selection only selects one actual MRP area.
Actually the combination of MRP type and item category determines whether the requirements are passed to MRP. In standard SAP there are no requirements passed for ND.
The item catagory is determined in sales order processing (depending on the sales configuration). Now the key which is the combination of MRP type and Item categiry determines the sch line catgory which passes the requirements to MRP.
Hope this is clear to you.
Regards,
R.Brahmankar
Maybe you are looking for
-
It happens every time I make iTunes music purchases: entire playlists get wiped out, and all I can sync onto the iPhone 5 is what I just purchased, UNLESS, YET AGAIN, I completely restore it to factory and rewrite everything all over. So sad, Apple.
-
On previous versions of Firefox there was a progress bar when you were loading a page. It was in the lower right corner. How can I get it back? It would be very helpful if there was an add on for it for those of us still on dial up.
-
Restarting a song when turning Ipod back on on...
Hello everyone: SOMETIMES when I turn my iPod mini back on (after listening to it)it goes straight to the menu...I then have to scroll all the way through my music to pick up where I left off. SOMETIMES I turn it back on and it just picks up where I
-
Cannot remove warning message from screen
I work remotely and use Outlook Web App to access my emails. Everything works fine other than I always get this warning message: which I cannot remove as the 'Continue' option is unresponsive to clicks. Anyone have any ideas how to cure this?? Many t
-
Where can i download the pkg_app script
Hi , The following link "http://docs.sun.com/app/docs/doc/820-2496/6ne3ia01i?a=view#geraw "mentions to download the pkg_app script from http://kaneda.central.sun.com/pkg_app/. but I am not able to access this link.. Is this the correct location ? Tha