‎2012 Jun 13 9:57 AM
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
‎2012 Jun 13 11:29 AM
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.
‎2012 Jun 13 10:26 AM
Hi,
The same issue is discussed here.
http://scn.sap.com/message/13299194
Please refer the answer from Break point.
Thanks,
Shambu
‎2012 Jun 13 11:29 AM
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.
‎2012 Jun 16 7:00 AM
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
‎2012 Jun 16 9:21 AM
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
‎2012 Jun 16 9:27 AM
Which data type can contain huge paragraphs?
Regards
Jogeswara Rao
‎2012 Jun 16 10:47 AM
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
‎2012 Jun 18 8:07 AM
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.
‎2012 Jun 18 9:51 AM