‎2013 Jul 30 9:45 AM
Hi Team,
I was creating the process order using the standard BAPI function module (BAPI_PROCORD_CREATE).I need to change the total quantity and UOM value based on my input selection screen value.Inside the BAPI function module UOM conversion logic is excutiong but i don't want to execute that.
Whatever i am giving input value it should come total quantity and UOM.
For Example: if i am giving input quantity 500 and UOM is LB then it should appeared in process order creation data on total quantity filed and UOM feild.
‎2013 Jul 31 1:50 PM
Hi Sridhar,
Did you try passing QUANTITY '500' and QUANTITY_UOM 'LB' in ORDERDATA of the BAPI BAPI_PROCORD_CREATE for Total Order Quantity?
‎2013 Aug 02 11:20 AM
Hi,
I was tried and it is converting TON's because material master data product unity is TONs in work scheduling TAB (MM03).I don't want to execute the conversion logic in standard BAPI.
Inside the BAPI function module : COXT_BAPI_ORDER_CREATE the below code
* UoM conversion
if not ls_ordpar-gmein is initial and
not ls_msfcv-frtme is initial and
ls_ordpar-gmein <> ls_msfcv-frtme.
perform baseuom_convert_to_altuom using ls_msfcv-frtme
changing ls_ordpar.
endif.
‎2013 Aug 02 12:57 PM
Hi Sridhara,
Have you tried by not passing any unit to see if the base unit is considered by default?
‎2013 Aug 02 1:00 PM
Hi,
You can try checking if you can enhance the BAPI to suit your requirement
Regards,
Monami
‎2013 Aug 05 2:22 PM
I used the BDC program to change the UOM and total qty.
Thanks you all