cancel
Showing results for 
Search instead for 
Did you mean: 

Update some EWM CW field - BAPI_MATERIAL_SAVEDATA - BAPI_MARA vs MARA

0 Kudos

Hello Guys,
in need to enhance a development where we use bapi BAPI_MATERIAL_SAVEDATA
the fields that needs to be updated in MARA are the following :

  • WHMATGR
  • SERIAL
  • LOGUNIT
  • CWQREL
  • CWQPROC
  • CWQTOLGR

Not all of them do exists in BAPI_MARA : example

  • CWQREL
  • LOGUNIT

Would you have any idea on how to proceed ? for the UNIT i thought about the UNITSOFMEASURE of the bapi but it is not there...

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

hmmm i'll have a LOOk

raymond_giuseppi
Active Contributor
0 Kudos

Consider use of EXTENSIONIN[X] parameter (Structure BAPI_TE_MARA[X], eventually BAdI )

(And perform some search too.)

0 Kudos

the fields are standard ? not extention ?

raymond_giuseppi
Active Contributor
0 Kudos

Look at the BAPI code, the value of fields passed to BAPI_TE_MARA will be copied to field of same name of structure MARA during processing.

NB: In case of problem you could also use a BAdI such as STANDARDMATERIAL_SAVE_DATA to map yourself some extenstion data to final structure (e.g. copying a ZZ field into a standard one) just try it.