cancel
Showing results for 
Search instead for 
Did you mean: 

How to store comments into infotype?

Former Member
0 Kudos

Hi experts,

I'm using BSP now and have a BSP page with free comment part.

people view the page could leave their comment there.

I have to store those comments into infotype table.

the length of the comment is unknown....

so how can I do this....

Please help me out with this...

Thank you for your time

Message was edited by:

Anna Sui

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

you can use a htmlb:textedit or btf:editor for user input . where is the difficulty in desgning the layout or with updating the infotype.

Raja

Former Member
0 Kudos

Thank you Raja

the way you mentioned is the lay out of the BSP page..

so after the comment is added into the textedit I can also get the content in method: DO_HANDLE_DATA.

My point is if the text is too long how can i split them? By what signal?

and I found most standard infotype like HRP1002, has a field named:TABNR.

and table named HRT1002 with the following structure

field data_element

MANDT MANDT

TABNR HRTABNR

TABSEQNR HRTABSEQNR

.INCLUDE PT1002

TLINE HRLINE79

TFORMAT TDFORMAT

this table store the lines of the comments and the content.

so how can i store the comment into the table and how to relate table HRPXXX and table HRTxxx?

null

Message was edited by:

Anna Sui

athavanraja
Active Contributor
0 Kudos

for splitting the text you can use FM

CONVERT_STRING_TO_TABLE

and for updating infotype, i dont have much experience, but checked with my friends and i was told you can use HR_INFOTYPE_OPERATION fm to update the infotype which will take care of updating relevant dependant tables as ell.

Regards

Raja

Answers (0)