Skip to Content
author's profile photo Former Member
Former Member

Do GRN Based on PO

Hi all,

I'm doing External application for Goods Receipt and i have one problem in doing GRN based on the PO.

If my GRN item line is the same as the PO item line, there's no error.

But if my GRN item line is not the same as my PO item line, i got this error:

-5002 target item code missmatch base item code..

any idea..



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 11, 2005 at 08:17 AM

    Using the PO as the base document to create a GRPO you have to specify (for each line item)

    1. base type

    2. base entry

    3. base line

    like this:

    oGRPO.Lines.BaseType = oPO.Lines.BaseType

    oPO.Lines.BaseEntry = oDraft.Lines.BaseEntry

    oPO.Lines.BaseLine = oDraft.Lines.BaseLine

    Your target item line must inherit the details form your base document (this the line number must match up...)

    these 3 values are the only "line" fields that you have to specify when you create a target doc from a base doc.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.