Simple types and structure
Hi
can any one tell me Difference between simple types and structure ?
Thanks,
Kiran
Hi Ravi,
As my concern there is difference between simple type and structure.
1SIMPLE TYPEit behave as TYPE proprty of value attibute .suppose you will create on value attribute as simAtt.then you can put that simple type in your attribute TYPE property .actualy it treated as data type like string,integer........
one more thing you want to change data type in your application then you will create SIMPLE TYPE..then put it TYpe property of value Attribute
Ex--you want to change the format of double value using "," then you will change only by using simple type.
STRUCTURE---Basically it use for creating for context value node in any context of controller(View,component )if you creat one structure then add number of attribute .when you create context value node then you binding the structure then automatically it will populate with value node as structure name and attribute .
SIMPLE TYPE---only put as Data type of Attribute and simple type also use within Structure at time of creation
STRUCTURE---you can use for DAta type of Apptibute..
thanks
Jati
Similar Messages
-
Line type and structure.
What is the difference between line type and structure?
one real time use of both.
instead of line type we can directly use the corresponding tables.
Points assured.
regards,
Prabhu.Hi
<b>The line type of a table type can be defined by:</b>
Specification of a type that already exists (data element, structure, table type, table, view) whose properties are then copied as properties of the defined table line.
Direct type input, where data type, number of positions, and, if required, decimal places, are entered directly.
Specification of a reference type.
<b>structure</b>
The table category defines how the logical table description defined in the ABAP Dictionary is represented in the database.
There are the following table categories:
transparent table
structure
append structure
For internal purposes, such as storing control data or update texts, there are in addition the following table categories:
pooled table
cluster table
generated view structure
<b>reward if usefull</b> -
Simple Types and Context Attributes
Hello All,
Can someone be kind enough to explain the difference between using a context attribute and a Simple Type ? For example... what's the difference (and I am sure there is ) between a context attribute "Name" that is declared to be of String type and a simple type "Name" that is of built-in type String ?
from
Kwok WeiSome links on SimpleTypes and its usage.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/value help in web dynpro applications.pdf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/internationalization of web dynpro applications.pdf
Regards, Anilkumar -
UCCHECK error in upgrade: Data type and structure not mutually convertible.
Hi ABAPers,
We have upgraded our system from 4.6c to ECC 6.0. We are at the unicode check stage. I am getting an error " 'V_LEV' and 'T_RES_TOTALS' are not mutually convertible in a Unicode program."
The structure of T_RES_TOTALS is like this:
BEGIN OF T_RES_TOTALS OCCURS 0,
FLD1TEXT LIKE ZTQ_REPVAL-VTEXT,
FLD1 LIKE ZTQ_VBKA-ZZREP_FLD1,
FLD2TEXT LIKE ZTQ_REPVAL-VTEXT,
FLD2 LIKE ZTQ_VBKA-ZZREP_FLD2,
FLD3TEXT LIKE ZTQ_REPVAL-VTEXT,
FLD3 LIKE ZTQ_VBKA-ZZREP_FLD3,
FLD4TEXT LIKE ZTQ_REPVAL-VTEXT,
FLD4 LIKE ZTQ_VBKA-ZZREP_FLD4,
FLD5TEXT LIKE ZTQ_REPVAL-VTEXT,
FLD5 LIKE ZTQ_VBKA-ZZREP_FLD5,
FLD6TEXT LIKE ZTQ_REPVAL-VTEXT,
FLD6 LIKE ZTQ_VBKA-ZZREP_FLD6,
VTEXT LIKE ZTQ_SRCET-TXT,
SOURCE LIKE ZTQ_SRCET-SOURCE,
NAME1 LIKE KNA1-NAME1,
RAREA LIKE KNA1-KUNNR,
TOTAL TYPE I,
LEV(2) TYPE N,
END OF T_RES_TOTALS,
V_LEV is declared as this:
V_LEV(2) TYPE N,
Below is the code and the line (marked in bold) which gives the error:
LOOP AT T_RES_TOTALS.
*V_LEV = T_RES_TOTALS.*
AT NEW FLD1. PERFORM FLD1_START. ENDAT.
AT NEW FLD2. PERFORM FLD2_START. ENDAT.
AT NEW FLD3. PERFORM FLD3_START. ENDAT.
AT NEW FLD4. PERFORM FLD4_START. ENDAT.
AT NEW FLD5. PERFORM FLD5_START. ENDAT.
AT NEW FLD6. PERFORM FLD6_START. ENDAT.
AT NEW SOURCE. PERFORM SOURCE_HEADER. ENDAT.
AT END OF RAREA. PERFORM RES_AREA_LINE. ENDAT.
AT END OF SOURCE. PERFORM SOURCE_TOTAL. ENDAT.
AT END OF FLD6. PERFORM FLD6_END. ENDAT.
AT END OF FLD5. PERFORM FLD5_END. ENDAT.
AT END OF FLD4. PERFORM FLD4_END. ENDAT.
AT END OF FLD3. PERFORM FLD3_END. ENDAT.
AT END OF FLD2. PERFORM FLD2_END. ENDAT.
AT END OF FLD1. PERFORM FLD1_END. ENDAT.
ENDLOOP.write as below ...
LOOP AT T_RES_TOTALS.
V_LEV = T_RES_TOTALS-LEV. <----
AT NEW FLD1. PERFORM FLD1_START. ENDAT.
AT NEW FLD2. PERFORM FLD2_START. ENDAT.
AT NEW FLD3. PERFORM FLD3_START. ENDAT.
AT NEW FLD4. PERFORM FLD4_START. ENDAT.
AT NEW FLD5. PERFORM FLD5_START. ENDAT.
AT NEW FLD6. PERFORM FLD6_START. ENDAT.
AT NEW SOURCE. PERFORM SOURCE_HEADER. ENDAT.
AT END OF RAREA. PERFORM RES_AREA_LINE. ENDAT.
AT END OF SOURCE. PERFORM SOURCE_TOTAL. ENDAT.
AT END OF FLD6. PERFORM FLD6_END. ENDAT.
AT END OF FLD5. PERFORM FLD5_END. ENDAT.
AT END OF FLD4. PERFORM FLD4_END. ENDAT.
AT END OF FLD3. PERFORM FLD3_END. ENDAT.
AT END OF FLD2. PERFORM FLD2_END. ENDAT.
AT END OF FLD1. PERFORM FLD1_END. ENDAT.
ENDLOOP. -
Hi All,
I have create simple type which is of type integer. And i have set the maximum and minimum length for the simple type which is bounded with the input field. When i try to display it, it displayes with ",".
Example 70,000,000.
My require is to remove the commas in between the number. Is there solution for this.
Regards,
Revathy Madhavan.Hi Revathy,
the display of numbers is localized, here in germany I see "70.000.000". So whenever you change the behaviour, consider that you skip the automated localization provided by sap.
That said: Open your simple type and go to the "Representation" Tab. in the right upper corner, enter "#" into the field format.
Problem solved.
If you want to know more, read the java api of NumberFormat which describes various options for Number presentations based on String patterns.
Jan -
Simple type enumeration access
Hello colleagues,
while creating a data dictionary type, you can define an enumeration with keys and description texts. Additionally you can let the WD generator to create the class representation for this enumeration. So you can use it in your code.
The generated enumeration only provides the key constant value (enum.getName()) but doesn't bring the description text. Is there any "official way" to read it in code providing certain locale?
I know, you can create a context attribute of this simple type and go for the following expression:
wdContext.nodeTableLine().getNodeInfo().getAttribute("attr").getSimpleType().getSVServices().getModifiableSimpleValueSet()
but I can't imagine the WD doesn't provide any context independent way for this simple operation.
Regards
DimitriHi
I donu2019t want to populate the list of the enumeration. The list is defined at design time. I just want to read key descriptions of the enumeration programmatically and I donu2019t want to use the context for that.
To your comment: if you use an input field with an enumerated data dictionary type, only the key of the enumeration will be shown in the field.
Regards
Dimitri -
Webdypro simple types are vanished with model reimport
Hi All,
My webdynpro project consists of user defined simple types and models(SAP ABAP). when i re-import model ( which already exists in project ) , all the simple types in my project are deleted and all my context mapping to particular simple types are showing compile time errors. I have to recreate all simple types and do context mapping again.
Any one can help me how can i solve this problem.
Thanks
AravindaBefore re-import the model you have to preserve existing model biding in controller contexts. There are two things you should take care about.
1. In controller contexts all metamodel entity files should be deleted.
2. non-model-specific files should be readonly.
There is one blog on this, which describes <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2508">How To Reimport Web Service Models in Web Dynpro for Java</a> , although it tell you about web services but it applies for model reimports as well.
Regards,
Nitin -
Hi,
I have created a simple type and deployed. Now, when i am trying to edit,it is in read-only mode.How can i edit the description of simple type?
(Valuable answers will be awarded with points).
Thank you,
ArpithaHi Arpitha,
Well do you require to change the value at runtime or design time?
For designtime:
WebDynpro explorer->Dictionary->local dictionary-->Data types->simple type--->ur simple type(Name).
Double click ur simple type(name), automatically the window will open then change the fields and close.
or goto the WD Explorer and to the dictionary and open it you'll get the simpletype.Now here you can change it as per your requirement.
Please clarify if it's at runtime.
Regards
Amit -
Hi ,
I need to change the properties of the simple type that we have defined in the dictionary , We are using JDI .I have navigated to the dictionary --> rclick on the simple type --> selected EDIT --> Added the files to the activity --> now when i double click on the simple type and try to change the properties it is giving the following message :
This simple type cannot be changed because the file xxx.xlf is read only .It is possible that the file has not been chacked out from DTR
Any idea why i am getting this error .Hi Maksim,
When i do that it is allowing me to change the file , but when i try to save it i am getting the following error
<b>cannot save language C:\Documents and Settings\test\.dtc\0\DCs\abb.com\report\Report_webDyn\_comp\src\packages\abb\com\report\web\dictionary\velement\LastTransIn.dtsimpletype.xlf
Please check the files e.g. for writeability / existence.</b> -
Read enumaration list of simple type
Hi,
I want to read enumaration list of simple type and compare it with user input. Simple type is not bound to any attribute.
How can I read enumeration list values?
Regards,
ApurvaHi,
Thanks for replies.
I wanted to use simple type as storage space for Enumeration list. So, I can refer to this list and fill values from this list as required in the valueset.Not all values, based on some condition, some of the values in the list, will be added in the dropdown.
Now, if I cant refer to simple type without creating attribute, I will have to create redundant attribute just to access Enumeration list values.
Can I avoid it? Is there any better way of achieving this?
Regards,
Apurva -
The type and the length of the members of the structures
I am making the BC-XAL program.
Reading `XAL_Interface_Documentation_11.pdf', now I succeeded in "Reading All Saved Monitor Sets" and "Reading All Monitors of a Monitor Set". but I can't find the type and the length of the member of the Structure BAPITNDEXT, so I cannot get the Monitoring Tree of a Monitor.
where can I get any documents or information ?This is how it looks in my 46c system.
MTSYSID SYSYSID CHAR 8 0R/3 System, name of R/3 System
MTMCNAME ALMCNAME CHAR 40 0Alert: name of monitoring context
MTNUMRANGE ALTIDNUMRG CHAR 3 0Alert: monitoring type number range (perm., temp, ...)
MTUID ALTIDUID CHAR 10 0ALert: Unique Identifier for Monitoring Types (used in TID)
MTCLASS ALTIDMTCL CHAR 3 0Alert: monitoring type class (perf., single msg.,...)
MTINDEX ALTIDINDEX CHAR 10 0Alert: internal handle for TID
EXTINDEX ALTIDINDEX CHAR 10 0Alert: internal handle for TID
ALTREENUM ALTREENUM INT4 10 0Alert: MT Tree info: Number of tree
ALIDXINTRE ALIDXINTRE INT4 10 0Alert: Tree Info: Index of MT in Tree
ALLEVINTRE ALLEVINTRE INT4 10 0Alert: Tree Info: Level of MTE in Tree
ALPARINTRE ALPARINTRE INT4 10 0Alert: Tree Info: Index of Parent of MT in Tree
OBJECTNAME ALMOBJECT CHAR 40 0Alert: Name of Monitoring Object
MTNAMESHRT ALMTNAMESH CHAR 40 0Alert: Short Name of Monitoring Type
CUSGRPNAME ALCUSGROUP CHAR 40 0Alert: Customization: Name of Customization Group
DELIVERSTA ALDELIVSTA INT4 10 0Alert: MT Val: Delivery Status
HIGHALVAL ALVALUE INT4 10 0Alert: alert value (1 = green, 2 = yellow, ....)
HIGHALSEV ALSEVERITY INT4 10 0Alert: severity (alerts, monitoring type custom..)
ALSYSID SYSYSID CHAR 8 0R/3 System, name of R/3 System
MSEGNAME ALMSEGNAME CHAR 40 0Alert: name of monitoring segment
ALUNIQNUM ALAIDUID CHAR 10 0Alert: Unique Identifier to be used in AID (char10)
ALINDEX ALINDEX CHAR 10 0Alert: internal handle
ALERTDATE ALDATE DATS 8 0Alert: date
ALERTTIME ALTIME TIMS 6 0Alert: Time value in timeformat
DUMMYALIGN ALDUMMYC2 CHAR 2 0Alert: Dummy field. Purpose: Alignment of date/time 16 byte
LASTVALDAT ALDATE DATS 8 0Alert: date
LASTVALTIM ALTIME TIMS 6 0Alert: Time value in timeformat
LASTVALDUM ALDUMMYC2 CHAR 2 0Alert: Dummy field. Purpose: Alignment of date/time 16 byte
ACTUALVAL ALVALUE INT4 10 0Alert: alert value (1 = green, 2 = yellow, ....)
ACTUALSEV ALSEVERITY INT4 10 0Alert: severity (alerts, monitoring type custom..)
VALSYSID SYSYSID CHAR 8 0R/3 System, name of R/3 System
VMSEGNAME ALMSEGNAME CHAR 40 0 Alert: name of monitoring segment
VALUNIQNUM ALAIDUID CHAR 10 0 Alert: Unique Identifier to be used in AID (char10)
VALINDEX ALINDEX CHAR 10 0 Alert: internal handle
VALERTDATE ALDATE DATS 8 0 Alert: date
VALERTTIME ALTIME TIMS 6 0 Alert: Time value in timeformat
VALERTDUM ALDUMMYC2 CHAR 2 0 Alert: Dummy field. Purpose: Alignment of date/time 16 byte
COUNTOFACT ALCNTACTAL INT4 10 0 Alert: MT Val: Count of active Alerts
COUNTSUM ALCNTSUMAL INT4 10 0 Alert: MT Val: Sum of Alerts in MT
VISUSERLEV ALVISILEVL INT4 10 0 Alert: MTE type dev cust: Visible on user level (op,exp,dev)
TDSTATUS ALTDSTATUS INT4 10 0
Alert: MT: Type Def Status
Welcome to SDN.
Regards,
Rich Heilman -
XI settings, change of Data Types and XI still maps old structures
Hi,
I have defined XI scenario, where synchronous WebService is being called, and XI calls RFC function module, which returns data. It was working perfectly, until
I have changed the order of few fields in Data Type and added a few new (exactly as the changes in RFC function module).
And now the WebService returns exception, on the first field added to the interface:
<Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns1:MT_BMS_Response/CUSTOMERS_PERSON/TITLE. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at
TITLE is added field.
I have reactivated everything one by one again, clear cache from Integration Builder and Integration Directory, but it does not help and still old structures are being used in XI.
I have tested the Interface Mapping and all fields are transformed correctly.
Please help as it comes a little urgent and I have run out of ideas what to do to refresh the customizing of data types?
Thank you in advance!Hi Peter,
Yes, I am calling RFC function module from XI.
After I changed the interface of RFC in SAP, I have imported this RFC once more to XI in Integration Builder and new structures appeared.
And exception returned is that first new field added to the RFC and Data Type and so on, returns an exception.
And returned XML structures (in message monitoring) appears to be still old structures. -
Is there any way to bring back the font type and background of Safari Reader from iOS6 in to the iOS7 ? I really miss it, the new design is awful, simple and has now class at all.
I agree with you, many things in the ios 6.x were more elegant. The reader was the most one of them. I think the ios7 wants to be the windows 8.
-
Want to create a user field with type alphanmumeric and structure text through coding
i want to create a user field with type alphanumeric and structure text through coding.am using vb
plz help meHi.
Please take a look at samples in SAP B1 SDK.
Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
' Adding "Name" field
'// Setting the Field's properties
oUserFieldsMD.TableName = #YOUR_TABLE_NAME#
oUserFieldsMD.Name = "Name"
oUserFieldsMD.Description = "Name"
oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
oUserFieldsMD.EditSize = #LENGTH_OF_FIELD#
'// Adding the Field to the Table
lRetCode = oUserFieldsMD.Add
GC.Collect() 'Release the handle to the User Fields
Hope it helps.
Regards,
Pawel -
Reg. checkbox by group and simple types
Hi,
I have checkbox by group UI elemnet.
I have binded the text property of the checkbox by group to a context attribute and its type property is selected from a simple type.
In the view layout on NWDS its showing the label names which i hav given in the simple type. but when i deploy it and run it in browser its just showing only one check box. its not showing the label names.
how to get the label names, using simple types. i,m able to get it using code.
how to get it by simpletype???
thanks, sureshhi,
in case of check boxes, it will not work with
a simple type
write code similar to this according to your requirement
in wdDoModifyVIew();
if(firstTime){
String[] names = {"one","two","three"};
for(int i=0;i<names.length;i++){
IPrivateCheckView.IXElement nelem =wdContext.nodeX().createXElement();
wdContext.nodeX().addElement(nelem);
nelem.setName(names);
where X is a node ,
Name is attribute under node X
of type string
bind the texts property of the check box group to the Node X
Regards,
Satya.
Edited by: Satya on Nov 7, 2008 8:34 AM
Maybe you are looking for
-
Create Spool from Internal table & converrt the spool to PDF
Hi All, My requirement is take data from a table and find amount specific to each Vendors . So I took all the data into ITAB and do all the calculation. Later after calculation I have to create a spool from this ITAB and this spool have to convert to
-
I have a 30-inch cinema display connected to a Mac Mini. When I first boot up the computer after having it shut down for a couple of days, the display screen does not illuminate about half the time. If I disconnect the display from the power brick
-
MDM 3.0 and MDM 5.5
Hi All, Can any body tell what are the differences between MDM 3.0 and MDM 5.5? Regards, Nikhil
-
How to select Defferent CLDC versions in Eclipse
Is it the right way of creating MIDP Application with different CLDC versions. Ie, by changing the configuration in �. Properties>J2ME>Preverification>use specific configuration>��. here we can change the cldc version (Assuming the WTK is plugged int
-
ExportSecurity.sh fails
I am trying to use ExportSecurity.sh. I am running this command using the owner account. Now sure what the issue is or where to look for a solution. error: Tue Dec 08 10:13:48 MST 2009 :: Logging into the application java.lang.NullPointerException at