Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

calling diff infotype from another infotype!!

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

6 REPLIES 6

Former Member
0 Kudos

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.

0 Kudos

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?

0 Kudos

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.

0 Kudos

plz suggest few FM or Bapis for updating infotype from user exit!

0 Kudos

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

0 Kudos

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