SAP / node-rfc

Asynchronous, non-blocking SAP NW RFC SDK bindings for Node.js
Apache License 2.0
251 stars 73 forks source link

[ERR] RFC_READ_TABLE for fetching VBRP Rows (ASSIGN_BASE_WRONG_ALIGNMENT) #196

Closed v4l3r10 closed 3 years ago

v4l3r10 commented 3 years ago

Hello,

i'm using noderfc for extract some data on SAP and make some BI analysis.

All work fine for all tables except VBRP...if i try to get data from him the system return this error:

could not complete ABAP RFM call {
  name: 'ABAPError',
  group: 2,
  code: 3,
  codeString: 'RFC_ABAP_RUNTIME_FAILURE',
  key: 'ASSIGN_BASE_WRONG_ALIGNMENT',
  message: 'Error in ASSIGN assignment in program SAPLSDTX                                .',
  abapMsgClass: '',
  abapMsgType: '',
  abapMsgNumber: '',
  abapMsgV1: '',
  abapMsgV2: '',
  abapMsgV3: '',
  abapMsgV4: ''
}

this is my req:

 .call("RFC_READ_TABLE", {
        QUERY_TABLE: 'VBRP',
        FIELDS: ["VBELN"]
      })
v4l3r10 commented 3 years ago

Fixed with use of RFC "BBP_RFC_READ_TABLE" that fix bug in FLOAT casting.