Application Development 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: 

Clearing a field with MATERIAL_MAINTAIN_DARK or BAPI_MATERIAL_SAVE

Former Member
0 Kudos

I found after an upgrade that our old BDC program for automated material maintenance is not working. Instead of rebuilding I am experimenting with MATERIAL_MAINTAIN_DARK and BAPI_MATERIAL_SAVE.

I can get the fields to change fine. How can I make a field blank? If you send in blank you get no change. If you send in a space there is no change.

For example, item 10101-01-11 has a MARA-VOLUM of '12.0' and a MARA-VOLEH of 'FT3'. I can use the function to set these values but I cannot feigure out how to clear them.

Thank you,

Crew

1 REPLY 1

former_member194669
Active Contributor
0 Kudos

Have you tried this wayn ( example for clearing pur_status)


i_marc-plant = 'N505'.
i_marc-pur_status = ' '.

i_marcx-plant = 'N505'.
i_marcx-pur_status = 'X'.

then call function 'BAPI_MATERIAL_SAVEDATA'