07-30-2007 8:52 AM
Hi all,
I have to upload the long text for infotype 0194.
I tried to do it in two ways:
1. INCLUDE RPC1TX00.
MOVE-CORRESPONDING P0195 TO TX-KEY.
PTEXT-LINE = ITAB1-TEXT.
EXPORT PTEXT TO DATABASE PCL1 (TX) ID TX-KEY.
2. By using method
CALL METHOD cl_hrpa_text_cluster=>update
With proper pskey.
But the text is not getting reflected into the transaction (PA20).
If any one has any pointers, then please share them with me.
Regards
Vijay sharma
03-19-2008 4:33 PM
Hello,
I have a problem in a Time Events application concerning the infotype 2001 and the subtype 0205 (sickness) and a text cluster.
The program, that I have to fix, insert / modify and delete record of a absence. The absence comments in the cluster of text PCL1.
Insertion :
The program use the function to insert a record :
HR_INFOTYPE_OPERATION with the parameter OPERATION = 'INS' to insert the record.
....
then
EXPORT ptext FROM text
TO DATABASE pcl1(tx)
ID pskey.
To write the comments in the cluster of text.
No problem appears...
Modify:
The program use the sequence of functions to modify a record:
HR_INFOTYPE_OPERATION with the parameter OPERATION = 'DEL'
...
HR_INFOTYPE_OPERATION with the parameter OPERATION = 'INS'
....
then
EXPORT ptext FROM text
TO DATABASE pcl1(tx)
ID pskey.
This procedure works fine for every absences except for the absence type : sickness. For this certain type, the record is modified without problem (date, name, type..) but the absence comments is deleted and not reinsert. The key is the right one. When I check the number of entry of the cluster PCL1 with se16, I see that an entry has been deleted. When I look into the debugger, the deletion of the cluster is done by the function HR_INFOTYPE_OPERATION operation 'DEL' which is fine but the EXPORT does not work at all and the sy-subrc = 0. Everything works fine for other subtype but not the sickness one.
I am not sure but the sickness subtype seems to be a customized one.
Has anyone have an idea / solution of the reason of this bug.
Jonathan