Application Development 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: 

BAPI_SALESORDER_CHANGE message V1045 - Enter the document #

karuna_gangireddy
Contributor
0 Kudos

Hi,


I am trying to call the FM BAPI_SALESORDER_CHANGE in my SAP ECC RFC. I am giving the sales order# to t'he FM BAPI_SALESORDER_CHANGE but it still

gets back with the error message V1045 - Enter the document number'.

I applied the following note:

- 1232196 - Inexplicable error in BAPI

- 393728 - SD sales document cannot be read

None of them worked.

Thanks in advance,

Karuna

1 ACCEPTED SOLUTION

Former Member

Did you try to debug? It should be easy to find it out.

I did a quick where used on the message and the message is raised if you miss the Item number also.

So check the input to the BAPI and see if you forget to pass any item number  in the Item tables.

3 REPLIES 3

Former Member

Did you try to debug? It should be easy to find it out.

I did a quick where used on the message and the message is raised if you miss the Item number also.

So check the input to the BAPI and see if you forget to pass any item number  in the Item tables.

0 Kudos

Thank you for the quick reply Roy. I did debug. I went from FM SD_SALESDOCUMENT_CHANGE

to FM SD_SALES_DOCUMENT_READ. As I read in other posts VBAK-VBELN was clearing out. So I implemented the note '393728 - SD sales document cannot be read' with the correction instructions.


Thanks,

Karuna

0 Kudos

Hi All,

I was able to resolve the issue. The issue was with the extension_in. Once I commented the data for extension_in i was able to add the line items.

Thanks all,

Karuna