on 05-12-2015 2:36 PM
Hi all,
We have a edit transaction for an object. The transaction is configured such that Java steplet mapped to the update step. And in the transaction step definition response to client is set as "Replace Client Object".
After the transaction is completed, there is only object's key field is updated. Other non-key properties are set as null.
1) Should we set read step for this object?
2) What should the read step's java code include? Is there any sample code?
Best Regadrs,
Serkan DEMIR
Hi Serkan,
1) Yes you will have to write/configure an object Read step.
2) I followed following steps and it worked for me.
(But there may be another way of doing that i am not sure about it.)
Follow simple steps like we do in fetch
a) Object Will have a Read Step configured
b) This will be a java steplet class
c) Code for steplet class look like this.Remember session is FetchSession here
d) Accordingly you can write code for stepHandler and Bapi.Just difference will be in Bapi setParameters() Method you will have to write code to send an object id to backend that is to be replaced.
Code for setParameters() method look like following. (I am replacing "Flight" object with "carrid" as key property).
On abap side In Class handler i wrote logic to select an object for corresponding "carrid" and return data in exported table.
Hope this helps,
Regards,
AK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.