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

Error in FP50ME00 when updatating psbuffer

Former Member
0 Likes
545

Hi everyone.

I get a CX_SY_DYN_CALL_ILLEGAL_TYPE exception when I call the update buffer form int he SAPFP50M program.

Here is the sample code:


PERFORM update_0105 USING  '0010' wa_stat-email.  "Updates the 105 infotype with the HR_INFOTYPE_OPERATION FM
PERFORM update_0105 USING  '0020' wa_stat-tel.
PERFORM update_0105 USING  'CELL' wa_stat-mobil.
PERFORM update_0105 USING  '9010' wa_stat-lst.
 
    perform update_buffer(sapfp50m).
    commit work.
    call function 'HR_PSBUFFER_INITIALIZE'.

The error comes from here:


 IF T777D-NAMST SPACE. "QNOK008925
   MOVE CPREL TO PSHDR.
   MOVE CPREL-SUBTY TO PSHDR-SUBTY.
   MOVE PSHDR TO <PSHDR>.   "HERE IS THE ERROR BECAUSE <PSHDR> NOT ASSIGNED
ENDIF. 

I need to update the psbuffer because the whole code is in a RFC FM some HR data is sent to this interface. And I need the update buffer, because I have the infotypes in internal tables like P0105. So I need to update the internal tables, not just the database.

Does anyone has any idea how can I solve this problem?

Thanks

N.

Hi everyone.

I get a CX_SY_DYN_CALL_ILLEGAL_TYPE exception when I call the update buffer form int he SAPFP50M program.

Here is the sample code:


PERFORM update_0105 USING  '0010' wa_stat-email.  "Updates the 105 infotype with the HR_INFOTYPE_OPERATION FM
PERFORM update_0105 USING  '0020' wa_stat-tel.
PERFORM update_0105 USING  'CELL' wa_stat-mobil.
PERFORM update_0105 USING  '9010' wa_stat-lst.
 
    perform update_buffer(sapfp50m).
    commit work.
    call function 'HR_PSBUFFER_INITIALIZE'.

The error comes from here:


 IF T777D-NAMST SPACE. "QNOK008925
   MOVE CPREL TO PSHDR.
   MOVE CPREL-SUBTY TO PSHDR-SUBTY.
   MOVE PSHDR TO <PSHDR>.   "HERE IS THE ERROR BECAUSE <PSHDR> NOT ASSIGNED
ENDIF. 

I need to update the psbuffer because the whole code is in a RFC FM some HR data is sent to this interface. And I need the update buffer, because I have the infotypes in internal tables like P0105. So I need to update the internal tables, not just the database.

Does anyone has any idea how can I solve this problem?

Thanks

N.

1 REPLY 1
Read only

Former Member
0 Likes
433

This is possibly an SAP error, because the T777D-NAMST hasn't been initialized by the update_bufffer form.

The solution was to clear this variable form the memory:


ASSIGN '(SAPFP50M)T777D-NAMST' TO <fs>.
IF <fs> IS ASSIGNED.
  CLEAR <fs>.
ENDIF.