‎2006 Sep 15 5:58 AM
Hi,
I am doing A module pool Program in APO.I have displayed a ALV Grid double click on any row takes me to a Product view screen(standard Product display in APO) skiping the initial screen .I make changes In the product view .when i click back button twice it goes to the ALV display.I have a Refresh Button on Application tool bar.when i click on it The PBO is processed .Here I have used a Standard bapi The Output Of which does not give me the modified product view contents.But When I exit from the Program and rerun it gives me the correct output .If Any knows why This Is Happening ?
Thanks and regards
Ahasan
‎2006 Sep 15 7:13 AM
Hi ,
After your BAPI call use this code.
*--Check for BAPI Error.
IF WAL_RETURN-TYPE = C_ERROR.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
PW_MESSAGE = WAL_RETURN-MESSAGE.
ELSEIF WAL_RETURN-TYPE = C_SUCCESS.
*--Commit BAPI
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = C_CHECK.
ENDIF.
Regards,
Raghav
‎2006 Sep 15 7:42 AM
HI Mulla,
it is better if you Call this BAPI in PAI event and use the " BAPI TRANSACTION COMMIT" once U call the BAPI.
Hope it is helpful,
Rgds,
Mohan.
‎2006 Sep 15 7:48 AM
HI,
use the bapi - > BAPI_TRANSACTION_COMMIT.
RGDS'
ANVER
IF HLPED MARK POINTS
‎2006 Sep 15 8:03 AM
Hi,
I have used BAPI_TRANSACTION_COMMIT in the PAI Event.But In PBO The BAPI <b>'BAPI_MOSRVAPS_GETLIST2'</b>
is not Picking the modified Results.Its Giving the same old Results That Were Before modification in the Product View.It only gives the corrected Results when i Rerun The Program
Regards
Ahasan
‎2006 Sep 15 8:16 AM
Hi,
You should not call BAPI in one place and BAPI Commit in another place, try to put both one after another call..
or paste your code some body can help you.
Regards,
Raghav
‎2006 Sep 15 8:02 AM
Hi
I think this is a buffer issue, call the BAPI_TRANSACTION_COMMIT with WAIT = 'X'.
Hope This Helps
Anirban