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_createfromdat2 bapi error

Former Member
0 Kudos

Dear gurus

I tried to create the sales order through bapi.

In that if i mentioned the document type OR,it couldnt create the order.

But if i use TA (which is the sales order type in german language for OR) ,then it creates the order.

What will i do to create the order by passing the value as OR in document type.

Kindly advise me.

2 REPLIES 2

former_member194152
Contributor
0 Kudos

Hi,

Field VBAK-AUART having a conversion routine in it so if you want to hard code value of 'OR' then u need to use function module CONVERSION_EXIT_AUART_INPUT for conversion into internal format.

Regards,

Gagan

raymond_giuseppi
Active Contributor
0 Kudos

BAPI are not Batch Input, they don't simulate screen flow, and so don't call conversion-exit, you MUST pass the values in internal format.

Here look at the parameter for order type, data-element is AUART,  its domain is AUART and is associated to conversion exit AUAR. So if you want to convert an external format ("OR") to internal format ("TA") use FM CONVERSION_EXIT_AUART_INPUT.

Regards,

Raymond