cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Action - For IT105 - is created twice

Former Member
0 Kudos

Hello

We have following logic to insert email into IT105, but the problem is that IT105 is getting created 2 times.

The Dynamic Logic is following:

0315 04 20 W P0105-USRID=RP50D-FIELD1

0315 05 25 I INS,105,0010,,(P0315-BEGDA)/D

0315 05 30 F ZMAILADDR(ZHRDYNAMIC)

0315 05 35 W P0105-USRID_LONG=RP50D-ZZUSRID_L

Please advice

Accepted Solutions (1)

Accepted Solutions (1)

dhenny_muliawaty
Active Participant
0 Kudos

Yup. Purnima was right. Here's detail explanation of FC

Function character of step

This controls for which types of processing (create, change and/or delete a data record) a dynamic action should be carried out.

The processing type is indicated by a two-digit numeric value. These values can be added up; in other words, you can enter several processing types for each infotype, subtype or field. A dynamic action can also be carried out independent of the current processing type.

00 for Independent of the current function carried out

02 for Change

04 for Create

06 for Change and create

08 for Delete

10 for Change and delete

12 for Create and delete

Examples

If you enter 06, an action is carried out if the specified infotype was created or changed.

If you enter 00, an action is carried out irrespective of whether the specified infotype was created, changed or deleted.

Former Member
0 Kudos

Now I have changed Dynamic Function to following:

0315 04 10 F ZBRUKERE(ZHRDYNAMIC)

0315 04 15 I INS,105,0001,,(P0315-BEGDA)/D

0315 04 20 W P0105-USRID=RP50D-FIELD1

0315 04 25 F ZMAILADDR(ZHRDYNAMIC)

0315 04 30 I INS,105,0010,,(P0315-BEGDA)/D

0315 04 35 W P0105-USRID_LONG=RP50D-ZZUSRID_L

But I still get this result:

One line with Communication type 001 User ID

But two lines with Com type 0010 email

Program ZHRDYNAMIC has simple logic to populate fields RP50D-FIELD1 and RP50D-ZZUSRID_L with values.

Former Member
0 Kudos

Hi Elena,

Are you calling It0105 after IT0315 for PA40 action or PA30 changes. If it is via PA40, please check your infogroup for that action. May be you have maintained IT0105 & sub type 0010 after IT0315. Because of this system is bringing IT0105 through infogroup once and other one from dynamic action set up.

Regards,

Purnima

Former Member
0 Kudos

We are calling It0105 after IT0315 for PA40 action.

I have just checked infogroup for this action and IT105 is not there.

Former Member
0 Kudos

It seams that IT105 is called before 0315 and after 0315.

But we would expect it only to be called after.

Former Member
0 Kudos

Hi Elena,

Why don't you ask your Abaper to debug and find from which source IT0105 is coming twice?

Former Member
0 Kudos

Contd to my response...

Why did you maintain twice below entry in dynamic action set up.

0315 04 10 F ZBRUKERE(ZHRDYNAMIC)

Just remove from the beginning and check...

Answers (4)

Answers (4)

Former Member
0 Kudos

Hallo Elena,

For which action you need to insert Email into IT0105? Check infogroup for that action. May be IT0105 has been maintained in infogroup once and one more you have set up through dynamic action. Because of thia IT0105 record is created twice. If it is so, then remove It0105 from infogroup.

Then how did you maintain 05 under Fc volumn. Only option 00, 02, 04, 06, 08, 10, 12 are available. So please maintain 04 (create) or 06 (create/change).

Regards,

Purnima

Former Member
0 Kudos

Hi,

I guess, for Line no. 25, 30 & 35, the function character(FC) should 04 instead of 05. Please change and check if it works.

Ashwini.

Former Member
0 Kudos

Hi,

As our Experts mentioned ,Insert should be in the last.

why you want record with USER ID and USER ID LONG.I think its the cause of problem.

Did you check the infotype screen whether both user ID and User Long available.Either one will be der i guess.

Please check again and revert.

Manoj.

0 Kudos

Elena :

I guess line 30 (executing routine ZHRDYNAMIC in ZMAILADDR) is to derive employee's email address . I would think the insert

(line 25) should be executed last. Could you try to change this to line 40 (to be executed after line 35) to see if it resolves your problem.

Rgds.

Former Member
0 Kudos

Unfortunately switching places between Function and Insert, did not help.

Former Member
0 Kudos

Hi Elena,

Is that the whole code because in the line 20 you are defaulting IT105 with a value. I assume you are inserting 105 before line 20 and then defaulting. Can you paste the entire code?

Donnie

0 Kudos

Actually, the insert statement should be on the last line. Also, please check logic of the external routine to see if it does anything else other than deriving the email address (e.g. insert statement) .