on 05-02-2008 12:30 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.