cancel
Showing results for 
Search instead for 
Did you mean: 

Data types for DDIC structure for ABAP API

Former Member
0 Kudos

Hi Gurus,

We are doing a program to delete MDM catalog records using ABAP API.

Since we are to retrieve records in the Catalog Items table, do we have to copy all the fields in the Catalog Items table for the creation of a DDIC structure?

Since the Catalog Items table involves lookup fields would like to ask the corresponding data type of the following in ABAP API:

1. Lookup PDF

2. Lookup Image (Multi-valued).

Would appreciate your inputs.

Regards,

Kezia

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Please refer the below link it has a sample code for deleting the record and may be useful to you

http://help.sap.com/saphelp_mdm550/helpdata/en/47/5fd3f7cbd75518e10000000a421138/frameset.htm

Class Method Implementation -> Creating, Retrieving, Updating, Deleting simple Data in Records -> Source Code

Regards,

Jitesh Talreja

Former Member
0 Kudos

Hi Jitesh,

Thanks for that link.

We're also looking to that link as reference.

Since it is a requirement to create a DDIC structure for the API that will store the records from the MDM table, just want to confirm if it is a requirement to replicate all fields in the table (e.g. Catalog Items), which will be used in the API. Or we can just create the fields that will be needed on the structure?

Former Member
0 Kudos

Hi Kezia,

You need to create only the required fields and not all the fields.

Hope it helps.

Thanks,

Minaz

Former Member
0 Kudos

Thanks Minaz!

Former Member
0 Kudos

Hi,

Check the sample code

APPEND 2 TO lt_rec_del.

  • delete record with internal ID=2 on table 'Products'

CALL METHOD lr_api->mo_core_service->delete

EXPORTING

iv_object_type_code = 'Products'

it_internal_ids = lt_rec_del.

From

http://help.sap.com/saphelp_mdm550/helpdata/en/44/93aa6e31381053e10000000a422035/frameset.htm

Interface and Methods -> Interface_IF_MDM_CORE_SERVICES -> Method IF_MDM_CORE_SERVICES -> DELETE.

Regards,

Jitesh Talreja

Former Member
0 Kudos

Hi Jitesh,

Appreciate your inputs.

Many thanks!

Kezia