Skip to Content
Author's profile photo Dipankar Saha

How To Pass Multiple Line Items Data Between Web Dynpro Java Callable Objects in GP

Recently I was working on developing a GP process using Web Dynpro Java callable object where I need to pass table data (multiple line items) from one callable object to another using GP parameter mapping. After stumbling over the issue for quite some time finally I got the solution how to do this. But seeing the lack of documentation on this part in SDN indulged me to write a weblog which I hope may help many other developers like me.

The scenario is like this :
We have two Web Dynpro (GP Interface) callable objects.

(Please refer to the following document on how to create Web Dynpro callable object : Implementing a Web Dynpro Callable Object)

Assigned Tags

      5 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member
      Author's profile photo Former Member
      Former Member
      What code we will write in execute method of first callable object.
      Author's profile photo Dipankar Saha
      Dipankar Saha
      Blog Post Author
      Hi Ritu,
      You can write code in the execute method of the first callable object to initialize certain variables if required or to read the values of the context attributes if there is another CO before that.

      Thanks,
      Dipankar

      Author's profile photo Former Member
      Former Member
      I am getting null pointer exception when i am testing my first callable object with same getDescription method code and complete method code in my first Wed dynpro comp.
      Author's profile photo Dipankar Saha
      Dipankar Saha
      Blog Post Author
      Hi Ritu,
      It may be because you haven't instantiated the context node in the wdDoInit() method which you are using in execute() or in some other methods in the controller or view.

      Thanks,
      Dipankar