2007 Aug 28 6:32 AM
hi pls ans my requirement
1.i have to fields in internal table and for function module i have to pass the concatenation oc those two intenal table fields how is pls tell me
2.how to give import parameters for READ_TEXT function module i mean Id,Name,Object
Hi for ur question 1
just use concat statement and concat these 2 fields in a string and pass hte string as input to funciton module
Hi this would help you for 2nd question
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = c_id
language = c_lang
name = c_name
object = c_obj
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = i_line
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
here c_id is value 0001
c_lang is E (represents language)
c_name is the field name of thead-tdname
c_obj is any object name like DOC_ITEM of type thead-tdname
c_handle is of type sy-tabix having value 0
Reward pts if helpful
2007 Aug 28 6:35 AM
Hi,
Concatenate field1 field2 into v_string.
Pass this v_string to ur function module.
Read text
you can get id ,object in the field itself.
name is ur dymanic value ,,may be ur vbeln,etc...
Regards,
ashok...
2007 Aug 28 6:36 AM
Eg:
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'ZPRN' "ZPRN is for po release #
language = 'E'
name = x_vbelnposnr
object = 'VBBP'
TABLES
lines = it_tline
2007 Aug 28 6:36 AM
Hi,
if you have two fields in the internal table
then you have to use the concatenation statement
into a variable and this variable can handle only one records as it isa variable
concatenate itab-field itab-field2 into variable separated by space
for read_text
also check STXH table
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = 001 ( depends on requirement )
language = 'EN'
name = here we can give po number or so number or any related number
object = 'KNMT' ( these will be stored in se75 transaction )
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = IT_TLINE ( you get the texts in this table )
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
.
thanks & regards,
Venkatesh
2007 Aug 28 6:38 AM
HI,
Loop at itab into wa.
concatenate wa-fld1 wa-fld2 into lv_variable separated by space.
Call FM .. pass the lv_variable.
endloop.
2. Just go to se37 , give Fm name and click where used list you will find the programs which used this Fm and you can understand how to use it..
rewards if useful,
regards,
nazeer
2007 Aug 28 6:44 AM
Hi for ur question 1
just use concat statement and concat these 2 fields in a string and pass hte string as input to funciton module
Hi this would help you for 2nd question
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = c_id
language = c_lang
name = c_name
object = c_obj
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = i_line
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
here c_id is value 0001
c_lang is E (represents language)
c_name is the field name of thead-tdname
c_obj is any object name like DOC_ITEM of type thead-tdname
c_handle is of type sy-tabix having value 0
Reward pts if helpful
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |