Hi,
I managed to add the component and the logical unit using the method ‘ LANGUAGE_SYS_IMP_API.New__’ and used it for Basic Data translation.
For example, following is the script that I used to add the Engineering Change Request Level to the Basic Data Translation Header.
DECLARE
attr_ VARCHAR2(32000):=NULL;
info_ VARCHAR2(32000);
objid_ VARCHAR2(32000);
objversion_ VARCHAR2(32000);
action_ VARCHAR2(32000):='DO';
BEGIN
CLIENT_SYS.Clear_Attr(attr_);
CLIENT_SYS.Add_To_Attr('MODULE', 'PDMCON', attr_);
client_sys.Add_To_Attr('LU', 'EcoRequestLevel', attr_);
client_sys.Add_To_Attr('TYPE', 'Basic Data', attr_);
client_sys.Add_To_Attr('USE_TRANSLATION_DB', 'TRUE', attr_);
client_sys.Add_To_Attr('SHOW_PROG_LANGUAGE_DB', 'TRUE', attr_);
client_sys.Add_To_Attr('USE_TRANSLATION_EDITED_DB', 'FALSE', attr_);
LANGUAGE_SYS_IMP_API.New__(info_, objid_, objversion_, attr_, action_);
END;
I used this along with an RMB option at the Basic data window in order to give the user ability to enter the translations along with the basic data entry.
Hope this helps.