Skip to Content
0
Oct 27, 2020 at 09:06 AM

send RFCTYPE_STRUCTURE for TID using rfc sdk for c++ ?

81 Views

Hello community,

I`m new to sap rfc sdk using with c++ in Linux.
I tried to read values from ccms using the BAPI "BAPI_SYSTEM_MTE_GETPERFCURVAL" .
the trace file which created by login to the sap system, puts out that
it wants a "rfc structure" for the TID

RfcGetFunctionDesc(BAPI_SYSTEM_MTE_GETPERFCURVAL) via handle 29453136
Repository::queryFunctionMetaData(BAPI_SYSTEM_MTE_GETPERFCURVAL) via handle 29453136 returns function meta 1c12ca0
name=BAPI_SYSTEM_MTE_GETPERFCURVAL (origin=AL1) with 4 parameters
parameter 0 (CURRENT_VALUE, RFCTYPE_STRUCTURE, RFC_EXPORT, 104, 140, 0, 1c577f0, , Current Performance Attribute Values, (nil))
parameter 1 (RETURN, RFCTYPE_STRUCTURE, RFC_EXPORT, 548, 1088, 0, 1c54530, , Return Messages, (nil))
parameter 2 (EXTERNAL_USER_NAME, RFCTYPE_CHAR, RFC_IMPORT, 16, 32, 0, (nil), , Name of the SAP-External User, (nil))
parameter 3 (TID, RFCTYPE_STRUCTURE, RFC_IMPORT, 84, 168, 0, 1c629a0, , MTE ID (TID), (nil))
RfcGetFunctionDesc(BAPI_SYSTEM_MTE_GETPERFCURVAL) via handle 29453136 (SID=AL1) returned 1c12ca0
...
...
>> TID, RFCTYPE_STRUCTURE, Length: 0, Active: true, Requested: false
Value: (empty)
...
...


Is there an example how to create/send a rfc sturcture for the TID values ?

Best regards
Tobias Reineck