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 for mm02

Former Member
0 Likes
2,235

lwa_bapi_headata-material = lwa_marc_update-matnr.

lwa_bapi_headata-mrp_view = 'X'.

lwa_bapi_plantdata-plant = IM_WERKS.

lwa_bapi_plantdatax-plant = IM_WERKS.

lwa_bapi_plantdata-MRP_TYPE = lwa_marc_update-dismm.

lwa_bapi_plantdata-pur_status = 'Y9'.

lwa_bapi_plantdatax-pur_status = 'X'.

lwa_bapi_plantdatax-MRP_TYPE = 'X'.

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'

EXPORTING

headdata = lwa_bapi_headata

plantdata = lwa_bapi_plantdata

plantdatax = lwa_bapi_plantdatax

IMPORTING

return = lit_bapi_return

TABLES

RETURNMESSAGES = it_returnmessages.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = ' '

IMPORTING

return = lv_commit_msg.

when i see the return table it contains...

*Trying to create: KM256802 KNED ____ ____ __________ ____ __ ___ ___*

*The material cannot be maintained since no maintainable data transferred*

*Material KM256802 changed*

so it is like..as if a mterial is created each time..i gave the specific material in the bapi..then why its creating..as if like MM01?

9 REPLIES 9
Read only

Former Member
0 Likes
1,620

pls someone help me

Read only

Former Member
0 Likes
1,620

Mistake in flag structure for PLANT.

>

>


>       lwa_bapi_plantdata-plant = IM_WERKS.
>       lwa_bapi_plantdatax-plant = *IM_WERKS* .
>       lwa_bapi_plantdata-MRP_TYPE = lwa_marc_update-dismm.

>


>       lwa_bapi_plantdata-plant = IM_WERKS.
>       lwa_bapi_plantdatax-plant = *'X'* .
>       lwa_bapi_plantdata-MRP_TYPE = lwa_marc_update-dismm.

Read only

0 Likes
1,620

BAPI_MARCX-PLANT is a char 4..how can it be X?

Read only

0 Likes
1,620

Sorry... I forgot it is key field. Pls. ignore my message.

Read only

nitesh_jain3
Active Participant
0 Likes
1,620

Hi,

What is the message returned in the IMPORTING parameter RETURN in your BAPI call?

>

> IMPORTING

> return = lit_bapi_return

regards

Nitesh

Read only

Former Member
0 Likes
1,620

Hi,

For BAPI Update always the update structure may not have X,

sometimes it asks for the filed value instead of X ,

So cheack the BAPI Structure

EG:BAPI_MARCX-PLANT is a char 4..how can it be X?

Read only

Former Member
0 Likes
1,620

Hi,

For BAPI Update always the update structure may not have X,

sometimes it asks for the filed value instead of X ,

So cheack the BAPI Structure

EG:BAPI_MARCX-PLANT is a char 4..how can it be X?

Read only

Former Member
0 Likes
1,620

solved

Read only

Former Member
0 Likes
1,620

Hi Ganesh,

I am also getting this error.

"Trying to create: 1000000200 US10 ____ US10 __________ ____ __ ___ ___"

"The material cannot be maintained since no maintainable data transferred."

Can you share how you resolved your issue?

Regds,

Namita.