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: 

HR_INFOTYPE_OPERATION 0008 Error

Former Member
0 Kudos

hi guys,

i am using HR_INFOTYPE_OPERATION FM to upload data at infotype 0008 (basic pay).

i get a short dump error with the following message:

Error analysis

You cannot call a COMMIT WORK in a FORM not executed by the variants

PERFORM ... ON COMMIT or PERFORM ... ON ROLLBACK until the commit of the

calling program.

i did the nocommit = 'X' parameter for the FM, then COMMIT WORK later at the program.

dump still appears.

if i remove that parameter, and the COMMIT WORK as well, i still get the same dump.

if i assign nocommit = space or remove it at all, no dump happens, but IT0008 is not updated as well.

i tried my same code with other infotypes, with nocommit = 'X' and COMMIT WORK later in the program.

it works fine. no dumps.

it seems that i only get the dump at infotype 0008.

any ideas what is happening?

anyone had the same problem at infotype 0008?

1 REPLY 1

Former Member
0 Kudos

Hi,

R u adopting the parameters in the following way.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

INFTY = '0008'

NUMBER = OLD_P0008-PERNR

SUBTYPE = OLD_P0008-SUBTY

OBJECTID = OLD_P0008-OBJPS

LOCKINDICATOR = OLD_P0008-SPRPS

VALIDITYEND = OLD_P0008-ENDDA

VALIDITYBEGIN = OLD_P0008-BEGDA

    • VALIDITYEND = I0573-endda*

    • VALIDITYBEGIN = I0573-begda*

RECORDNUMBER = OLD_P0008-SEQNR

RECORD = I0008

OPERATION = OPERN

TCLAS = 'A'

DIALOG_MODE = DIALOG_MODE

    • NOCOMMIT =*

    • VIEW_IDENTIFIER =*

    • SECONDARY_RECORD = IMPORTING*

RETURN = BAPISUBRC

KEY = INFTY_KEY.

Thanks

Pavan