cancel
Showing results for 
Search instead for 
Did you mean: 

Required Fields for GRPO in DI API

Former Member
0 Kudos

Does anyone know what the required fields are when entering a GRPO through B1if?

I am using:

<PurchaseDeliveryNotes>
		<row>
			<CardCode>
				<xsl:value-of select="col[1]"/>
			</CardCode>
		</row>
</PurchaseDeliveryNotes>
<Document_Lines>
		<row>
			<ItemCode>
				<xsl:value-of select="col[2]"/>
			</ItemCode>
			<Quantity>
				<xsl:value-of select="col[3]"/>
			</Quantity>
			<BaseCard>
				<xsl:value-of select="col[1]"/>
			</BaseCard>
		</row>
</Document_Lines>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Mike,

Where do you get <BaseCard> from? I can't see that property in the SDK documentation - it's in the database but I'm sure you don't need it.

If you want to create a GRPO from a PO you should be setting BaseEntry, BaseLine and BaseType. I also think this is the cause of your 5002 error in the other thread.

Regards,

Jon

Former Member
0 Kudos

Thanks Jon and Gordon, I have discovered the problem I was having. In the DI API Help, it identified the GRPO as a 'DocumentOrderEntrires' instead of just a 'Document'. After I changed this, B1 took the GRPO with just the CardCode, ItemCode and Quantity.

Thnaks for your responses,

Mike

Former Member
0 Kudos

If your problem is solved, please close your thread.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Is this GRPO based on PO?

Thanks,

Gordon

Former Member
0 Kudos

Yes it is Gordon. Goods Receipt Purchase Order (GRPO)

The DI API Reference Help is vague on this issue.

Edited by: Mike Hardwick on Feb 10, 2012 11:56 PM

Former Member
0 Kudos

You answer is not very clear.My question is: is this GRPO independent or a target document of PO?