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: 

WERKS & BUKRS Link

Former Member
0 Kudos
6,048

Which table/ FM can i get the link bet. WERKS and BUKRS.

abhishek suppal

4 REPLIES 4

andreas_mann3
Active Contributor
0 Kudos
3,159

Hi,

you've to analyze 3 tables : t001, t001k and t001w

-> a help could be to create a join like help-view H_T001W_BUKRS (SE11)

regards Andreas

Former Member
0 Kudos
3,159

hi,

T001W, T001K will be helpful for u.

Cheers,

Sasi

0 Kudos
3,159

hi,

T001k is the correct one i guess. awkey is the werks

0 Kudos
3,159


report zrich_0002
       no standard page heading.



data: begin of itab occurs 0,
      bukrs type t001k-bukrs,
      bwkey type t001k-bwkey,
      werks type t001w-werks,
      end of itab.


select t001k~bukrs t001k~bwkey t001w~werks
      into corresponding fields of table itab
         from t001w
               inner join t001k
                   on t001k~bwkey = t001w~bwkey.


loop at itab.

  write:/ itab-bukrs, itab-bwkey, itab-werks.

endloop.

Regards,

Rich Heilman