09-11-2018 6:25 AM
When I use the function 'RH_PNNNN_MAINTAIN' to insert infotype 1001, if two dates are limited, there will be show as the picture. The function 'RH_INSERT_INFTY' is the same. But I found that 1001 has no constraint, why the record should be delimited?
This is a part of code:
CALL FUNCTION 'RH_PNNNN_MAINTAIN'
EXPORTING
act_fcode = 'INSE'
act_plvar = i_p1001-plvar
act_otype = i_p1001-otype
act_objid = i_p1001-objid
act_infty = '1001'
act_subty = 'AE02'
act_istat = i_p1001-istat
act_begda = i_p1001-begda
act_endda = i_p1001-endda
* ACT_GDATE = begda2
act_pnnnn = i_p1001
* suppress_dialog = '2'
* act_vtask = 'D'
* clear_buffer_plog_tab = ' '
* suppress_integration = 'X'
EXCEPTIONS
infty_not_valid = 1
no_plvar = 2
object_not_defined = 3
otype_not_valid = 4
no_authority = 5
action_rejected = 6
no_gdate = 7
fcode_not_supported = 8
error_message = 9
OTHERS = 10.
09-11-2018 7:50 AM
Two tips:
- Please use code formatting when posting code, it makes it much easier to read.
- The function modules are deprecated. Please use the newer CL_HRBAS* classes, e.g. CL_HRBAS_PLAIN_INFOTYPE_ACCESS for updating infotypes.
09-13-2018 7:41 AM