How to give TSO account attribute
Hi,
We are trying to map TSO.PROC attribute in RACF adapter. We are given as follows:
1. procvalue (Identity System user attribute)
2. string (attribute type)
3. TSO.PROC (Resource User Attribute)
But it is not populating value. Anyone help me out to setting up correct attribute value.
thanks in advance.
Hi Srinivasulu,
An attribute (of basic data types like integer , string etc) holds a single values.
Please clarify by what you mean value set ?
Also, share the structure of context.
Regards,
Kartikaye
Similar Messages
-
How to get an account with an IsICP -"R" attribute calculated in the HFM Rule file
Till recently everything was going fine with the calculations in our HFM setup ( Version 4.1)
We have say around 8 Expense accounts which roll up into a Parent account say ALL446 which finally rolls up into Operating Expenses.
Operating Expenses
|__ parent account
|_INVALO
|_ALL446
|__222446
|__242446
And we have a calculation in the rule file as below
HS.EXP "A#BE FIXED COST = A#Operating Expenses +A#SGA - A#BE VC OP F10"
This was calculating correctly till we did the below change
Added IsICP attribute to couple of accounts say 222446 and 242446 ( in the above example) in the metadata which finally rolls up into Operating Expense.
Note: we did not add any Plug account attribute to the accounts
Now the problem what we have in hand is -> Fixed Cost is not calculating correctly.- It happens that the two accounts for which we added the IsICP are not showing up in the calculation and the data in those two accounts are not adding up in Fixed Cost.
POV in GRID/Excel -> actual,2013,periodic,<Entity Currency>, ICP Top, AllCustom1, AllCustom2, AllCustom3, None( for custom4)
But when we retrieve Operating Expenses in Excel - it is showing the correct amount, even in the grid - but looks like when the rule tries to calculate Fixed Expenses using the above rule - these accounts are not adding up in the Operating expenses.
I tried the formula ( to check what number is coming into Fixed cost ) - the result is zero - But in the grid/excel I see amount for acct2. Same POV as above
HS.EXP "A#BE FIXED COST = A#222446"
and if I add & Tops to the account like below ( getting some weird number instead of what is there in acct2)
HS.EXP "A#BE FIXED COST = A#222446" & Tops
Questions:
1) Where exactly I am going wrong ?
2) Is it MANDATORY to have a Plugaccount attribute when we have IsICP turned to "R" ?
3) What will happen if we do not have a Plugaccount for the IsICP account ?
4) How to correct the formula to make sure I get the number in the acct2 into Fixed Cost??
5) Do we need to have the IsICP turned on to the immediate parent of the account having IsICP and the Top parents of the account too??
6) Is it possible to get the exact number what we have in 222446 into BE Fixed Cost account via Rule?- why I am not getting it
Notes:
BE Fixed Cost-> account type -"Expense", IsCalculated - yes, IsConsolidated - yes, IsICP- N, Custom1TopMember - AllFunctions, Custom3TopMember- AllCustom3, enabled allcustom1,2,3,4aggregations
Operating Expenses->"Expense", IsCalculated - No, IsConsolidated - yes, IsICP- N, Custom1TopMember - AllFunctions, Custom3TopMember- AllCustom3, enabled allcustom1,2,3,4aggregations
INVALO ->"Expense", IsCalculated - No, IsConsolidated - yes, IsICP- N, Custom1TopMember -none, Custom3TopMember- none,
enabled allcustom1,2,3,4aggregations
Problematic account 222446 -> "Expense", IsCalculated - No, IsConsolidated - yes, IsICP- R, Custom1TopMember - Operations, Custom3TopMember- AllCustom3, enabled allcustom1,2,3,4aggregations
The Entity on which I am trying to get the data( mentioning wherever I have attributes for this entity)
DefCurrency - DEM, Allowadjs- enabled, IsICP - enabled, Userdefined 2 - financial, - SecurityasPartner attribute - is not selected through out the applicaiton.
Variable
Tops = ".I#[ICP Top].C1#AllCustom1.C2#AllCustom2.C3#AllCustom3.C4#[None]"
tried attaching the attachments ( but service is unavailable)
Waiting for all of your valuable suggestions..1) why was I not getting the formula right when I use & Tops
I'm assuming that BE Fixed Cost has N for IsICP, in that case you can not write to invalid intersections as it would attempt to use the same ICP information
2) Is it MANDATORY to have a Plugaccount attribute when we have IsICP turned to "R" ?
No
3) What will happen if we do not have a Plugaccount for the IsICP account ?
It will not run eliminations
4) Do we need to have the IsICP turned on to the immediate parent of the account having IsICP and the Top parents of the account too??
If you want it to rollup, yes you would need that. We have all Parent accounts as isICP set to Y and top member to ICP Entities so that they roll up
5) which will have priority the rule or the Grid where we have the calculated member like the BE Fixed Cost - because in the grid I had icptop, allcustom1,2 3 and when had & Tops to the account - I got some weird numbers...
I'm not following the question here, grids are just really a display mechanism, rules will handle all of the calculations. -
How to give Value set for model attribute?
Hi all,
How to give value set for model attribute?
plz explain me with some sample code.
Regards,
SrinuHi Srinivasulu,
An attribute (of basic data types like integer , string etc) holds a single values.
Please clarify by what you mean value set ?
Also, share the structure of context.
Regards,
Kartikaye -
How to extract master data attribute from r/3 to bw give steps details
how to extract master data attribute from r/3 to bw give steps details screenshots
Hi
Go through the below process to extract Master Data Attribute from R/3
Hi,
Maintaining Generic DataSources
Use
Regardless of the application, you can create and maintain generic DataSources for transaction data, master data attributes or texts from any transparent table, database view or SAP Query InfoSet, or using a function module. This allows you to extract data generically.
Procedure
Creating Generic DataSources
1. Select the DataSource type and specify a technical name.
2. Choose Create.
The screen for creating a generic DataSource appears.
3. Choose the application component to which you want to assign the DataSource.
4. Enter the descriptive texts. You can choose any text.
5. Select the datasets from which you want to fill the generic DataSource.
a. Choose Extraction from View if you want to extract data from a transparent table or a database view. Enter the name of the table or the database view.
After you generate the DataSource, you have a DataSource with an extraction structure that corresponds to the database view or transparent table.
For more information about creating and maintaining database views and tables, see the ABAP Dictionary Documentation.
b. Choose Extraction from Query if you want to use a SAP Query InfoSet as the data source. Select the required InfoSet from the InfoSet catalog.
Notes on Extraction Using SAP Query
After you generate the DataSource, you have a DataSource with an extraction structure that corresponds to the InfoSet.
For more information about maintaining the InfoSet, see the System Administration documentation.
c. Choose Extraction Using FM if you want to extract data using a function module. Enter the function module and extraction structure.
The data must be transferred by the function module in an interface table E_T_DATA.
Interface Description and Extraction Process
For information about the function library, see the ABAP Workbench: Tools documentation.
d. With texts you also have the option of extracting from fixed values for domains.
6. Maintain the settings for delta transfer, as required.
7. Choose Save.
When performing extraction, note SAP Query: Assigning to a User Group.
Note when extracting from a transparent table or view:
If the extraction structure contains a key figure field that references a unit of measure or a currency unit field, this unit field has to be included in the same extraction structure as the key figure field.
A screen appears on which you can edit the fields of the extraction structure.
8. Edit the DataSource:
○ Selection
When you schedule a data request in the BI scheduler, you can enter the selection criteria for the data transfer. For example, you can determine that data requests are only to apply to data from the previous month.
If you set the Selection indicator for a field within the extraction structure, the data for this field is transferred in correspondence with the selection criteria in the scheduler.
○ Hide field
You set this indicator to exclude an extraction structure field from the data transfer. The field is no longer available in BI when you set the transfer rules or generate the transfer structure.
○ Inversion
Reverse postings are possible for customer-defined key figures. Therefore inversion is only active for certain transaction data DataSources. These include DataSources that have a field that is marked as an inversion field, for example, the update mode field in DataSource 0FI_AP_3. If this field has a value, the data records are interpreted as reverse records in BI.
If you want to carry out a reverse posting for a customer-defined field (key figure), set the Inversion indicator. The value of the key figure is transferred to BI in inverted form (multiplied by 1).
○ Field only known in exit
You can enhance data by extending the extraction structure for a DataSource by adding fields in append structures.
The Field Only Known in Exit indicator is set for the fields of an append structure; by default these fields are not passed to the extractor from the field list and selection table.
Deselect the Field Only Known in Exit indicator to enable the Service API to pass on the append structure field to the extractor together with the fields of the delivered extract structures in the field list and in the selection table.
9. Choose DataSource ® Generate.
The DataSource is saved in the source system.
Maintaining Generic DataSources
● Change DataSource
To change a generic DataSource, in the initial screen of DataSource maintenance, enter the name of the DataSource and choose Change.
You can change the assignment of a DataSource to an application component or change the texts of a DataSource. Double-click on the name of the table, view, InfoSet or extraction structure to get to the appropriate maintenance screen. Here you make the changes to add new fields. You can also completely swap transparent tables and database views, though this is not possible with InfoSets. Return to DataSource maintenance and choose Create. The screen for editing a DataSource appears. To save the DataSource in the SAP source system, choose DataSource ® Generate.
If you want to test extraction in the source system independently of a BI system, choose DataSource ® Test Extraction.
● Delta DataSource
On the Change Generic DataSource screen, you can delete any DataSources that are no longer relevant. If you are extracting data from an InfoSet, delete the corresponding query. If you want to delete a DataSource, make sure it is not connected to a BI system.
NR -
How to give Authorization?
I have created a 'Z' application which consists of create, change and display User interface.Whenever the user selects craete all fields go editable, change will have some fields editable and display all uneditable.I used only one view and i handled all three modes using invisible and enable property.
Now i want to allow only certain users to access create and change but display for all users.How to give this kind of autorization in webdynpro????
Please explain me about authorization in webdynpro taking my scenario?Hello,
I hope you are aware of authority checks in ABAP in general. In your scenario, what you can do is: create one context attribute IS_AUTHORIZED of type WDY_BOOLEAN.
And in WDDOINIT of the component controller or view controller,
do the authorization check using AUTHORITY-CHECK stmt and if the check fails i.e. sy-subrc is not equals to 0, then
set the attribute IS_AUTHORIZED to false. Otherwise set it to true.
And you have to bind the enabled property of the buttons to this context attribute IS_AUTHORIZED.
Please refer to the following code sample:
DATA lo_nd_selection_type TYPE REF TO if_wd_context_node.
DATA lo_el_selection_type TYPE REF TO if_wd_context_element.
lo_nd_selection_type = wd_context->get_child_node( name = wd_this->wdctx_flex_config ).
lo_el_selection_type = lo_nd_selection_type->get_element( ).
AUTHORITY-CHECK OBJECT <objectName>
ID <name1> FIELD <f1>
ID <name2> FIELD <f2>.
IF sy-subrc <> 0.
* Prohibhit the user from modifying config
lo_el_selection_type->set_attribute(
name = `IS_AUTHORIZED`
value = abap_false ).
ELSE.
lo_el_selection_type->set_attribute(
name = `IS_AUTHORIZED`
value = abap_true ).
ENDIF.
Hope this helps!
Regards,
Srilatha -
How to give ** bydefault in password in module pool screen .
Hi experts
how to give ******* by default in password in module pool screen .
ThanksHi ,
Double click on the field u will get a pop up window
i.e. attribute window for that field.
in that window you have a tab called Program at the bottom.
in program tab you have many checkboxes.
check the check box with name *Entry.
and activate.
what ever you enter now will be in password formate
Regards
Ajay -
How to change set type attribute of a product
Hi ;
I created additional fields for products by using "COMM_ATTRSET". It created a table and functions but I dont know how to change this additional attributes.I cant use these attribute set functions because i dont know fragment_id yet. I think there must be a function encapsulates them.
Is there any BAPI to change set type attributes?
PS: In forums , I found an FM "COM_PRODUCT_MAINTAIN_MULT_API" but I think it hasnt been used anymore in CRM7.0
ThanksThanks for your reply ;
but FM 'COM_PRODUCT_UI_MAINTAIN' doesnt have any generic import parameters to send my data to it in form of newly created attribute set type table "ZPRODUCT".
I want to set some fields of ZPRODUCT and i need to send them in this structure, this table has column FRG_ID , if you set an additional parameter for the first time , it generates new GUID..I think 'COM_PRODUCT_UI_MAINTAIN' generates this GUID but i dont know how to use it.
Can you give an example about using this FM? -
What is the purpose of F-03 clearing? How to clear GL account there in F-03
HI,
What is the purpose of F-03 clearing? How to clear GL account there in F-03.Please help me in understanding the concept.
Thanks
SupriyaHello,
There are cases where you pass some manual entries which might not have cleared against the other related item, THOUGH the balance has been ZERO. Like cases where you reverse logistics invoice through MR8M, then entry gets reversed but they are still open items. Like some GRIR accounts might have debit and credit entries for same purchase order and the balance MIGHT have become ZERO, but still they are open item. To clear all these open itesm (changing the status of the open items to cleared items, you need to use F-03)
Please go to F-03 and give the GL account which want to manually clear the debit and credit items.
Normally you will this kind of activity for clearing account, where there is no automatic clearing mechanism explained in OB74.
now click on open items. (if you know any specific things like document number etc. you can fill them, then they will act as a FILTER and only those document numbers you feeded will be appeared)
Now select the items you want to clear. Deselected all other you do not want to clear. Selected items will be in blue colour and the difference at the end of the screen MUST be ZERO to post (unless you configured otherwise)
Click on save button.
The entries passed will GL Account A Dr and GL Account B Cr. Meaning that there is no implication but posting the debit and crediting the same account and clearing the status of the line items from OPEN to CLEARED.
Hope I am clear.
Regards,
Ravi -
Hi ,
i am using BAPI_ACC_DOCUMENT_POST to post accounting document. This accounting document is used to post amount from reconcilation account to bank GL account.the table parameter am using is ACCOUNTGL (in the function module)Now i want to give posting keys to the function module parameter. can anyone please guide me how to give posting keys?
Edited by: Santhosh Kumar Cheekoti on Dec 18, 2008 7:48 AMHi,
As pointed out in one of the previous post, posting key will be decided by the BAPI depending on the sign of the amount. Have a look at bthe following code:-
DATA: doc_header LIKE BAPIACHE09,
criteria LIKE BAPIACKEC9 OCCURS 0 WITH HEADER LINE,
doc_item LIKE BAPIACGL09 OCCURS 0 WITH HEADER LINE,
doc_ar LIKE BAPIACGL09 OCCURS 0 WITH HEADER LINE,
doc_values LIKE BAPIACCR09 OCCURS 0 WITH HEADER LINE,
return LIKE bapiret2 OCCURS 0 WITH HEADER LINE,
extension1 like BAPIACEXTC occurs 0 with header line,
obj_type LIKE bapiache08-obj_type,
obj_key LIKE bapiache02-obj_key,
obj_sys LIKE bapiache02-obj_sys,
docnum LIKE bkpf-belnr.
*DATA:
* ITEMNO_ACC POSNR_ACC
* FIELDNAME FIELDNAME
* CHARACTER ACPI_RKE_CRIGEN
* Fill Document Header
doc_header-bus_act = 'RFBU'.
doc_header-bus_act = 'RMRP'.
*doc_header-bus_act = 'SD00'.
doc_header-username = sy-uname.
doc_header-header_txt = 'TEST BOC BAPI POSTING'.
doc_header-comp_code = 'IN10'.
doc_header-compo_acc = 'FICA'.
doc_header-doc_date = '20060127'.
doc_header-pstng_date = sy-datlo.
doc_header-doc_type = 'SA'.
** Fill Line 1 of Document Item
*doc_item-itemno_acc = '1'.
*doc_item-gl_account = '0000500001'.
*doc_item-pstng_date = sy-datum.
*doc_item-item_text = 'TEST POSTING DEBIT ITEM'.
*doc_item-costcenter = ''.
*doc_item-quantity = '1'.
*doc_item-base_uom = 'ST'.
*APPEND doc_item.
*CLEAR doc_item.
** Fill Line 2 of Document Item
*doc_item-itemno_acc = '2'.
*doc_item-customer = '0000000016'.
*doc_item-gl_account = '0000000016'.
*doc_item-pstng_date = sy-datlo.
*doc_item-item_text = 'TEST POSTING CREDIT ITEM'.
*APPEND doc_item.
*CLEAR doc_item.
doc_ar-itemno_acc = '1'.
doc_ar-gl_account = '0000500001'.
doc_ar-pstng_date = sy-datum.
doc_ar-item_text = 'TEST POSTING DEBIT ITEM'.
doc_ar-costcenter = ''.
doc_ar-quantity = '1'.
doc_ar-base_uom = 'ST'.
APPEND doc_ar.
CLEAR doc_ar.
* Fill Line 2 of Document Item
doc_ar-itemno_acc = '2'.
doc_ar-customer = '0000000016'.
doc_ar-gl_account = '0000000016'.
doc_ar-pstng_date = sy-datlo.
doc_ar-item_text = 'TEST POSTING CREDIT ITEM'.
doc_ar-stat_con = ' '.
doc_ar-costcenter = '0000201681'.
APPEND doc_ar.
CLEAR doc_ar.
* Fill Line 1 of Document Value.
doc_values-itemno_acc = '1'.
doc_values-currency_iso = 'INR'.
doc_values-amt_doccur = '200.00'.
doc_values-currency = 'INR'.
doc_values-CURR_TYPE = '00'. "Doc currency
APPEND doc_values.
CLEAR doc_values.
* Fill Line 2 of Document Value
doc_values-itemno_acc = '2'.
doc_values-currency_iso = 'INR'.
doc_values-amt_doccur = '200.00-'.
doc_values-currency = 'INR'.
doc_values-curr_type = '00'. "Doc currency
APPEND doc_values.
CLEAR doc_values.
* Add tax code in extension1 table.
extension1-field1 = 'BAPI CALL'.
APPEND EXTENSION1.
* Fill CRITERIA for CO-PA
*refresh criteria.
*criteria-ITEMNO_ACC = '1'.
*criteria-FIELDNAME = 'ARTNR'.
*criteria-CHARACTER = '000000000001312251'.
*Append criteria.
*criteria-ITEMNO_ACC = '1'.
*criteria-FIELDNAME = 'WERKS'.
*criteria-CHARACTER = 'IN91'.
*Append criteria.
*criteria-ITEMNO_ACC = '1'.
*criteria-FIELDNAME = 'KNDNR'.
*criteria-CHARACTER = '0000000016'.
*Append criteria.
*criteria-ITEMNO_ACC = '1'.
*criteria-FIELDNAME = 'FKART'.
*criteria-CHARACTER = 'ZIN2'.
*Append criteria.
*criteria-ITEMNO_ACC = '1'.
*criteria-FIELDNAME = 'KAUFN'.
*criteria-CHARACTER = '0000000633'.
*Append criteria.
*criteria-ITEMNO_ACC = '1'.
*criteria-FIELDNAME = 'KDPOS'.
*criteria-CHARACTER = '000010'.
*Append criteria.
*criteria-ITEMNO_ACC = '1'.
*criteria-FIELDNAME = 'VKGRP'.
*criteria-CHARACTER = '009'.
**Append criteria.
* All tables filled - now call BAPI.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
EXPORTING
documentheader = doc_header
IMPORTING
OBJ_TYPE = doc_header-obj_type
OBJ_KEY = doc_header-obj_key
OBJ_SYS = doc_header-obj_sys
TABLES
* criteria = criteria
accountgl = doc_item
ACCOUNTRECEIVABLE = doc_ar
currencyamount = doc_values
return = return
EXTENSION1 = EXTENSION1.
LOOP AT return WHERE type = 'E'.
EXIT.
ENDLOOP.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = doc_header
IMPORTING
OBJ_TYPE = doc_header-obj_type
OBJ_KEY = doc_header-obj_key
OBJ_SYS = doc_header-obj_sys
TABLES
* criteria = criteria
accountgl = doc_item
currencyamount = doc_values
return = return
EXTENSION1 = EXTENSION1.
LOOP AT return WHERE type = 'E'.
EXIT.
ENDLOOP.
IF sy-subrc EQ 0.
WRITE: / 'BAPI call failed - debug and fix!'.
ELSE.
CLEAR return.
REFRESH return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
IMPORTING
return = return.
WRITE: / 'BAPI call worked!!'.
WRITE: / doc_header-obj_key, ' posted'.
ENDIF.
Regards
Raju Chitale
Edited by: Raju Chitale on Dec 18, 2008 8:31 AM -
How to change apple account in the ipad many times?(can't sign out)
How to change accounts!
I have multiple accounts not me but the whole family has apple accounts since we all are apples. Anyway everyone has a no credit card account except my dad. His account is synced in my sisters iPad. My dad changed the password so that we don't buy stuff the problem is we can't sign out of our dads account! I mean when we go to ipad:setting->store we already see that its already signed in my sisters account! But the problem is whenever my sister wants to update or download a free app it gives my dads email & wants us to fill the password! We already signed out!
We tried logging in via itunes store then syncing the ipad but nothing happened!
The apple retail store said after you submit the email of your ipad the only solution is to format it. But here is the big problem lets say we formatted it & after few days/months etc we wanted to buy an app we couldn't change the account to our dads account! Since we already are having trouble logging out of our dads account.
So please tell me how to change the account many times! Because I couldn't change it in the iPad nor in iTunes in my iMAC.The apple retail store said after you submit the email of your ipad the only solution is to format it
Your iPad does not have an email address.
You will need to add a CC card to verify your account. The CC info can then be removed and the account used normally.
It would likely be easier to simply update the apps on the computer then sync the iPad.
iTunes can be authorized for all accounts then all apps can be updated at once. -
How to change an account name?
Hello
How to change my account name?
Name is very old and needs an update.
Thanks,
VillemUnfortunately, you can't.
Can I change my Skype Name in Skype for Windows desktop?
Regards,
Tamim
Location - Dhaka | Bangladesh - Standard Time Zone: GMT/UTC + 06:00 hour
If one of my replies has adequately addressed your issue, please click on the “Accept as Solution” button. If you found a post useful then please "Give Kudos" at the bottom of my post, so that this information can benefit others. -
How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?
Ok what about If i need to get all important attributes by comparing Email addresses from excel file and get all required answers
currently I am trying to verify how many users Lines are missing , Emp numbers , Phones from AD with HR list available to me.
I am trying to Scan all the AD matching HR Excel sheet and want to search quickly how many accounts are active , Line Managers names , Phone numbers , locations , title , AD ID .
these are fields I am interested to get in output file after scanning Excel file and geting reply from AD in another Excel or CSV file
Name’tAccountName’tDescri ption’tEma I IAddress’tLastLogonoate’tManager’tTitle’tDepartmenttComp
any’twhenCreatedtAcctEnabled’tGroups
Name,SamAccountName,Description,EmailAddress,LastLogonDate,Manager,Title,Department,Company,whenCreated,Enabled,MemberOf | Sort-Object -Property Name
Can you modify this script to help me out :)
Hi,
Depending on what attributes you want.
Import-Module ActiveDirectory
#From a txt file
$USERS = Get-Content C:\Temp\USER-LIST.txt
$USERS|Foreach{Get-ADUser $_ -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
#or from a csv file
$USERS = Import-CSV C:\Temp\USER-LIST.csv
$USERS|Foreach{Get-ADUser $_.SAMAccountName -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
Regards,
Dear
Gautam Ji<abbr class="affil"></abbr>
Thanks for replying I tried both but it did not work for me instead this command which i extended generated nice results
Get-ADUser -Filter * -Property * | Select-Object Name,Created,createTimeStamp,DistinguishedName,DisplayName,
EmployeeID,EmployeeNumber,Enabled,HomeDirectory,LastBadPasswordAttempt,LastLogonDate,LogonWorkstations,City,Manager,MemberOf,MobilePhone,PasswordLastSet,BadLogonCount,pwdLastSet,SamAccountName,UserPrincipalName,whenCreated,whenChanged
| Export-CSV Allusers.csv -NoTypeInformation -Encoding UTF8
only one problem is that Manager column is generating this outcome rather showing exact name of the line Manager .
CN=Mr XYZ ,OU=Users,OU=IT,OU=Departments,OU=Company ,DC=organization,DC=com,DC=tk -
How do I get an attribute on a simple element?
I am trying to get an attribute on a simple element that has a type of "nonNegativeInteger". I've tried numerous ways to do this and the validator rejects them all.
I tried the following:
<element name="birthdate" minOccurs="1" maxOccurs="unbounded"
type="nonNegativeInteger">
<complexType>
<attribute name="format" type="string" use="default"
value="CCYYMMDD"/>
</complexType>
</element>
bit I get the following:
<Line 110, Column 38>: XSD-2027: (Error) Invalid element 'complexType' in 'element'
This was suggested previously:
<element name="birthdate" minOccurs="1" maxOccurs="unbounded"
base="nonNegativeInteger">
<complexType>
<attribute name="format" type="string" use="default"
value="CCYYMMDD"/>
</complexType>
</element>
where the type in the <element> is changed to base but it gives the message:
<Line 110, Column 39>: XSD-2026: (Error) Invalid attribute 'base' in element 'element'
The following works but does not provide any type checking for the data in the tag:
<element name="birthdate" minOccurs="1" maxOccurs="unbounded">
<complexType content="mixed">
<attribute name="format" type="string" use="default"
value="CCYYMMDD"/>
</complexType>
</element>
The following is accepted but the attribute definition is ignored and the XML is flagged as having an invalid attribute.
<element name="birthdate" minOccurs="1" maxOccurs="unbounded">
<simpleType base="nonNegativeInteger">
<attribute name="format" type="string" use="default"
value="CCYYMMDD"/>
</simpleType>
</element>
How can I have both attributes and type checking on a simple element?Did you try the following:
<element name = "birthdate">
<complexType>
<complexContent>
<extension base="nonNegativeInteger">
<attribute name="format"
type="string"/>
use="default"
value="CCYYMMDD"/>
</extension>
</complexContent>
</complexType>
</element>
The element is defined to be a complexType and having complexContent because it has an attribute. The complexContent can have either extension or restriction as its children. They define the type of derivation of the element from the base.
Hope this helps..
Cheers,
Chetan
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Paul Anderson ([email protected]):
I am trying to get an attribute on a simple element that has a type of "nonNegativeInteger". I've tried numerous ways to do this and the validator rejects them all.
I tried the following:
<element name="birthdate" minOccurs="1" maxOccurs="unbounded"
type="nonNegativeInteger">
<complexType>
<attribute name="format" type="string" use="default"
value="CCYYMMDD"/>
</complexType>
</element>
bit I get the following:
<Line 110, Column 38>: XSD-2027: (Error) Invalid element 'complexType' in 'element'
This was suggested previously:
<element name="birthdate" minOccurs="1" maxOccurs="unbounded"
base="nonNegativeInteger">
<complexType>
<attribute name="format" type="string" use="default"
value="CCYYMMDD"/>
</complexType>
</element>
where the type in the <element> is changed to base but it gives the message:
<Line 110, Column 39>: XSD-2026: (Error) Invalid attribute 'base' in element 'element'
The following works but does not provide any type checking for the data in the tag:
<element name="birthdate" minOccurs="1" maxOccurs="unbounded">
<complexType content="mixed">
<attribute name="format" type="string" use="default"
value="CCYYMMDD"/>
</complexType>
</element>
The following is accepted but the attribute definition is ignored and the XML is flagged as having an invalid attribute.
<element name="birthdate" minOccurs="1" maxOccurs="unbounded">
<simpleType base="nonNegativeInteger">
<attribute name="format" type="string" use="default"
value="CCYYMMDD"/>
</simpleType>
</element>
How can I have both attributes and type checking on a simple element?<HR></BLOCKQUOTE>
null -
How to give the length , cardinality and format when creatin a data type?
Hi,
I am new to XI and i wish to know how to give the cardinality ,format and length when creating a data type .Also please let me know how to give the following?
cardinality --repeating and required
non repeating , optional
thanks and regardsWhen you are defining the elements of the datatype there are columns where you can do what you need:
<b>column type</b>: here you choose the type of data of the element
it can be a standard type or a user defined one (if you click one time only it should appear an icon in the right for input help: click there and choose the type you need)
<b>column occurence </b>: in a similar way of column type here you define the cardinality of the element (min occurence and max occurence)
setting min occurrence: 1, max occurrence 1 or unbounded --> required
mmin occurrence 0, max occurrence 0, 1 or unbounded --> optional
about the attributes there are directly the choice between required or optional.
<b> column details </b>: here you define the length of the element if it is a string or a lot of other things if the type is a different one.
I hope this will help you -
How to assign reconcilation account to particular compant code ,
Hi ,
How to assign reconcilation account to particular compant code , pleaseHi siva
You can create the reconciliation account in FS00 there while creating you can give the company code
Another option is Copy the available reconciliation account in FS00 and change the company code.and give your own G/L account number. and save it
Regards
Srinath
Maybe you are looking for
-
Hi, I created a table control in a standard transaction code. when iam clicking create button, The table control is displaying in display mode.Now I should provide to the user to add the entries in the table control in create mode. Can any body resol
-
Info on how to work with Reflow docs in Dreamweaver?
Ok, I'm new to web design and development. I've taken several onlin HTML5, CSS and Dreamwever courses but still easaly confused. I'm looking at Reflow and wondering if I can use it to create responsinve sites visually then take the css into Dreamweav
-
VL06I Inbound delivery monitor not showing correct results
Dears, We are creating inbound deliveries on the basis of POs and creating GR via MIGO after eliminating movement type in line item catageory by using SPRO. For monitoring we would like to use VL06I but its not showing correct results. Can anyone gui
-
How do I read an attachment with Adobe Acrobat in my e-mail ?
how do I read an attachment with Adobe Acrobat in my e-mail ?
-
I have a roll of pictures taken in Europe, but the camera's time was never corrected. Can I do a batch change to all the pics adding nine hours to the time?