‎2007 Dec 07 11:56 AM
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.
‎2007 Dec 07 12:06 PM
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
‎2007 Dec 07 11:59 AM
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?
‎2007 Dec 07 12:00 PM
DATA:
zlv_tdname TYPE TDOBNAME.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING INPUT = qmel-qmnum
IMPORTING OUTPUT = zlv_tdname.
Regards,
John.
‎2007 Dec 07 12:04 PM
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
‎2007 Dec 07 12:06 PM
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