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

Issue with CS_BOM_EXPL_MAT_V2

former_member212005
Active Contributor
0 Likes
1,331

Hi All,

We are trying to fetch BOM data by calling the above function module i.e. CS_BOM_EXPL_MAT_V2.

The function module is called as shown below


    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
         EXPORTING
              capid                 = 'PP01'
              datuv                 = sy-datum
              mktls                 = 'X'
*              mehrs                 = 'X'
              mmory                 = '1'
              mtnrv                 = gs_bom-matnr
              stlal                 = gs_bom-stlal
              werks                 = p_werks
         TABLES
              stb                   = gt_stb[]
         EXCEPTIONS
              alt_not_found         = 1
              call_invalid          = 2
              material_not_found    = 3
              missing_authorization = 4
              no_bom_found          = 5
              no_plant_data         = 6
              no_suitable_bom_found = 7
              conversion_error      = 8
              OTHERS                = 9.

Inspite of passing the plant......the function module seems to be checking other plants as well.....i.e. for one of the material it gives an exception saying that 'Material XXX not maintained in plant ABCL'

However the plant passed to FM is ABCM (p_werks)....then why is it checking in other plant?

Any idea?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
902

Hi,

Run report RCS12001 and check if the report is throwing a similar report with the parameters passed in the program.

If yes, Check for SAP notes.

If not, you may be missing some input fields.

Sujay

Hi,

Run report RCS12001 and check if the report is throwing a similar report with the parameters passed in the program.

If yes, Check for SAP notes.

If not, you may be missing some input fields.

Sujay

2 REPLIES 2
Read only

Former Member
0 Likes
903

Hi,

Run report RCS12001 and check if the report is throwing a similar report with the parameters passed in the program.

If yes, Check for SAP notes.

If not, you may be missing some input fields.

Sujay

Read only

former_member212005
Active Contributor
0 Likes
902

One of the import parameters had to be passed value 'X'