How to create an alias to a subtype?
Hi,
How can I create an alias to a subtype?
I.e. How can I asscciate a name with a subtype?
Associate DOM_ADDRES with the type CHAR(50) or
associate DOM_TELNO with the type NUMBER(10,0)
so I can use it in the creation of a table like
CREATE TABLE T1 (id INTEGER, addr DOM_ADDRES , tel DOM_TELNO);
I tried CREATE DOMAIN statement -> Not working, statement not
exists.
I tried SUBTYPE lll IS CHAR(3) but it only works in PL/SQL
programming, I can't create tables with that.
Is it possible? Am I doing something wrong?
I think subtyping and aliasing is very useful for readability and
reuse.
I don't want to use CREATE TYPE AS OBJECT, I do not need objects
in my DB.
I am using Oracle 8.1.7 for Linux.
TIA,
Jose P.
In my .profile this works: alias f="/Applications/Firefox.app/Contents/MacOS/firefox -P doug"
for starting under my profile. Make sure you run source ~/.profile if you add an alias to .profile
Starting default FFox profile is /Applications/Firefox.app/Contents/MacOS/firefox -P swxazqvy.default
And for Desktop icon to start whichever profile, open Script Editor and paste with proper changes(and save as an app(maybe to Desktop again?) :
do shell script "/Applications/Firefox.app/Contents/MacOS/firefox -P doug"
And you can make an executable with icon in a bash script with above and chmod u+x it and save to Desktop too.
Message was edited by: doug pennington
Similar Messages
-
How to create an alias from the command line
Hi
I would like to know how to create an alias (for a file, not a command) from the command line. I don't want to use the ln command, as an alias has more interesting features than soft/hard links... Is there an Apple specific tool to do this?
Thanks
-Jerome
Mac OS X (10.4.10)The only straightforward way that I am aware of for creating a "Finder" alias from the command line is using AppleScript via 'osascript'. Of course, it's not really a command line solution since the "Finder" has to be running. Anyway, something along the lines of:
<pre style="overflow:auto; padding: 5px; width: 500px ; font-size: 10px; border:1">osascript -e 'tell application "Finder" to make alias file to POSIX file "/full/path/to/file" at POSIX file "/full/path/to/folder"'</pre> -
How to create an alias for a custom command line with paramters
Is it possible to create an icon that runs a terminal command line ?
What i want to do is start firefox with a specific profile. In terminal this is done by using Firefox -P [profileName]
How can I put this in an alias (or something else) ?
I tried creating an alias that changing the original but it won't let me insert a command line.
Any help ?In my .profile this works: alias f="/Applications/Firefox.app/Contents/MacOS/firefox -P doug"
for starting under my profile. Make sure you run source ~/.profile if you add an alias to .profile
Starting default FFox profile is /Applications/Firefox.app/Contents/MacOS/firefox -P swxazqvy.default
And for Desktop icon to start whichever profile, open Script Editor and paste with proper changes(and save as an app(maybe to Desktop again?) :
do shell script "/Applications/Firefox.app/Contents/MacOS/firefox -P doug"
And you can make an executable with icon in a bash script with above and chmod u+x it and save to Desktop too.
Message was edited by: doug pennington -
How can Create an alias in orion?
I have a plroblem, i'm using apache like web server, there is a site working, Somebody assign me the task for use orion like jsp server, in apache there are alias to folders with images and another files and directories, i want check this site from orion and appears errors, i suppose that errors are cause the alias, i would ask you how create these alias in orion.
Another doubt, how can run apache an orion together.
I have modified the archives xml in orion for restrict certains directories (in directories config and default-web-app), but i must acces into orion services, i made some examples for try, i can use this in the site running in apache.
I graceful with you if can help me, thanks and regards.you dont create a infopack on DTP rather you need to create on datasource.
rightclick on datasource - create infopack (when you schedule this infopack, it will load data only till PSA. From there you need to use DTP to load to further data targets) -
Hi,
I want to create new alias in Desktop that links to my home folder.
Could you help me please?
Thank you so much.Hello and welcome to the discussions, It is quite simple to do this. First open Macintosh HD>Users> your home folder will be in that. While holding the "Cnrl" key down, click on the home folder. A drop-down menu will appear. Choose "Make Alias". The alias will show up in the same folder, drag it to your desktop. Your done.
Cheers,
Glynn -
HT4897 How do I an alias? I can't seem to get off the landing page!!
I'm trying to create an additional alias (have one alias currently; two email addresses) and on logging in to iCloud mail, and I can't seem to follow the instructions on how to create an alias. The program won't let me move any further . . FRUSTRATED!!!
Are you going at icloud.com?
Once you login, click on Mail then the little wheel at the top-right to get into your preferences. There you should see an Account icon where you can manage your aliases.
Note that if you just deleted somes of your aliases, you may have to wait couple of days in order to create new ones. -
How to create an External Alias for a Portal URL ?
Hi Gurus,
Can anybody tell me how to create an external alias for a portal link(URL). Actually, my problem is i want to send this Portal URL(link) thru' a SendMail step to the user so that when he clicks on it, it will take him to his UWL(Ofcourse after signing-in). As this URL length is > 80 char(101 char), i am not getting the full lenght URL in my Outlook mail. THough we are on ECC 6.0,Basis Rel 7.0, as per the OSS note 559234, we should have this length extended to 132 bytes. But, for some reason, its not happening. And,in the same OSS note, it was mentioned that we can use external aliases to achieve this(shortening the URL length).
Can anybody tell me how to achieve this, either thru' increasing the URL length or thru' ext. aliases.
Please reply asap.
Thanks in advance
venuNot an issue as of now. I'll open up again if needed
-
In Mavericks, how do I create an alias to my home folder, complete with the little house icon, to put on my desktop, please? I can get the folder, but not with the icon.
Chris Mack
As you were, solved, thank you. CM
Message was edited by: ccrmOpen Finder. Under Preferences > Sidebar > Devices > check Hard disks.
Navigate to your home folder from "Macintosh HD" (or whatever the name of your boot volume is) in the finder. Set the view to column.
Once you reach the path of your home folder, select it, hold down the key combination option + command and drag the alias to your desktop. -
I created an alias precisely because I wanted to make it the new default name and then quickly realized it wasn't possible. How long after deleting the alias will it become available again so that I can create a new account with it?
I'm trying to make iCloud mail my primary email but I'm concerned that I may have lost the perfect email address forever.I have the same problem. After our wedding I've created an alias ([email protected]) to my actual AppleID Account ([email protected]). Now I'd the idea to delete the alias and my actual AppleID to create a new AppleID with ([email protected]).
Is there really no possibilty to do this?
Thanks in advance for quick and positive feedback. -
Re: How to create new subtypes for OM Custom infotype
Hi Gurus,
I facing problem when creating for Subtypes in OM , i need create Infotyes with Subtypes in OM.Check below steps how i created
1. I create Structure in se11. HRI9119
2. In PPCI , i create infotype 9119
3.In SM30 , I Maintain table T777i, here i selected my infotype (9119), then i clicked on infotype per object type and assign subtype (9229, 9339) to the my infotype .
4. After that, in same screen, i selected my infotype and assign TIME CONSTANT to my all subtype and infotypes.
After this , any think required to maintain , Plz tell me.. i didn't find my subtype in PP01.
Thanks and Regards ,
Venkatesh.MHi Venkatesh,
The new subtype has to be maintained in table V_778U.Also you need to relate the new subtype to object type in table T777Z and miantain the time contraints.
Please refer following path in IMG for further information
Personnel Mgt > OM > Basic settings > Data model enhancement
Hope this helps.
Regards,
Malathi V. -
How we create custom infotype and how to configure with its subtypes.
hai abap-hr gurus,
how to create custom infotype and how to configure with its subtypes. when i am creating infotypes i am not getting how to configure subtypes.
plz help me for this with an example code.
thanks..
kiran kumarHi Kiran,
Please fallow the below steps to create the custom infotype. If you have any quires let me know.
For Creation of Infotype first Go to Transaction PM01, Enter the custom Infotype number which you want to create, it should be a 4 digit number and have to start with 9xxx.
then select the `Employee Infotype' radio button
after that select the `PS Structure Infotype'
then click on Create A separate table maintenance window appears
then Create a PS structure with all the fields you want on the infotype
Save and Activate the PS structure
now Go back to the initial screen of PM01
Click on `All' push button. It takes a few moments
Click on `Technical Characteristics. Infotype list screen appears
Click on `Change'(pencil) button
Now select your Infotype and click on `Detail' (magnifying glass) button
Give `T591A' as subtype table & also Give `T591S' as subtype txt tab
Give your subtype field as subtype field & Save and come back to PM01 initial screen
Click on `Infotype Characteristics' Infotype list screen appears
Click on `Change' (pencil) button & on New Entries
and then Enter your Infotype number and short text Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference
to fill yours). Now save ur entries
Now the Infotype is created and ready to use.
If you want to change the layout of the Infotype as per your
requirement
In the PM01 initial screen Select `Screen' radio button and give
2000 as the screen name, then click on edit.
In the next screen.. Select `Layout Editor' and click `Change'.
Screen default layout appears here you can design/modify the
screen..change the attributes of the fields..etc.
Save and activate. (Don't forget to `Activate at every level)
Regards,
Ramakrishna kotha. -
How to create IT0128 subtype-02 record using HR_INFOTYPE_OPERATION
Hi All,
Can anyone suggest how to use HR_INFOTYPE_OPERATION to create/insert a record in IT0128 for an employee from an ABAP program.
Some background:::
Note that the field - "Short Title" which is mandatory in this Infotype. And it uses a Q-structure for its processing. Also it stores this field using a combination of text object, text id, language and text name.
Text object = HRMESS
Text id = HR_P
Goto SE16 of an employee and check PA0128, you will notice above fields. The actual value is stored somewhere in system memory using a combination of above 4 fields.
When i try using my program, it gives me an error "Make an entry in all required fields" (so not able to find how/what should i pass for field "Short Title"). Can anyone suggest how should i use HR_INFOTYPE_OPERATION to create an IT0128 record for subtype 02.
Appreciate any help asap!!
Best Regards,
Abbasi Sadikot
PS: Please dont post your reply if you dont have any idea of what this is.Hi
HR_INFOTYPE_OPERATION -> calls -> HR_MAINTAIN_MASTERDATA -> this Func. Mod. then creates a batch and calls ->
-> IF DIALOG_MODE EQ '0'.
-> CALL DIALOG 'HR_MAINTAIN_MASTER_DATA' USING BDCDATA MODE 'N'
-> EXPORTING
the SY-SUBRC value after this should be zero. But it isn't. Can anybody suggest something. Or have any idea as what could be going wrong ??
Here is my program by which i am trying to create IT0128 subtype-02:
REPORT ZABTWTEST .
data: it0128 like p0128 occurs 0 with header line.
data: return like BAPIRETURN1.
it0128-pernr = '20123001'.
it0128-subty = '2'.
it0128-begda = '20090101'.
it0128-endda = '20090131'.
it0128-SPRSL = 'EN'.
it0128-OBJCT = 'HRMESS'.
it0128-TXTID = 'HR_P'.
it0128-OBNAM = '<internally assigned name>'.
append it0128.
CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
EXPORTING
number = '20123001'
validitybegin = '19000101' .
loop at it0128.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0128'
number = '20123001'
VALIDITYEND = it0128-endda
VALIDITYBEGIN = it0128-begda
record = it0128
operation = 'COP'
TCLAS = 'A'
NOCOMMIT = 'X'
IMPORTING
RETURN = return .
endloop.
CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
EXPORTING
number = '20123001'
validitybegin = '19000101' .
write return. .
Kindly correct me if i am wrong anywhere.
Regards,
Abbasi -
How to create new subtypes for OM infotype 1002?
Gurus,
I have a requirement to create four new subtypes (to different texts ) for OM infotype HRP1002.
Let me know the procedure to achieve this.
I looked in subtype table T591A and T591S, but couldn't find any subtype (even the standard ones like 0001,0002,0003 etc) for 1002 infotype.
Thanks,
Amit JainHi Amitkumar Jain,
I am also facing same problem, i need create Infotyes with Subtypes in OM.Check below steps how i created
1. I create Structure in se11. HRI9119
2. In PPCI , i create infotype 9119
3.In SM30 , I Maintain table T777i, here i selected my infotype (9119), then i clicked on infotype per object type and assign subtype (9229, 9339) to the my infotype .
4. After that, in same screen, i selected my infotype and assign TIME CONSTANT to my all subtype and infotypes.
After this , any think required to maintain , Plz tell me.. i didn't find my subtype in PP01.
Thanks and Regards ,
Venkatesh.M -
How to Create a subtype..Hi Experts,
Hello SAP Minds,
How to create a subtype for an infotype..? can any body tell the procedure to create a subtype..?
Thanks in advance.
vamsi.to Transaction PM01.
2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
3) Select the Employee Infotype radio button.
4) Select the PS Structure Infotype.
5) Click on Create A separate table maintenance window appears
6) Create a PS structure with all the fields you want on the Infotype
7) Save and Activate the PS structure
8) Go back to the initial screen of PM01.
9) Click on All push button. It takes a few moments.
10) Click on Technical Characteristics. Infotype list screen appears
11) Click on Change(pencil) button
12) Select your Infotype and click on Detail (magnifying glass) button
13) Give T591A as subtype table
14) Give T591S as subtype txt tab
15) Give your subtype field as subtype field
16) Save and come back to PM01 initial screen
17) Click on Infotype Characteristics Infotype list screen appears
18) Click on Change (pencil) button
19) Click on New Entries
20) Enter your Infotype number and short text
21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotypes infotype characteristics screen and use as the reference to fill yours)
22) Save your entries.
23) Now the Infotype is created and ready to use.
24) If you want to change the layout of the Infotype as per your requirement
25) In the PM01 initial screen Select Screen radio button and give 2000 as the screen name, then click on edit.
26) In the next screen.. Select Layout Editor and click Change.
27) Screen default layout appears here you can design/modify the screen..change the attributes of the fields..etc.
28) Save and activate. (Dont forget to Activate at every level -
How to create a report based on a DataSet programatically
I'm working on a CR 2008 Add-in.
Usage of this add-in is: Let the user choose from a list of predefined datasets, and create a totally empty report with this dataset attached to is. So the user can create a report based on this dataset.
I have a dataset in memory, and want to create a new report in cr2008.
The new report is a blank report (with no connection information).
If I set the ReportDocument.SetDataSource(Dataset dataSet) property, I get the error:
The report has no tables.
So I must programmatically define the table definition in my blank report.
I found the following article: https://boc.sdn.sap.com/node/869, and came up with something like this:
internal class NewReportWorker : Worker
public NewReportWorker(string reportFileName)
: base(reportFileName)
public override void Process()
DatabaseController databaseController = ClientDoc.DatabaseController;
Table table = new Table();
string tabelName = "Table140";
table.Name = tabelName;
table.Alias = tabelName;
table.QualifiedName = tabelName;
table.Description = tabelName;
var fields = new Fields();
var dbField = new DBField();
var fieldName = "ID";
dbField.Description = fieldName;
dbField.HeadingText = fieldName;
dbField.Name = fieldName;
dbField.Type = CrFieldValueTypeEnum.crFieldValueTypeInt64sField;
fields.Add(dbField);
dbField = new DBField();
fieldName = "IDLEGITIMATIEBEWIJS";
dbField.Description = fieldName;
dbField.HeadingText = fieldName;
dbField.Name = fieldName;
dbField.Type = CrFieldValueTypeEnum.crFieldValueTypeInt64sField;
fields.Add(dbField);
// More code for more tables to add.
table.DataFields = fields;
//CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo info =
// new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
//info.Attributes.Add("Databse DLL", "xxx.dll");
//table.ConnectionInfo = info;
// Here an error occurs.
databaseController.AddTable(table, null);
ReportDoc.SetDataSource( [MyFilledDataSet] );
//object path = @"d:\logfiles\";
//ClientDoc.SaveAs("test.rpt", ref path, 0);
The object ClientDoc referes to a ISCDReportClientDocument in a base class:
internal abstract class Worker
private ReportDocument _ReportDoc;
private ISCDReportClientDocument _ClientDoc;
private string _ReportFileName;
public Worker(string reportFileName)
_ReportFileName = reportFileName;
_ReportDoc = new ReportDocument();
// Load the report from file path passed by the designer.
_ReportDoc.Load(reportFileName);
// Create a RAS Document through In-Proc RAS through the RPTDoc.
_ClientDoc = _ReportDoc.ReportClientDocument;
public string ReportFileName
get
return _ReportFileName;
public ReportDocument ReportDoc
get
return _ReportDoc;
public ISCDReportClientDocument ClientDoc
get
return _ClientDoc;
But I get an "Unspecified error" on the line databaseController.AddTable(table, null);
What am i doing wrong? Or is there another way to create a new report based on a DataSet in C# code?Hi,
Have a look at the snippet code below written for version 9 that you might accommodate to CR 2008, it demonstrates how to create a report based on a DataSet programmatically.
//=========================================================================
+ * the following two string values can be modified to reflect your system+
+ ************************************************************************************************/+
+ string mdb_path = "C:
program files
crystal decisions
crystal reports 9
samples
en
databases
xtreme.mdb"; // path to xtreme.mdb file+
+ string xsd_path = "C:
Crystal
rasnet
ras9_csharp_win_datasetreport
customer.xsd"; // path to customer schema file+
+ // Dataset+
+ OleDbConnection m_connection; // ado.net connection+
+ OleDbDataAdapter m_adapter; // ado.net adapter+
+ System.Data.DataSet m_dataset; // ado.net dataset+
+ // CR variables+
+ ReportClientDocument m_crReportDocument; // report client document+
+ Field m_crFieldCustomer;+
+ Field m_crFieldCountry;+
+ void CreateData()+
+ {+
+ // Create OLEDB connection+
+ m_connection = new OleDbConnection();+
+ m_connection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + mdb_path;+
+ // Create Data Adapter+
+ m_adapter = new OleDbDataAdapter("select * from Customer where Country='Canada'", m_connection);+
+ // create dataset and fill+
+ m_dataset = new System.Data.DataSet();+
+ m_adapter.Fill(m_dataset, "Customer");+
+ // create a schema file+
+ m_dataset.WriteXmlSchema(xsd_path);+
+ }+
+ // Adds a DataSource using dataset. Since this does not require intermediate schema file, this method+
+ // will work in a distributed environment where you have IIS box on server A and RAS Server on server B.+
+ void AddDataSourceUsingDataSet(+
+ ReportClientDocument rcDoc, // report client document+
+ System.Data.DataSet data) // dataset+
+ {+
+ // add a datasource+
+ DataSetConverter.AddDataSource(rcDoc, data);+
+ }+
+ // Adds a DataSource using a physical schema file. This method require you to have schema file in RAS Server+
+ // box (NOT ON SDK BOX). In distributed environment where you have IIS on server A and RAS on server B,+
+ // and you execute CreateData above, schema file is created in IIS box, and this method will fail, because+
+ // RAS server cannot see that schema file on its local machine. In such environment, you must use method+
+ // above.+
+ void AddDataSourceUsingSchemaFile(+
+ ReportClientDocument rcDoc, // report client document+
+ string schema_file_name, // xml schema file location+
+ string table_name, // table to be added+
+ System.Data.DataSet data) // dataset+
+ {+
+ PropertyBag crLogonInfo; // logon info+
+ PropertyBag crAttributes; // logon attributes+
+ ConnectionInfo crConnectionInfo; // connection info+
+ CrystalDecisions.ReportAppServer.DataDefModel.Table crTable;+
+ // database table+
+ // create logon property+
+ crLogonInfo = new PropertyBag();+
+ crLogonInfo["XML File Path"] = schema_file_name;+
+ // create logon attributes+
+ crAttributes = new PropertyBag();+
+ crAttributes["Database DLL"] = "crdb_adoplus.dll";+
+ crAttributes["QE_DatabaseType"] = "ADO.NET (XML)";+
+ crAttributes["QE_ServerDescription"] = "NewDataSet";+
+ crAttributes["QE_SQLDB"] = true;+
+ crAttributes["QE_LogonProperties"] = crLogonInfo;+
+ // create connection info+
+ crConnectionInfo = new ConnectionInfo();+
+ crConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;+
+ crConnectionInfo.Attributes = crAttributes;+
+ // create a table+
+ crTable = new CrystalDecisions.ReportAppServer.DataDefModel.Table();+
+ crTable.ConnectionInfo = crConnectionInfo;+
+ crTable.Name = table_name;+
+ crTable.Alias = table_name;+
+ // add a table+
+ rcDoc.DatabaseController.AddTable(crTable, null);+
+ // pass dataset+
+ rcDoc.DatabaseController.SetDataSource(DataSetConverter.Convert(data), table_name, table_name);+
+ }+
+ void CreateReport()+
+ {+
+ int iField;+
+ // create ado.net dataset+
+ CreateData();+
+ // create report client document+
+ m_crReportDocument = new ReportClientDocument();+
+ m_crReportDocument.ReportAppServer = "127.0.0.1";+
+ // new report document+
+ m_crReportDocument.New();+
+ // add a datasource using a schema file+
+ // note that if you have distributed environment, you should use AddDataSourceUsingDataSet method instead.+
+ // for more information, refer to comments on these methods.+
+ AddDataSourceUsingSchemaFile(m_crReportDocument, xsd_path, "Customer", m_dataset);+
+ +
+ // get Customer Name and Country fields+
+ iField = m_crReportDocument.Database.Tables[0].DataFields.Find("Customer Name", CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault);+
+ m_crFieldCustomer = (Field)m_crReportDocument.Database.Tables[0].DataFields[iField];+
+ iField = m_crReportDocument.Database.Tables[0].DataFields.Find("Country", CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault);+
+ m_crFieldCountry = (Field)m_crReportDocument.Database.Tables[0].DataFields[iField];+
+ // add Customer Name and Country fields+
+ m_crReportDocument.DataDefController.ResultFieldController.Add(-1, m_crFieldCustomer);+
+ m_crReportDocument.DataDefController.ResultFieldController.Add(-1, m_crFieldCountry);+
+ // view report+
+ crystalReportViewer1.ReportSource = m_crReportDocument;+
+ }+
+ public Form1()+
+ {+
+ //+
+ // Required for Windows Form Designer support+
+ //+
+ InitializeComponent();+
+ // Create Report+
+ CreateReport();+
+ //+
+ // TODO: Add any constructor code after InitializeComponent call+
+ //+
+ }+//=========================================================================
Maybe you are looking for
-
ITunes Producer doesn't complete upload?
Hello, I completed the process of adding my book through iTunes Producer. I click the "Deliver" button and it appears to upload. I get a big green check mark but the "Next" button never becomes clickable. When I log in to iTunes Connect and click on
-
Validation Failed. Creation Web Service Proxy
Hi, all I've got a problem with JDeveloper 10.1.3 when I try to create a web serviceproxy using the wizard. My service class is next, package swa; import java.awt.Graphics; import java.awt.Image; import java.awt.Toolkit; import java.awt.color.ColorSp
-
Multiple Exchange Activesync Contact Lists (Independent or merged?)
Hi, I currently use a 9900. I have a work outlook 365 account with E1 Blackberry plan. I also have a personal outlook.com account.. The contacts from these accounts sync perfectly to my BB 9900 and remian in separate contact lists. The two accounts
-
I have recorded some actions in Photoshop and placed them in my own Actions group. I know they are there because I can use them when I open Photoshop but I am unable to find them anyplace on my system (I work on a Mac but I am not sure that is import
-
Low lv access on /dev/sr0 in order to burn disc with continous beam
Topic pretty much says it all but i'll elaborate. Goal: blackening a whole disc with a continous beam of the laserdiode in burn mode Backround: graphene-oxide exfoliation via laserlight (the laser is abused as a means to deliver an infrared highpower