2011 Mar 18 10:43 AM
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.
2011 Mar 24 7:57 AM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |