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

BAPI_MATERIAL_SAVEDATA

Former Member
0 Likes
1,101

Hi guys,

I need your help, i am using BAPI_MATERIAL_SAVEDATA to create all views for material, but i don't know how update Sales Text and Purchase Order Text, somebody knows how to create this texts and organizational levels?

Thanks in advance .

regards

Marisol

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
846

HI

You can use the function module 'CREATE TEXT', to save the standrd text lile Material Sales Text/ PO text.

For Sales text:

CALL FUNCTION 'CREATE_TEXT'

EXPORTING

FID = v_tid

FLANGUAGE = lv_spras

FNAME = v_tdname

FOBJECT = v_tdobject

SAVE_DIRECT = 'X'

FFORMAT = '*'

FFORMAT = ' '

TABLES

FLINES = i_lines

EXCEPTIONS

NO_INIT = 1

NO_SAVE = 2

OTHERS = 3.

Text name 000000000001110257B227BD

Language EN

Text ID 0001 Sales text

Text object MVKE Material texts, sales

3 REPLIES 3
Read only

Former Member
0 Likes
847

HI

You can use the function module 'CREATE TEXT', to save the standrd text lile Material Sales Text/ PO text.

For Sales text:

CALL FUNCTION 'CREATE_TEXT'

EXPORTING

FID = v_tid

FLANGUAGE = lv_spras

FNAME = v_tdname

FOBJECT = v_tdobject

SAVE_DIRECT = 'X'

FFORMAT = '*'

FFORMAT = ' '

TABLES

FLINES = i_lines

EXCEPTIONS

NO_INIT = 1

NO_SAVE = 2

OTHERS = 3.

Text name 000000000001110257B227BD

Language EN

Text ID 0001 Sales text

Text object MVKE Material texts, sales

Read only

0 Likes
846

Have you SET the sales view field in headdata and make sure you are using the internal language key?

Read only

0 Likes
846

HI

You can use the function module 'CREATE TEXT', to save the standard text like Material Sales Text/ PO text.

CALL FUNCTION 'CREATE_TEXT'

EXPORTING

FID = v_tid

FLANGUAGE = 'EN'

FNAME = v_tdname

FOBJECT = v_tdobject

SAVE_DIRECT = 'X'

FFORMAT = '*'

FFORMAT = ' '

TABLES

FLINES = i_lines

EXCEPTIONS

NO_INIT = 1

NO_SAVE = 2

OTHERS = 3.

Here,

for sales text

v_tid = '0001'

v_tdobject = 'MVKE'

v_tdname = Concatenated text of Material Number (18 chars), Sales org (4 chars) and Distribution Channel (2 chars)

For PO text

v_tid = 'BEST'

v_tdobject = 'MATERIAL'

v_tdname = Material Number(18 chars)

And i_lines is the table with the text lines you want to create.