cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Standard MARA/MARC fields for CRUD operation in API_PRODUCT_SRV

Pradpandey
Explorer
0 Kudos
51

Hi Community Members, 

I am working on a requirement to extend API_PRODUCT_SRV (on-Prem) with few missing standard MARA & MARC fields (Not the Z-FIelds) listed below.

Field NameReference Table
RMATP_PBMARA
PROD_SHAPEMARA
MO_PROFILE_IDMARA
OVERHANG_TRESHMARA
SCM_HEUR_IDMARC
SCM_MATURITY_DURMARA
SCM_SHLF_LFE_REQ_MAXMARA
USEQUMARC
SHFLGMARC

I extended associated CDS entities like A_PRODUCT, A_ProductPlant etc with the respective fields from MARA & MARC and able to get the fields in Payload.

GET call works fine for these newly added fields however, CREATE & UPDATE operation is not working and these fields are not updated in the table. Also, I could not find any BADI to map these fields during create/Update. 

Really appreciate any suggestions on this issue. Thanks in advance.   

Pradeep

ABAP Extensibility API OData SAP Gateway 

__PRESENT

Accepted Solutions (0)

Answers (1)

Answers (1)

umasaral
Active Participant
0 Kudos

For CREATE and UPDATE operations, ensure that your extended fields are correctly mapped to the underlying data model using the appropriate BAPIs or enhancement spots for the product entity. If no BADI is found, consider using an enhancement implementation in the relevant service definition to handle the mapping of the new fields.