cancel
Showing results for 
Search instead for 
Did you mean: 

RSAU_READ_FILE RFC call help.

Former Member
0 Kudos

Hi,

I trying to get Audit events from C through SAP RFC SDK. However, i could not able to read table SYSLOG_IN_TABLE.

following is sample code i am using .

strcpyU(functionname,"RSAU_READ_FILE");

rfc_char_t * value = new rfc_char_t[500];

rfc_char_t * value1 = new rfc_char_t[500];

sprintfU(value,"Agtvra01-test_NSP_00 0000000000000000000000000000000020091106080000200911060800000020091109 2009110923595900 00000 *");

sprintfU(value1,"Structure: flat & not charlike");

exporting[0].name = cU("SELECTION");;

exporting[0].nlen = 9;

exporting[0].addr = value;

exporting[0].leng = strlenU(value)*sizeofR(SAP_UC);

exporting[0].type = RFCTYPE_CHAR;

/*exporting[1].name = cU("SELECTION_AUDIT");;

exporting[1].nlen = 15;

exporting[1].addr = value1;

exporting[1].leng = strlenU(value1)*sizeofR(SAP_UC);

exporting[1].type = RFCTYPE_CHAR;*/

rfc_char_t * t_name = new rfc_char_t[500];

strcpyU(t_name,"SYSLOG_IN_TABLE");

tables[0].name = t_name;

tables[0].nlen = 15;

tables[0].ithandle = ItCreate (t_name, 300, 0 , 0);

tables[0].leng = 300;

tables[0].type = RFCTYPE_CHAR;

/* issue the RFC call */

rc = RfcCallReceive (handle,

functionname,

exporting,

importing,

tables,

&exception_ptr);

/* check return code */

switch (rc)

{

case RFC_OK:

break;

case RFC_EXCEPTION :

case RFC_SYS_EXCEPTION :

rfc_error( exception_ptr );

break;

default :

rfc_error (cU("call/receive error"));

break;

}

display_table (tables[0].ithandle);

Please help me , how to read SYSLOG_IN_TABLE table .

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hello,

Is your problem solved. I am facing the same situation. Could you help me out, How got the data into SYSLOG_IN_TABLE.

Thanks in advance for your reply.

Regards,

Darwin.