2012 Oct 15 8:46 AM
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.
2012 Oct 15 8:51 AM
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
2012 Oct 15 8:55 AM
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