11-08-2007 6:16 PM
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
11-08-2007 6:49 PM
@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.
11-08-2007 7:10 PM
Thanks Tuncay! That solved the problem. I seem to be having many problems with this BAPI.
Regards,
Davis