Commit work in dialog program ?
Hi,
in a dialog program i'm determine the conditional bom data by using function module 'CS_BOM_EXPL_MAT_V2'. After some actions i'm updating the STPO-CLSZU of a certain bom component. Now i want to refresh my screen and using the function module again. But the new STPO-CLSZU is not taken, but the old one.
The update of the STPO is done by the statement
UPDATE stpo SET clszu = par_clszu
WHERE stlty = par_stlty AND
stlnr = par_stlnr AND
stlkn = par_stlkn AND
stpoz = par_stpoz.
After this statement i've tried the following statements :
commit work (and wait).
function module BAPI_TRANSACTION_COMMIT
function module DB_COMMIT
but none of these solutions did actually give the correct results.
When i'm leaving my dialog program and start it again, the data is correct.
Which statement do i need to refresh my STPO-data inside my dialog program ?
regards,
Hans
Most probably the function module CS_BOM_EXPL_MAT_V2 uses buffered read? Just my wild guess.
Hi,
The screen might not be updated because PBO is not called and so the transport is not done.
Probably what you can do is after updation select again
and then call the FM given below.
DYNP_UPDATE_FIELDS.
This will update without PBO.
Correct me if I am wrong.
-- Mahesh.