on 02-19-2015 10:11 AM
Hi,
I have to create a custom report In which selection criteria are Work Center and material.
On the basis of work center and material I have to get details of all production order for that material.
Is their and table relations.
pls help.
thanks.
Thanks every one.
Now I got it.
******get objid on the basis of work center***********
SELECT * FROM crhd INTO TABLE it_crhd WHERE arbpl IN s_arbpl.
IF it_crhd IS NOT INITIAL.
***********************get Aufpl from AFVC table************************************
SELECT * FROM afvc INTO TABLE it_afvc FOR ALL ENTRIES IN it_crhd
WHERE arbid EQ it_crhd-objid.
********************get Aufnr (production order ) on the basis of Aufpl**********************************
SELECT * FROM afko INTO TABLE it_afko FOR ALL ENTRIES IN it_afvc
WHERE aufpl EQ it_afvc-aufpl.
ENDIF.
Second Answer
SELECT aufnr INTO v_aufnr
FROM afko INNER JOIN afvc
ON afko-aufpl = afvc-aufpl
INNER JOIN crhd
ON afvc-arbid = crhd-objid
WHERE crhd~OBJTY = 'A' .
table used AFKO, AFVC & CRHD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Tables : CRHD-ARBID,
AFVC-AUFPL
AFKO-MATNR,AFKO-AUFNR.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
Why do you need to create a custom report? Try transaction COOIS which can show production orders using the work center and material as a selection criteria.
Regards
Caetano
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
3 | |
3 | |
3 | |
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.