Application Development 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: 

Is there any FM or BAPI for creating service order(iw32).

former_member498821
Participant
0 Kudos

Hi

Is there any FM or BAPI for creating service order(iw32).

5 REPLIES 5

Former Member
0 Kudos

Check this BAPI

BAPI_ECMORD_CHANGE

Amol

Kanagaraja_L
Active Contributor
0 Kudos

Use BAPI BAPI_ALM_ORDER_MAINTAIN

MichiFr
Participant
0 Kudos

...or perhaps

FM CO_IH_ORDER_GENER_2

will do this job for you - I've successfully used it several times.

Before calling this FM I had to do

CALL FUNCTION 'PMSDO_RESET'

, however. Otherwise it could mess up your application and end in a short dump.

You could even change some more caufvd fields after a call to

FM PM_ORDER_DATA_READ

which returns a caufvd structure and save those changes values with a call to

PERFORM caufvd_upd(saplcoih) USING l_caufvd

.

and a final call to

FM CO_ZV_ORDER_POST

and a subsequent

COMMIT WORK

.

Former Member
0 Kudos

Hi Pradeep,

You can create Service orders using either one of the below FM's

1. IBAPI_ISUSMORDER_CREATEMULTIPLE

OR

2. ISU_CREATE_ORDER

Hope this may help you.

Regards,

Smart Varghese

0 Kudos

Just a correction for the posting above: The FM is actually BAPI_ISUSMORDER_CREATEMULTIPLE w/o the leading 'I'.