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

how to update the material document header text ?

carlos_zhang3
Participant
0 Likes
6,222

Hello Guru ,

I am writing a program which can automaticatlly generate the material document .....

And i also need to update the material document header text ....

Has someone can tell me how to update the header text ?

I am using BAPI to generate the material document .

Thanks a lot .

Carlos Zhang

Hello Guru ,

I am writing a program which can automaticatlly generate the material document .....

And i also need to update the material document header text ....

Has someone can tell me how to update the header text ?

I am using BAPI to generate the material document .

Thanks a lot .

Carlos Zhang

4 REPLIES 4
Read only

Former Member
0 Likes
3,069

Use the FM: SAVE_TEXT and COMMIT_TEXT to save the texts .

For this you need to find the text IDs for material document header texts (From the MB03 transaction)

Regards,

Ravi

Read only

kanishakgupta1
Contributor
0 Likes
3,069

Hi,

Use create_text to upload the material header text.

Regards

Kanishak

Read only

former_member632729
Contributor
0 Likes
3,069

Hi,

Use SAVE_TEXT Function Module

The function module writes a text module to the text file or text memory, depending on the specific text object.

The module can be used to change existing texts and to create new texts. If it is clear that it is a new text, this can be specified via the parameter INSERT. The result is better performance as a test read is not performed.

Read only

carlos_zhang3
Participant
0 Likes
3,069

The problem has been sloved .

In fact i want to update the MKPF-BKTXT this field ....

But in the other hand i can add this text when i create the material document through BAPI function ....

  • PROCESS EXECUTION WITH BAPI

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

EXPORTING

GOODSMVT_HEADER = I_GOODSMVT_HEADER

GOODSMVT_CODE = '01'

TABLES

GOODSMVT_ITEM = I_GOODSMVT_ITEM

RETURN = I_GOODSMVT_RETURN.

It is in the goodsmvt_header parameter , i can assign the header-text .....

Thanks everyone .

Best Regards,

Carlos Zhang