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

smartforms

Former Member
0 Likes
1,116

How can I get a text editor as popup when executing the smartform and whatever I write in Text editor it should be displayed in smartform and the changes should be done only in smartform.Not in the driver program.


1 ACCEPTED SOLUTION
Read only

former_member202818
Active Contributor
0 Likes
1,082

Hi Chakri,

Use this function module in smartform.

*For text editor

DATA : BEGIN OF INT_TEXT OCCURS 0,

                 TEXT(100),

             END OF INT_TEXT.


CALL FUNCTION 'TERM_CONTROL_EDIT'

     EXPORTING

       TITEL               = text-007     "'Mention Other Details'(007)

       LANGU            = 'E'              "English language

     TABLES

       TEXTLINES      = INT_TEXT     "Remark(Text by User)

     EXCEPTIONS

       USER_CANCELLED = 1

       OTHERS         = 2.

   IF SY-SUBRC <> 0.

   ENDIF.


Write this code in a program line(see pic) in smartform, and get the text entered by the user in INT_TEXT, by using this internal table u can display text in smatform using a table.


Regards

Sreekanth

7 REPLIES 7
Read only

former_member202818
Active Contributor
0 Likes
1,083

Hi Chakri,

Use this function module in smartform.

*For text editor

DATA : BEGIN OF INT_TEXT OCCURS 0,

                 TEXT(100),

             END OF INT_TEXT.


CALL FUNCTION 'TERM_CONTROL_EDIT'

     EXPORTING

       TITEL               = text-007     "'Mention Other Details'(007)

       LANGU            = 'E'              "English language

     TABLES

       TEXTLINES      = INT_TEXT     "Remark(Text by User)

     EXCEPTIONS

       USER_CANCELLED = 1

       OTHERS         = 2.

   IF SY-SUBRC <> 0.

   ENDIF.


Write this code in a program line(see pic) in smartform, and get the text entered by the user in INT_TEXT, by using this internal table u can display text in smatform using a table.


Regards

Sreekanth

Read only

0 Likes
1,082

Hi Sreekanth,

                    Thanks for ur rply. It is working fine.

Read only

Former Member
0 Likes
1,082

Hi All ,

           I had another issue regarding smartform. I created a standard text in smartform and I included it in smartform.When I see the output of a smartform through print preview the standard text is printing and when i go and check using the tcode vf03 it is not printing.Plz rply the solution.

Read only

0 Likes
1,082

1.) Check the standard Text is saved in customizing Task  and may be you missed out the client copy.

2.) Also check the language of Standard text in which it is maintained and check the language the smarform get called from VF03.

BR,

Prakash

Read only

0 Likes
1,082

Hi Prakash,

              

                  Thanks for ur rply. can you tell me in detail.

Read only

0 Likes
1,082

You have developed the standard Text in development clinet say 100 and you are doing testing in testing client say 200. Then you need to execute the Transaction code SCC1 to do client copy of Transport which contains your standard text.

BR,

Prakash

Read only

0 Likes
1,082

Hi Prakash,

                 Thank you for your reply.