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

Process order change using standard BAPI Function Module

Former Member
0 Likes
1,131

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.

5 REPLIES 5
Read only

Former Member
0 Likes
959

Hi Sridhar,

Did you try passing QUANTITY '500' and QUANTITY_UOM 'LB' in ORDERDATA of the BAPI BAPI_PROCORD_CREATE for Total Order Quantity?

Read only

0 Likes
959

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.

Read only

0 Likes
959

Hi Sridhara,

Have you tried  by not passing any unit to see if the base unit is considered by default?

Read only

0 Likes
959

Hi,

You can try checking if you can enhance the BAPI to suit your requirement

Regards,

Monami

Read only

0 Likes
959

I used the BDC program to change the UOM and total qty.

Thanks you all