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

Save data in PA0019

Former Member
0 Likes
812

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

3 REPLIES 3
Read only

Former Member
0 Likes
733

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

Read only

0 Likes
733

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

Read only

MrWhan
Participant
0 Likes
733

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.
DATAline(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.