Skip to Content
0
Former Member
Dec 19, 2006 at 12:42 PM

RFC is not inserting the data

25 Views

Hi all,

I did File to RFC scenario. My problem is when i send message the message is showen as processed successfully in SXMB_MONI. But RFC is not inserting my data in a specified table. I couldn't found where i am wrong.

my sender strucure is:

<MANDT>

<WORKDATE>

<EMPLOYEENUMBER>

<CATSHOURS>

R3 table name is ZTESTCATSDB

My RFC source code is :

FUNCTION Z_POST_TEST.

*"----


""Local Interface:

*" TABLES

*" CATSRECORDS_IN STRUCTURE ZTESTCATSDB OPTIONAL

*" RETURN STRUCTURE BAPIRET2 OPTIONAL

*"----


data wa_cats like ZTESTCATSDB.

data wa_catdb like ZTESTCATSDB.

data ztab like ZTESTCATSDB OCCURS 0 WITH HEADER LINE.

loop at catsrecords_in into wa_cats.

ztab-WORKDATE = wa_cats-workdate.

ztab-empnum = wa_cats-empnum.

ztab-catshours = wa_cats-catshours.

append ztab.

endloop.

insert ZTESTCATSDB from table ztab.

commit work.

ENDFUNCTION.

Plese tell me any one where i am wrong it is very urgent for me.

Thanks,

Satish.