cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with BAPI (SD_SALESDOCUMENT_CHANGE)

Former Member
0 Kudos

Hello Experts!

I've met problem about FM "SD_SALESDOCUMENT_CHANGE".

Situation as below;

1, create Sales Order(#1000 item1), with Purchase requisition(#2000 item1)

2, transfer Purchase requisition(#2000 item1) to Purchase Order(#3000 item1)

3, modify address for Ship-to Customer on Sales Order(#1000 item1) by FM above.

From record of Sales Order, by this modification, schedule line at Sales Order(#1000) is once deleted, and then new schedule line is created.

At new schedule line, though Purchase requisition is same (#2000), its item is changed(item 2 is created.)

So I have two Purchase Requisition item, though I really need one! This is the problem I'm facing to!

I used paramenter table EXTENSIONIN to import Purchase requirement, but still I can' t stop creating new schedule line..

*I've been asking same question in ABAP, but I still have't got solved..

Is there anyone that has met same problem? and solve this one?

thanks in advance!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I assume you have a third party scenario? Can you confirm. That means you create sales order, purchase requisition, purchase order and the vendor sends material to the customer is that correct after invoice receipt you do the billing?

Why do you change the address of ship-to after the po is created? In the third party scenario the ship-to address of sales order is shipping address of po. t think you will have same behaviour w/o bapi. Try to do the same manually.

Former Member
0 Kudos

HI,

Thanks for your reply, but I don't have third party scenario.

I have Bought-In item scenario, which create PR from SO when there is not enough stock.

thaks in advance!

Former Member
0 Kudos

The point I am trying to make and for that it does not matter how you call the process is that I expect the behaviour you see independent of BAPI. It is a problem of the process. The question is why is the ship-to party changed on the order after the Purchase Order was created? This is causing a difference between shipping address of Po and Sales Order and I think that leads to a new PR. I think you have the same problem in manual processing and is not only related to the BAPI. When you change ship-to on order manually in va01 after the PO was created it will give you also a new PR.

Answers (1)

Answers (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Please, see these notes

SAP Note 700795 - Enhancement category of BAPI enhancement structures

SAP Note 509898 - BAPI enhancement concept and Unicode

SAP Note 550431 - FAQ: BAPI in sales - general questions

As I understand it, I have doubts that you can use EXTENSIONIN as you are using it.

I hope this helps you

Regards

Eduardo