05-08-2006 11:24 AM
Hi all ,
How can i Get plant(werks) based on Comp Code(bukrs?
Thanks,Rayeez
05-08-2006 11:30 AM
chk this table
write select statement on this table
T001W_EXT
this should be more accurate
TMZWK
chk this also
J_1IMOCOMP
chk this FM
K_ABC_GET_WERKS_FOR_BUKRS
Message was edited by: Sekhar
05-08-2006 11:30 AM
05-08-2006 11:33 AM
can you tell us the context in which you want to do this. a company code can have more than one werks.
Regards
Raja
05-08-2006 12:04 PM
Hi Raja,
In my FSpec.I have reqirement like this.
"There is a business requirement to separate internal profit in inventory by trading partner and send this information (change in profit in inventory by trading partner)"
Thanks for all your efforts.
Rayeez
05-08-2006 12:11 PM
Hi,
In Selection Screen Company Code is input filed .
Based on this field i need to retriew plants.
Then Determine and store all valuated materials, qty, and inter-company profit for each plant.
Thanks ,Rayeez
05-08-2006 11:34 AM
05-08-2006 11:43 AM
Hai Rayeez
Check the following Code
PARAMETERS:
P_BUKRS LIKE BKPF-BUKRS MEMORY ID BUK OBLIGATORY.
DATA:
IT_T_001W LIKE T001W OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'K_WERKS_OF_BUKRS_FIND'
EXPORTING
BUKRS = P_BUKRS
TABLES
ITAB_001W = IT_T_001W
EXCEPTIONS
OTHERS = 3.
loop at IT_T_001W.
write 😕 IT_T_001W-WERKS.
endloop.
Thanks & regards
Sreenivasulu P
05-08-2006 11:45 AM
Hello Rayeez,
U can use table T001W. This connects plant with valution area which is nothing but company code.