Application Development and Automation 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: 
Read only

Infotype Update gives error

Former Member
0 Likes
894

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.

2 REPLIES 2
Read only

Former Member
0 Likes
665

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

Read only

0 Likes
665

Instead of passing WA in the RECORD, pass the DB Table name..Like PA0000