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

BAPI for parameter effectivity BOM

Former Member
0 Likes
2,125

Hi SDN,

is there a BAPI for getting a BOM with a specific parameter effectivity? I searched for a parameter like serial number but without success.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,621

Hi Erik,

Below are the steps for material BOM Explosion with parameter effectivity. If you want this functionality to behave as a bapi(for WS, rfc, etc.) then you will need to wrap these function calls together.

First you need to initialize the Engineering change management application.

1) CALL FUNCTION 'ECM_PROCESSOR_INIT'

Set the 'no-popup' flag. I don't know how your system has been configured so you will need to sort through the function module parameters yourself to determine what you need based on your implementation(Change masters with release key, without, etc). ***note, there is a bug in this FM code not yet corrected by SAP. if you have unexpected results it may be caused by data not being cleared from 'itab_aepfb'. Add an implicit enhancment to the start of the FM and add 'refresh itab_aepfb.'.

2) CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'.

You will have already initialized the ECM processor so your effectivity will now take effect.

Hope this helps,

-Scott

6 REPLIES 6
Read only

manthanraja
Active Participant
0 Likes
1,621

did you try these ?

BAPI_COSTESTIMATE_GETDETAIL Determine detailed information for a cost estimate

BAPI_COSTESTIMATE_GETEXPLOSION Determine BOM Explosion for a Cost Estimate

BAPI_COSTESTIMATE_GETLIST Determine cost estimate lists

BAPI_COSTESTIMATE_ITEMIZATION Determine itemization for a cost estimate

Read only

0 Likes
1,621

No, I didn't try these. I was searching for a material BOM BAPI which would accept a serial number.

Read only

0 Likes
1,621

BAPI_BOM_UPLOAD_SAVE is this the one ? It accepts fields related to CS01

BAPI_MATERIAL_BOM_GROUP_CREATE Creation of a material BOM group

BAPI_MAT_BOM_EXISTENCE_CHECK Check whether BOM for material exists

BAPI_BOM_UPLOAD_SAVE Main Module for BOM Update (Upload from CRM)

Also do refer

Did you get your answer ? if not could you please elaborate a little bit so that i could help you solve the issue ..

regards

Manthan.

Read only

0 Likes
1,621

BOM view without parameter values:

[SAP - CEWB - BOM|http://i48.tinypic.com/do9oq8.png]

BOM view with parameter X0051,X9999:

[SAP - CEWB - BOM with parameter|http://i49.tinypic.com/168wp00.png]

Is there a BAPI that will get me the BOM like in the second screenshot?

Edited by: erik.vonderheid on Mar 2, 2010 11:01 AM

Read only

Former Member
0 Likes
1,622

Hi Erik,

Below are the steps for material BOM Explosion with parameter effectivity. If you want this functionality to behave as a bapi(for WS, rfc, etc.) then you will need to wrap these function calls together.

First you need to initialize the Engineering change management application.

1) CALL FUNCTION 'ECM_PROCESSOR_INIT'

Set the 'no-popup' flag. I don't know how your system has been configured so you will need to sort through the function module parameters yourself to determine what you need based on your implementation(Change masters with release key, without, etc). ***note, there is a bug in this FM code not yet corrected by SAP. if you have unexpected results it may be caused by data not being cleared from 'itab_aepfb'. Add an implicit enhancment to the start of the FM and add 'refresh itab_aepfb.'.

2) CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'.

You will have already initialized the ECM processor so your effectivity will now take effect.

Hope this helps,

-Scott

Read only

0 Likes
1,621

Hi experts,

i have this problem: I must use the RFC cs_Bom_Expl_Mat_V2 from my program written in VB.net.

Before execute the cs_Bom_Expl_Mat_V2 i must execute the RFC ECM_PROCESSOR_INIT that not have the RemotE access enabled for external use. i need an RFC or Bapi that seem ECM_PROCESSOR_INIT.