on 11-17-2004 3:43 PM
Want in source infotype to call a func.module, which shall update other infotype(s) in background.
Have tried out with HR_INFOTYPE_OPERATION, but without success - gives mitchmatch of source it and target it in the internal it buffer tables.
How to do?
Requirements also are to secure rollback, if update of the last of ex. 3 target its fails.
Anyone has experience on this issue?
Regards Søren
Hi Soren,
Each infotype has a different table structure. From what I understand your problem, you get an error of mismatch source and target. When you want to create another infotype, make sure the target infotype structure is fully populated.
If this is not the problem you are having, please provide us the code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ex. From own it9300 a field is changed. When this field is changed, a CI-field in it0003 shall be changed. In PAI of it9300 an own func.module is called (this to avoid redundant coding, because it's used from other places).
In this own fm it0003 is maintained ok by means of fm HR_INFOTYPE_OPERATION, however - when coming back to PAI of it9300 and the change of the it9300 record is to be updated on the data base, en error message occurs that the it9300 rec does not exist! By debugging we see that the message occurs, because the it9300 has now disappeared from the int. buffer table PS.
Regards Søren
Hi Soren,
You might want to try using Dynamic Measure in table T588Z (maintainable using SM30). Enter the field name of IT9300 that you change in column Field Name. Then use function character 06 for change or insert. Enter step I and W. Roughly, set it like this
Ity Sty Field N FC No S Variable function part
9300 fieldname 06 01 I MOD,0003,,,(P9300-BEGDA),(P9300-ENDDA)
9300 fieldname 06 02 W p0003-ci_field = 'x'
Know this functionality - also by means of own coding in the PAI by filling the int. tables dynmeas + initial_values. However the issue remains, i.e. the update has to be done by a function module called from PAI of own infotype, and from a function module you can't trigger the T588Z-functionality.
The update of it0003 from own it9300 is only an example, have general requirements that:
- from own infotype PAI a function module shall be called
- from the function module update of other infotypes
shall take place (modify as well as insert and delete)
- if more infotypes shall be updated from source infotype,
rollback shall take place if ex. update of last target
infotype fails (all to be updated or none!).
Regards Søren
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.