Skip to Content
0

SAP RAR update data directly to RAIs tables

Jun 14, 2017 at 03:37 PM

446

avatar image
Former Member

Hello Gurus,

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

Thank you
Giuliano

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Vijay Venkataraman Jun 20, 2017 at 09:47 AM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

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

0
Vijay Venkataraman Jun 19, 2017 at 09:33 AM
0

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

Hi

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

Br

Vijay V

0

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

0
avatar image
Former Member Nov 10, 2017 at 03:41 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded