cancel
Showing results for 
Search instead for 
Did you mean: 

module pool table controls

Former Member
0 Kudos

Hi,

by using table controls we can update the data , i have sales item data i.e vbap data is there in my table control so i want to update the table control data. how to do this,

where i shd write the logic .

in which event i shd write logic.

Thanks in advance.

Satish.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

It is not advisable to update predifined table if it is your requirement.Do as follows in PAI

Process after input .

loop at itab .

module update_vbap.

endloop.

Now in that moduel.

module update_vbap.

case sy-ucomm.

when 'UPDATE'.

move vbap to wa_vbap.

update vbap from wa_vbap where vbeln = wa_vbap-vbeln

posnr = wa_vbap-posnr.

endcase.

endmodule.

Thanks,

NN.

Former Member
0 Kudos

Hi satish kuber

Generally we should not update standard table directly by any means. If at all you want to update u can right the code PAI

at user-command.

Basically we go for BDC methods... to update the standard SAP tables.

Venkat