05-08-2006 11:59 AM
hi
is ther anyway i can call other infotype from my current infotype for eg suppose i am in my custom infotype and then i do some activities and based on which the value will b calculated and needs to be put into infotype 8.
regards
gunjan
05-08-2006 12:10 PM
Hi Gunjan,
Yes this is possible thru' dynamic actions.
In dynamic action you can define which Infotype should be callled after which & also you can default the values of field by calculating values from previous infotype.
Note: Please mark useful replies.
05-08-2006 12:10 PM
Hi Gunjan,
Yes this is possible thru' dynamic actions.
In dynamic action you can define which Infotype should be callled after which & also you can default the values of field by calculating values from previous infotype.
Note: Please mark useful replies.
05-08-2006 12:16 PM
what if the calculation cant b done from dynamic action?
and based on the values changed by user in the custom infotype we need to call another infotype....
how abt using a user exit here and from that exit can we say call transaction?
05-08-2006 12:24 PM
Correct me if am wrong....
You have a custom infotype in which you will have a user exit, in which u will do calulation & want to call another infotype ??.
Is it necessary to call another infotype online,
we have function modules which can update the infotype.
So u can call this function from user exit.
05-08-2006 12:41 PM
plz suggest few FM or Bapis for updating infotype from user exit!
05-08-2006 12:47 PM
Hi Gunjan,
Function is <b>HR_INFOTYPE_OPERATION</b>
in which a parameter is <b>OPERATION</b>.
U can use OPERATION = MOD.
Possible values of operation r
COP Copy
DEL Delete
DIS Display
EDQ Lock/unlock
INS Create
LIS9 Delimit
MOD Change
INSS Create for Actions is not converted to Change
Hope this will solve ur problem.
Note: Reward the useful replies and close the thread if problem is solved
05-08-2006 1:21 PM
Hi,
I tried this some time ago and found out that it did not work!
HR_INFOTYPE_OPERATION calls HR_MAINTAIN_MASTERDATA. This creats a batch-input which at the end calls dialog program SAPFP50P, which is already running to change the first infotype.
In my tests, afterwards screens were messed up and program stopped with different error messages.
I did following workaround:
- call perform in customer program from dynamic action to do the calculations
- when back from customer program to dynamic aciton do the infotype modification with data in structure RP50D
dynamic action look like this:
F FORM_1(Z_CUSTOMERPROG)
P RP50D-FLAG1='X'
I DEL,0019,(RP50D-DATE2),,(RP50D-DATE1)/D
hope this helps
Herbert