on 04-03-2009 11:21 AM
Hi all,
i am creating records for infotype 0008, using function module hr_infotype_operation.
but i am gettin a dump as follows:
Type conflict when calling a function module (field length).
i belive i have done all the changes but still i am getting the same error.
please find what i have done and correct me as i know i am missing something or did something wrong.
wa_p008 is of type p0008
lt_p0008 is type standard table of p0008.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0008'
number = wa_p0008-pernr
subtype = '1'
OBJECTID =
LOCKINDICATOR =
validityend = wa_p0008-endda
validitybegin = wa_p0008-begda
RECORDNUMBER =
record = lt_p0008
operation = 'INS'
tclas = 'A'
dialog_mode = '0'
nocommit = 'X'
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
return = return
KEY =
thanks for all you help in advance...
Anuj..
Edited by: Anuj Anuj112 on Apr 3, 2009 12:23 PM
Hi,
I think you are passing the internal table lt_p0008 to the FM instead of wa_p008. Pass your work area wa_p008 as Record for the FM and check.
VK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi VK,
i have change it please see what i did.
DATA: lt_p0008 TYPE table of p0008.
DATA : wa_p0008 TYPE p0008.
...... values to wa_p0008.
append wa_p0008 to lt_p0008.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0008'
number = wa_p0008-pernr
subtype = '1' "wa_p0008-subty
OBJECTID =
LOCKINDICATOR =
validityend = '99991231' "lt_p0008-endda
validitybegin = '18000101' "lt_p0008-begda
RECORDNUMBER =
record = lt_p0008 "wa_p0008
operation = 'INS'
tclas = 'A'
dialog_mode = '0'
nocommit = 'X'
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
return = return
KEY =
dont know what to do know.
thanks
anuj
Hi,
This is how we use HR_INFOTYPE_OPERATION:
DATA: lt_p0008 TYPE TABLE OF pa0008.
DATA: ls_p0008 TYPE p0008,
....... get data to ls_p0008.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = ls_p0008-infty
number = ls_p0008-pernr
subtype = ls_p0008-subty
"objectid = space
"LOCKINDICATOR = space
validityend = ls_p0008-endda
validitybegin = ls_p0008-begda
recordnumber = ls_p0008-seqnr
record = ls_p0008
operation = 'INS'
tclas = 'A'
nocommit = 'X'
IMPORTING
return = ls_rcode
key = lit_ret_key.
Hope this helps.
VK
User | Count |
---|---|
95 | |
11 | |
10 | |
6 | |
5 | |
5 | |
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.