‎2012 Nov 26 2:24 PM
Hello all ,
I want to save data in Comments 1 , 2 and 3 in infotype 19 programattically .
How can I achieve the same .
Thanks
Supriya
‎2012 Nov 26 2:45 PM
Hi Supriya,
You can use FM "HR_MAINTAIN_MASTERDATA" to update employee dates . You need to pass all the mandatory fields ranging from PERNR to SEQNR as far as possible. Put this FM in a loop to update the multiple records .
Thanks
Sravan
‎2012 Nov 26 2:53 PM
Hi ,
This FM will be used for data uploading , but comments 1 , 2 and 3 fields get updated in cluster PCL1 .
We are facing issues uploading these fields only
Supriya
‎2012 Nov 26 4:26 PM
You may be able to read/write to those fields with macros rp-imp-c1-tx and rp-exp-c1-tx.
Sample code I have using a custom infotype to retrieve comments:
DATA: tx-key LIKE pskey.
DATA: BEGIN OF text-version,
nummer TYPE x VALUE '02',
END OF text-version.
DATA: BEGIN OF ptext OCCURS 200.
DATA: line(78).
DATA: END OF ptext.
...
MOVE-CORRESPONDING pa9090 TO tx-key.
MOVE '9090' TO tx-key-infty.
rp-imp-c1-tx.
LOOP AT ptext WHERE LINE IS NOT INITIAL.
CONCATENATE ptext-line
cl_abap_char_utilities=>cr_lf
INTO ls_text SEPARATED BY space.
APPEND ls_text TO lt_text.
ENDLOOP.