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_MAINTAINDATA_RT ZZFIELDS

Former Member
0 Likes
4,377

Hello,

I am updating mara, marc append structure  zfields using BAPI_MATERIAL_MAINTAINDATA_RT.

I am using function value as 004. Value is not getting updated to material master.

function = '004'

material = matnr value

plant = plant value

field1 = value of z field.

Please help me in using field1 to update z fields.

Thanks


1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,573

hi Manigandan

You still need implement user-exit EXIT_SAPL1001_003.

There are same thread in SCN, refer thishttps://scn.sap.com/thread/418244

regards,

Archer

4 REPLIES 4
Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
2,573

Hello Mani,

Use the exit EXIT_SAPL1001_003 to update zzfileds. Please read the documentation of FM EXIT_SAPL1001_003.

Thanks

Read only

Former Member
0 Likes
2,574

hi Manigandan

You still need implement user-exit EXIT_SAPL1001_003.

There are same thread in SCN, refer thishttps://scn.sap.com/thread/418244

regards,

Archer

Read only

0 Likes
2,573

Hi,

Thanks for your answers. Please help on issues.

I have only numeric field in ZMARC append structure. I need upload file values to MARC append structure . No ALE.

Calling BAPI in Z program with below values.

ls_headdata-material = l_matnr  “Please update if any other fields needs to be updated.

ls_plantext-function = ‘004’.

ls_plantext-material = ls_plant-matnr.

ls_plantext-field1+0(20) = ‘10’  “ Please update how to use field1 in case of only numeric fields

APPEND ls_plantext TO lt_plantext

ls_plantextx-function = ‘004’.

ls_plantextx-material = ls_plant-matnr.

ls_plantextx-field1+0(1) = ‘X’.  “Correct??

APPEND ls_plantextx TO lt_plantextx.

Calling BAPI

CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT'
   EXPORTING
     HEADDATA        = ls_headdata
   IMPORTING
     RETURN          = ls_return
   TABLES
     PLANTEXT        = lt_plantext
     PLANTEXTX       = lt_plantextx.

  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

Created SMOD project as well, but breakpoint in user exit EXIT_SAPL1001_003 is not getting stopped.

Please help on issues.

Read only

0 Likes
2,573

Hi all,

I have the same requirement MM46 custom field ( with out ALE ) which would updates MARA - custom field value.

First step -  Created custom field ( MARA-ZZXXX ) by using OMS9 trasaction for MM46 mass maintenance screen.

Second step -  Created CMOD Z project.

In this step I got some confusion about writing the code for my Z field, Here I have found 2 include programs under EXIT_SAPL1001_003 exit

1.  INCLUDE LXMGVF07  -  In this include program I tried to create enhancement ( to write the code for my Z field  by using  WHEN C_PARNAM_CLIENTEXT ), but program is not allowing me to create enhancement / to change the include program. 

System is giving " Changes to LXMGVF07 are forbidden by SAP"

    

2. If you double click on EXIT_SAPL1001_003 exit , here I have found INCLUDE ZXMGVU07.

    In this include program I put break point, but this break point is not getting triggering / stopping.

Please help me on this