Hi
I am trying to call a SAP RFC method, which requires to provide a CHANGING type parameter. As I've been told it's supposed to be empty table-placeholder for returned data. Unfortunately, I don't understand how to pass changing parameter correctly. I've looked to "Call" method of rfcMethod object and it seems like variable changing is provided when calling the rfc, but it always empty.
I always get this error: 10:22:41,949 ERROR JavaObject_InvokeMethod exception: com.sap.conn.jco.JCoRuntimeException: (127) JCO_ERROR_FIELD_NOT_FOUND : Field TAB_EMPLOYERS not a member of OUTPUT
Can you provide an example of passing CHANGING table with 2 columns to RFC method?
Thank you.
Here's my code:
rfcMethod = $SAP.RFC.New(connection, "Z_GET_EMPLOYER")
//after that, rfcMethod already has TAB_EMPLOYERS feature, but entering anything into it does not do anything
if IsUndefined(rfcMethod)
retval.errMsg = "ERROR creating SAP connection"
retval.ok = false
ok = false
end if ok
rfcMethod.IV_ABS_GUID = 'some guid'
rfcMethod.IV_CONTRACT_NUMBER = '' result = rfcMethod.Call() /*the definition of rfc method
*" IMPORTING
*" VALUE(IV_ABS_GUID) TYPE STRING OPTIONAL
*" VALUE(IV_CONTRACT_NUMBER) TYPE STRING OPTIONAL
*" EXPORTING
*" VALUE(EV_EMPLOYER_ABS_GUID) TYPE STRING
*" VALUE(EV_EMPLOYER_TITLE) TYPE STRING
*" CHANGING
*" VALUE(TAB_EMPLOYERS) TYPE ZEMPLOYERS