Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

urgent: which 1 is better

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

7 REPLIES 7

pradeep_nellore
Participant
0 Kudos

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

Former Member
0 Kudos

Hi Ric

Check in the Table - MVKE & MBEW.

TYPE is the better method for defining a internal table.

Reward Me Points

By

Pari

Former Member
0 Kudos

hi,

Use TYPES declaration as it is better to use from performance point of view ...

Regards,

Santosh

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

former_member230674
Contributor
0 Kudos

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