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: 

FM to Change BOM Item Text

Former Member
0 Kudos

Dear All,

Could you please let me know how to change BOM Item text from ABAP.

I tested without success the Function Module

BAPI_MATERIAL_BOM_GROUP_CREATE .

I can read the BOM Item text from via FM READ_TEXT, does it exist a corresponding FM to change this text ?

Thanks in advance for your help

Alain.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Try using the FM EDIT_TEXT for editing the text.

Thanks,

Raju

2 REPLIES 2

Former Member
0 Kudos

Hi,

Try using the FM EDIT_TEXT for editing the text.

Thanks,

Raju

0 Kudos

Thanks for your prompt reply but I'm not sure that in my case it the right FM to use

Indeed to read the Bom item text I use the FM read_text (see parameter below)

The result is: i_TOPO_EXIST-TDLINE = U62,U110,U111,U112,U113,

I want to change this value into XXXXXXXXXXXXXXXXXXXXXXXXXX.

How can I do, could you please give me an example.

Kind regards,

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT “200

ID = 'MPO' “

LANGUAGE = SY-LANGU “FR

NAME = W_OBJNAME “200M000002600000162600003303

OBJECT = 'BOM'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

TABLES

LINES = i_TOPO_EXIST

  • EXCEPTIONS

  • ID = 1

  • LANGUAGE = 2

  • NAME = 3

  • NOT_FOUND = 4

  • OBJECT = 5

  • REFERENCE_CHECK = 6

  • WRONG_ACCESS_TO_ARCHIVE = 7

  • OTHERS = 8