Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

regarding pe04

hi experts,

i have created my own opertaion through pe04 for updating infotype

2001 and my consulatnt is putting this operation (name-%wtar) under the

rule and putting in the time schema,here the updation is happening but the

another rule or operation after this rule(containg my operation) is not executing

means after updation in the database the control is not coming back in the schema

to execute rest of the schema containg another rule or operation plz help me regarding this,

what extra thing sud i put so that the control will come back into the schema........

here is my codes

in the include under report sapfp51t :::RPTMOZ00::::::::::::

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 ) Include RPTMOZ00, End S

$$-Start: (1 )----


$$

ENHANCEMENT 1 Z2. "active version

form OP%WTAR.

data:RETURN LIKE BAPIRETURN1 .

check:pernr-pernr is not initial.

move:'8' to p2001-stdaz,

'20080402' to p2001-begda,

'20080402' to p2001-endda.

CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'

EXPORTING

NUMBER = pernr-pernr.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

INFTY = '2001'

NUMBER = pernr-pernr

SUBTYPE = '1300'

VALIDITYEND = p2001-begda

VALIDITYBEGIN = p2001-endda

RECORD = p2001

OPERATION = 'INS'

NOCOMMIT = ''

tclas = 'A'

IMPORTING

RETURN = RETURN

EXCEPTIONS

OTHERS = 0.

CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'

EXPORTING

NUMBER = pernr-pernr.

*MESSAGE i016(rp) WITH '2001 updated successfully executed successfully'.

endform.

ENDENHANCEMENT.

$$-End: (1 )----


Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question