SAP Help Site


RE:[sap-abap] BAR Code scanner
Posted by shajumon_thekkethil(SAP Technical Consulatant)
on 05/27/2009 06:12:00 AM

Hi Neal,
we have used the user exit USEREXIT_MOVE_FIELD_TO_VBAP.
We put the below code in the exit.
read table xvbap with key matnr = vbap-matnr.
if sy-subrc eq 0.
if not RV45A-KWMENG is initial.
delete xvbap where posnr = xvbap-posnr.
delete ivbap where posnr = xvbap-posnr.
delete xvbep where posnr = xvbap-posnr.
delete ivbep where posnr = xvbap-posnr.
delete ivbep1 where posnr = xvbap-posnr.
RV45A-KWMENG = xvbap-kwmeng + RV45A-KWMENG.
vbap-posnr = xvbap-posnr.
perform vbep-wmeng_setzen.
exit.
endif.
endif.
Here is the result.

Whenever the scanner determines the same material we are deleting the material from the table XVBAP and will add a new entry with same posnr with added quantity. Here the changes are not reflected in the item screen(4900).
Eventhough we are updating the table XVBAP with correct material, quantities..etc it is not reflcted in the screen. But once you save the order, the order will have correct material, quantity details.
Can you please help us to resolve it? The changes in the table XVBAP should be reflected in the table control for items in the sales order screen.
Thanks in advance,
Regards,
Shaju
__.____._

Copyright © 2009 CEB Toolbox, Inc. and message author.

Toolbox.com
4343 N. Scottsdale Road
Suite 280
Scottsdale, AZ 85251



No Comments Yet so far
Leave a comment



Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>