MDTC Table (Agrigated MRP Table items)
Hi,
I want to retrieve data (field: CLUSTD- Data Field for IMPORT/EXPORT database tables) from table MDTC,
this is field stored as encrypted (encoded) form in this table, having length of 2886 with type LRAW. How can I decode this value? is there any function module to do this? Please give me an idea.
Thanks & regards
Sreenivas
Message was edited by: Majjigapu Sreenivasa Reddy
Hai Sreenivas,
As MDTC is a cluster table
You can access them using SELECT statements, I believe that you CAN NOT use joins though.
For example, BSEG is a cluster table.
report zrich_0003 .
data: ibseg type table of bseg with header line.
parameters: p_bukrs type bseg-bukrs.
select * into table ibseg from bseg
up to 100 rows
where bukrs = p_bukrs.
loop at ibseg.
write:/ ibseg-bukrs, ibseg-belnr.
endloop.
Follow these lines : you may find your problem resolved.
Cluster Table
Database table defined in the ABAP Dictionary, whose version on the database is not only assigned to one table defined in the ABAP Dictionary. Several cluster tables are assigned to a table cluster in the database. The intersection of the key fields of the cluster tables forms the primary key of the table cluster. The other columns of the cluster tables are stored in compressed form in a single column VARDATA of the table cluster. You can access cluster tables only via Open SQL, and only without using joins.
Similarly for pool table
Pool table
A database table defined in the ABAP Dictionary whose database instance is assigned to more than one table defined in the ABAP Dictionary. Multiple pool tables are assigned to a table pool in the database. The key fields of a pool table have to be character-type fields. The table pool's primary key consists of two fields: TABNAME for the name of a pool table, and VARKEY for the interdependent contents of the key fields in the corresponding pool table. The non-key fields of the pool table are stored in compressed format in their own column, called VARDATA, of the table pool. The only way to access pool tables is by using Open SQL. Joins are not allowed.
Regards,
Srikanth.
If this answer is helpful,Plz reward points..
Similar Messages
-
MRP list out put tables for header and item -reg
Hi ,
What is the table to be used for MRP out put
header is MDKP
for item what is the table ?
regards,
madhu kiranDear,
Tthe MRP item data is stored in a data cluster. The database
table is MDTC, and the data cluster area is ar. Use the following command to
import the data from the data cluster:
Import <structure> from database mdtc(ar) ID <key>.
The ID key value comes from the field dtnum (Number of the material
requirements planning table) in table MDKP
MDKP MDTB MDKP
Please refer this also,
[Table for MRP item|table for MRP item]
Regards,
R.Brahmankar -
Database Table where MRP Run results are saved-Urgent
Hi Gurus
i need your help in identifying the database table where the MRP Run results are saved , this is needed for creating a custom report similar to MD45(but for entire plant) where i can look and pull the sum of all the receipts and issues, ATP Quantity for a given material in a particular plant
and ignore zero quantities in the receipts and issues field
i tried in <b>MDTB</b> table, MDTB-MNG01 Quantity received or quantity required but it has no entries maintained in it and so it cannot be used.
So can you please help me with the table where i can get this information asap
thank you very much for your time and solutionPlease use the code below which will help you in extracting data from MRP table.
You can enhance this program basing on your requirement.
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A sample program to extract data from the MRP table.
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
REPORT ZMRPTABLE.
TABLES: MDKP, "Header Data for MRP Document
MDTB, "MRP table
MDTC, "Aggregated MRP table items
T457T. "Description of MRP elements
DATA: BEGIN OF MDTBX OCCURS 0.
INCLUDE STRUCTURE MDTB.
DATA: END OF MDTBX.
SELECT-OPTIONS: PLANT FOR MDKP-PLWRK OBLIGATORY,
MATNR FOR MDKP-MATNR OBLIGATORY.
CLEAR: MDKP, MDTB.
SELECT * FROM MDKP WHERE DTART EQ 'MD'
AND MATNR IN MATNR
AND PLWRK IN PLANT.
WRITE:/ MDKP-MATNR, MDKP-PLWRK.
IF MDKP-CFLAG EQ 'X'.
CLEAR MDTBX. REFRESH MDTBX.
IMPORT MDTBX FROM DATABASE MDTC(AR) ID MDKP-DTNUM.
LOOP AT MDTBX.
MOVE MDTBX TO MDTB.
SELECT SINGLE * FROM T457T WHERE SPRAS = 'E'
AND DELKZ = MDTB-DELKZ.
IF MDTB-PLUMI = '-'. MULTIPLY MDTB-MNG01 BY -1. ENDIF.
WRITE:/ MDTB-DAT00, T457T-DELB1, MDTB-VSTAT,
MDTB-MNG01, MDTB-LGORT.
ENDLOOP.
ELSE.
SELECT * FROM MDTB
WHERE DTNUM EQ MDKP-DTNUM
ORDER BY PRIMARY KEY.
SELECT SINGLE * FROM T457T WHERE SPRAS = 'E'
AND DELKZ = MDTB-DELKZ.
IF MDTB-PLUMI = '-'. MULTIPLY MDTB-MNG01 BY -1. ENDIF.
WRITE:/ MDTB-DAT00, T457T-DELB1, MDTB-VSTAT,
MDTB-MNG01, MDTB-LGORT.
ENDSELECT.
ENDIF.
ENDSELECT.
This is taken from www.sap-img.com
Hope this helps you. -
Hi
I am developing a report in MRP. I am getting the header data of MRP in MDKP Table. No Line items is displayed in MDTB MRP line items table. System is showing no entries in this table. What could be the possible solution.When MRP list is not stored in table MDTB, it is stored in compressed table MDTC. Whether the MRP list is to be saved in MDTB or MDTC is a config setting (plant-wise). Check IMG node Production -> MRP -> Check Performance Settings -> Check Storage Mode for MRP List. MDTC (compressed table) is default (recommended) and check-box available to switch it to MDTB (transparent table).
If it is in MDTC, you won't be able to use it as table joint in Query. You would need some ABAP programming to extract data from that compressed table. So do re-think about the need for your MRP report - and try to convince the users to use standard SAP transactions like MD06. -
Report / Table for getting Datewise item cost
Friends,
Can u help me know MM Report / Table for getting Datewise item cost in a plant.hi,
try table S031...Movement of stocks....
THis shd help you..
Regards
Priyanka.P -
Which all tables suffice all line item GL data requirements
Please clarify this requirement for Line Item Data from New GL. my client BMW Inc have configured New GL in ECC 6.0 if i pull all the records to BW from FAGLFLEXA (Line Item Table) is that sufficient to meet the <b>all line item GL data</b> or is there any other tables missing that also shall be combined to bring the Line item GL data. Please help me for this if u can check with any of your friends in FICO.
2. I have seen that BSEG AND BKPF are used earlier in old FI versions so what is there now in New GL ECC 6.0 that will suffice for these BSEG AND BKPF or still i have to pull records by using these tables. for GL Line Item Data.
If you can help me to give the short overview of New GL posting process it would be great.
Thanks
Regards
Soniya KapoorHi Soniya,
FAGLFLEXA & FAGLFLEXT would contain all FI line item
http://help.sap.com/saphelp_erp2005vp/helpdata/en/a8/e26840b151181ce10000000a1550b0/content.htm
Pls assign points as way to say thanks -
How to draw horizontal line at the end of table for multiple line items
Dear Experts,
Pls can anyone help me how to draw horizontal line at the end of table for multiple line items . kindly help me regarding this
Thanks
Ramesh ManoharanHi
I tried as per your logic but it is not solving my problem . when i am gone to table painter it is showing line type 1 and line type 2
is below format.. if u see here line type 1 bottom line and line type 2 top line both are same.. so how to avoid this ?
line type 1
line type 2 -
Nested table for PO Output (Item texts) - trying again.
Hi experts
I posted this question already, but the formatting disappeared, so trying again.
I have created a PDF version of the Purchase Order output. Everything works well, except for the last step - a nested table where I want to display Item texts from the PO for every item.
The steps I followed:
1. In the Interface, I read the item texts, and placed them in an internal table, where the table has a field EBELP (item number) and a field for the text. So, for a PO with 5 items, where 2 items have texts, the table might look like this:
00010 First line of text for item 10.
00010 Second line of text for item 10.
00040 Only line of text for item 40.
2. In the context of the form, I put this table 'under' the existing 'ITEM' entry. In other words, for every item, the texts must be displayed. Obviously I then put in an entry under the WHERE CONDITIONS to say that EBELP = ITEM-EBELP, otherwise it would repeat every line of text for every item.
The problem is that it does not behave quite as I expected. It currently prints:
Item 10 information
First line of text for item 10.
Second line of text for item 10.
Item 20 information
Only line of text for item 40.
Item 30 information
Item 40 information
Item 50 information
Where it should print:
Item 10 information
First line of text for item 10.
Second line of text for item 10.
Item 20 information
Item 30 information
+Item 40 information+
Only line of text for item 40.
Item 50 information
In other words, it simply 'breaks' on change of EBELP, and moves the text to the next line, as opposed to the correct line.
I tried debugging, and it does appear to be doing things in the right order, but it is still doing the output incorrectly. I also searched the forums for similar problems, but I could not find a solution to the problem I am experiencing.
I also put 'dummy' (empty) rows into the table - that fixes it, but then it messes with my layout and I get something like:
Item 10 information
First line of text for item 10.
Second line of text for item 10.
Item 20 information
Item 30 information
Item 40 information
Only line of text for item 40.
Item 50 information
In the above, I don't want the gaps where the empty rows are.
Please advise?
Thanks and kind regards
CasperReposted without formatting...
I have created a PDF version of the Purchase Order output. Everything works well, except for the last step - a nested table where I want to display Item texts from the PO for every item.
The steps I followed:
1. In the Interface, I read the item texts, and placed them in an internal table, where the table has a field EBELP (item number) and a field for the text. So, for a PO with 5 items, where 2 items have texts, the table might look like this:
00010 First line of text for item 10.
00010 Second line of text for item 10.
00040 Only line of text for item 40.
2. In the context of the form, I put this table 'under' the existing 'ITEM' entry. In other words, for every item, the texts must be displayed. Obviously I then put in an entry under the WHERE CONDITIONS to say that EBELP = ITEM-EBELP, otherwise it would repeat every line of text for every item.
The problem is that it does not behave quite as I expected. It currently prints:
Item 10 information
First line of text for item 10.
Second line of text for item 10.
Item 20 information
Only line of text for item 40.
Item 30 information
Item 40 information
Item 50 information
Where it should print:
Item 10 information
First line of text for item 10.
Second line of text for item 10.
Item 20 information
Item 30 information
Item 40 information
Only line of text for item 40.
Item 50 information
In other words, it simply 'breaks' on change of EBELP, and moves the text to the next line, as opposed to the correct line.
I tried debugging, and it does appear to be doing things in the right order, but it is still doing the output incorrectly. I also searched the forums for similar problems, but I could not find a solution to the problem I am experiencing.
I also put 'dummy' (empty) rows into the table - that fixes it, but then it messes with my layout and I get something like:
Item 10 information
First line of text for item 10.
Second line of text for item 10.
Item 20 information
Item 30 information
Item 40 information
Only line of text for item 40.
Item 50 information
In the above, I don't want the gaps where the empty rows are.
Please advise?
Thanks and kind regards
Casper -
HI All,
i want the table names for below items :
customer number , customer name , slaes order number , item , quantity , tottal value and schedule date.
i need to select these items. any body pls tell me the table names .
Regards,
panduDear Pandurangarao,
For your future requirements,
You may also check the same (i.e. Table Name/ Field Name/ Program Name/ Screen Field) by yourself.
There are few requirements:
1. You have to decide from where (i.e. Document..???, say Sales Order in VA02) you want to fecth the data for your requirement.
2. Go in to that document (say, you wanna all data to be fetch from Sales Order; then VA02).
3. Click one within the field and Press F1. This will open an Overview window. In to the same window, down there, you will find on e Tab: Technical Information. Click the Tab.
4. Now, you may get all technical informations for your inputs.
Best Regards,
Amit -
Table for vendor open item at key date
Hi
Could you please tell me the table which shows me the vendor open item at the date i want. I know BSIK shows open item at current date, but i need the table which shows open item at date i want.
Thanks
SwetaDear Sweta,
I think there is no such a table, as you expect, existing in SAP. As I know here are the
most popular table about Accounting documents.
Accounting documents
BKPF Accounting documents
BSEG item level
BSID Accounting: Secondary index for customers
BSIK Accounting: Secondary index for vendors
BSIM Secondary Index, Documents for Material
BSIP Index for vendor validation of double documents
BSIS Accounting: Secondary index for G/L accounts
BSAD Accounting: Index for customers (cleared items)
BSAK Accounting: Index for vendors (cleared items)
BSAS Accounting: Index for G/L accounts (cleared items)
If you need information about open line items of a certain day, you have to use ABAP.
Regards.
Maxielight. -
Table for Purchase Requisition Item Text
I would like to know, what is the table which stores the item text in tab texts for Purchase Requisition?
Hai,
the table is STXH.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = IT_STXH-TDID "ID
LANGUAGE = IT_STXH-TDSPRAS " LANGUAGE
NAME = IT_STXH-TDNAME
OBJECT = IT_STXH-TDOBJECT
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
LINES = L_LINES
Regards,
Venkat -
Tables for Balance sheet Items.
Dear All,
I want to know the tables for Balance Sheet items like Current Assets Current Liabilities etc like where the
cumulative amounts of there accounts goes ?
If not so given in SAP please suggest me the procedure for How to get there amounts in respective tables.
Regards,
Pankaj.Hi
Michael.
The balances given over here in GLT0 and there respective fields are as on date balance as per Trial balance ?
My basic requirement is that the table should show the balances as per updated Trial Balance.
Please Help.
Regards,
Pankaj. -
Additional table in MA line item
All,
We have a requirement to add an additional table in the line items / line items terms of a master agreement.
The table should have a condition type, currency and vendor fields.
I see that the line item cannot be extended.
I cannot use the line item specifications because of the multiple fields needed (not just an attribute and its value).
Is there a way I can achieve this?
Regards,
SubhasiniHi
You can create a new collection for line items hiding the standard line item collection wherein you can modify the fields as desired.
Regards
Mudit Saini -
Error Handling in table control for line item.
Hi,
Please how to do error handling in table control for line item in bdc,i have used format_message for header but i don't no fill decamps internal tabled and how to do background processing in call transaction.
ThanksBackground processing is not possible using call transaction method.
You can create an executable program which can have CALL TRANSACTION BDC code. And this can be run in background.
What do you exactly mean by Error handling for Items in table control. Can you give some more details. -
NESTED TABLES,,Header data and Item data
How to arrange them in the hierarchy view?
How to put a condition on the item table so that only corresponding items from the item table will be shown for each header.
header table data 1211
1212
item table data is 1211 10
1211 20
1212 10
1212 20
so final output should be
1211
1211 10
1211 20
1212
1212 10
1212 20.
So how to put this condition?
Can you please help me
Regards
sasiHi,
If you designing the form using SFP Transaction, then you have to set the where clause on the item table in the context.
In the SFP context drag the header table from interface.drag the item table from interface on the DATA in the header table. it will placed at the end of the header table. Now select the item table select where clause in the properties ( at the bottom of the screen ).there you create a line for condition using create button. drag the field from header table field ( say header-matnr ) on the right side and then drag the same field from the item table ( say item-matnr) in the left side.This will filter the item records relevent for header record.
In the layout, design the table as I explained in the forum message .( search forum with text "Nested Tables and Multiple Pages" )
pavan meda
Maybe you are looking for
-
How to install windows 7 or Ubuntu??? Please help
I tried to change the boot order, disable secure boot, enabled legacy boot order but nothing worked. I'm not able to boot from pen drive or DVD Drive. All these pen drives and DVDs are booting in other systems but not mine. Please help me. Thanks &
-
Populate target table with default value
I have a query like this: SELECT 0 AS ID, 9999999999 AS CODE FROM DUAL UNION ALL SELECT VEH.TP_ID AS ID, VEH.VEH_ID AS CODE FROM TB_VEHICLE; So I have an interface with two data sets, one for each query. The first data set represents the "select from
-
Can anyone explain why Apple refuses to make iPhone's microSD compatible?
The extra storage would be wonderful, no? I have and love my iPad 2, but I use an Android phone. This is because I use it as my music player, and I can expand it's storage with a 32 gig microSD card. The card is full of my mp3's, and the phone sto
-
How to increase the memory in Event Server
I have this folowing error in the windows event observer (in french). The memory Event Server memory seems to be to small. (English message traduction : Insufficient memory in the Event Server"" ). How can i increase this memory ? The physical serve
-
Audio acting up in Premiere Pro | Need Help ASAP
Okay, I need help ASAP because this has been a serious issue for me. So my source video (an interview) is on PR's timeline. I start playing it and it's working fine, but all of a sudden, the audio skips back to the beginning of the interview, then ab