Application Development 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: 

stxh.

Former Member
0 Kudos

I have MM01,ME21 and VA01 to b done in BDC,i have to get the sales text n purchase text from MM01 to the other two...................tell how the three function modules r used n wat parameters r to b passed n wat r the tables TLINE and THEAD.wat r they used for .....please let me konw.................

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You cannot update material longtext using BDC. Use READ_TEXT to get the text and SAVE_TEXT to save the same.

Sample code is here

READ_TEXT

SAVE_TEXT

Regards

Kathir

3 REPLIES 3

Former Member
0 Kudos

You cannot update material longtext using BDC. Use READ_TEXT to get the text and SAVE_TEXT to save the same.

Sample code is here

READ_TEXT

SAVE_TEXT

Regards

Kathir

former_member194669
Active Contributor
0 Kudos

Hi,

ID = BEST

LAN = EN

NAME = (You Material No)

OBJECT = MATERIAL

call function 'READ_TEXT'

exporting

id = ID

language = LAN

name = NAME

object = OBJECT

tables

lines = lt_textlines

exceptions

not_found = 1.

For gettting id please go thru this way.

1. Go into the PO or Material document

2. Go to the text tab (item or header - depends what u want).

3. Double click into the required text.

4. Click the "GO TO" menu option.

5. click Header.

here find the info needed

aRs

Former Member
0 Kudos

hi ,

here I am giving you some solutions try to execute inthis wasy

declare an intenatale like thead

x_header TYPE thead

Pass this varible in calling READ_TEXT

in importing paramter for the tables lines option

after this, pass this text in to one string or some filed, if ur having more than one line then you have to loop this string here

pass this filed in to bdc like hardcode, pass this value to the corresponding filed.

If you find it useful mark the points

Regards,

Naveen