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

read_text

Former Member
0 Likes
665

Hi friends,

I am calling one function module (read_text) to read long text.

I want to pass the value of qmel-qmnum into the function module for the parameter NAME.

Can you please suggest me how can I do it ASAP.

For useful answers reward will be given.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
628

hi,

both are character type fields, what is difficulty u r faceing in passing directly of passing through other variable, kindly clarify

data : s1 type string.

s1= qmel-qmnum

pass s1 to functionmodule

regards,

pavan

4 REPLIES 4
Read only

Former Member
0 Likes
628

Hi,

Select the QMNUM from QMEL table and store in local variable. Then pass the variable into the FM name.

Or u need any other requirement in this reg?

Read only

Former Member
0 Likes
628

DATA:

zlv_tdname TYPE TDOBNAME.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING INPUT = qmel-qmnum

IMPORTING OUTPUT = zlv_tdname.

Regards,

John.

Read only

Former Member
0 Likes
628

Hi,

Do like this

CALL FUNCTION 'READ_TEXT'
  EXPORTING
   CLIENT                        = SY-MANDT
    id                            = 'LTXT'
    language                      = 'EN'
    name                          = <QN Number with leading zeros> " Use Conversion Exit on this field before populating with FM CONVERSION_EXIT_ALPHA_INPUT/OUTPUT
    object                        = 'QMEL'
  tables
    lines                         = tlines
 EXCEPTIONS
   ID                            = 1
   LANGUAGE                      = 2
   NAME                          = 3
   NOT_FOUND                     = 4
   OBJECT                        = 5
   REFERENCE_CHECK               = 6
   WRONG_ACCESS_TO_ARCHIVE       = 7
   OTHERS                        = 8
          .
IF sy-subrc <> 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Regards,

Satish

Read only

Former Member
0 Likes
629

hi,

both are character type fields, what is difficulty u r faceing in passing directly of passing through other variable, kindly clarify

data : s1 type string.

s1= qmel-qmnum

pass s1 to functionmodule

regards,

pavan