Skip to Content
0
Former Member
Aug 01, 2007 at 11:25 AM

longtext in custom infotype

149 Views

Hi ,

I am trying to upload long-text for a particular pernr in a custom infotype.

But the text is not coming in PA30.

Below is the code.

********************************************************************************

DATA: wa_record_gdocs TYPE p9004,

pskey type pskey.

ptext-line = This is text note'.

append ptext.

p_pernr = '10000014'.

MOVE: 'X' to wa_record_gdocs-itxex,

p_pernr to wa_record_gdocs-pernr, * custom infotype 9002

'9002' to wa_record_gdocs-infty, * subtype 0002

'0002' to wa_record_gdocs-subty,

'07122007' to wa_record_gdocs-endda,

'01011999' to wa_record_gdocs-begda.

MOVE-CORRESPONDING wa_record_gdocs TO PSKEY.

pcl1-histo = 'X'.

pcl1-uname = SY-UNAME.

pcl1-aedtm = SY-DATUM.

export ptext to database pcl1(TX) id pskey.

commit work.

Please guide me in this. Where could I have gone wrong.

Thanks a lot in advance.

Regards

Ananya