Application Development 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: 

how to create custom include text in smartforms

Former Member
0 Kudos

Hi Guru's,

i am having one task here is below mentioned details of custom include text used in smartform

Text Name     MPJ1
Text Object   LFA1
Text ID       0002
Language      EN

when i am going with SO10  to see the text it is giving error message that text object and text id not created but i had checked it in se75 it is created

now my question is the above include text is not created with standard text so how come i can change the text for that object where i will get the text maintained for this text object and text id.

Regards

Honey

1 ACCEPTED SOLUTION

guilherme_frisoni
Contributor
0 Kudos

This Object/ID you are using is a standard text object.

The text name used is Vendor number, is MPJ1 a plant in your company?

You can maintain this text in XK02 transaction.

Use MPJ1 as Vendor and check any option (Address, for example).

Next screen, click in Extras > Texts.

Your text should be the second one.

Hope it helps,

Guilherme Frisoni

13 REPLIES 13

guilherme_frisoni
Contributor
0 Kudos

This Object/ID you are using is a standard text object.

The text name used is Vendor number, is MPJ1 a plant in your company?

You can maintain this text in XK02 transaction.

Use MPJ1 as Vendor and check any option (Address, for example).

Next screen, click in Extras > Texts.

Your text should be the second one.

Hope it helps,

Guilherme Frisoni

0 Kudos

Hi Guilherme Frisoni,

First of all thanks for reply,

the object id / object name is not standard text as i had checked in so10

Coming  to maintain text in xk02 we can maintain  text in standard screen in long text and we can call by call function read_text but in this smart form no data is maintained in xk02 and also read_text is not called in driver program / smartform

0 Kudos

Hi,

I am afraid I don't have much experience. I have worked on customized standard text although. Can you please try with the following:

Text Name    MPJ1
Text Object  Text
Text ID      ST
Language    

EN

Please correct me if I am wrong. I would wait for the right answer then.

Regards

Purnand

0 Kudos

Hi Purnand,

Thanks for your reply

you had given me example of customized standard text which we can create it through SO10 TCODE but my requirement is with out standard text NOT FROM TCODE SO10 or from standard tcode long text and call that long text via read_text .

my requirement is i am having one include text created in smartform how come i can change my text

i had gone to so10 tcode and entered text name and text id it is showing message does't exits

i had checked with se75 their the text object and text id are created

no long text is maintained in system

now suggest me where can i see the text which is displaying in my smartform

0 Kudos

I didn´t understand. How are you calling your text in smartforms?

Tcode SO10 is for fixed texts. When you maintain a text ther, you have Text Object = TEXT.

As your text object is LFA1, is a standard text for vendor.

Guilherme Frison

0 Kudos

Hi Guilherme Frison,

IN SMARTFORM INCLUDE TEXT

IN SO10 TCODE I AM GETTING THIS MESSAGE

IN SE75 TCODE THE LFA1 TEXT OBJECT AND 0002 TEXT ID IS MAINTAINED

OUTPUT OF SMARTFORM

NOW I WANT TO CHANGE TEXT FROM WHERE I CAN GO AND CHANGE TEXT

0 Kudos

Hi Guilherme Frison,

IN SMARTFORM INCLUDE TEXT

IN SO10 TCODE I AM GETTING THIS MESSAGE

IN SE75 TCODE THE LFA1 TEXT OBJECT AND 0002 TEXT ID IS MAINTAINED

OUTPUT OF SMARTFORM

NOW I WANT TO CHANGE TEXT FROM WHERE I CAN GO AND CHANGE TEXT

0 Kudos

HI,

Goto SO10 give the Text name,Text ID and Language.It will display the Standard text.

If you want to change the text copy that standard text to 'Z' text and make the necessary changes as below.

and after coping replace the standard text in the smart form to 'Z' Text.

Thanks

Mani

0 Kudos

Hi,

I'll insist that this is s standard text for vendor id MPJ1.

Go to transaction XK02, and check at least Address.

In this screen, click on Extras > Texts.

You'll see text window. Second one is Purchasing Memo. Double click it.

It wil open your text in full screen. If you click in Goto > Header, you can see your object details. In my case vendor number is 0000000100.

Hope it helps,

Guilherme Frisoni

0 Kudos

Hi Guilherme Frisoni,

Thank you for your valuable answer

i got it thank a lot i will give you reward points for this

Regards

T Bharat Bhushan

Former Member
0 Kudos

Hi Bharat,

In the tcode smartforms itself you can create a long text.

1.open the tcode smartforms,select text radio button.provide zname for it.

2.click on create button.it will opens you editor. write the long text which you want and save it.

3.go to your smartform and then call this long text in the text window .

4.it will be uploaded.

still if you found any bugs let me know.

Thanks.

Pavan.

former_member946717
Contributor
0 Kudos

Hi Tummala,

In your smartform,in the position you want to create it - right-click->Select TEXT .

This will be created as a TEXT-ELEMENT. In the TYPE drop down select INCLUDE TEXT. It will ask you if you want to change the TYPE, click on YES.

Now in this Include TEXT

TEXT NAME - &MPJ1& (Try with this)

TEXT OBJECT - LFA1

TEXT ID - 0002

LANGUAGE - EN

Also please click on 'No error if no text exists'.

Please Note - I am not sure if you should pass &MPJ1& or just MPJI, try with both. I have used this and it works hence giving this solution. Although I do not have that object in front of me to check if its with & or without.

Hope this helps!

former_member946717
Contributor
0 Kudos

Hi Tummala,

In your smartform,in the position you want to create it - right-click->Select TEXT .

This will be created as a TEXT-ELEMENT. In the TYPE drop down select INCLUDE TEXT. It will ask you if you want to change the TYPE, click on YES.

Now in this Include TEXT

TEXT NAME - &MPJ1& (Try with this)

TEXT OBJECT - LFA1

TEXT ID - 0002

LANGUAGE - EN

Also please click on 'No error if no text exists'.

Please Note - I am not sure if you should pass &MPJ1& or just MPJI, try with both. I have used this and it works hence giving this solution. Although I do not have that object in front of me to check if its with & or without.

Hope this helps!