MARV TABLE
How to assign a company code to MARV Table in SAP MM?
Hi,
Why you want to entry company code in table level .....that to MARV table. MARV table generally used to check who and chnage log of posting period.If it is testing server you do the trial process by updating MARV table but not advisable in production server and before performing this action to touch MARV table please contact SAP and take advice.Consult ABAPer also for help.
NOTE:
What transaction you are doing and want to update table, check table T169P for entry of company code.
Regards,
Biju K
Similar Messages
-
Entry change in MARV table.. imp...
Hi,
How can i change the existing entry in table MARV ...
Posting periods by mistake i was extened 3 month in MMPV trasaction ...now i want to revert back the entry. this entry is in MARV table , how can i change the period in table MARV..
Help me.....
Regards,
San Rao..Hi,
Go to SE16N. Open the table MARV. In the tcode list box, which we use to enter tcodes generally, enter '&sap_edit' and press F8. Now you can change the existing data as you like.
Hope it helps you. Reward if helpful
Thanks,
Anil.
Edited by: Anil Japa on Mar 19, 2008 2:15 PM -
Friends,
I have made wrong entry in Fiscal year in through MMRV. Now to edit in MARV table I have gone to SE-16n. I have searched old threads. I have tried also for debugging. But it didn't happen. Is there other solution for this??
Or else I am doing something wrong in debugging that is the reason it is not getting edited. If screen shot is there in any threads it would be great help for me.
Thanks & regards,
SupriyoHi,
please explain you did wrong in MMRV - ok now you want post in previous Period-MM
Please use T code OMSY - check box - allow posting to previous period
Thanking you
Regards
Mahesh -
Issue in OMSY......No values in MARV table.
Dear Experts,
We have moved our requests from Development to Quality system.
In Development, we have values for company code in OMSY.
Means , In the development, the values for Fiscal year of the Current period, Current Period, Fiscal year of the previous period, Previous period, Fiscal year of last period of previous year, Last month of previous year etc are exists for my company code in OMSY. Also these values are appearing in Table: MARV.
But these values are not available for my company code in Quality system. Also, in MARV table, for my company code, no entries found in Quality system. I could not able to update thro MMPV also. When I run MMPV, it is giving message as Company code has no MARV record; no conversion here.
Kindly give your inputs , how I can get the period in OMSY.
Thanks and Regards
SRINIVASANDear Jürgen ,
Thanks for the reply.
The note: 38298 explains only about how the the direct table entries which is icluded in TR is transported.
My issue here is in Development, OMSY settings are there.But we have moved almost 25 requests to Quality and found that it is not there.
Now how can we create an new TR for OMSY in Development and move to Quality & later it can be moved to production also.
When I am trying to modify in OMSY , the system gives message as The company code can no longer be initialized
Message no. MM011.
Kindly help me in this regard.
Regards
Srinivasan -
Entry to Change In MARV Table?
While I was Updating Current & Previous period one shot with se16n in Table MARV and with "&sap_edit". I have made a wrong Entry in the dates and year in the company code and have saved the data.
I repeated the same method to edit the wrong entry, but am not able to do. What is the way out.
An early response to this would be highly appreciable.
regards
SidharthHi,
Let me explain the details
I had checked the posting to be done for previous period with MMRV the details displayed is as below.
Current period - 12 / 2006
Previous Period - 11/ 2006
Last Period in Previous Year - 12 / 2005
To Update this in one shot i had used
Code - se16n
Table - MARV
Entered Company code.
Used Code - &sap_edit
Then F8 (Execute)
Post this by mistake i edited the table wrongly as
Current period - 06 / 2012
Previous Period - 05 / 2012
Last Period in previous Year - 12 / 2011 and saved it, i have by mistake made an entry one year forward. This is creating error in posting the stock.
I tried repeating the same method to edit my mistake but am not able to do so.
Now as per your suggestion using code MMPV, will it take me backwards to year 2011 and correct the table. If Yes, Also suggest me an alternative way to close the period one shot. As using MMPV i will have to close the period month on month basis and will take time to do so.
Regards
Sidharth -
Entry Change In MARV Table?
While I was Updating Current & Previous period one shot with se16n in Table MARV and with "&sap_edit". I have made a wrong Entry in the dates and year in the company code and have saved the data.
I repeated the same method to edit the wrong entry, but am not able to do. What is the way out.
An early response to this would be highly appreciable.
regards
Sidharth
Moderator message: not directly related to ABAP development, please have a look in the respective functional forum, and do not use "&sap_edit" on standard tables in the future.
Edited by: Thomas Zloch on Jun 30, 2011 11:38 AMHi,
Go to SE16N. Open the table MARV. In the tcode list box, which we use to enter tcodes generally, enter '&sap_edit' and press F8. Now you can change the existing data as you like.
Hope it helps you. Reward if helpful
Thanks,
Anil.
Edited by: Anil Japa on Mar 19, 2008 2:15 PM -
MMPV MARV Periods in Transport orders
Hi Gurus,
Check this out:
While customizing in my actual project the table MARV, that keeps the logistic period data, has been set to a transport order to another client in the same machine, meaning that I can set MMPV to period '12' in the testing machine '200', but whenever I transport the order from client '100' to '200' with MARV table the logistic period is reset to '10'. I can change in '200' back to '12' but whenever I transport a customizing order to '200' the logistic period is reset to '10'... Strange.
I've looked some SAP Notes but I have no information there. I can easily solve the problem by opening period '12' on client '100', but still I wouldn't expect this to happen. Do you thing I should remove this object from the transport order?
Any clues?
Cheers.Hi Gurus,
Check this out:
While customizing in my actual project the table MARV, that keeps the logistic period data, has been set to a transport order to another client in the same machine, meaning that I can set MMPV to period '12' in the testing machine '200', but whenever I transport the order from client '100' to '200' with MARV table the logistic period is reset to '10'. I can change in '200' back to '12' but whenever I transport a customizing order to '200' the logistic period is reset to '10'... Strange.
I've looked some SAP Notes but I have no information there. I can easily solve the problem by opening period '12' on client '100', but still I wouldn't expect this to happen. Do you thing I should remove this object from the transport order?
Any clues?
Cheers. -
Starnge issue with posting periods
Hi All,
I am facing a strange issue with posting periods....
When I go to OMSY i can see that periods 10 & 9 are open. the I go to MMPV and close periods. Again when I go back into OMSY I can see that now periods 11 & 10 are open. But after sometime when I try to do invoice posting I get the error that posting only possible in periods 10 & 9. I checked in OMSY and it now shows that periods 10 & 9 are open!!
I have closed periods using MMPV atleast 5 times now....I really fail to understand why or how the periods are changing in OMSY?
Regards,
V SHi,
Check in MARV table, if it is still open, while close the period in MMPV, check you are getting message as "Period closed log issued"
Regards,
Prabu -
Revert back posting periods in MMPV..
Hi,
How can i change the existing entry in table MARV ...
Posting periods by mistake i was extened 3 month ahead in MMPV trasaction ...now i want to revert back the entry.
this entry is in MARV table , how can i change the period in table MARV..
Help me.....
Regards,
San Rao..Hi,
NOTE: Involve also FICO Consultant and collect all the documents before proceeding.
MMRV: to check which period is open & also set back posting allowed,
MMPV: to open the period.
It is possible to re-open a previously closed period. However, it is NOT advisable to do so because the valuation data of the previous period could be affected.
In general, it is only safe to reopen a previously closed period when no material postings have been done after the period shifting to the new period.If there has already been a posting after the period shifting to the new period, reverting the period back will cause database inconsistencies in the history tables.
If you decide to proceed with this process, you can use the program RMMMINIT, but, please review the documentation of this program first!! and the check the SAP notes 487381 (for the error message that you are receiving) and the 369637 (for an explanation about the inconsistencies that will be generated.
Steps are as below;
Go to Transaction Code SE38
Enter program name RMMMINIT
Execute or press F8 function button
Enter your company code (From and To)
Enter relevant date: Say 01/02/2008 for Feb. 2008 month to be opened as of now
That means, user can post for the month of Jan 2008 as well as Feb. 2008
Refer SAP Note No. 487381 for more details.
As per SAP Notes 487381 ( If the periods are opened in advance in mmpv to again change it to current period the following process should be follow ), Go to Tcode MMPI, then go to menu bar and select system -> user profile->owndata.In that screen , under the parameters tab enter MMPI_READ_NOTE in Parameter ID field and enter, then under short description you will get Initialise period. Next Save.
Again go to MMPI enter company code, period and year and execute.
OR
NOT ADVICEABLE THIS METHOD, ONLY TRY IN SANDBOX NOT IN RUNNING SYSTEM
1. Use t.code:OX18, and delete the plants assigned to your CO.Cd and save.
2. Use t.code: OMSY and change the posting period to the one u want and save.
3. Use t.code:OX18 and assign the plants you have deleted in step 1.and save.
Regards,
Biju K -
HI Gurus,
While customizing in my actual project the table MARV, that keeps the logistic period data, has been set to a change request.
I have two client one for the customizing and the other to make the test.
In the customizing client in table MARV i have as current period MAY.
Then using transation SCC1 i make the transport on the other client, i open June period in the development test system.
but whenever I make the scc1 to transport the request from one client to another, in MARV table the logistic period is reset to '5'.
it is a veryy strange things,
I can easily solve the problem by opening period 6 on the test client,but still I wouldn't expect this to happen.
Please can anyone help me?
thanks in advance
Antonella
Edited by: antonella ricco galluzzo on Jun 25, 2010 5:18 PMHi,
Follow these steps for the qm inspn procurement.
1.Create Material Master Record with QM View.
2.Activate QM Proc/ Specify Control Key 0001.
3. choose Inspn set up and inspn type to be entered as 01 and set the active indicator.
4. Create Q-info record with material / vendor.(qi01)
5. Enter the release by date as 31.12.9999
7.Create inspn plan(qp01) with usage 5 and status 4and enter the control key as PPQM.
8.Choose the operation and assign the inspn characteristic / sampling procedure
9.MD61/MD02/MD04
10 Convert the Purchase requisition as Purchase Order.
11. Receive the Material against the PO.
12. In MIGO against PO receive the material.
13.QM lot will be created
14.qa02 check inspn plan / sample.
15.qe51n results recording
lot origin 01 mat no and execute results
16.qa11 ud code select accept and chooseinspn tab page and type the qty to be proposed and save.
17.stock will move to unrestricted use .
Regards,
nandha -
Regarding SM20 to fing the log
I want to know all the details of sm20 transaction code.What all we can see on that and what configuration setup we have to do for that.
I m having an issue regarding an t-code MMPI.Posting Date was modified through TCode MMPI/MMPV many times. In MARV table I can able to find only last changes, but I need all the changes with user name and date. Now i want to trace or find log of that MMPI/MMPV t-code who had modified the t-code and the details about the modification.I know it will be avilable in sm20 but i tried i m not getting any log details on that ..
Is there any setting is to be done for SM20
Please guide me i m new to SAP-BASISHi,
Its a Security audit log assessment t-code.
you can go through this link, may be it will be helpful to you.
Im pasting this link coz of lack of time to write.
http://searchsap.techtarget.com/tip/0,289483,sid21_gci1205376,00.html
regards,
Shaheen.
Edited by: Razia Shaheen on Jun 25, 2008 3:00 PM -
Hi all.
I have a issue about update table MARV.
How to update table MARV ?
please, Help me
Thank very much !HAI,
Nghiem,
if u want to enhace the standard tables like MARV, there are two methods
Include
(ii) Append structures
U can added Append structures as u wish to the SAP standard tables. but, if u want to apply include structures, u required access key for that table.
Similarly, Other than Enhancements(Append structures)
u required access key from SAP.
IF USEFUL, REWARD POINTS.
Thank you,
G.V.K.Prasad -
give me the mm related standard tables
Description Table Name
Material Cost Distribution MAKV/MAKG/MAKZ
Other Related EMARA
Structure EMARC
MRP Related EMARC1
Purchase Related EMARC2
PPC Related EMARC3
Material Export Control MAPE/MAEX
Materials --> Task List MAPL
General Data MARA
C Segment MARC
Storage Location /Batch Seg. MARD
Unit of measure MARM/MAMT
Material Control record MARV
Material to BOM Link MAST
Material Valuation MBEW
Stock at Production Storage Bin MBPR
Material Document MSEG
Sales Order Stock MSKA
Special Stocks with Customer MSKU
Project Stock MSPR
Material Master status MSTA
General Data LFA1
VAT Details LFAS
Company Code LFB1
Dunning Details LFB5
Bank Details LFBK
Transactions Details LFC1
Ex/Im Related Details LFE1
Supplying Region LFLR
Purchase Organisation LFM1
Purchasing Data LFM2
Partner Functions WYT3
Stocks MSLB
Vendor Evaluation - Header ELBK
Vendor Evaluation - Material related ELBM
Vendor Evaluation - Main criterion ELBP
Basic Data ASMD
Service Short texts ASMDT
General Data EINA
Purchase Organisation Data EINE
Order Price History EIPA
Ex/Im Header Data EIKP
Ex/Im Detail Data EIPO
Purchasing Source lists EORD
General Data KOMG
Conditions (Item) KONP
General Data AEBAN
Requisitions EBAN
I/O for purchase req. RM06E
Purchasing Docu. Header EKKO
Purchasing Docu. Item EKPO
Conditions in PO KONV
Scheduling Agreement Release Documentation EKEH
Header Data for Scheduling Agreement Releases EKEK
Order Acceptance/Fulfillment Confirmations EKES
Delivery Schedules EKET
Partner Roles EKPA
Quota file header EQUK
Quota file item EQUP
Purchasing Docu. Item EKPO
Release Documentation EKAB
Vendor Address EKAN
History of Purchasing Document EKBE/EKBZ
Purchasing Condition EKKI
Account Assignment EKKN
Shipping Specifications EKPV
Order Acceptance/Fulfillment Confirmations (Shipping documents) EKES
ERS Procedure EKRS
Reservation/dependent requirements RESB
Document Header: Reservation RKPF
CLASS HEADER DATA KLAH
Class Type Texts TCLAT
Characteristics of a Class KSML
Characteristic CABN
Characteristic values CAWN
Value Texts CAWNT
Allocation Table: Object to Class KSSK
Object to Characteristic Values AUSP
Material master valuation info if split valuation is used
MBEW
Batch master MCHA
Storage location batches quantities if batch mgmt is cross plant MCH1
Storage location batches quantities if batch mgmt is not cross plant MCHB
Stocks with vendor (includes batch level) MSLB
Stocks against Sales orders ENT5117
ENT5117 comprises MARD, MSKA
Confirmation control keys T163E
Customising - Description of confirmation control keys T163F
Customising - Link between confirmation control key and confirmation T163G
Confirmation control keys description T163M
Confirmations table for purchase orders EKES
PO line item details -confirmation control key for a PO line item EKPO
Incoterms General TINC/TINT
A/C entries BSIM
Against Orders AUFM
Purchase Order CEKKO
Purchase Requisition CEBAN
Preliminary posting doc.segment for vendors VBSEGK
Preliminary posting doc.segment for G/L accts VBSEGS
Parked invoices have an entry in the BKPF table but do not have an entry in the BSEG table until they are actually posted In the VBSEGS table, all the material line items for a parked invoice are stored. When the parked document is actually posted, the entry from this table is deleted and an entry is made in the MSEG table as a final posting.
Storage Bins LAGP
Control Cycle Header PKHD
Storage Unit Header Records LEIN
Transfer Req. Header LTBK
Physical Inventory Document - Header IKPF
Physical Inventory Document Items ISEG
Physical Inventory Conversion Parameter Appendix ISEGO1
Physical Inventory Document Additional Quantities Appendix ISEGO2
LIFO Material Layer MYML
LIFO Period Stocks, Individual Material MYMP
LIFO-relevant materials MYMS
LIFo Pool Layer MYPL
Forecast Values PROW
Quality notification QMFE
Quality notification - items QMEL
Inspection lot record QALS
Inspection processing: Usage decision QAVE
Material and inspection link QMAT
Problems: Vendor Analysis S102
Problems: Material Analysis S102
Sales Related material data S004
Purchasing group related data S011
Purchasing related LIS reports S012
Vendor Evaluation data S013
Subsequent Settlement S015
Material Usage S026
Stocks related LIS reports S031
Current Stock & grouping terms S032
Movements for single records S033
Movements for Batches S034
Batch Stocks S035
Batch Analysis data S038
Planning S039
Vendor Statistics S068
Purchasing S080/S081/S082
Stock placements/Removals WM S090
Flow of Quantities S091
Stock/Requirements Analysis S094
LIS Related Views MCDY/MCL
Client T000
Account Assignments T163K/T163I
Authorization Objects TOBJ/TOBJC/TOBJT
Certificate Catg T069
Check Table Info. DD08L
Control Table for Vendor Evaluation T147
Currency Codes TCURC
Definition for Main Criteria for Vendor Evaluation T147A
Definition for Subcriteria for Vendor Evaluation T147C
Definition of Evaluation Paths T77AW
Definition of Scope of List: Vendor Evaluation T147M
Description of Evaluation Groups T087T
Description of Weighting Keys in Vendor Evaluation T147F
Descriptions of LIS Information Structures TMC4T
Descriptions of Logical Screens T133B
Descriptions of Material Status from MM/PP View T141T
Descriptions of Release Groups T16FH
Descriptions of Release Indicators for Services T16FM
Descriptions of Release Indicators: Purchasing Documents T16FE
Descriptions of Release Strategies T16FT
Division Master TSPA
Domain Names DD01L
Domain Range DD07L
Field Names DD04L
Inv. Management: Text Table for Trans./Event Types Allowed T158T
Inv. Managmt Print Function: Active Form Version, Labels T159M
Inv. Mngmt - General: Transaction/Event Types Allowed T158V
Inv. Mngmt Print Function: Maintain Text Name for Labels T159O
LIS - Environment generation sample reports and references TMCE
LIS Default Sets and Format Classes TMCSE
LIS Evaluations TMCSA
LIS Evaluations: Texts TMCST
LIS Information Structures TMCSB
LIS Libraries TMCSC
LIS objects TMCO
LIS Planning: Key Matrix Selection Control Table T444P
LIS Planning: Screen Sequence Control Table T444K
LIS Readings for Internal Number Assignment: Alphanumeric TMCSD
LIS Standard Reports/Layouts for Evaluations TMCSF
LIS Standard Reports/Layouts for Evaluations: Texts TMCSG
LIS Transaction Code Control TMCTC
LIS: Characteristic Texts (external data and R/2) TMCTX
LIS: Status Management - Updating TMC2
Logon data USR02
Main Criteria in Vendor Evaluation T147G
Material authorization groups in quality management TQ01B
Material Group T023
Material Group Descriptions T023T
Material Groups T023
Material Ledger Table TCKM1
Material Ledger Text Table TCKMT
Material master field selection T130A
Material master screen sequence control T138B
Material Pricing Group 1 TVM1
Material pricing group 1: Description TVM1T
Material Pricing Group 2 TVM2
Material Pricing Group 2: Description TVM2T
Material Pricing Group 3 TVM3
Material pricing group 3: Description TVM3T
Material Pricing Group 4 TVM4
Material pricing group 4: Description TVM4T
Material Pricing Group 5 TVM5
Material pricing group 5: Description TVM5T
Material Pricing Group for Export/Import: Descriptions TVFMT
Material Pricing Group: Shipping Materials TVEGR
Material Pricing Group: Shipping Materials: Designations TVEGRT
Material statistics groups TVSM
Material Status from Materials Management/PPC View T141
Material Substitution: Reasons TVSU
Material Substitution: Texts for Reasons TVSUT
Material Taxes TSKM
Material Type Descriptions T134T
Material Types T134
Material Types Allowed in BOM T415M
Material: Account Assignment Group Texts TVKMT
Material: MRP profiles (definition) T401A
Materials Provided Indicator Texts T417T
Materials Provided Indicators T417
Materials: Account Assignment Groups TVKM
Materials: Item Category Groups in Mat.Master: Texts TPTMT
Materials: Item Category Groups in Material Master TPTM
Materials: Product Hierarchies T179
Materials: Product hierarchies (inverse) T179I
Materials: Product hierarchies: Texts T179T
Materials: Sales status TVMS
Materials: SD Status: Texts TVMST
Materials: Statistics groups: Texts TVSMT
Movement Type T156
Movement Type Text T156T
Movement Type: Quantities/Value Posting T156S
Movement Types: Screen Selection T156B
MRP T024D
MRP default values per material type TMW00
MRP description T438T
MRP distribution key (texts) T437W
MRP group text T438X
MRP lot sizes T439A
MRP Profile Descriptions T401T
MRP transaction control T450
MRP Type T438A
Physical Inventory Stock Types T064A
Physical Inventory Stock Types and Allocated Movement Types T150
Physical Inventory: Texts T064T
PO Tolerance Limits T169G
Pricing Procedure T683
Pricing Procedure: Data T683S
Pricing Procedures: Determination in Sales Docs. T683V
Pricing Procedures: Procedure: Texts TVKVT
Pricing Procedures: Texts T683T
Pricing Procedures: Transaction TVKV
Purchase Order History Categories T163B
Purchasing Area T026
Purchasing Document Types T161
Purchasing Group T024
Purchasing Groups T024
Purchasing organisations T024E
Purchasing Organizations T024E
Purchasing Organizations T024Z
Purchasing value key T405
Purchasing Various Control Parameters TMED
R/3 Objects TADIR/TRDIR
Release Codes T161E
Release Codes T16FC
Release Groups T16FG
Release Indicator, Purchase Requisition T161S
Release Indicators: Purchasing Document T16FB
Release Indicators: Service Entry Sheet T16FL
Release Point Assignment for Purchase Requisition Release T161F
Release Prerequisite, Purchase Requisition T161G
Release Prerequisites T16FV
Release Statuses T16FK
Release Strategies T16FS
SAP Tables DD02L
Scope of List: Vendor Evaluation T147O
SQL Tables DD06L
Stock display: basic list/detail list T136
Stock Mngmt Levels for Inventory Sampling T064S
Stock Types and Allocated Fields in Physical Inventory T150F
Stock Types and Texts for Physical Inventory T064B
Stock Types and Their Values T156C
Storage Bin Structure for Automatic Creation of Storage Bins T343
Storage Bin Type Search T334P
Storage Classes T646L
Storage Classes Allowed per Storage Type T331L
Storage Condition Texts T142T
Storage Conditions for Materials T142
Storage for Search Terms TSFST
Storage Locations T001L
Storage Section Indicators T304
Storage Section Names T302T
Storage Section Search T334B
Storage Type Control T331
Storage Type Control for Block Storage T331B
Storage Type Descriptions T301T
Storage Type Indicators T305
Storage Type Search T334T
Storage Unit Type Check T334E
Storage Unit Types T307
Table + Field Name DD03L
Table Tech. Specs DD09L
Table/Field Def. DD03VV
Texts for Main Criteria in Vendor Evaluation T147B
Texts for Scope of List in Vendor Evaluation T147N
Texts for Subcriteria in Vendor Evaluation T147D
Transaction Code Texts TSTCT
Transaction Codes T588A
Transaction Control: Inventory Management T158
Transaction Control: Physical Inventory T158I
Transaction Control: Services Management T265
Transaction Description T167T
Transaction Parameters T7032
Transaction Texts: Invoice Verification T169X
Units of Measure T006
User address data USR03
User master record USR01
Valuation - Control TKEVA01
Valuation acc. to Length of Absence T5A4T
Valuation area T001K
Valuation area control table TCKM2
Valuation Category/Valuation type T149B
Valuation Class Descriptions T025T
Valuation Classes T025
Valuation Classes T025
Valuation Classes T554O
Valuation difference temporary storage TBKOW
Valuation Levels for LIFO Inventory Valuation T001Y
Valuation method names T044B
Valuation methods T880B
Valuation of Pay Scales for Statistics T5D3N
Valuation Strategies (CO-PA) TKEVA02
Valuation type/valuation class T149
Valuation types for valuation area T149A
Valuation variant for order costing TCO10
Valuation Variants in Costing TCK05
Valuation Variants in Costing - Texts TCK06
Valuations T863W
Vendor account groups T077K
Vendor Evaluation: Assignment Percentages - Points Scores T147K
Vendor Hierarchy Category TLHIT
Vendor master data screen selection (purch.org.) T079M
Warehouse costs for MRP lot size T439L
Warehouse Number Descriptions T300T
Weighting Keys in Vendor Evaluation T147J
WM Default Values T340D
WM Movement Types T333
WM Names of Storage Bin Types T303T
WM Screen Selection T341
WM Storage Bin Types T303
WM Storage Sections T302
WM Storage Types T301
WM Transactions T340
WM Warehouse Numbers T300
WM: Assignment MM Storage Location to WM Warehouse Number T320 -
How to dispaly datas from the table, base on the selection screen
hi there gurus,
im currently developing a stock aging report,
i have completed one program but it do not allow me to excutes the program althought the syntax is correct.
i would to get some ideas from you, regarding how to extract the datas from the tables?
my selction screen will be, mat number, date, and gl account.
and the out put datas are, mbew-matnr, makt-maktx, mbew-lbkum, mara_meins, mbew-salk3,and the consumptions for the past 12months and the values for it.
can u plz guide me with this,
thank you,.
this is kind of very urgent program that i need to finish , plz help me.here is the total code the i do
REPORT ZSTK_AGING_REP2.
*TABLES
TABLES: mseg,
mara,
makt,
SKAT,
SKA1,
MARV,
T001,
T030,
T149D,
AM07M,
MCMSEG,
T001K,
T001W,
T134M,
vbak,
mbew,
mcon, rmcb0, marc, t024w, mvke, v134w, t438a, propf, maprf, t000, t024e
, tvko.
DATA: BEGIN OF ta_material OCCURS 2,
werks LIKE mard-werks,
lgort LIKE mard-lgort,
matnr LIKE mard-matnr,
labst LIKE mard-labst,
umlme LIKE mard-umlme,
insme LIKE mard-insme,
einme LIKE mard-einme,
speme LIKE mard-speme,
retme LIKE mard-retme,
verpr LIKE mbew-verpr,
maktx LIKE makt-maktx,
meins LIKE mara-meins,
bukrs LIKE t001-bukrs,
konto LIKE t030-konts,
butxt LIKE t001-butxt,
txt50 LIKE skat-txt50,
MABTR LIKE MCMSEG-DMBTR,
SKBTR LIKE MCMSEG-DMBTR,
WAERS LIKE T001-WAERS,
WAER2 LIKE T001-WAERS,
BWKEY LIKE MBEW-BWKEY,
LBKUM LIKE MBEW-LBKUM,
MEINS LIKE MARA-MEINS,
SALK3 LIKE MBEW-SALK3,
WAERS1 LIKE T001-WAERS,
BUKRS1 LIKE T001-BUKRS,
KONTO1 LIKE T030-KONTS,
lbkum LIKE mbew-lbkum,
erdat LIKE vbak-erdat,
END OF ta_material.
DATA: BEGIN OF ta_mseg OCCURS 2,
mblnr LIKE mseg-mblnr,
*->Begin of KL02+ -
mjahr like mseg-mjahr,
zeile like mseg-zeile,
*->End of KL02+ -
meins LIKE mseg-meins,
menge LIKE mseg-menge,
werks LIKE mseg-werks,
lgort LIKE mseg-lgort,
matnr LIKE mseg-matnr,
budat LIKE mkpf-budat,
saknr LIKE SKA1-SAKNR,
END OF ta_mseg.
single recs based on MATNR
DATA: BEGIN OF i_matnr OCCURS 0,
werks LIKE mard-werks,
lgort LIKE mard-lgort,
matnr LIKE mard-matnr,
maktx LIKE makt-maktx,
mblnr LIKE mseg-mblnr,
verpr LIKE mbew-verpr,
labst LIKE mard-labst, "Valuated stock with
*unrestricted use
umlme LIKE mard-umlme, "Stock in transfer
*(from one storage location to another)
insme LIKE mard-insme, "Stock in quality
*inspection
einme LIKE mard-einme, "Total Stock of All
*Restricted Batches
speme LIKE mard-speme, "Blocked stock
retme LIKE mard-retme, "Blocked Stock Returns
meins LIKE mara-meins, "base unit
bukrs LIKE t001-bukrs,
konto LIKE t030-konts,
butxt LIKE t001-butxt,
txt50 LIKE skat-txt50,
MABTR LIKE MCMSEG-DMBTR,
SKBTR LIKE MCMSEG-DMBTR,
WAERS LIKE T001-WAERS,
WAER2 LIKE T001-WAERS,
BWKEY LIKE MBEW-BWKEY,
LBKUM LIKE MBEW-LBKUM,
MEINS LIKE MARA-MEINS,
SALK3 LIKE MBEW-SALK3,
WAERS1 LIKE T001-WAERS,
BUKRS1 LIKE T001-BUKRS,
KONTO1 LIKE T030-KONTS,
lbkum LIKE mbew-lbkum,
END OF i_matnr.
recs based on MBLNR
DATA: BEGIN OF i_mblnr OCCURS 0,
mblnr LIKE mseg-mblnr,
werks LIKE mseg-werks,
lgort LIKE mseg-lgort,
matnr LIKE mseg-matnr,
menge LIKE mseg-menge,
meint LIKE mseg-meins,
budat LIKE mkpf-budat,
bukrs LIKE t001-bukrs,
konts LIKE t030-konts,
butxt LIKE t001-butxt,
txt50 LIKE skat-txt50,
MABTR LIKE MCMSEG-DMBTR,
SKBTR LIKE MCMSEG-DMBTR,
WAERS LIKE T001-WAERS,
WAER2 LIKE T001-WAERS,
BWKEY LIKE MBEW-BWKEY,
LBKUM LIKE MBEW-LBKUM,
MEINS LIKE MARA-MEINS,
SALK3 LIKE MBEW-SALK3,
WAERS1 LIKE T001-WAERS,
BUKRS1 LIKE T001-BUKRS,
KONTO1 LIKE T030-KONTS,
END OF i_mblnr.
TYPES: BEGIN OF t_mat,
lgort LIKE mseg-lgort,
werks LIKE mseg-werks,
matnr LIKE mseg-matnr,
mblnr LIKE mseg-mblnr,
maktx LIKE makt-maktx,
meins LIKE mara-meins,
meng0 LIKE mbew-lbkum,
value0 LIKE mbew-salk3,
meng0 LIKE mard-labst, "0 to 10 days
value0 LIKE mseg-dmbtr,
meng1 LIKE mard-labst, "11 to 30 days
value1 LIKE mseg-dmbtr,
meng2 LIKE mard-labst, "31 to 60 days
value2 LIKE mseg-dmbtr,
meng3 LIKE mard-labst, "61-90
value3 LIKE mseg-dmbtr,
meng4 LIKE mard-labst, "90 days onwards
value4 LIKE mseg-dmbtr,
END OF t_mat.
DATA: i_mat2 TYPE t_mat OCCURS 0 WITH HEADER LINE.
TYPES: BEGIN OF t_mat2,
lgort LIKE mard-lgort, " storage location
cnt0(5),
cnt1(5),
cnt2(5),
cnt3(5),
cnt4(5),
meng0 LIKE mbew-lbkum,
value0 LIKE mbew-salk3,
meng0 LIKE mard-labst, "0 to 10 days
value0 LIKE mseg-dmbtr,
meng1 LIKE mard-labst, "11 to 30 days
value1 LIKE mseg-dmbtr,
meng2 LIKE mard-labst, "31 to 60 days
value2 LIKE mseg-dmbtr,
meng3 LIKE mard-labst, "61-90
value3 LIKE mseg-dmbtr,
meng4 LIKE mard-labst, "90 days onwards
value4 LIKE mseg-dmbtr,
END OF t_mat2.
DATA: i_matsum TYPE t_mat2 OCCURS 0 WITH HEADER LINE.
DATA: w_mengb TYPE mbew-lbkum,
w_workqyt TYPE mbew-lbkum,
w_index TYPE sy-tabix,
*DATA: w_mengb TYPE mard-labst, "tmp Balance qty
w_workqty TYPE mard-labst, "Work qty
w_index TYPE sy-tabix,
w_days(5) TYPE n, "duration difference (days)
w_mths(5) TYPE n, "duration difference (mths)
w_dat1 TYPE sy-datum, "date
w_dat2 TYPE sy-datum, "today's date
w_detl(1) TYPE c,
w_summ(1) TYPE c,
w_denom TYPE i,
w_numer TYPE i,
w_conv TYPE i,
w_ttlcnt TYPE i,
w_cnt TYPE i,
v_topofpage(1),
w_meng LIKE mard-labst,
w_meng LIKE mbew-lbkum,
*sapscript values
w_title(20) TYPE c. "Summary / Detail Report
DATA: lv_peinh LIKE mbew-peinh, "Price Unit
lv_verpr LIKE mbew-verpr. "Moving Price
proram comes here
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_werks FOR mseg-werks,
s_lgort FOR mseg-lgort,
s_matnr FOR mara-matnr,
s_saknr FOR ska1-saknr,
S_ERDAT FOR VBAK-ERDAT.
PARAMETERS: pck_detl RADIOBUTTON GROUP rep1,
pck_summ RADIOBUTTON GROUP rep1,
pck_dtsm RADIOBUTTON GROUP rep1 DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK blk1.
top of the page
TOP-OF-PAGE.
PERFORM f_top_of_page.
FORM f_top_of_page .
IF v_topofpage = 'D'.
*-->Report header for detail report
WRITE:/2 'Printed By :', sy-uname,
80 'Stock Aging Report - Detail',
180 'Printed on:', sy-datum, sy-timlo,
220 'Page:', sy-pagno.
WRITE:/,/,/.
WRITE:/2 'Storage',
10 'Matl ID',
22 'Matl Description',
61 'UOM',
78 '<--=<QTY ON THIS DATE -->',
78 '<-- =< 10 days -->',
112 '<--11 to 30 days -->',
148 '<--31 to 60 days -->',
181 '<--61 to 90 days -->',
216 '<-- > 90 days -->',
/2 'Location',
76 'Qty',
92 'Value'.
112 'Qty',
128 'Value',
148 'Qty',
164 'Value',
181 'Qty',
195 'Value',
216 'Qty',
231 'Value'.
WRITE:/2 sy-uline(235).
ELSE.
*-->Report header for Summary report
WRITE:/2 'Printed By :', sy-uname,
80 'Stock Aging Report - Summary',
180 'Printed on:', sy-datum, sy-timlo,
220 'Page:', sy-pagno.
WRITE:/,/,/.
WRITE:/2 'Storage',
10 'Matl ID',
22 'Matl Description',
61 'UOM',
78 '<--< QTY ON THIS DATE -->',
78 '<-- < 10 days -->',
112 '<--11 to 30 days -->',
148 '<--31 to 60 days -->',
181 '<--61 to 90 days -->',
216 '<-- > 90 days -->',
/2 'Location',
76 'Qty',
92 'Value'.
112 'Qty',
128 'Value',
148 'Qty',
164 'Value',
181 'Qty',
195 'Value',
216 'Qty',
231 'Value'.
WRITE:/2 sy-uline(235).
ENDIF.
ENDFORM. " f_top_of_page
*start-of-selection
*PERFOM f_data_selection.
FORM f_data_selection.
SELECT a~werks
a~lgort
a~matnr
a~saknr
a~lbkum
a~erdat
a~labst
a~umlme
a~insme
a~einme
a~speme
a~retme
b~verpr "this field no long been used
c~maktx
d~meins
INTO CORRESPONDING FIELDS OF TABLE ta_material
FROM mard AS a
INNER JOIN makt AS c ON amatnr = cmatnr
INNER JOIN mara AS d ON amatnr = dmatnr
WHERE a~matnr IN s_matnr
AND a~werks IN s_werks
AND a~lgort IN s_lgort
AND a~saknr IN s_saknr
AND a~erdat IN s_erdat
AND c~spras = 'EN'.
*--> SC01 - End of Insertion **
*-->Select material documents
SELECT a~mblnr
a~mjahr
a~zeile
a~meins
a~menge
a~werks
a~lgort
a~matnr
b~budat
INTO CORRESPONDING FIELDS OF TABLE ta_mseg
FROM mseg AS a INNER JOIN mkpf AS b
ON amblnr = bmblnr
AND amjahr = bmjahr
FOR ALL ENTRIES IN ta_material
WHERE matnr = ta_material-matnr
AND a~werks = ta_material-werks
AND a~lgort = ta_material-lgort
AND algort NE aumlgo
AND a~shkzg = 'S'
AND a~smbln EQ space
AND a~smblp EQ space.
*--> SC03 - Start of Insertion **
If MBLNR exist in MSEG-SMBLN and this
record's SHKZG = 'H'. Remove it from the table.
This is becuase this particular record has already been reverse.
LOOP AT ta_mseg.
SELECT SINGLE *
FROM mseg
WHERE smbln = ta_mseg-mblnr
*->Begin of KL02+ -
and SMBLP = ta_mseg-zeile.
AND shkzg = 'H'. "return. " KL02-
*->End of KL02+ -
IF sy-subrc = 0.
DELETE ta_mseg.
ENDIF.
ENDLOOP.
*--> SC03 - Enf of Insertion **
ENDFORM. " f_data_selection
*IMPORTANT , NEED TO CHECK LATER
FORM f_data_preparation.
*-->Append data for report details
LOOP AT ta_material.
DATA: ta_msegtemp LIKE ta_mseg OCCURS 2 WITH HEADER LINE.
*-->Loop at all material documents into a temp table
REFRESH ta_msegtemp. CLEAR ta_msegtemp.
LOOP AT ta_mseg WHERE matnr = ta_material-matnr AND
werks = ta_material-werks AND
lgort = ta_material-lgort.
ta_msegtemp = ta_mseg. APPEND ta_msegtemp.
ENDLOOP.
*-->Add up all the stock for the material
CLEAR w_mengb.
w_mengb = ta_material-labst +
ta_material-umlme +
ta_material-insme +
ta_material-einme +
ta_material-speme +
ta_material-retme.
IF w_mengb IS INITIAL.
CONTINUE.
ENDIF.
*-->sort msegtemp by posting date
SORT ta_msegtemp BY budat DESCENDING.
*-->get the values from the material documents into the report output
LOOP AT ta_msegtemp.
*->Begin of KL02- -
CALL FUNCTION 'HRCM_TIME_PERIOD_CALCULATE'
EXPORTING
begda = ta_msegtemp-budat
endda = sy-datum
IMPORTING
NOYRS =
nomns = w_mths
nodys = w_days
EXCEPTIONS
invalid_dates = 1
overflow = 2
OTHERS = 3
*->End of KL02- -
*->Begin of KL02+ -
*-->Get the days difference btw two dates
clear w_days.
w_days = sy-datum - ta_msegtemp-budat.
*--> Include today's date into calculation
w_days = w_days + 1.
*->End of KL02+ -
check base unit, do conversion
IF ta_material-meins <> ta_msegtemp-meins.
CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
EXPORTING
i_matnr = ta_material-matnr
i_in_me = ta_msegtemp-meins
i_out_me = ta_material-meins
i_menge = ta_msegtemp-menge
IMPORTING
e_menge = ta_msegtemp-menge
EXCEPTIONS
error_in_application = 1
error = 2
OTHERS = 3.
ENDIF.
*--> SC01 - Start of Insertion **
SELECT SINGLE peinh
verpr
INTO (lv_peinh,
lv_verpr)
FROM mbew
WHERE matnr = ta_material-matnr
AND bwkey = ta_material-werks.
IF sy-subrc = 0.
ta_material-verpr = lv_verpr.
ENDIF.
*--> SC01 - End of Insertion **
*-->check whether the mseg value is LE than the stock value
IF ta_msegtemp-menge LE w_mengb.
*-->Days < 10 days
IF w_days LE 1 AND w_days EQ 366.
i_mat2-meng0 = i_mat2-meng0 + ta_msegtemp-menge.
IF NOT lv_peinh EQ 0.
i_mat2-value0 = ( i_mat2-meng0 / lv_peinh ) *
ta_material-verpr."+SC01
ENDIF.
**-->Days 11 - 30 days
ELSEIF w_days >= 11 AND w_days =< 30.
i_mat2-meng1 = i_mat2-meng1 + ta_msegtemp-menge.
IF NOT lv_peinh EQ 0.
i_mat2-value1 = ( i_mat2-meng1 / lv_peinh ) *
*ta_material-verpr."+SC01
ENDIF.
**-->Days 31-60 days
ELSEIF w_days >= 31 AND w_days =< 60.
i_mat2-meng2 = i_mat2-meng2 + ta_msegtemp-menge.
IF NOT lv_peinh EQ 0.
i_mat2-value2 = ( i_mat2-meng2 / lv_peinh ) *
*ta_material-verpr."+SC01
ENDIF.
**-->Days 61-90 days
ELSEIF w_days >= 61 AND w_days =< 90.
i_mat2-meng3 = i_mat2-meng3 + ta_msegtemp-menge.
IF NOT lv_peinh EQ 0.
i_mat2-value3 = ( i_mat2-meng3 / lv_peinh ) *
*ta_material-verpr.
ENDIF.
**-->Days > 90 days
ELSEIF w_days > 90.
i_mat2-meng4 = i_mat2-meng4 + ta_msegtemp-menge.
IF NOT lv_peinh EQ 0.
i_mat2-value4 = ( i_mat2-meng4 / lv_peinh ) *
*ta_material-verpr.
ENDIF.
ENDIF.
*->End of KL002+
w_mengb = w_mengb - ta_msegtemp-menge.
ELSE.
IF NOT w_mengb LE 0 .
IF NOT lv_peinh EQ 0.
**->End of KL001+
i_mat2-value0 = ( i_mat2-meng0 / lv_peinh )
*ta_material-verpr."+SC01
**->Begin of KL001+
ENDIF.
ELSEIF w_days GE 22.
i_mat2-meng3 = i_mat2-meng3 + w_mengb.
IF NOT lv_peinh EQ 0.
i_mat2-value3 = ( i_mat2-meng3 / lv_peinh )
*ta_material-verpr.
ENDIF.
**->End of KL001+
ENDIF.
**--> SC02 - End of Insertioin **
ENDIF.
*->End of KL002-
*->Begin of KL002+
*--> < 10 days
IF w_days EQ 1 AND w_days LE 366.
i_mat2-meng0 = i_mat2-meng0 + ta_msegtemp-menge.
IF NOT lv_peinh EQ 0.
i_mat2-value0 = ( i_mat2-meng0 / lv_peinh ) *
ta_material-verpr."+SC01
ENDIF.
ELSEIF w_days >= 11 AND w_days =< 30.
i_mat2-meng1 = i_mat2-meng1 + w_mengb.
IF NOT lv_peinh EQ 0.
i_mat2-value1 = ( i_mat2-meng1 / lv_peinh ) *
*ta_material-verpr.
ENDIF.
**--> 31 - 60 days
ELSEIF w_days >= 31 AND w_days =< 60.
i_mat2-meng2 = i_mat2-meng2 + w_mengb.
IF NOT lv_peinh EQ 0.
i_mat2-value2 = ( i_mat2-meng2 / lv_peinh ) *
*ta_material-verpr.
ENDIF.
**--> 61 - 90 days
ELSEIF w_days >= 61 AND w_days =< 90.
i_mat2-meng3 = i_mat2-meng3 + w_mengb.
IF NOT lv_peinh EQ 0.
i_mat2-value3 = ( i_mat2-meng3 / lv_peinh ) *
*ta_material-verpr.
ENDIF.
**--> > 90 days
ELSEIF w_days > 90.
i_mat2-meng4 = i_mat2-meng4 + w_mengb.
IF NOT lv_peinh EQ 0.
i_mat2-value4 = ( i_mat2-meng4 / lv_peinh ) *
*ta_material-verpr.
ENDIF.
ENDIF.
*->End of KL002+
w_mengb = 0.
ENDIF. " check stock value NE zero
ENDIF. "check Mat doc amount is LE than the stock value
ENDIF.
ENDLOOP. " msegtemp
*-->append i_mat2 values
i_mat2-werks = ta_material-werks.
i_mat2-lgort = ta_material-lgort.
i_mat2-matnr = ta_material-matnr.
i_mat2-maktx = ta_material-maktx.
i_mat2-meins = ta_material-meins.
APPEND i_mat2. CLEAR i_mat2.
ENDLOOP. " ta_material
*-->Append data for summary data
DATA: i_lgort LIKE i_mat2 OCCURS 2 WITH HEADER LINE.
i_lgort[] = i_mat2[].
SORT i_lgort BY werks lgort.
DELETE ADJACENT DUPLICATES FROM i_lgort COMPARING werks lgort.
DATA: v_cnt0(5), v_cnt1(5), v_cnt2(5), v_cnt3(5), v_cnt4(5),
v_value0 LIKE i_matsum-value0.
v_value1 LIKE i_matsum-value1,
v_value2 LIKE i_matsum-value2,
v_value3 LIKE i_matsum-value3,
v_value4 LIKE i_matsum-value4.
LOOP AT i_lgort.
CLEAR v_cnt0. CLEAR v_value0.
CLEAR v_cnt1. CLEAR v_value1.
CLEAR v_cnt2. CLEAR v_value2.
CLEAR v_cnt3. CLEAR v_value3.
CLEAR v_cnt4. CLEAR v_value4.
LOOP AT i_mat2 WHERE lgort = i_lgort-lgort AND
werks = i_lgort-werks.
IF NOT i_mat2-meng0 IS INITIAL.
v_cnt0 = v_cnt0 + 1.
v_value0 = v_value0 + i_mat2-value0.
ENDIF.
IF NOT i_mat2-meng1 IS INITIAL.
v_cnt1 = v_cnt1 + 1.
v_value1 = v_value1 + i_mat2-value1.
ENDIF.
IF NOT i_mat2-meng2 IS INITIAL.
v_cnt2 = v_cnt2 + 1.
v_value2 = v_value2 + i_mat2-value2.
ENDIF.
IF NOT i_mat2-meng3 IS INITIAL.
v_cnt3 = v_cnt3 + 1.
v_value3 = v_value3 + i_mat2-value3.
ENDIF.
IF NOT i_mat2-meng4 IS INITIAL.
v_cnt4 = v_cnt4 + 1.
v_value4 = v_value4 + i_mat2-value4.
ENDIF.
ENDLOOP.
CLEAR i_matsum.
i_matsum-lgort = i_mat2-lgort.
IF v_cnt0 NE space.
i_matsum-cnt0 = v_cnt0.
i_matsum-value0 = v_value0.
APPEND i_matsum.
ENDIF.
CLEAR i_matsum.
i_matsum-lgort = i_mat2-lgort.
IF v_cnt1 NE space.
i_matsum-cnt1 = v_cnt1.
i_matsum-value1 = v_value1.
APPEND i_matsum.
ENDIF.
CLEAR i_matsum.
i_matsum-lgort = i_mat2-lgort.
IF v_cnt2 NE space.
i_matsum-cnt2 = v_cnt2.
i_matsum-value2 = v_value2.
APPEND i_matsum.
ENDIF.
CLEAR i_matsum.
i_matsum-lgort = i_mat2-lgort.
IF v_cnt3 NE space.
i_matsum-cnt3 = v_cnt3.
i_matsum-value3 = v_value3.
APPEND i_matsum.
ENDIF.
CLEAR i_matsum.
i_matsum-lgort = i_mat2-lgort.
IF v_cnt4 NE space.
i_matsum-cnt4 = v_cnt4.
i_matsum-value4 = v_value4.
APPEND i_matsum.
ENDIF.
ENDLOOP.
ENDFORM. "f_data_preparation
*IMPORTANT , NEED TO CHECK LATER
FORM f_display_data .
IF pck_dtsm = 'X'.
*-->Display detail
v_topofpage = 'D'.
PERFORM f_display_detail.
*-->display summary
v_topofpage = 'S'.
NEW-PAGE.
PERFORM f_display_summary.
ELSEIF pck_detl = 'X'.
*-->Display detail
v_topofpage = 'D'.
PERFORM f_display_detail.
ELSEIF pck_summ = 'X'.
*-->display summary
v_topofpage = 'S'.
PERFORM f_display_summary.
ENDIF.
ENDFORM. " f_display_data
FORM f_display_detail .
v_topofpage = 'D'.
SORT i_mat2 BY werks lgort.
*DATA: v_count(5),
DATA: v_count,
v_va1 LIKE i_mat2-value0.
v_va2 LIKE i_mat2-value0,
v_va3 LIKE i_mat2-value0,
v_va4 LIKE i_mat2-value0,
v_va5 LIKE i_mat2-value0.
LOOP AT i_mat2.
WRITE:/2 i_mat2-lgort,
10 i_mat2-matnr,
22 i_mat2-maktx(38),
61 i_mat2-meins,
64 i_mat2-meng0,
82 i_mat2-value0.
100 i_mat2-meng1,
118 i_mat2-value1,
136 i_mat2-meng2,
154 i_mat2-value2,
169 i_mat2-meng3,
186 i_mat2-value3,
204 i_mat2-meng4,
222 i_mat2-value4.
*-->Set counter and add up all values by lgort
v_count = v_count + 1.
v_va1 = v_va1 + i_mat2-value0.
v_va2 = v_va2 + i_mat2-value1.
v_va3 = v_va3 + i_mat2-value2.
v_va4 = v_va4 + i_mat2-value3.
v_va5 = v_va5 + i_mat2-value4.
AT END OF lgort.
WRITE:/10 'Cnt:',
15 v_count,
55 'Subtotal',
82 v_va1.
118 v_va2,
154 v_va3,
186 v_va4,
222 v_va5.
CLEAR v_count. CLEAR v_va1.
CLEAR v_va2. CLEAR v_va3. CLEAR v_va4. clear v_va5.
ENDAT.
ENDLOOP.
ENDFORM. " f_display_detail
FORM f_display_summary .
v_topofpage = 'S'.
LOOP AT i_matsum.
IF NOT i_matsum-cnt0 IS INITIAL.
WRITE:/2 i_matsum-lgort,
10 'Cnt:',15 i_matsum-cnt0,
82 i_matsum-value0.
ENDIF.
IF NOT i_matsum-cnt1 IS INITIAL.
WRITE:/2 i_matsum-lgort,
10 'Cnt:',15 i_matsum-cnt1,
118 i_matsum-value1.
ENDIF.
IF NOT i_matsum-cnt2 IS INITIAL.
WRITE:/2 i_matsum-lgort,
10 'Cnt:',15 i_matsum-cnt2,
154 i_matsum-value2.
ENDIF.
IF NOT i_matsum-cnt3 IS INITIAL.
WRITE:/2 i_matsum-lgort,
10 'Cnt:', 15 i_matsum-cnt3,
186 i_matsum-value3.
ENDIF.
IF NOT i_matsum-cnt4 IS INITIAL.
WRITE:/2 i_matsum-lgort,
10 'Cnt:', 15 i_matsum-cnt4,
222 i_matsum-value4.
ENDIF.
ENDLOOP.
ENDFORM. " f_display_summary -
Hi ,Plz send list of tables in MM
HI,
Send mail 2 [email protected]MAKT : Material Descriptions
MARM : Unit Of Maesure for Material
MAKG : Material Cost Distribution groups
MAKV : Material Cost Distribution
MARV : MAterial Control Record
MABW : Management of differenly maintained material data
MAEX : Material Master - Legal Control
MAKZ : Material Cost Distribution Equilance No.
MAMT : Material Master Text per unit of measure & Text ID
MAPE : Material Master Export Control File
MATERIALID : Material Identification
MATERIALIDDI_TMP : File for incorrect data in direct input
MARI : Short Document - Material Movement
Also Check http://www.sap-img.com/sap-mm.htm
http://www.sap-img.com/materials/common-tables-used-by-sap-mm.htm
http://www.sapgenie.com/abap/tables_mm.htm
http://www.sap-img.com/sap-download/sap-tables.zip
http://www.allsaplinks.com/material_management.html
http://www.training-classes.com/course_hierarchy/courses/2614_SAP_R_3_MM_Invoice_Verification_-_Rel_4_x.php
http://www.sapfriends.com/sapstuff.html
Hope it helps.
Regards
Maybe you are looking for
-
Apple logo displays then disappears
I have an iPad 3rd Generation Model Number A1430. I am able to get the apple logo to display on the iPad's screen by holding the sleep and home button down for 10 seconds. The logo displays for about a futher 10 seconds then the screen returns to bla
-
Extracting data from flat file in OWB
Hi, Does anyone know, how to run a mapping having source as flat file in OWB? I am facing a problem as run button becomes disabled as it is SQL Loader script. When I register the TCL script with OEM it doesn't pass the name of the CTL file as paramet
-
Link between workflow id , document number
Hi all, If we raise an workflow for any sales document, can anybody tell me in which workflow tables we can find the document number and its corresponding workflow id. If the possible outcome of task is approve or reject, after user executing the tas
-
I LOVE IMAGE SAVER 7 AND IT IS ON MY FIREFOX BUT THE ADDONS SECTION DOES NOT RECOGNIZE IT.
I downloaded image saver 7 from your site a while back. I believe it was an experimental addon. And I really like it. It allows you to download pictures and it can be a toolbar or buttons. The person who is listed is the [email protected] and the add
-
Illustrator cc 2014 trial crashes right after launch
i just downloaded illustrator cc 2014 trial, but it crashes right after launch without error messages appearing. how should i fix it?