on 08-25-2009 1:53 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.