cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in receiving transaction data from external data type field of Agentry.

Former Member
0 Kudos

Hello All,

We have developed a custom application on  agentry and running on SMP 2.3.

We are using session.getSessionData().getBytes() to recieve the External Data  type field value passed in the transaction as shown below.

      session.getSessionData().getBytes("transaction.Body.Data");

http://help.sap.com/saphelp_smp305sdk/helpdata/en/3a/74a0f56de3101489a092e765c09ffa/content.htm?
frameset=/en/3a/74db566de3101499f5b7884d2c59f2/frameset.htm&current_toc=/en/7c/01cda6700610149b10c2f2a86d335b/plain.htm&node_id=4711

Surprisingly with agentry jar bundled with SMP 3 this value is coming empty.

The encodeImage method does some encoding and compression as required in the backend.

On migrating/implementing the same to SMP 3.0 based agentry application with new agentryv-5.jar, it was observed that it is returning null in the above call.

At the same type we are able to read the data using the getString()method.
http://help.sap.com/saphelp_smp305sdk/helpdata/en/3a/74c5e16de3101481c9d154700e9f67/content.htm?
frameset=/en/3a/74a0f56de3101489a092e765c09ffa/frameset.htm&current_toc=/en/7c/01cda6700610149b10c2f2a86d335b/plain.htm&node_id=4717

Problem is that earlier with getBytes we were getting image/externalData as array of bytes and formatted or saved. With the string received using getString we are not able to save them, as it is throwing error saying that it is not a valid image.

This is preventing the implementation of attachment functionality of the application. Can you please let us know the modifications done in the library for the picking the attachment values from the transaction.

Please provide a new solution.


Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

mark_pe
Active Contributor
0 Kudos

Amitoj,

Are you stating that you downloaded the later SMP 3.0 SDK Agentry tool kit and you are using the Agentry-V5.jar in that to customized your application or are you using the same code you implemented back in SMP 2.3 ?

The same link you gave above has the main documentation on how to implement most of this Agentry feature but you have to make sure you are using the one available in the SMP 3.0 SDK SPx files.  In the same link, one of those link will have a description on how to use or create your new Agentry tool set.

I am speculating either you are using files that are not part of the released SDK and you may be using older ones that may not be compatible with SMP 3.0 (Where did you get the Agentry-V5.jar or in theory most of the application feature is in SMP 3.0 unless you are doing custom dev that you may require the tool kit).

Regards,

Mark Pe
SAP Platinum Support Engineer

Former Member
0 Kudos

Hi Mark,

We are using Agentry-V5.jar available from the latest SMP3.0 SDK Agentry tool kit.

Please find below the screenshot of the steplet class that we are using to receive the External Data  type field value passed in the transaction.

Thanks.