Application Development and Automation 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: 
Read only

doubt in unit conversion

0 Likes
928

in bapi process when taking contract reference to sales order conversion errors are

if suppose my Quantity is '12' .... i am entering quantity as 12 in contract it reflects as 0.012 in order for this i am entering like this "0000000012000" then only its taking as 12 .please share ur ideas

thnks in advance

in bapi process when taking contract reference to sales order conversion errors are

if suppose my Quantity is '12' .... i am entering quantity as 12 in contract it reflects as 0.012 in order for this i am entering like this "0000000012000" then only its taking as 12 .please share ur ideas

thnks in advance

4 REPLIES 4
Read only

Former Member
0 Likes
889

pls check the type of variable u r using for entering quantity in the bapi..match it with the type of target variable.

right now u must be taking it as character type

Read only

madhu_vadlamani
Active Contributor
0 Likes
889

Hi Naveen,

Are you using this bapi from external system.check user profile parameters.If you did directly in sap most of the times there is no need of any conversions.

Regards,

Madhu.

Read only

0 Likes
889

hi madhurao

i am using this bapi BAPI_SALES ORDER_CREATEFROMDAT1 .

in this the quntity field is WMENGC this field will take like that only bcoz this field consist of this future (Order qty in sales units - 00009001 corresponds to 9.001) but i need to change is there any function module to convert .

Read only

RaymondGiuseppi
Active Contributor
0 Likes
889

Look at FM of function group ISOC like CURRENCY_AMOUNT_SAP_TO_BAPI (alas I dont' know the same for Quantity) this will give you the idea. Basically your field must already be a QUAN field with correct data to perform a simple MOVE...

Regards,

Raymond