Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

JCo getting truncated value

Former Member
0 Likes
508

We are trying to fetch data from a SAP-AII table by using JCo using the RFC RFC_READ_TABLE.

We are getting incomplete data when the data type of the column is RAW in a particular table.A typical case is:

Table Name: /AIN/DM_DEVCTR

Field : CLIENT Type: CLNT Length:3 Value: 100 (SAP Generated)

Field: DEVCTR_GUID Type:RAW Length:16 Value: 306F50F53805ED488DE9797AC86B5728 (SAP Generated)

Filed: DEVCTR_ID Type:CHAR Length:128 Value: KDEVICECONTROLLER (User input)

For the fields CLIENT and DEVCTR_ID we get the entire value (including blank spaces) but for DEVCTR_GUID we get only 16 characters whereas SAP-AII stores a value that is 32 characters in length. How do we fetch the actual value instead of the truncated value?

We are trying to fetch data from a SAP-AII table by using JCo using the RFC RFC_READ_TABLE.

We are getting incomplete data when the data type of the column is RAW in a particular table.A typical case is:

Table Name: /AIN/DM_DEVCTR

Field : CLIENT Type: CLNT Length:3 Value: 100 (SAP Generated)

Field: DEVCTR_GUID Type:RAW Length:16 Value: 306F50F53805ED488DE9797AC86B5728 (SAP Generated)

Filed: DEVCTR_ID Type:CHAR Length:128 Value: KDEVICECONTROLLER (User input)

For the fields CLIENT and DEVCTR_ID we get the entire value (including blank spaces) but for DEVCTR_GUID we get only 16 characters whereas SAP-AII stores a value that is 32 characters in length. How do we fetch the actual value instead of the truncated value?

3 REPLIES 3
Read only

athavanraja
Active Contributor
Read only

Former Member
0 Likes
472

Hi,

Is the value correct for the first 16 caracters or is it different?

Read only

0 Likes
472

Hi Bas

Yes the value of the first 16 chars is the same as in the table.