2011 Sep 12 11:33 AM
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.
2011 Sep 12 11:54 AM
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.
2011 Sep 12 11:54 AM
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.
2011 Sep 13 3:30 AM
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
2011 Sep 13 8:59 AM