How to define TYPE GROUP?
Hello,
I would ike to use few custom types across several programs/routines. Shall I define TYPE GROUP? If yes , how to do it?
Thanks
Hi,
I prefer defining data elements, structures and table types. These types can easily be analysed dynamically in an ABAP program so they provide a higher flexibility. Also you can add (SapScript) Documentation.
You can define a type-group in SE80 - Other Object - Data Dictionary - Type Group.
Regards, Gerd Rother
Similar Messages
-
COPA:KEU1:how to define Product group
Dear all,
I would like to create a assessment in COPA, some expense will be allocated to the certain products, this means I can not specify 'From To'. so I have to create a Group which include these products for it.
I do not know how to define this group, would anyone help me?
Rgds,
BenHi,
many, many thanks. That was exectly what I was looking for!!!
Bye
Torsten
P.S.: the different perspective on SAP NW 7.0/2004s starting from IT-Practices=>IT-Scenarios=>Usages Types is great and should not be restricted to the NW Application stack, but also to SAP ECC and its modules starting from a Business-Practice=>Business-Scenario=>relevant parts of the customizing. IS there something like that out there???? -
How to define replication groups?
Hai All!
Can anybody suggest steps in detail to define a groups in a cluster of
servers for the purpose of inline memmory replication through console or by any
other way? I am unable to find neccessary info regarding this in docs.
Note i want help regarding how to define a group and not the assigning primary
and secondary groups to the servers in a cluster.
TIA
Rgds
Manohar
Hi,
For most situations, there is no need to define a replication group. Simply define
the machines and servers in your cluster and denote which servers are located on
which machines. WebLogic will do its best to make sure that the primary and
secondary are not located on the same machine. Replication groups allow you to
have more control over the selection of secondary server selection if you had some
extraordinary situation where you needed something other than making sure the
primary and secondary copies were on servers located on different machines.
Hope this helps,
Robert
Manu Kar wrote:
> Hai All!
>
> Can anybody suggest steps in detail to define a groups in a cluster of
> servers for the purpose of inline memmory replication through console or by any
> other way? I am unable to find neccessary info regarding this in docs.
>
> Note i want help regarding how to define a group and not the assigning primary
> and secondary groups to the servers in a cluster.
>
> TIA
> Rgds
> Manohar
-
Requirement is at the time of delivery user wants some deviation from the mentioned quantity in Sales order. I think this can be done by maintaining Tolerance group which will be active at the time of Shipping.
Kindly explain the complete config of this Tolerance group.
thanks
anyayou define tolerance groups that group together tolerance limits for creating new open items.
For that Goto OVD6 and OVD4, manintain the required settings.
You define the absolute and/or percentage tolerance limits for your tolerance group in the application itself, under Settings -> Maintain tolerances. You assign your tolerance group to your sold-to party in the application under Settings -> EDI partner for user.
To define a new tolerance group, proceed as follows:
1. Choose New Entries.
2. Enter a reference and a name for the tolerance group.
3. Choose Save.
Further notes
You can create a tolerance group with a blank key, so that this group is used as a default whenever the Tolerance group field is left blank in the Inbound customer parameters (Settings -> Inbound customer parameters). In this way, a tolerance check is always carried out, even if no tolerance limit is entered.
Hope it is useful... -
How to define screen group?
friends,
I have a screen where there are two table controls...based on the line selection in teh first table control, the no. of lines in the table control 2 gets input enabled...if for a particular entry in the 1st tbl., there are more than 3 entries, then i need to make the entire 2nd tbl control input disabled...how to do this...i have tried assigning a screen group to the fields, but when i define the same in the prog. it says the object screen doesn't have a component group...can anyone explain with some example? thank youin screen painter assign fields to group in the properties window that is opened when we double click on a field.
We can mention group name in the boxes beside GROUPS.
Specifying three-character identifiers for modification groups 1 to 4
allows you to group fields together. You can process them all at the
same time in the program using SCREEN modification statements. -
Define User/Group for an SMB share being mounted!
Ave,
Mac OS X 10.3.9 had a very easy way of defining UID & GID of a share being mounted on a mount point, to define an Owner of the content.
mount_smbfs -u 70 -g 70 //usr:pwd@ip/share SharePoint
This would make Apache Web Server the User/Group for the mounted share, and this way PHP could access the files on the mounted share with no problems.
Leopard has elimited that -u & -g arguments to mount_smbfs, and I can't for the life of me figure out how to define User/Group on a share being mounted.
Any clues?sudo -u www mount_smbfs -f 0777 -d 0777 //usr:pwd@ip/share node fixed it!
-
How to add reference to a type group from ABAP webdynpro?
Hi,
When I copied the webdynpro application from a system to another with SCWB, the referenced types in type groups are reported not defined, even the types from basic type group ABAP - the type groups are defined in both systems, the webdynpro app works well in the original system.
And I didn't find the way to add type group references in webdynpro with "TYPE-POOLS:". Anybody knows how to handle this?
Thanks and regards, SaidOK I found it.
Under my main program there is a global include. A co-worker called it somehting different.
So it had:
type-pools: rs, rsr, rro01, rrk, rro04.
And I change it to:
type-pools: rs, rsr, rro01, rrk, rrs0, rro04.
Yes, Then when I r-click on the main program and select "Rebuild Object List" then it added the type group under "Type Group".
Mike -
How to define a Sub Type in IT0717
Hi Experts,
Currently working on Benefit point account.
could some one tell me how to define a Sub Type for IT717.
how do i configure.
Appreciate your response.
Regards
RajHi,
I have created the subtype in the table you specified.
But unable to see the created subtypes for IT552 in PA30.
Appreciate your further inputs.
Regards
Rajesh.N.S -
How to convert Collection to user defined type in db
Hello All,
I am using Apex 4.1.0.00.32 and Oracle 11g.
I have page process to store the user selected rows (keys) in a collection as follows:
declare
temp varchar2(4000);
vrow number;
begin
apex_collection.CREATE_OR_TRUNCATE_COLLECTION('SELECTED_PERSONS');
IF (apex_application.g_f32.COUNT > 0) THEN
FOR ii IN 1 .. htmldb_application.g_f32.COUNT
LOOP
vrow := apex_application.g_f32(ii);
APEX_COLLECTION.ADD_MEMBER('SELECTED_PERSONS', apex_application.g_f30(vrow));
END LOOP;
END IF;
end;I need to call a database function which takes an user defined type VC_ARRAY_1 defined as:
create or replace TYPE "VC_ARRAY_1" AS TABLE OF VARCHAR2(4000) How do I convert the collection to VC_ARRAY_1, so that I can call the db function?
Thanks,
RoseHi Joel,
Yes, the collection contains the person_ids. But, I am selecting from a function which returns a pipelined table. In Oracle Database, few user defined types and functions are defined as given below:
create or replace TYPE "VC_ARRAY_1" as table of varchar2(4000)
create or replace FUNCTION "GET_ARRAY" ( p_array IN varchar2, p_delimiter IN varchar2 default ':') return VC_ARRAY_1 PIPELINED
create or replace TYPE "AFFECTED_INDIVIDUAL" as object("PERSONKEY" VARCHAR2(4000), "FIRST_NAME" VARCHAR2(4000), "LAST_NAME" VARCHAR2(4000)… more variables)
create or replace TYPE "AFF_IND_TAB" as table of "AFFECTED_INDIVIDUAL"
create or replace FUNCTION GET_AFF_INDIVIDUALS(personKeys IN VC_ARRAY_1) return AFF_IND_TAB PIPELINEDThe function GET_AFF_INDIVIDUALS uses several tables and returns pipelined table. In Apex, I have a SQL query that feeds the Report query.
select * from table (get_aff_individuals(get_array(:F_SELECTED_PERSONS, ',')))The application item F_SELECTED_PERSONS is a varchar2 that contains comma separated person ids. I want to replace the application item with Apex collection. Initially, I thought that I can convert the apex collection to an array of vc_array_1.
Thanks for your time and help.
Rose -
How can a type defined in a PL/SQL package be used by an object?
How can a type defined in a PL/SQL package be used by an object?
In the PL/SQL Reference manual it says that object attributes can be
types defined inside a PL/SQL package: How do you make this work?
Here is a sample that demonstrates what I am trying to do:
CREATE OR REPLACE
PACKAGE Phone IS
TYPE Phone_rectype IS RECORD (
Main VARCHAR2(12),
Home VARCHAR2(12),
Business VARCHAR2(12),
Mobile VARCHAR2(12),
Fax VARCHAR2(12),
Pager VARCHAR2(12)
END Phone;
CREATE OR REPLACE
TYPE customer_type
AS OBJECT (
CustNo NUMBER,
CustName VARCHAR2(30),
PhoneNumber Phone.Phone_rectype
This is the error that i get:
Warning: Type created with compilation errors.
Errors for TYPE CUSTOMER_TYPE:
LINE/COL ERROR
0/0 PL/SQL: Compilation unit analysis terminated
5/15 PLS-00201: identifier 'PHONE.PHONE_RECTYPE' must be declared
nullThat's a good point, Justin - thanks for the advice. At the moment, our process of data validation isn't very well defined, so the table definitions aren't always the same beyond a core set. As we get more automated and able to develop table definitions flexible enough to accomodate all the quirks in client data, I may be able to consider moving to a single schema to take advantage of maintenance and performance improvements. My ultimate concern with doing that is that the datasets we're dealing with can be tens of millions of rows in size. Clearly, I'm no DBA, but I just assumed that we would be able to churn through these datasets faster if they were in a schema by themselves rather than lumped together into one huge half-a-billion row table?
-
How to define a mail group email address?
Hi,
I have defined several groups and would like to use them as a mail group. By the default the address is [email protected]
I have defined several virtual domains on my server that can accept mails for individual user. I would like to have the following address working [email protected]
How can I set it up as the email cannot be set for groups in the workgroup manager (It is only working for users).
I also tried with the directory utility but I can create an Emailaddress key for a group or an user but it is not taken into account by the mail server. (workgroup manager probably does more than just creating an entry on the open directory :-( )
Thanks for you help !
Frédéricgroup addresses have been broken for some time.
I've used scripts to create aliases based on a group name and its members.
Below is a script that I've used on 10.7 with users in LDAP.
Any group which has a comment of 'mail' will be turned into an alias with the proper recipients.
You'll need to run it on a schedule (unless you want to run it manually) and you'll need to modify it for 10.8 and your specific environment.
I'll try to put together a 10.8 version sometime soon...
cd /etc/postfix
# clear current aliases
echo "" > group_aliases.tmp
# Get list of groups with 'mail' in the comment field
gr=`dscl /LDAPv3/127.0.0.1 -list /Groups Comment | grep mail | awk '{print $1}'`
for group in $gr
do
echo $group: `dscl /LDAPv3/127.0.0.1 -read /Groups/$group dsAttrTypeNative:memberUid | cut -d : -f 3 | grep -v "No such key"` >> group_aliases.tmp
done
cmp -s group_aliases.tmp group_aliases > /dev/null
if [ $? -eq 1 ]; then
echo different
cp group_aliases.tmp group_aliases
/usr/sbin/postalias /etc/postfix/group_aliases
/usr/bin/newaliases
else
echo same
fi
exit -
How to define complex type with table per record?
Hi,
for one of my tasks I'm dealing with XML export. After short investigation of the postings in the forum I found an acceptable solution:
Re: Convert ABAP to XML and Vice versa
The issue is that I need an XML file like this:
<plant>
<material>
<purchases>data</purchases>
<purchases>data</purchases>
<purchases>data</purchases>
<sales>data</sales>
<sales>data</sales>
<sales>data</sales>
</material>
<next material>
</next material>
</plant>
So here are the questions:
1. Is it possible (and how) to define such deep structured type where for each record (means material) there is at least 1 internal table connected to that record? That would let me use a record-2-DOM conversion and a standard DOM-2-XML renderer.
2. Could anyone please provide a very simple and short example?
Of course, I could write my own XML renderer and achieve what I need (without using DOM, simply write to file all the desired XML tags while looping at my *nested* tables), but if there is a way to define such a structured type and further to fill it with data, it would help me learn a little bit more about abap opportunities and would save me a bit more time to create a renderer.
Many thanks in advance.
Regards,
Ivaylo MutafchievHi,
You can declare deep structure as below
TYPES : BEGIN OF ty_address,
house(10) TYPE c,
street(10) TYPE c,
END OF ty_address.
TYPES : BEGIN OF ty_itab,
name(10) TYPE c,
age TYPE i,
address TYPE ty_address OCCURS 0,
END OF ty_itab.
DATA : i_address TYPE STANDARD TABLE OF ty_address,
i_itab TYPE STANDARD TABLE OF ty_itab.
DATA : wa_address TYPE ty_address,
wa_itab TYPE ty_itab.
CLEAR : wa_address,
wa_itab.
wa_address-house = 'House1'.
wa_address-street = 'Street1'.
APPEND wa_address TO i_address.
wa_address-house = 'House2'.
wa_address-street = 'Street2'.
APPEND wa_address TO i_address.
wa_itab-name = 'Test'.
wa_itab-age = 10.
wa_itab-address[] = i_address[].
APPEND wa_itab TO i_itab.
Also check structure BSPL_GRID_FIELDCAT field CELL_COLOR -
how to define a schema for fixed length consisting of multiple records of different types having header detail and footer at positions 22 and 23 namely having 10 for header ,20 for detail and 30 for footer.
here is the sample file
DDWTYBILL13092502572 1000000112\\NHLSFS\ORACLE\ORACLE\BILLING\VERIFY\ 2013/09/25 01:19:08 BILLEND
DDWTYBILL13092502572 2000000212PRIVATE PRIVATE STY5572142 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731543 Suspect TB ?CA, (L) EMPIEEM Ward A2 TYGERBERG HOSPITAL Z03.0 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000312PRIVATE PRIVATE STY5572149 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731548 Empyema BPF Ward A2 TYGERBERG HOSPITAL Z03.9 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000412PRIVATE PRIVATE STY5572351 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731584 Suspect TB ?EMPIEEM, ?CA Ward A2 TYGERBERG HOSPITAL Z03.0 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000512PRIVATE PRIVATE STY5572352 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731585 Suspect TB ?EMPIEEM, ?CA Ward A2 TYGERBERG HOSPITAL Z03.0 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000612MAJOR MAJOR STY5577530 010700 INV 12ZTYG000009 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNS ZOZI,S,SIYAMBONGA 27-MAR-2010 TYG D3 DR MAHOMED 5602181 113799662 TB731663 Lymphadenitis Ward D3 TYGERBERG HOSPITAL I88.9 Z03.9 H1 07-AUG-201307-AUG-201324-SEP-2013MEND 58.52
DDWTYBILL13092502572 2000000712MAJOR MAJOR STY5577537 010700 INV 12ZTYG000009 06-AUG-20130000010472 STY STY 1100611006MGIT 91 NNS DLAMINI,N,NTLANTLA 09-OCT-1976 TYG F1 DR WZESE 5602181 135524676 TB731666 Suspect TB Ward F1 TYGERBERG HOSPITAL Z03.0 Z03.9 H1 07-AUG-201314-AUG-201324-SEP-2013MEND 58.52
DDWTYBILL13092502572 30003034120000003032ENDYou can create an nXSD using Native Format Builder and use lookAhead attribute to read values at specific position and use that as the choice. You can find an example here
http://docs.oracle.com/cd/E11036_01/integrate.1013/b28994/nfb.htm#BGBBAJFD -
How to execute function takes user defined type parameters as input &output
Hi All,
I want to execute a function which takes user defined type as input & output parameters. But i don't know how to execute that function in pl/sql statements.
CREATE TYPE T_INPUT AS OBJECT
USER VARCHAR2(255),
APPLICATION VARCHAR2(255),
REFERENCE VARCHAR2(30)
) NOT FINAL;
CREATE TYPE T_ID UNDER T_INPUT
E_ID VARCHAR2 (50),
CODE VARCHAR2 (3),
SERVICE VARCHAR2 (10),
C_TYPE VARCHAR2 (1)
) NOT FINAL;
CREATE TYPE T_OUTPUT AS OBJECT
R_STATUS NUMBER(10),
E_DESC_LANG_1 VARCHAR2(1000),
E_DESC_LANG_2 VARCHAR2(1000),
A_REFERENCE VARCHAR2(30)
) NOT FINAL;
CREATE TYPE T_INFO UNDER T_OUTPUT
E_INFO XMLTYPE
CREATE FUNCTION Get_Dtls
I_DETAILS IN T_ID,
O_DETAILS OUT T_INFO
RETURN NUMBER AS
END;
Here
1. T_ID is an input parameter which is a combination of T_ID + T_INPUT,
2. T_INFO is an output parameter which is a combination of T_INFO + T_OUTPUT.
Here i'll assign the T_ID values.
--- T_INPUT values
USER = "admin";
APPLICATION = "test";
REFERENCE = "null";
---- T_ID values
E_ID = "1234";
CODE = "TTT";
SERVICE = "NEW";
C_TYPE = "P";
Now i want to execute Get_Dtls function with T_ID,T_INFO parameters in pl/sql statements.
I want to catch the E_INFO value from T_INFO type.
How can i Do this ?
Pls Help. Thanxs in advance.
Anil.I am very new to this. New to Oracle, PL/SQL, OO programming or testing?
set serveroutput on
declare
tst_obj ctype;
begin
tst_obj := pkg.proc(11);
dbms_output.put_line('id='||tst_obj.id||'::code='||tst_obj.code||'::usage='||tst_obj.usage);
end;
/Generally I disapprove of the use of DBMS_OUTPUT (for just about anything) but it is sufficient to demonstrate the basic principle.
Really you should start using proper testing practices, ideally with an automated test harness like QUTE.
Cheers, APC
Blog : http://radiofreetooting.blogspot.com/ -
How to create new group for material type
Hello all experts,
Im unable to create a new group for materials types, diff groups for FG and raw materials material type??
Could you pls help ??
Thanks in advance.Hi
When you create a new material you have to specify the material types like finished goods or raw material like that in the initial screen
For this new material types can be defined in
SPRO -> Logistic - General -> Material Master -> Basic Settings -> Material Type ->Define attribute of material Type
T code OMS2
After specifying the material type and giving organizational data like plant, storage location,sales org etc we go on to create the material
In one of the tabs the material groups should be specified and from MM point of view it is a reqd entry
this can be defined in
Define Material Group
SPRO -> Logistic - General -> Material Master -> Setting for Key Field -> Define Material Group
T .Code: OMSF
I beleive this is what you are asking about
Regards
Raja
Maybe you are looking for
-
Why are my album songs playing alphabetically?
when i scroll through my albums in landscape and press the play button in the bottom left corner it plays all the songs on the album in alphabetical order instead of the actual numbered sequence
-
Google Chromecast stopped work - Parental controls...
Hi I have been using a Chromecast to watch Netflix on my Sony Bravia TV and it has worked fine for several months. Now it has stopped working and I see the message "Chromecast connected to -BT Hub name- but can't access the internet": The only thing
-
Database for packages and jars
Java heaviliy relies on the package concept and the idea that people use their web domain inversely as a structure for the packages is good. I find, however, the task of finding the right jar file for the package I need sometimes a bit cumbersome. Go
-
Cannot install the software for my new printer
I just purchased this printer yesterday and have been working all this time trying to get the software installed. I've used the CD that comes with the printer. I've used the online software and used the assistant to download and install. I've gon
-
Checking AppleID, my addresses are correct, but then on second step for security, apple sent text to unknown address. How do I change this?