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 Extending material Error

Former Member
0 Likes
912

Hi,

I'm using the BAPI_MATERIAL_SAVEDATA to extend some material to new plants but i'm getting a difference that is

bapi_marc-pur_group = wa_marc-ekgrp .

bapi_marc-mrp_type = wa_marc-dismm .

bapi_marc-proc_type = wa_marc-beskz .

bapi_marc-availcheck = wa_marc-mtvfp .

bapi_marc-ex_cert_no_new = wa_marc-preno .

bapi_marcx-pur_group = 'X' .

bapi_marcx-mrp_type = 'X' .

bapi_marcx-proc_type = 'X' .

bapi_marcx-availcheck = 'X' .

bapi_marcx-ex_cert_no_new = 'X' .

Are not getting passed to the table MARC. Any Idea??

Thanzs in advance to all

Jaime Cordeiro

4 REPLIES 4
Read only

naimesh_patel
Active Contributor
0 Likes
747

Please use the FM BAPI_TRANSACTION_COMMIT after your BAPI_MATERIAL_SAVEDATA call.


 CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'   
   EXPORTING                               
     WAIT   = 'X'.                         

Regards,

Naimesh Patel

Read only

0 Likes
747

Hi Naimesh,

I get the material extends with no problem except for those fields that are smashed with other values, And i do commit work to execute the database change

Regards

Jaime Cordeiro

Read only

0 Likes
747

Have you passed this ?

BAPI_HEAD-PURCHASE_VIEW = 'X'.

Regards,

Naimesh Patel

Read only

0 Likes
747

Hi,

Thanzs for the help i've found the problem it's the one you write, shame on me forgot to uncomment the code, it's working fine now

Points given for your help

Regards

Jaime Cordeiro