Skip to Content
avatar image
Former Member

RFC Adapter - executing commit work even return type value reports an erro

Dear Experts,

i want to commit the BAPI: Bapi_PO_Create1 even it reports an error. If i execute the BAPI from transaction se37 in the back end system and define as the second BAPI: BAPI_TRANSACTION_COMMIT The commit is executed successfully even the BAPI reports the error:"E 06 049 Enter a vendor"

When i try to do the same via PI RFC Adapter and activate the parameter: Commit Handling For Single BAPI Calls" and

"BAPI Advanced Mode" -> Successfull RETURN TYPE Values: 'E'

the RFC adapter always executes the Roll Back Function.

I would expect the the Commit Work is executed, as i define an error as a successful RETURN TYPE Value ('E').

Message Dispolay Tool

01.07.2011 15:21:58 Information TYPE='E', Message (ID:MEPO, NUMBER:002): "PO header data still faulty", LOG_NO:,

LOG_MSG_NO:000000 (PARAMETER:POHEADER, ROW:1, FIELD:, SYSTEM:ECDCLNT100)

01.07.2011 15:21:58 Error TYPE='S', Message (ID:MEPO, NUMBER:013): "Standard PO held under the number 4500000103",

LOG_NO:, LOG_MSG_NO:000000 (PARAMETER:POHEADER, ROW:1, FIELD:, SYSTEM:ECDCLNT100)

01.07.2011 15:21:58 Error TYPE='W', Message (ID:MEPO, NUMBER:079): "Object serialization (Technical)", LOG_NO:,

LOG_MSG_NO:000000 (PARAMETER:POHEADER, ROW:1, FIELD:, SYSTEM:ECDCLNT100)

01.07.2011 15:21:58 Information TYPE='E', Message (ID:06, NUMBER:049): "Enter a vendor", LOG_NO:,

LOG_MSG_NO:000000 (PARAMETER:POHEADER, ROW:1, FIELD:, SYSTEM:ECDCLNT100)

01.07.2011 15:21:58 Error TYPE='W', Message (ID:W5, NUMBER:005): "Please enter items first", LOG_NO:,

LOG_MSG_NO:000000 (PARAMETER:POHEADER, ROW:1, FIELD:, SYSTEM:ECDCLNT100)

01.07.2011 15:21:58 Error BAPI was executed with errors.

01.07.2011 15:21:58 Information Rollback transaction with BAPI_TRANSACTION_ROLLBACK

Do i interpretate the parameter correctly?

Do i have to define the Successfull RETURN TYPE Values in a different way (i tried already everything: "", ' '; but i am not sure how to define this parameter exactly)?

Does this even work from PI RFC Adapater?

Any help es welcome.

Thanks in advance,

Best Regards,

Karsten

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 01, 2011 at 04:31 PM

    Hi Karsten,

    Just trying to understand your requirement. WHy would you want to Commit even it the call fails?

    The commit does not do anything if there are no changes made to the database.

    and how are you checking if the rollback has happened or the commit happened?

    Best Regards,

    Ravikanth Talagana

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 04, 2011 at 08:09 AM

    Hi,

    that is an business requirement to create a preliminary order. This order can not be created because i get a functional error that the sales party have to be defined. But i need to create it in this way and it works as described above in SAP ECC.

    I can see in the Message Display Tool Trace that the adapater is executing a Roll Back.

    Any further help is appreciated.

    Best Regards,

    Karsten

    Add comment
    10|10000 characters needed characters exceeded