2007 Jun 08 5:44 AM
I need to fetch company code for outbound movement of material.
currently I am picking up LIKP-KKBER for that,
But sometimes its not mainted so I am not getting Company code. So is there any other table from which I can get this.
Please not its only for movement types 601, 901, and 931
thanks
2007 Jun 08 5:48 AM
Hi,
Yes..there are two options..
1) use LIKP-VKORG to get the company code from the table TVKO..
SELECT SINGLE * FROM TVKO WHERE VKORG = LIKP-VKORG.
WRITE: / 'Company code', TVKO-BUKRS.
2) Use the table MSEG to get the company code for that material document.
SELECT SINGLE * FROM MKPF WHERE XBLNR = LIKP-VBELN.
SELECT SINGLE * FROM MSEG WHERE MBLNR = MKPF-MBLNR.
WRITE: / 'Company code', MSEG-BUKRS.
Thanks,
Naren
I need to fetch company code for outbound movement of material.
currently I am picking up LIKP-KKBER for that,
But sometimes its not mainted so I am not getting Company code. So is there any other table from which I can get this.
Please not its only for movement types 601, 901, and 931
thanks
2007 Jun 08 5:48 AM
Hi,
Yes..there are two options..
1) use LIKP-VKORG to get the company code from the table TVKO..
SELECT SINGLE * FROM TVKO WHERE VKORG = LIKP-VKORG.
WRITE: / 'Company code', TVKO-BUKRS.
2) Use the table MSEG to get the company code for that material document.
SELECT SINGLE * FROM MKPF WHERE XBLNR = LIKP-VBELN.
SELECT SINGLE * FROM MSEG WHERE MBLNR = MKPF-MBLNR.
WRITE: / 'Company code', MSEG-BUKRS.
Thanks,
Naren
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |