Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

regarding function module error

Former Member
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

hi pranesh,

no doubt the error has gone but the database pa0015 is not updating......

0 Kudos

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

0 Kudos

ya i checked w_return it shows that no data is stored for 0015 .

0 Kudos

check begda & endda which you are passing in record & which you are passing as jtab-begda & jtab-endda

0 Kudos

do check subtype you are passing

Former Member
0 Kudos

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