2007 Jul 10 7:46 AM
hi experts,
i m using hr_infotype_operation....the syntax is like this..
loop at info_table.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0015'
NUMBER = info_table-pernr
SUBTYPE = '6500'
OBJECTID =
LOCKINDICATOR =
VALIDITYEND = jtab-begda
VALIDITYBEGIN = jtab-endda
RECORDNUMBER =
RECORD = info_table
OPERATION = 'INS'
TCLAS = 'A'
DIALOG_MODE = '0'
NOCOMMIT = NOCOMMIT
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
RETURN = W_RETURN.
KEY = PERSONALDATAKEY.
endloop.
but it is giving this error:::
ShrtText
Error in ASSIGN in the program "SAPLHRMM".
What happened?
Error in ABAP application program.
The current ABAP program "SAPLHRMM" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
Error analysis
The source field is too short.
The current program, "SAPLHRMM", tried to assign a field to a field symbol.
However, the field is shorter than the type of the field symbol, which
is not allowed.
The statement in question is in the form ASSIGN f TO <fs> CASTING or
ASSIGN f TO <fs> with a field symbol that was created using the
STRUCTURE addition.
plz help me to solve this problemmmmm
2007 Jul 10 7:49 AM
Check, some of the source field is too short than required for field symbole.
Try to make all fields with proper size as per their domain.
Thanks,
Chetan Shah
2007 Jul 10 7:51 AM
Hello ravi
what is type of your onfo_table.
it should be of type P0015. " this should solve the problem
try using internal table without header line (i.e use work areas)
and pass work area to RECORD
reward points if helpful
2007 Jul 10 8:04 AM
hi pranesh,
no doubt the error has gone but the database pa0015 is not updating......
2007 Jul 10 8:15 AM
check w_return if it is giving any message.
do use FM BAPI_EMPLOYEE_ENQUEUE before calling HR_INFO.._OPER...
& BAPI_EMPLOYEE_DEQUEUE after hr_infotype_operation.
reward points if helpful
2007 Jul 10 8:28 AM
ya i checked w_return it shows that no data is stored for 0015 .
2007 Jul 10 8:31 AM
check begda & endda which you are passing in record & which you are passing as jtab-begda & jtab-endda
2007 Jul 10 9:04 AM
2007 Jul 10 8:08 AM
check this piece of code
Perform PA30 via infotype_operation
call function 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0009'
number = p0009-pernr
validityend = p0009-endda
validitybegin = p0009-begda
subtype = p0009-subty
recordnumber = p0009-seqnr
record = p0009
operation = 'MOD'
dialog_mode = '1'
IMPORTING
return = l_return.
the data type should be same as the one's paased in the above case.
Reward points if helpful