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

Call Function in Smartform

Former Member
0 Likes
647

Hi,

I am using a 'Read_Text' function in smartform, but smartforms does not allows it , while executing it gives dump stating

'The call to the function module "READ_TEXT" is incorrect:

The function module interface allows you to specify only

fields of a particular type under "NAME".

It will be helpful if any one can throw more light on this.

Thanks

Rani

4 REPLIES 4
Read only

Former Member
0 Likes
603

Hi,

You can call the READ_TEXT function module from a smartform just as you can from any other piece of ABAP.

If the field in your smartform that holds the text name is not of the same data type as the function module interface then you will need to convert it before making the call.

Presumably there a reason why you are calling this function module and not using an Include Text.

Regards,

Nick

Read only

Former Member
0 Likes
603

Hi,

In place of calling Read_text function module

you can create an Text Module from the tcode

Smartforms and include them in the text elements created.

Hope it helps

Regards

Mansi

Read only

Former Member
0 Likes
603

from where are you reading the text ie : form which transaction adn which tab..

for example if you are reading from text from sales item.. ie : sale order item

go to VA02 --> give sales orde number , double click on the line item, then select the tab texts.

now double click in the editor screen where you give text..

after that go to menu path go to --> header

you can check the text name it is 16 digit number but which i nothing but sales order number + item no

you need to concatenate sales order number and item number and pass it to name in the read text fucntion module which basically read texts..

how to use read_text fuction module you can check in forum you will get many links.

If you need further info please let me know..

Regards

Satish Boguda

Read only

Former Member
0 Likes
603

Thanks Nick , Manasi & Satish,

I am able to use 'Read_text' in smartform,

Thanks for your support

Rani