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_SALESDOCU_CREATEFROMDATA1 - Sales document type problem

Former Member
0 Kudos

I am using BAPI_SALESDOCU_CREATEFROMDATA1 but I am getting a runtime error on the header structure. It is saying that the Sales document type [FD, OR, etc...] does not exist. The problem is that I know it exists in the system. Any ideas what may be causing the trouble?

Davis

2 REPLIES 2

TuncayKaraca
Active Contributor
0 Kudos

@Davis

I think the problem is Sales Order Type actual value and language specific value. If you use for example FD and OR, there is no any actual Sales Order Type like that.

Check out table <b>TVAK</b> for Sales Document Types

Check out table <b>TAUUM</b> for Sales Documents:Types: Language-Dependent Conversion

So I think you have to use <b>KL</b> for FD and <b>TA</b> for OR.

0 Kudos

Thanks Tuncay! That solved the problem. I seem to be having many problems with this BAPI.

Regards,

Davis