cancel
Showing results for 
Search instead for 
Did you mean: 

FM to upload data to infotype 267

Former Member
0 Kudos

hai,

I want to upload some Webdyn pro screen data to infotype 267.

Can u suggest any FM do do that process??

I want only some 3 parameters to be passed to that infotype.

Kindly give some suggestions.

Thanks in advance,

Nalla.B

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nalla,

You Can use this FM 'HR_INFOTYPE_OPERATION'

Example Code .

CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'

EXPORTING

number = wa_p00267-pernr

  • IMPORTING

  • RETURN =

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

infty = wa_p00267-infty

number = wa_p00267-pernr

subtype = wa_p00267-subty

  • OBJECTID =

  • LOCKINDICATOR =

validityend = wa_p00267-endda

validitybegin = wa_p00267-begda

  • RECORDNUMBER =

record = wa_p00267

operation = l_operation

tclas = 'A'

dialog_mode = '1'

  • NOCOMMIT =

  • VIEW_IDENTIFIER =

  • SECONDARY_RECORD =

IMPORTING

return = wa_return

key = wa_key.

IF wa_return-message IS NOT INITIAL.

CALL FUNCTION 'FORMAT_MESSAGE'

EXPORTING

id = wa_return-id

lang = 'EN'

no = wa_return-number

v1 = wa_return-message_v1

v2 = wa_return-message_v2

v3 = wa_return-message_v3

v4 = wa_return-message_v4

IMPORTING

msg = e_message

EXCEPTIONS

not_found = 1

OTHERS = 2.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ENDIF.

CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'

EXPORTING

number = wa_p00267

  • IMPORTING

  • RETURN =

.

  • I_operation Variable Value Can be 'INSERT' Or 'MODIFY' Or DELIMIT'.

I Hope this will be very helpful for your requirement.

Best Regards,

Kumaran Duraiswamy.

Answers (1)

Answers (1)

Former Member
0 Kudos

You can use this FM: HR_INFOTYPE_OPERATION

Have a look at this week on this FM: http://wiki.sdn.sap.com/wiki/display/Snippets/UpdateanInfotype

Regards

Yugandhar Reddy