on 05-26-2011 9:52 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
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.