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

Material (BOM)

Former Member
0 Likes
267

hi,

my requirement is to get material list which are belongs to particular material.

for example take computer. it consists of keyboard, mouse, cpu, ets........

if computer is input from user i need to show all related things like keyboard,mouse,cpu......

is it possible with bapis . if any bapi is there pls tell me.

regards

Guru

1 REPLY 1
Read only

Former Member
0 Likes
235

u have to call

, it will get BOM materials.

      call function 'CS_BOM_EXPL_MAT_V2'
          exporting
                capid                 = 'PP01'
                datuv                 = sy-datum "BOM_HEADER-DATUV
                ehndl                 = '1'
*              EMENG                 = V_MENGE_2
                mehrs                 = 'X'
                mmory                 = '1'
                mtnrv                 = t_fert2-matnr
                werks                 = t_fert2-werks
*      importing
*          TOPMAT                =
*          DSTST                 =
           tables
                stb                   =  t_stb
*          MATCAT                =

Regards

Prabhu