cancel
Showing results for 
Search instead for 
Did you mean: 

SAP RAR update data directly to RAIs tables

Former Member
0 Kudos

Hello Gurus,

do you know what is the BADI to update data directly to RAIs tables?

Thank you
Giuliano

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Interface components Basic Field Conditions (BASIC_CO) include basic field for conditions of RAIs.

Interface components Basic Field Main Items (BASIC_MI) include basis for RAIs. (Header and Item ID)

Interface components Basic Field Main Items (BASIC_MI01) forms basis revenue accounting items resulting from order items (Customer ID and Reference ID)

Interface components CO-PA Field for Order Items (COPA_MI01) includes COPACRIT structure (Profitability)

Interface components SD Field Order items (SD_MI01) forms the basis for RAIs resulting from order items from source component SD.

vijaymanikandan
Contributor
0 Kudos

Hi

Yes. It can also look like /1RA/SD01_RAI_CREATE_API.

Go to Transaction FARR_RAI_CONF and select the Accounting Item Class for example SD01 and then check the Generated objects. There you can find the BAPI / FM that you can use. Also it shows the tables that store data as well.

Hope it helps.

Br,

Vijay V

Former Member
0 Kudos

I think that the correct function to upload data directly in RAIs table is /1RA/SD01_RAI2_INSERT. Do you know it? what do you think?

bye
Giuliano

vijaymanikandan
Contributor
0 Kudos

Hi

Based on the code in this FM '/1RA/SD01_RAI2_INSERT' it looks its direct DB insert into 2 tables. But I have personally not used this. But yes then you need to build all your validations before using this. This is nothing based on the configurations in the system.

Just a note from SAP:

In order to assure compatibility the customer should call the generated RFC function modules using an RFC call. Do not call the generated API function modules directly!

Just in case if you are trying to integration non-SAP with RAR below note could be useful.

2392956 - SAP Revenue Accounting and Reporting 1.3: Integrating External (non-SAP) Sender Components

2304382 - SAP Revenue Accounting and Reporting 1.2: Integrating External (non-SAP) Sender Components

2091473 - SAP Revenue Accounting and Reporting: Integrating External (non-SAP) Sender Components

Br,

Vijay V

vijaymanikandan
Contributor
0 Kudos

Hi

Are you thinking about a direct DB update into the RAI Table ?

But there are API available using which you can upload data into RAR. Basically it is like using a non-SAP system for RAR.

Or if you are looking to change data or fill data into your custom fields in RAR RAI then there are BADIs availabes.

Let me know the scenario so I can help.

Br,

Vijay V

Former Member
0 Kudos

Hi Vijay,

"But there are API available using which you can upload data into RAR" I found this function when I created the class

SD01_RAI_CREATE_API
SD02_RAI_CREATE_API
SD03_RAI_CREATE_API

Are they the correct API?

Thank you
Giuliano

vijaymanikandan
Contributor
0 Kudos

Hi

Yes. These are the ones. Purpose is to do direct DB update.

Br

Vijay V

ashwinc
Explorer
0 Kudos

Hi All,

With reference to the above, we have created custom Accounting Item Class Z001, Z002 and Z003 instead of SD01, 02 and 03. When we create a contract and try to process the RAI's it doesnt get transferred. We believe it is because the Badi which gets called by default is

1RA/SD01_RAI_CREATE_API.

But if I check the Item Class we created Z001, I see the following Fution Module

1RA/Z001_RAI_CREATE_API. Is this the reason why we are not able to transfer the RAI's?

If yes, do we need to create a custom Badi and have the required Function Module in it?

Thank You

Regards,

Ashwin Chandrasekaran