Skip to Content
author's profile photo Former Member
Former Member

RSAU_READ_FILE RFC call help.

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 .

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 09, 2011 at 11:43 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.