‎2008 Nov 28 5:57 AM
Hi,
I tried to update infotype 0000 with HR_INFOTYPE_OPERATION.
It gave me a error with name ASSIGN_BASE_TOO_SHORT
Following is the error analysis.
Pls guide me.
Error analysis
The source field is too short.
In the running program "SAPLHRMM" a field should have been assigned to a field
symbol, which is shorter than the type of the field symbol.
This is not possible.
It is a statement of the form ASSIGN f TO <fs> CASTING...
or ASSIGN f TO <fs> with a field symbol that was created with the
STRUCTURE addition.
I have called my FM like this.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = WA_p0000-pernr.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0000'
NUMBER = WA_P0000-PERNR
* SUBTYPE =
* OBJECTID =
* LOCKINDICATOR =
VALIDITYEND = P0000-endda
VALIDITYBEGIN = p0000-BEGDA
* RECORDNUMBER =
RECORD = WA_P0000
OPERATION = 'MOD'
TCLAS = 'A'
DIALOG_MODE = '0'
* NOCOMMIT =
* VIEW_IDENTIFIER =
* SECONDARY_RECORD =
IMPORTING
RETURN = w_return
* KEY =
.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = WA_p0000-pernr.TIA.
‎2010 Mar 10 11:02 AM
Hi ,
I am also using the same function module and it is giving me the same dump can you let me know how did you solved the problem.
Error in ASSIGN in the program "SAPLHRMM".
Regards,
Manohar
‎2021 Jun 04 7:11 AM
Instead of passing WA in the RECORD, pass the DB Table name..Like PA0000