cancel
Showing results for 
Search instead for 
Did you mean: 

Replace client object After Edit Transaction

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member208808
Active Participant
0 Kudos

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