Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sales Order and BAPI (Create with reference)

andrea_galluccio2
Contributor
0 Likes
620

Hi to all,

is there a BAPI that permitt to me to create a sales order refering to an invoice document? Also, i should select only some positions of that invoice (to creade a credit memo).

Is there a BAPI that does that or i have to create a batch input (VA01 -> create with reference -> Invoice -> Select items -> manually select items) ?

Also i have to add some position/header text to the new document. A BAPI could semplify my task.

Thx a lot for Your support

Andrea

2 REPLIES 2
Read only

Former Member
0 Likes
419

Hi,

You can use the FM SD_SALESDOCUMENT_CREATE ...in the header parameter i believe there is parameter called REFDOC where you can specify the invoice document

Thanks,

Naren

Read only

0 Likes
419

Hi, thx a lot for your quick reply.

But this BAPI permitts to me to select only single items of the invoice and add extended texts to the new sd document?

Now i don't have the system to test it. If it works (i'll test in about 3 hours), award points will surely rewarded to you.

Thx again

Andrea