‎2008 Aug 25 12:16 PM
in transaction me51n in item i want to pick text entered by the user , which function module i use and what i have to put in its importing and exporting parameters , secondly texts are maintained in it as per line item wise , so please guide.
Edited by: Ankesh Jindal on Aug 25, 2008 1:16 PM
‎2008 Aug 25 12:19 PM
read_text is used for almost all the text what importing parameters should i use in it which will differentiate it that it coming from me51n item
‎2008 Aug 25 12:18 PM
‎2008 Aug 25 12:19 PM
read_text is used for almost all the text what importing parameters should i use in it which will differentiate it that it coming from me51n item
‎2008 Aug 25 12:29 PM
Hi,
Pass Name = BANFN number
Language = 'EN'
Text ID = your id for ex B01
Text Object = 'EBANH'
This is for header texts maintained with particular Id
For Item texts you need to pass
Name = Concatenate value of BANFN and BNFPO
Language = 'EN'
Text ID = your id for (ex B01)
Text Object = EBAN
Regards,
Dwarakanath.S
‎2008 Aug 25 12:28 PM
Hi,
Use Function Module 'READ_TEXT'.
I am adding piece of code for reading text of VA01 just you change it as per ur transaction and ur reqt.
DATA: loc_id TYPE thead-tdid,
vbeln TYPE thead-tdname,
int_lines TYPE STANDARD TABLE OF tline,
vbeln = wa_vbak-vbeln. "Sales Order No.
loc_id = '0001'.
Call FM to Read Header Text of Pickup order.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = loc_id
language = sy-langu
name = vbeln
object = 'VBBK'
TABLES
lines = int_lines
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.
Endif.
Hope this will Help u,
Shyam.
‎2008 Aug 25 12:38 PM
Hi
There is one way to find out which parameter you need to pass in this FM for ME51N.
Just you follow the process i am explaning below.
Go to ME52n/ Means Change requisition transaction .
Go to Item text tab.
Change any text you want , or write if not there.
Than Go to table STXH .
Execute this table by passing ur User name and date into
TDLUSER and TDLDATE Field.
You will get all information like
TDOBJECT, TDNAME, TDID, etc.
Just you use the same in ur FM.
Hope This will sole ur Query,
Shyam.