04-18-2008 5:04 AM
hi,
I have to 2 questions:-
1.) I am making a report in which i have to display the amount to be paid of raw material consumed in a finished product ,so plzz tell me which tables are to be used to display the cost of it (means billing of it).
2.) Which method is better ? Types or Likes for defining a internal table.
If find usefule he or she will be definately rewarded.
04-18-2008 5:20 AM
hi
Check in the Table - MVKE & MBEW.
Firstly you can define internal table by types. then if you forming some another internal table then form it by LIKE
Reward point if helpful
pankaj
04-18-2008 5:14 AM
Hi,
For tables check transaction CS03.It displays bill of materials for a materials.
You better go for types as it helps in improving performance.
Thanks
--Pradeep
Edited by: pradeep nellore on Apr 18, 2008 6:17 AM
04-18-2008 5:16 AM
Hi Ric
Check in the Table - MVKE & MBEW.
TYPE is the better method for defining a internal table.
Reward Me Points
By
Pari
04-18-2008 5:19 AM
hi,
Use TYPES declaration as it is better to use from performance point of view ...
Regards,
Santosh
04-18-2008 5:20 AM
Hi,
1) You can use billing tables vbrk,vbrp tables for biling .
2) You can use types.
using this we can improve performance and memory occupied less.
reward points
04-18-2008 5:20 AM
hi
Check in the Table - MVKE & MBEW.
Firstly you can define internal table by types. then if you forming some another internal table then form it by LIKE
Reward point if helpful
pankaj
04-18-2008 5:29 AM
hi,
ok,now i am using the table MBEW ,but there are different types of fields such as Standard and moving price.
i want to fetch that fields which are able to display the costr of the materials ,plzz help me in doing dis.
04-18-2008 5:33 AM
hai
ric,
i try to give the answer for second question.
The use of type or like in creating internal tables is explained
with the help of examples.
LIKE: whether u are crteating internal table based on existing database table and u want use all the fields of existing table , then u go for like.
data: t_customer like kna1.
TYPE: when u want to take only few fields of an existing database table or if u want to create a internal table with fields extract from different database tables, then go for type.
types: begin of type_s_customer,
kunnr like kna1-kunnr,
land1 like kna1-land1,
name1 like kna1-name1,
bukrs like knb1-bukrs,
pernr like knb1-pernr,
end of type_s_customer.
Data: t_customer type table of type_s-customer ,
fs_customer type type_s_customer.
I hope so , u got understanding easily.
Reward points, if useful.
Thank you,
G.V.K.Prasad