cancel
Showing results for 
Search instead for 
Did you mean: 

Missing method getField() in sapjco3

Former Member
0 Kudos

Hi,

in sapjco 2.x i using this:

JCO.Field field = table.getField("TEXT")

what can i use in 3.x?

JCoField field = table.getField("Text")

does't work because there is no method getField in JCoRecord

Accepted Solutions (0)

Answers (2)

Answers (2)

anesh_kumar
Active Participant
0 Kudos

Hi

Have look at this [Migration gudie|https://websmp207.sap-ag.de/~sapidb/011000358700000730362009D/SAPJCo_MigrationGuide_2.x_3.0_EN.pdf]

Regards

Former Member
0 Kudos

What are you doing with the JCO.Field then? Why don't you directly use the setValue / getValue / get<type> methods instead?

Creating JCO.Field instances is an avoidable overhead that only makes sense in conjuction with iterators. And the usage of field iterators is still offered with JCo 3.0.