Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Module pool

Former Member
0 Likes
686

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

6 REPLIES 6
Read only

Former Member
0 Likes
648

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

Read only

Former Member
0 Likes
648

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.

Read only

0 Likes
648

HI,

use the bapi - > BAPI_TRANSACTION_COMMIT.

RGDS'

ANVER

IF HLPED MARK POINTS

Read only

0 Likes
648

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

Read only

0 Likes
648

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

Read only

former_member480923
Active Contributor
0 Likes
648

Hi

I think this is a buffer issue, call the BAPI_TRANSACTION_COMMIT with WAIT = 'X'.

Hope This Helps

Anirban