on 06-07-2013 8:51 AM
Hi Guru's
We need to fetch some details from the material document which are generated for the MVT 107 and 109. We need to fetch GR date from 107 document and un restricted quanity from 109 document. but there is aa issue to find the right relation between this documents. Developers questine is that, How the system will find the right 109 document against the perticualr 107 document. Please advise the table or relationship which connect these two document.
Thanks
Regards
Raja
Hi Raja,
Try to use this selection statement.
in this case try to pass the both plants in the 101 and 107 movement types.
SELECT-OPTIONS: s_werks FOR t001w-werks,
s_matnr FOR mara-matnr.
SELECT a~matnr a~mtart a~matkl b~maktx e~werks g~kalnr
h~bdatj h~poper h~untper h~meins h~lbkum h~umkumo h~abkumo h~zukumo
j~curtp j~waers j~salk3
FROM mara AS a
INNER JOIN makt AS b ON b~matnr = a~matnr
INNER JOIN marc AS e ON e~matnr = a~matnr
INNER JOIN ckmlhd AS g ON g~matnr = a~matnr AND
g~bwkey = e~werks
INNER JOIN ckmlpp AS h ON h~kalnr = g~kalnr
INNER JOIN ckmlcr AS j ON j~kalnr = g~kalnr AND
j~bdatj = h~bdatj AND
j~poper = h~poper AND
j~untper = h~untper
INTO CORRESPONDING FIELDS OF TABLE it_mara
WHERE a~matnr IN s_matnr AND
e~werks IN s_werks AND
j~curtp EQ '10'.
Hope may your problem will solve.
Regards,
Gurunath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you find the relationship as well in purchase order history table EKBE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.