on 2023 May 04 10:08 AM
Hi Experts,
We are using RAP managed scenario which performs CRUD on a custom table which is working fine. Also, we have added a custom action to perform Goods movement 101. For which, I want to call BAPI_GOODSMVT_CREATE.
How can I achieve this ?
I tried below options:
1. ) Calling BAPI directly in Action
2. ) Calling a wrapper FM in update task
both are failing with dump BEHAVIOR_ILLEGAL_STATEMENT.
Request clarification before answering.
I don't see an issue with this. It's the workaround that is available.
In future releases we will offer the option to perform asynchronous calls using a wrapper that we (SAP) will provide for the bgrfc framwork.
In general the problem with using features such as calling a function moduel using destination 'NONE' is that this "breaks" the logical unit of work.
So it can happen that the changes performed by your remote call are committed while the changes in the calling implementation fail late an something like a dump occurs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes Andre, Thanks for explaining it perfectly as always !!! For me it works fine as we are not calling the RFC on 'SAVE' but on an Action Button. We want to just perform an action while major part is to save data that is already performed and after that only this Action is enabled using feature control. So this is an independent event which can not break my SAVE implementation.
My query is answered.
User | Count |
---|---|
45 | |
9 | |
8 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.