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

I want to Change Material Document Header Text by BAPI Function

Former Member
0 Likes
4,468

Hi:

If I want to Change material document header text by bapi function.

which bapi function I can use?

Thanks...

1 ACCEPTED SOLUTION
Read only

former_member15255
Active Participant
0 Likes
2,023

Make use of this BAPI BAPI_PO_CHANGE

regards

Suresh Nair

Hi:

If I want to Change material document header text by bapi function.

which bapi function I can use?

Thanks...

3 REPLIES 3
Read only

former_member15255
Active Participant
0 Likes
2,024

Make use of this BAPI BAPI_PO_CHANGE

regards

Suresh Nair

Read only

Former Member
0 Likes
2,023

use SAVE_TEXT fm

reward points if useful

regards

Sameer

Read only

Former Member
0 Likes
2,023

Hi Alchie,

Award points if helpfull.

<b>Use FM MB_CHANGE_DOCUMENT.</b>

Test program.

TABLES: mkpf,mseg.

data: i_mkpf type standard table of mkpf with header line,

i_mseg type standard table of mseg.

PARAMETER: p_mblnr TYPE mkpf-mblnr.

START-OF-SELECTION.

SELECT * FROM mkpf INTO TABLE i_mkpf WHERE mblnr = p_mblnr.

SELECT * FROM mseg INTO TABLE i_mseg WHERE mblnr = p_mblnr.

i_mkpf-BKTXT = 'testing'.

modify table i_mkpf.

CALL FUNCTION 'MB_CHANGE_DOCUMENT'

TABLES

zmkpf = i_mkpf

zmseg = i_mseg.