‎2009 May 26 7:13 AM
Hi,
I have created a module poool program which displays list of sales orders.User can select any of the Sales Order & click on a button 'PO Create'.This triggers " BAPI_PO_CREATE1" and creates PO for sales order based on Purchase Requisition number provided.
There is no problem when i am creating PO for one sales order ,now be on the same screen (screen where list of sales orders are displayed) select one more Sales Order after PO gets created for first sales order again click on "PO create" button.Now PO gets created for second sales order but the Pricing Conditions in the Sales Order will get cleared.And in VA02 or VA03 there will not be any pricing conditinons.
But if i completely come out of the screen,again execute transaction Po gets created with out any problem.
Please suggest how & where the problem lies?
Do we need to refresh ABAP or SAP memory?How to do this?
Thank you
‎2009 May 26 7:29 AM
Hi,
Can you copy paste your code in the thread. It is impossible to predict what is happening in this case without code.
Aswarth.
‎2009 May 26 7:34 AM
hai ,
when u r coming out of the screen and executing it is workign fine
but when u r doing fom the same screen it is not working ,
so u create a clear button when u select it it clear all the fields so that the old data is refreshed instead of going out of the screen and coming back
M.A
‎2009 May 26 9:59 AM
Thank You.
But I think there is no problem with clear & reresh of internal tables because after creating PO I am clearing inetrnal tables.
‎2009 May 26 11:42 AM
Hi,
after BAPI_PO_CREATE,,,use FM
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.'
or commit work.
wait upto 5sec.
Regards,
Ramesh.