cancel
Showing results for 
Search instead for 
Did you mean: 

How to add product with CRM_ORDER_MAINTAIN

Former Member
0 Kudos

Hi Gurus,

I am creating a service order from service plan.

I need to add a new product with the service order, be it actualy creates.

Can anyone send me the code for adding a product through

CRM_ORDER_MAINTAIN?

Thanks & Regards,

Bhuvana

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI BHUVANA

under products data tab first row enter the first product top left side first button is Add a new row there you can add the new product

Reward if helpful

Former Member
0 Kudos

Keep a break point in crm_order_maintain_ow and try to create a order with product. see how the values are passed into crm_order_maintain_ow .

or u can check the Fm ZBAPI_SALESOR_CREATE_SRV_ORDER

Former Member
0 Kudos

I couldn't find both the FMs.

Can you suggest something else?

Former Member
0 Kudos

CRM_ORDER_MAINTAIN_MULTI_OW this is the one

Former Member
0 Kudos

Hi,

Go to SE24->CL_CRM_1O_MAIN THEN goto method <b>MAINTAIN_ORDER</b>

Go inside <b>CALL METHOD me->maintain_1o</b> by double clicking on it

then put a breakpoint on <b>CALL FUNCTION 'CRM_ORDER_MAINTAIN'</b>.

After this try assigning the product ID to service order/ticket in GUI i.e by using CRMD_ORDER.

When the control reaches the break point check out all the importing and changing parameters values which are getting passed to the FM <b>CRM_ORDER_MAINTAIN</b>. You need to pass similar values to the FM in your program.

Hope it helps.

Regards,

Amit

*Always reward points for helpful answers