cancel
Showing results for 
Search instead for 
Did you mean: 

Do GRN Based on PO

Former Member
0 Kudos

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..

Bruce

Accepted Solutions (1)

Accepted Solutions (1)

barend_morkel2
Active Contributor
0 Kudos

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.

Answers (0)