05-18-2006 11:59 PM
Here's an easy way to get some points -- assuming you already know the answer
I need to create a z abap report that lists all material docs (mkpf, mseg) for a material number and serial number.
If I know the material number and serial number, how do I find the material documents?
Thanks in advance!
Den
05-19-2006 5:43 AM
Hi !
Here we go...
First you need to read the OBJK with MATNR + SERNR.
Then you'll get the OBKNR-Key of this object.
Then go to the SER03 using the OBKNR and you'll get all the Materialdocuments (by number) of this serialnumber.
Regards
Rainer
Points are allways welcome
05-19-2006 12:05 AM
Hi Den,
May be you can leverage the std SAP report RM07DOCS
which takes in a material number and displays a list of material documents. It does many more things , may be you can make a copy and change it as you need .
Cheers
VJ
05-19-2006 12:57 AM
Hi Den,
You can also leverage or use the BAPI --> BAPI_GOODSMVT_GETITEMS
It makes life easier to leverage from existing std objects
Cheers
VJ
05-19-2006 1:21 AM
05-19-2006 5:43 AM
Hi !
Here we go...
First you need to read the OBJK with MATNR + SERNR.
Then you'll get the OBKNR-Key of this object.
Then go to the SER03 using the OBKNR and you'll get all the Materialdocuments (by number) of this serialnumber.
Regards
Rainer
Points are allways welcome