05-22-2009 4:03 AM
Hi.
While updating vendor material number through a customize report , ME23n doesnt get updated with vendor material number but text line does but when executed in debugging mode it does.
BAP_PO_CREATE , we placed a bapi commit then a wait upto 2 sec. and also after BAPI_PO_CHANGE same thing thought of giving some time but doesnt work out.
Any specific reason a program behaving differently.
Regards
Mohinder
05-22-2009 5:05 AM
hai mohinder, it may be due to delay in data base update,
we too faced problem in other bapi call's, when in debug it will work fine bcos while debugging it get some extra time , so u have tu add wait statment for few seconds
it might hlep ur problem
afzal
05-22-2009 5:05 AM
hai mohinder, it may be due to delay in data base update,
we too faced problem in other bapi call's, when in debug it will work fine bcos while debugging it get some extra time , so u have tu add wait statment for few seconds
it might hlep ur problem
afzal
05-22-2009 5:15 AM
Hi Afjal.
Agree , but as ,mentioned in query I have already used the same thing after FM and wait.
As its been called in a subroutine will it make a impact, I am doubtful as it will be internal session(Abap Session).
Still some more replies will be of good assistance.
regards
Mohinder Singh Chauhan
Edited by: Mohinder Singh Chauhan on May 22, 2009 6:15 AM
05-22-2009 5:27 AM
Hi mohinder,
Try to increase a delay by few more seconds as in debugging it works fine ,it siggests dat system requires some more time to hit the database.
regards,
ajit.
05-22-2009 2:10 PM
Hi ,
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = wa_po_head
poheaderx = wa_po_headx
IMPORTING
exppurchaseorder = gv_po_number
TABLES
return = gt_return
poitem = gt_poitem
poitemx = gt_poitemx
poschedule = gt_poschedule
poschedulex = gt_poschedulex
poaccount = gt_poaccount
poaccountx = gt_poaccountx
potextitem = gt_potextitem.
.
COMMIT WORK AND WAIT.
Then for ensuring ,
IF gv_po_number IS NOT INITIAL.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = gv_po_number
TABLES
return = gt_return
poitem = gt_poitem
poitemx = gt_poitemx.
ENDIF.
05-26-2009 5:24 AM