Hi experts,
I am trying to create an infotype 491 when a new insertion of intype 0006 is done.
The creation of the new occurrence of infotype 491 is done in the include of user_exits ZXPADU02 .
Here is what I coded in the user_exit of 0006:
operation = ipsyst-IOPER.
case innnn-infty.
when '0006'.
if operation = 'MOD' or operation = 'INS'.
ls_pvalues-infty = '0491'.
ls_pvalues-fname = 'P0491-OTF01'.
ls_pvalues-fval = 'RCTV'.
ls_pvalues-seqnr = '00'.
APPEND ls_pvalues TO lt_pvalues.
ls_pvalues-infty = '0491'.
ls_pvalues-fname = 'P0491-OTV01'.
ls_pvalues-fval = 'varctv'.
ls_pvalues-seqnr = '00'.
APPEND ls_pvalues TO lt_pvalues.
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA' ZXPADU02
EXPORTING
pernr = '00000001'
actio = 'INS'
tclas = 'A'
begda = '20150601'
endda = '20150630'
seqnr = '000'
SUBTY = '0001'
luw_mode = '0'
dialog_mode = '2'
no_existence_check = ' '
no_enqueue = ''
IMPORTING
return = return0491
RETURN1 = RETURN1
HR_RETURN = hr_RETURN
TABLES
proposed_values = lt_pvalues
modified_keys = lt_keys.
Every thing sems to be right but when I make a new insertion in infotype 0006 through PA30, I get this message error
error PG015-Required screen change cannot be made.
I can see through dialog_mode thhat the new occurence of 491 I is created but at end is not saved because of this message error that I got.
Since 2 days I am trying to resolve this no thing seems to be coming.
Any idea to resolve this is really appreciated.
PS: when create a 491 in a simple report with HR_MAINTAIN_MASTERDATA and with the same data everything goes right and a new 491 is created.
Thank you.
Rachid.