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

updating database tables

Former Member
0 Likes
1,093

Hi,

I am working on a module pool program.I want to update the values of some fields in marc and mvke tables by changing the field values in one screen.

I am using BAPI_MATERIAL_SAVEDATA function module for updating the database tables.I tried changing mrp type and mrp controller field values for a material 123-L540-22.But in the debugging mode in the return parameter of this fm i can see the message as 'The field MARC-MTVFP/BAPI_MARC-AVAILCHECK is defined as a required field; it doesnot contain any entry’.Why is it giving this message?

Hi,

I am working on a module pool program.I want to update the values of some fields in marc and mvke tables by changing the field values in one screen.

I am using BAPI_MATERIAL_SAVEDATA function module for updating the database tables.I tried changing mrp type and mrp controller field values for a material 123-L540-22.But in the debugging mode in the return parameter of this fm i can see the message as 'The field MARC-MTVFP/BAPI_MARC-AVAILCHECK is defined as a required field; it doesnot contain any entry’.Why is it giving this message?

4 REPLIES 4
Read only

Former Member
0 Likes
688

Hi

Those are required fields pass the values to them also

Regards

Shiva

Read only

Former Member
0 Likes
688

hi hema,

you need to specify the values for these fileds before executing the program.

hope it helps..

do reward if helpful..

Read only

0 Likes
688

Hi,

In that screen there are 10 fields.If the user wants to change the values for only 2 fields how can he know that this field is a mandatory field?

Read only

0 Likes
688

Hi,

The Material is configure In different Ways, with some fields mandatory or Optional.

Write a Select Statement and get the data for that particular field and again you update.

BAPI or T.code does not work unless all the required fields are passed .

Regards

Balu.Malvatu