Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RFC and data check ?

former_member194669
Active Contributor
0 Likes
2,526

I have an RFC that called from SAP XI . During the testing i find one of table in which data is NOT coming into RFC.

But as per SAP XI experts in the SAP XI side told me that their maping are okay.

So clearing doubt this i need to check whether the data is coming into SAP or not.

Possible options are :-->

1. in the First line of RFC write all tables coming in to a spool

2. In the first line of RFC send all tables coming in to email account

3. In the first line of RFC write all tables in to Memory ID

other than these we have any options to validate the data coming in or not

PS please DO NOT suggest go for debug.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,981

I would suggest using FBGENMAC. This is a macro provided by SAP which creates a test data directory of the data comming in. all you have to do is add two lines of code to the RFC and do the required config.

For more details refer to OSS notes 519292 and 517767

I have an RFC that called from SAP XI . During the testing i find one of table in which data is NOT coming into RFC.

But as per SAP XI experts in the SAP XI side told me that their maping are okay.

So clearing doubt this i need to check whether the data is coming into SAP or not.

Possible options are :-->

1. in the First line of RFC write all tables coming in to a spool

2. In the first line of RFC send all tables coming in to email account

3. In the first line of RFC write all tables in to Memory ID

other than these we have any options to validate the data coming in or not

PS please DO NOT suggest go for debug.

11 REPLIES 11
Read only

Former Member
0 Likes
1,981

Possible options are :-->

1. in the First line of RFC write all tables coming in to a spool

2. In the first line of RFC send all tables coming in to email account

3. In the first line of RFC write all tables in to Memory ID

other than these we have any options to validate the data coming in or not

PS please DO NOT suggest go for debug.

the only caution are left check the source table is filled or not?from data is coming into RFC.

AMit.

Read only

0 Likes
1,981

> the only caution are left check the source table is filled or not?from data is coming into RFC.

>

I don't get you fully on your reply. my requirement is to check the data coming into RFC incoming tables or not.

Can you please explain little details on this.

a®s.

Read only

Former Member
0 Likes
1,982

I would suggest using FBGENMAC. This is a macro provided by SAP which creates a test data directory of the data comming in. all you have to do is add two lines of code to the RFC and do the required config.

For more details refer to OSS notes 519292 and 517767

Read only

0 Likes
1,981

Mine is custom function module. How these FBGENDAT & FBGENMAC useful to me ?

Read only

0 Likes
1,981

Amit asking you to check the source tables ,he is thinking that may be those tables are empty, so thats the reason data is not coming During RFC call.

Read only

0 Likes
1,981

I have used this in an custom RFC too.

i missed out one more note which has better instructions: oss note 539978

Here is what you do.

I am on ECC 6.0. Please check if all the below objects are in your release too.

In your custom RFC add these two lines:

include FBGENMAC.

fbgenmac 'Z_RFC_NAME'. " where Z_rfc_name is your rfc name.

then for the RFC user add a user parameter FBGENMAC = X.

after doing the above steps:

when you are ready to capture the data sent by the rfc, run report FBGENDAT and activate the test data generation for your custom RFC. you can deactivate it after the call is made.

then you can go and check the test data directory to find the data sent by the rfc.

Plese let me know if i am not clear.

Read only

0 Likes
1,981

where is test data directory?

Read only

former_member194669
Active Contributor
0 Likes
1,981

>

> So clearing doubt this i need to check whether the data is coming into SAP or not.

>

Vijay in my question i asked for i need to check whether the data coming into table or not.

Read only

0 Likes
1,981

yep i got your Q?. You have all valid checks. May be if you can update the data to a table will that sounds good , with timestamp

Read only

Former Member
0 Likes
1,981

I donot know how Xi is calling ur FM but if possible then try to run ur FM in SAP itself with data that Xi actually sends from its end.

Other options can be:

1. you can write all table contents to file in application server

2. if u have already identified the table which is not populating then u can directly search the table from SE16 with the values used in the where clause...

Regards,

Joy.

Read only

former_member194669
Active Contributor
0 Likes
1,981

Aparna, Joy.

Thanks for your inputs.

Aparna, The option you mentioned i find very informative.

Thanks