cancel
Showing results for 
Search instead for 
Did you mean: 

Function from SAP DI API SaveDraftToDocument equivalent in Service Layer

0 Kudos

Hi Experts.

Good day!

I am trying to save the draft transaction to its document but i cant find the way on how to add the draft as document.

can someone show or tell me how to do this?

also tried this one but noting happen.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

This is already resolved..

i use this in posting.

Answers (1)

Answers (1)

pal3kuno
Explorer
0 Kudos

Hello, How to post A/P invoice as draft?hope to hear from you soon. Thanks

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi pal3kuno,

You should use Drafts entity in Service Layer as below:

POST https://localhost:50000/b1s/v1/Drafts
{
    "CardCode": "V001",
    "DocObjectCode": "18",
    "DocumentLines": [
        {
            "ItemCode": "I001",
            "Quantity": "10",
            "TaxCode": "T1",
            "UnitPrice": "30"
        }
    ]
}

Kind regards,

ANKIT CHAUHAN

SAP Business One Support