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

updation in material additional field using BAPI

Former Member
0 Likes
2,236

Hi Experts,

         I am doing a program for updating additional  z fields in mm02 t-code for mara table by using BAPI. The additional fields is been extended in MARA table.  In this program firstly i am display material details and given check box based on check box selection while saving i had use bapi so that the updation should get directly on table.  While using BAPI i had use structure BAPI_TE_MARA and BAPI_TE_MARAX and for extension BAPIPAREX , BAPIPAREXX and BAPIRETURN. I also extended the same additional field structure in BAPI_TE_MARA and BAPI_TE_MARAX.

         In this i had use function module 'BAPI_MATERIAL_SAVEDATA' . I pass exporting  as BAPIMATHEAD, BAPI_MARA, BAPI_MARAX and importing BAPIRETURN and tables EXTENSIONIN, EXTENSIONXX.

Here program in not giving any error but the data in not getting updated in table.

Can anyone please help me to sort out this issue.

Thanks In Advance,

Ashish

7 REPLIES 7
Read only

yogendra_bhaskar
Contributor
0 Likes
1,705

Make sure you use BAPI_TRANSACTION_COMMIT

Read only

vinoth_aruldass
Contributor
0 Likes
1,705

hi,

find out your bapi structure i mean to which table you want to add and append structure to add zfield to bapi and use the bapi.

hope it helps,

Vinoth

Read only

Former Member
0 Likes
1,705

Hi ,

Check dis Note :

Note 914251 - BAPI_MATERIAL_SAVEDATA with user-defined fields for MARA

Regard's

Smruti..

Read only

gouravkumar64
Active Contributor
0 Likes
1,705

Hi,

Check sap notes 958143 also.

Check Table T130F through OMSR t-code by updating Field group

with BAPI_MATERIAL_SAVEDATA  .

Use COMMIT Also,after that bapi.

Lastly check this thread

http://scn.sap.com/message/5158195#5158195

All the best.

Thanks

Gourav.

Read only

Former Member
0 Likes
1,705

Hi Ashish,

i had the same problem. Look into table/View V_130F if the fields you

will be update are in this table.

You can also try tcode OMSR.

Regards, Dieter

Read only

eduardo_hinojosa
Active Contributor
0 Likes
1,705

Hi

Check also if the adtional field is a non character-type field.

Regards

Eduardo

Read only

Former Member
0 Likes
1,705

Hi Ashish,

There is a particular way to right the code for zz fields. can u share the piece of code. there might be something wrong with the same.

Thanks

Gaurav Guglani