2009 Sep 14 1:43 PM
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?
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?
2009 Sep 15 9:49 AM
2009 Sep 15 10:05 AM
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.
2009 Sep 15 10:30 AM
2009 Sep 15 10:41 AM
2009 Sep 15 12:39 PM
Hi,
What is the message returned in the IMPORTING parameter RETURN in your BAPI call?
>
> IMPORTING
> return = lit_bapi_return
regards
Nitesh
2009 Sep 15 1:31 PM
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?
2009 Sep 15 1:31 PM
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?
2009 Sep 16 6:29 AM
2009 Nov 04 11:51 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |