cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping of Java object to ABAP

Former Member
0 Kudos

Hey Guys,

i am facing the following problem. in abap i get a table from a function back. i am copying these values to my outboundcontainer. in java i map them to an array of beans, work with them...

now i want to store them in my database in the backend system. how do i get there values back into abap.

do i have to create a "toString()" function in java and pass a string to abap or do i add each single javavariable into my outbound container?

thank you very much

Philipp

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Phillipp,

You can do this by following the reverse steps that you have done to get the values from ABAP to Java.

At the JAVA end :-

1. You can use the "toString" function to get the values from the beans to string format.

2. Append these values into the outbound container giving them "fieldnames" similar to what you did to the outbound container in ABAP to send the values to JAVA.

3. Sync the container to the backend.

At the ABAP end :-

4. Loop at the inbound container and extract these values from it using the fieldnames.

Cheers.

Answers (1)

Answers (1)

Former Member
0 Kudos

ok, thats the way i thought it has to be.

Thanks