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

ECN :: using FM

Former Member
0 Likes
1,851

I am trying to create a change number.. using the FM , ccap_ecn_create .

I am able to create the change number. How to add the materials and Material BOM's during the creation...

Please help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,164

Hi

In the ccap_ecn_create Function module, you need to pass values to the following

Export paramaters

object_bom

object_mat

object_bom_mat

Values to be passed are

object_bom-active = 'X'.

object_bom-obj_requ = 'X'.

APPEND object_bom.

object_bom_mat-active = 'X'.

object_bom_mat-obj_requ = 'X'.

APPEND object_bom_mat.

object_mat-active = 'X'.

object_mat-obj_requ = 'X'.

APPEND object_mat.

Most importantly

We need to pass values to

objmgrec TABLES parameter of Function module

Value to be passed is

objmgrec-chg_objtyp = '1'.

objmgrec-bom_cat = 'M'.

objmgrec-bom_usage = Pass BOM Usage.

objmgrec-material = Pass Parent Material.

objmgrec-plant = Pass Plant if you have any.

APPEND objmgrec.

CLEAR objmgrec.

If you are create ECO for material revision change, than pass values as fallows

objmgrec-chg_objtyp = '4'.

objmgrec-material =Material to be modified.

APPEND objmgrec.

I Hope the above should work, since it has worked for us.

Please let me know, if you have any clarifications

Regards

Madhan Doraikannan

2 REPLIES 2
Read only

Former Member
0 Likes
1,165

Hi

In the ccap_ecn_create Function module, you need to pass values to the following

Export paramaters

object_bom

object_mat

object_bom_mat

Values to be passed are

object_bom-active = 'X'.

object_bom-obj_requ = 'X'.

APPEND object_bom.

object_bom_mat-active = 'X'.

object_bom_mat-obj_requ = 'X'.

APPEND object_bom_mat.

object_mat-active = 'X'.

object_mat-obj_requ = 'X'.

APPEND object_mat.

Most importantly

We need to pass values to

objmgrec TABLES parameter of Function module

Value to be passed is

objmgrec-chg_objtyp = '1'.

objmgrec-bom_cat = 'M'.

objmgrec-bom_usage = Pass BOM Usage.

objmgrec-material = Pass Parent Material.

objmgrec-plant = Pass Plant if you have any.

APPEND objmgrec.

CLEAR objmgrec.

If you are create ECO for material revision change, than pass values as fallows

objmgrec-chg_objtyp = '4'.

objmgrec-material =Material to be modified.

APPEND objmgrec.

I Hope the above should work, since it has worked for us.

Please let me know, if you have any clarifications

Regards

Madhan Doraikannan

Read only

Former Member
0 Likes
1,164

Awesome Madhan....

This really helped me to solve the issue... and your suggestion is working.....

Thank you

Note :: 10 points for the above solution