hi guys
here i m writing my coding for Questions-c , check it . is this right?
b) Get the maximum lead time for the components: For all records in it_child, get it_marc-wzeit matching on matnr and werks in it_marc and it_child and get the maximum wzeit for all matnr in it_child.
c) Populate this maximum wzeit as it_marc-ztlt matching on matnr and werks in it_bom (step 7a above) and it_marc. Now add it_marc-zlt and it_marc-ztlt for this matnr and werks and populate it_marc-wzeit. Also, set it_marc-upd = X.
and my coding is
c]--
data : total4 type bseg-wrbtr.
loop at it_marc where
it_bom-matnr = it_marc-matnr and
it_bom-werks = it_marc-werks.
if sy-subre = 0.
move it_marc-ztlt = it_child-wzeit.
modify it_marc.
total4 = it_marc-zlt + it_marc-ztlt.
it_marc - wzeit = total4.
modify it_marc.
endloop.
thanxs