cancel
Showing results for 
Search instead for 
Did you mean: 

Update rules??

Former Member
0 Kudos

Hi,

i have a scenario where in a single value is coming from a field A1 from R/3 and i want to feed this to ODS to three infoobjects like IO1, IO2, IO3 (all are key figures)

basing on a combination fields value B1

so the logic will be like this

if B1= 100 then fill A1 value into IO1 and IO2

if B1= 200 then fill only IO1

if B1= 150 then fill IO1 and IO3,

can i do this in routine r else do i need to do it in startroutine.

thanks and regards

Sreedhar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sreedhar,

Create a routine for each infobject.

I01:

if comm_Structure-B1 = 100 or

comm_Structure-B2 = 200 or

comm_Structure-B3 = 150.

result = comm_Structure-A1.

endif

I02:

if comm_Structure-B1 = 200.

result = comm_Structure-A1.

endif.

I03:

if comm_Structure-B1 = 150.

result = comm_Structure-A1.

endif.

Regards

Joe

Former Member
0 Kudos

Hi all,

i understood that we can do this in the update rules in two methods.

1. start routine

first i need to add these infoobjects also in the comm structure and then in the start routine have to use the condition and fill them in the data target

why we should add these infoobjects in the comm structure becoz i am going to fill the value of A1 which is a field in the transfer structure coming from datasource.

2. i can do this in the individual field routine.

Joachim you have mentioned in your code that

result = comm_struc-A1.

so do i need to map this A1 with a infoobject first and then get that and fill again into the three infoobjects i mentioned.

am i right

thanks and regards

sreedhar

Former Member
0 Kudos

Hi sreedhar,

My suggestion was for <b>update</b> rules.

If want to you do it in the <b>transfer</b> rules, you don't need

any mapping. You have just to replace 'comm_structure' by 'TRAN_STRUCTURE'.

If you want to reuse logic for more than one infosources, I would recommend to use update rules (also if you like to use start routines), because code for transfer rules has to be added for each source sytem.

Hope this helps

Joe

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sreedhar,

It is better, also for performance reasons, to use Start Routine.

Remember that you need the 3 IO IO1, IO2, IO3 in Communication Strucure of your InfoSource if you want to feed these with Start Routine. You can introduce these without any mapping in Transfer Roules.

Ciao.

Riccardo.