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: 

A question about function 'RH_PNNNN_MAINTAIN' when create relationship

Former Member
0 Kudos

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.

2 REPLIES 2

pokrakam
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Thank you for your advice 🙂