dear freinds,
I have uploaded data using the F<M HR_INFOTYPE_OPERATION for infotype 2011 . However i am not able
change the value for Origin(defaulted as M) ......as this field is greyed out . As such when i am trying to pass another value through coding as S iam not able to do so ....and it is saving in the database as M only ......Is there any way i can get the value as S only?.
Please find my code below.
MOVE : fp_wa_temp_final20-pernr TO p2011-pernr,
fp_wa_temp_final20-date TO p2011-begda,
fp_wa_temp_final20-date TO p2011-endda,
fp_wa_temp_final20-outtime TO p2011-ltime,
fp_retyp TO p2011-satza, "P10
'S' TO p2011-origf,
'2011' TO p2011-infty.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = fp_wa_temp_final20-pernr
IMPORTING
return = gv_return_struc.
IF gv_return_struc IS INITIAL.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '2011'
number = fp_wa_temp_final20-pernr
SUBTYPE =
OBJECTID =
LOCKINDICATOR =
validityend = p2011-begda "'99991231' " p0050-begda
validitybegin = p2011-begda "'18000101' " p0050-endda
RECORDNUMBER =
record = p2011
operation = 'INS'
TCLAS = 'A'
DIALOG_MODE = '0'
NOCOMMIT =
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
return = gv_return_struc
key = gv_record_key.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = fp_wa_temp_final20-pernr
IMPORTING
return = gv_return_struc.
ENDIF.
Could any one please correct me where i might have gone wrong or i mean to say how i pass the value forcefully as S
for the Greyed out filed (ORIGIN) in pa30.
regards
divya