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

replace column pf Internal Table with a constant value.

Former Member
0 Likes
757

Dear Friends,

m using CS_BOM_EXPL_MAT_V2 to get BOM items in internal table, but the Material (Header) field comes out to be blank.

is it possible to fill the column with that value(Header Material) without using LOOOP . if yes how?? I've already tried with update statement but DB tables only.

IF ITAB_STB1 IS NOT INITIAL.

LOOP AT itab_stb1.

MOVE itab_mara-matnr TO itab_stb-matnr.

ENDLOOP.

APPEND ITAB_STB1 TO ITAB_STB.

ENDIF.

CLEAR: itab_stb1." , itab_mara.

Thanks all in advance

2 REPLIES 2
Read only

former_member761936
Active Participant
0 Likes
478

Hi,

You can use modify statement if material number is same for all the records.But if it is multiple records , you need to loop the internal table and pass the value to Internal table and modify the internal table.

Hope this information will help you.

Regards,

Narendra.Soma

Read only

Former Member
0 Likes
478

Thanks Narendra