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

Smartform include text formatting

jogeswararao_kavala
Active Contributor
0 Likes
2,336

Dear Experts,

I've a smartform report, wherein one column displays Longtext (VIQMEL-QMNUM).

This is a Smartform Text field which has been configured as shown in the attached screen-shot..

The problem is: The lontext is printed alongwith headerline (Date time userid etc. in the firstline).

I want suppress this line.

So far I explored READ_TEXT fm and could do the above in report program the output of which is in the form of several text lines (TDLINE)  for a single object (QMNUM)

The applicability of this work in smartform (where include text is used) seems not relevant.

Request for a solution to this case please.

kind regards

Jogeswara Rao

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,991

Hi Jogeswara Rao,

If you do not want that logline to be created at all in the long text, make this setting in SPRO as follows:

SPRO->SAP Reference IMG->Plant Maintenance and customer service->Maintenance and service processing->Maintenance and service notifications->Overview of notificaition types

In that select your Notification type and double click on 'Format long text' in the left hand side menu.

Uncheck 'Log line' under 'General long text formatting'.

This way, you will not create that logline (Date,time, user id..) and your Include text in smartforms will work fine.

If u want that logline to be created and not to be displayed in smartforms, then the links provided by Shambu and Ramya should help.

Thanks,

Manikandan JN.

8 REPLIES 8
Read only

Former Member
0 Likes
1,991

Hi,

The same issue is discussed here.

http://scn.sap.com/message/13299194

Please refer the answer from Break point.

Thanks,

Shambu

Read only

Former Member
0 Likes
1,992

Hi Jogeswara Rao,

If you do not want that logline to be created at all in the long text, make this setting in SPRO as follows:

SPRO->SAP Reference IMG->Plant Maintenance and customer service->Maintenance and service processing->Maintenance and service notifications->Overview of notificaition types

In that select your Notification type and double click on 'Format long text' in the left hand side menu.

Uncheck 'Log line' under 'General long text formatting'.

This way, you will not create that logline (Date,time, user id..) and your Include text in smartforms will work fine.

If u want that logline to be created and not to be displayed in smartforms, then the links provided by Shambu and Ramya should help.

Thanks,

Manikandan JN.

Read only

0 Likes
1,991

Thanks for replies,

So far I could achieve through READ_TEXT etc. to remove the 1st line (not desired). And I could update the internal table also with TDLINE field.

The scenerio now is, one QMNUM field is having multiple rows due to different TDLINE values.

Now I need to club (concatenate) these TDLINE values into a paragraph against a QMNUM, for the purpose of using in the smartform.

OR any other idea?

Some might have done this in smartforms. Please help.

Regards

Jogeswara Rao

Read only

0 Likes
1,991

Hi,

Try to club these values into a program and then paas to a verible and then paas that veriable into smartforms.

Regards,

Ravi Singh

Read only

0 Likes
1,991

Which data type can contain huge paragraphs?

Regards

Jogeswara Rao

Read only

0 Likes
1,991

HI,

You take data type according to your requirement type or take char type.

data : var(685) type c.

paas value to this parameter and then paas to smartform.

it'll work.

Regards,

Ravi Singh

Read only

0 Likes
1,990

Hi Jogeswara Rao,

You can also use CHAR1024 data type.

If u feel that the text may exceed 1024 characters, you can use STRING type. But in this case, you need to write the code in your smartforms.

Pass the table IT_TDLINE to the smartforms. In smartforms, declare a global variable say GV_STRING of type string.

Create a Program Line just above the desired text box. Loop IT_TDLINE table and concatenate all the lines of this table in to this string. Display this string variable in the text box.

Please refer the attachment for better understanding.

Thanks,

Manikandan JN.

Read only

0 Likes
1,990

Thank you Manikandan,

This is what I wanted.