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

Creating bulk Datalements through program/FM

Former Member
0 Kudos
2,321

Hi Experts ,

I have to create several custom tables with custom dataelements and domains . Creating each dataelement and domain is taking a lot of time , Is there any other way ( might be function module , Program ) in SAP to create custom datalement and domains in ECC 6.0 avoiding manual creation through SE11.

Your inputs would help me a lot and reduce a lot of time for me.

Thanks

Pavee.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Kudos
1,102

Hi,

Go have a look at the SAPLink plugin for DDIC, where FM 'DDIF_DTEL_PUT' is used.

This function module writes the sources of a data element to the ABAP Dictionary. A new or revised version of the data element is hereby written. If there is already an active version of the data element, it is not changed.

Before the data element is written, there is a check if the action is allowed for the specified object. If this is not the case, for example because the selected name violates the naming conventions or because the object collides with the name of another ABAP Dictionary object, the exception PUT_REFUSED is triggered. In this case the system variables will contain a message which describes the reason why the action is rejected.

Parameter DD04V_WA is considered to be undefined if field ROLLNAME is initial. In this case the latest version of the data element is written with the updated administration data as a revised version. If there is no such version, the exception DTEL_NOT_FOUND is triggered.

3 REPLIES 3
Read only

Former Member
0 Kudos
1,103

Hi,

Go have a look at the SAPLink plugin for DDIC, where FM 'DDIF_DTEL_PUT' is used.

This function module writes the sources of a data element to the ABAP Dictionary. A new or revised version of the data element is hereby written. If there is already an active version of the data element, it is not changed.

Before the data element is written, there is a check if the action is allowed for the specified object. If this is not the case, for example because the selected name violates the naming conventions or because the object collides with the name of another ABAP Dictionary object, the exception PUT_REFUSED is triggered. In this case the system variables will contain a message which describes the reason why the action is rejected.

Parameter DD04V_WA is considered to be undefined if field ROLLNAME is initial. In this case the latest version of the data element is written with the updated administration data as a revised version. If there is no such version, the exception DTEL_NOT_FOUND is triggered.

Read only

raviahuja
Contributor
0 Kudos
1,102

Hi,

You can create a simple program which reads a file with all details related to Data Element and Domain and use below two FMs to create them in loop.

Data Element: DDIF_DTEL_PUT

Domain: DDIF_DOMA_PUT

Thanks.

Ravi

Read only

Former Member
0 Kudos
1,102

Thanks a lot.