cancel
Showing results for 
Search instead for 
Did you mean: 

XI Proxy Class - Commit work is not working

Former Member
0 Kudos

Hi Experts ,

I have a problem , I am calling XI proxy class in PA30 user exit to move data to the XI , But in the Xi monitor SXI_MONITOR , it showing an error Commit missing in the Application . But in my user exit i have done commit work .

CALL METHOD CL_MOVETOXI->EXECUTE_ASYNCHRONOUS

EXPORTING

OUTPUT = WA_MOVETOXI.

COMMIT WORK .

pls help me to solve this .

thanks and regards

Renjith MP

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

i think commit work doesn't work try to call this FM "BAPI_TRANSACTION_COMMIT".

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
*   WAIT          = "keep this as space"
* IMPORTING
*   RETURN        =
          .

Thanks

Vikranth

Edited by: Khimavath Vikranth on Jun 14, 2008 8:47 AM

Former Member
0 Kudos

Hi,

try with this sample code:

CALL METHOD prxy->execute_asynchronous

EXPORTING

output = it.

commit work.

CATCH cx_ai_system_fault .

DATA fault TYPE REF TO cx_ai_system_fault .

CREATE OBJECT fault.

WRITE 😕 fault->errortext.

ENDTRY.

Regards,

Nagarjuna.

Former Member
0 Kudos

Hi,

try with this sample code:

CALL METHOD prxy->execute_asynchronous

EXPORTING

output = it.

commit work.

CATCH cx_ai_system_fault .

DATA fault TYPE REF TO cx_ai_system_fault .

CREATE OBJECT fault.

WRITE 😕 fault->errortext.

ENDTRY.

Regards,

Nagarjuna.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Renjith,

You should not COMMIT in an User Exit/BADI.

Call your proxy class and this will be processed when transaction PA30 is successfully processed.

Regards,

Former Member
0 Kudos

Hello,

Would you please let us know if you have resolution on this issue.

We as well use PA30 to send the data through XI, and our messages are as well in the status "no-commit".

So please help me with any clue anyone may have to resolve this issue.

Thank you very much.

saplover

Former Member
0 Kudos

Tell me the BADI name,i will do a test!

regards

yu ming

Former Member
0 Kudos

Have you got any solution for this as i too am facing the same problem.

Former Member
0 Kudos

Hi,

Check for sy-subrc, is your method is getting failed?

CALL METHOD CL_MOVETOXI->EXECUTE_ASYNCHRONOUS
EXPORTING
OUTPUT = WA_MOVETOXI.

IF SY-SUBRC = 0.
COMMIT WORK .
ENDIF.

tHANKS

VIkrnaht