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

function module for me51n ( text picking )

Former Member
0 Likes
1,357

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,015

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

5 REPLIES 5
Read only

GauthamV
Active Contributor
0 Likes
1,015

hi,

use READ_TEXT function module.

Read only

Former Member
0 Likes
1,016

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

Read only

0 Likes
1,015

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

Read only

Former Member
0 Likes
1,015

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.

Read only

Former Member
0 Likes
1,015

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.