2009 Apr 15 6:54 PM
I had to create a wrapper remote enabled FM around the standard SAP FM - FI_PERIOD_DETERMINE .
I coped the import,export and even the exceptions from the standard FM and called FI_PERIOD_DETERMINE inside my wrapper BAPI. Will this work ? Can we raise exceptions in a wrapper remote enabled FM ?
2009 Apr 15 7:12 PM
Hi Shareen,
BAPIs do not raise exceptions. They return the errors via the RETURN tables parameter.
Do one thing.
In your wrapper BAPI - capture the messages of the exceptions raised by the standard FM and populate the RETURN table parameter of your BAPI (type BAPIRET2) with the exception text and type as E
Then your application calling the BAPI can read the RETURN in the other environment.
Cheers,
Aditya
I had to create a wrapper remote enabled FM around the standard SAP FM - FI_PERIOD_DETERMINE .
I coped the import,export and even the exceptions from the standard FM and called FI_PERIOD_DETERMINE inside my wrapper BAPI. Will this work ? Can we raise exceptions in a wrapper remote enabled FM ?
2009 Apr 15 7:12 PM
Hi Shareen,
BAPIs do not raise exceptions. They return the errors via the RETURN tables parameter.
Do one thing.
In your wrapper BAPI - capture the messages of the exceptions raised by the standard FM and populate the RETURN table parameter of your BAPI (type BAPIRET2) with the exception text and type as E
Then your application calling the BAPI can read the RETURN in the other environment.
Cheers,
Aditya
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |