cancel
Showing results for 
Search instead for 
Did you mean: 

Link relationship between a purchase invoice and a PO/GRPO via the Service Layer API?

UrvishPatel
Explorer
0 Kudos
123

Hi,

I hope you are well,
 
 
Is it possible to link or create a relationship between a purchase invoice and a PO/GRPO via the Service Layer API?
 
Thanks 
Urvish
View Entire Topic
ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert

Hi UrvishPatel,

Yes, it is possible to link them.

Suppose, you already have a GRPO created in B1 client. You can create an A/P Invoice based on GRPO using Service Layer as below:

POST /b1s/v1/PurchaseInvoices

{
"CardCode": "V10000",
"DocumentLines": [
{
"BaseType": 20,
"BaseEntry": 472,
"BaseLine": 0
}
]
}

It will automatically create the link between GRPO and Invoice.

Kind regards,
ANKIT CHAUHAN
SAP Business One Support

UrvishPatel
Explorer
0 Kudos
Hi Ankit, Thanks for your response. We haven't tested it yet as we're waiting for a new invoice to be created in the test system. Once that's done, we'll proceed with linking GRPO and update you accordingly. Best regards, Urvish Patel