We got into difficulties in maintaining the ITXEX
field (Long text indication) of an Infotype record.
Say we got an existing record in an Infotype
database table with a long text filled (ITXEX
field value in that record is set to 'X'
).
Some process updates the record through HR_CONTROL_INFTY_OPERATION
like this:
CALL FUNCTION 'HR_CONTROL_INFTY_OPERATION'
EXPORTING
infty = '0081'
number = '12345678'
subtype = '01'
validityend = '31.12.9999'
validitybegin = '19.05.2019'
record = ls_0081 " ( ITXEX = 'X' )
operation = 'MOD'
tclas = 'A'
nocommit = abap_true
IMPORTING
return = ls_return.
This call does update the record but clearing it's ITXEX
field.
It's important to say that making the same action through PA30
does update the record and maintain ITXEX
field as it was.
The described problem seems similar to that question. Trying the solutions given there didn't solve the problem.
Why the two approaches (PA30
and function module) don't work the same? How to fix this?