Creating keyfigure as an attribute for a characteristic
Hi All,
Can anybody explain what is the use of creation of keyfigure as an attribute in the attributes creation process.Please provide a sample example as to where it i used in real time.
Regards,
Sunitha
Hi ,
Cost Price will still be defined as a key figure, but we will be defining it as an attribute of 0MATERIAL.
Choice of doing this will subject to specific reporting requirements like, since cost price of the article is slowly changing value (nearly fixed) ,hence we might prefer to load this into the master data which can be looked up along with other attributes of 0MATERIAL while doing transactional loads.
Also this will help in reducing the width of the fact table.
Another scenario could be if price is time dependant. It would be a good option again to use this as an attribute.
Thanks,
Vikram
Similar Messages
-
Can i create more than one attributes for the custom class created using java API
Hello everyone,
I have been creating class and its attributes programatically using java APIs, I want to know that is there any way to create multipal attributs for the same class in just one call of API with all the options for each attributes,
thanksYou can create a new class and define all of the Attributes at the time the class is created - this is the preferred way of creating classes. Use the addAttributeDefinition() method on ClassObjectDefinition. If you need to add attributes to existing classes, you can only add them one at a time (using the addAttribute() method on ClassObject).
(dave) -
Large number of attributes for a characteristic
I have the requirement to add like 100 attributes to the 0Material object. This object already have 120 attributes, what would result in a total ol 220 attributes. Although I know the technical limit is 750, I'd like to know if anybody has heard or experienced some performance or any kind of issue because of having such a big number of attributes in an object (0Material being particularly critical). Thanks a bunch. Regards.
I dont know the upper limit, but I think 80 is too much. I have never used more than 15-20. For Nav attributes, a seperate tables are created which causes the Performance issue as result in new join at query run time. Just ask your business guy, if these can be reduced.One way could be to model these attributes as seperate characteristics. It will certainly help.
Thanks...
Shambhu -
Using Key figure attribute of a characteristic in a query
Hi All,
I have the following scenario. I have defined a key figure attribute for a characteristic Infoobject. I have included this characteristic infoobject in an Infocube. I now want to use the key figure attribute as a regular key figure when I create a report based on the Infocube. Is it possible and if so how is it possible?
Thanks
SundarHi Saundar,
There's another way.Set the characteristic with key figure attributes as a data target under your info area. Create a MultiProvider and include your Cube and this characteristic. Here you can set the key figure as your MultiProvider key figure.
Don't forget to take care of the identification of MultiProvider.
Hope this helps.
Regards,
Aaron -
Creating the text data source for 0OI_LIFNR(TD: Carrier (Number of vendor a
Hi
Have to create the text data source for this characteristic. Basically it is the same as 0Vendor here.
I want to make it delta enabled.
Am creating it on the view BIW_LFA1T(same as 0vendor)
Can anyone advise what can I use to make it delta enabled without any code.
Can I use numeric pointer like the 0Vendor_text.
Many Thanks and regards,
Kate.when defining a data source through the admin web page, don't add '!' in front of the password.
! is needed only when configuring a data source in the mapViewerConfig.xml file. -
How to create a node with attributes at runtime in webdynpro for ABAP?
Hi Experts,
How to create a node with attributes at runtime in webdynpro for ABAP? What classes or interfaces I should use? Please provide some sample code.
I have checked IF_WD_CONTEXT_NODE_INFO and there is ADD_NEW_CHILD_NODE method. But this is not creating any node. I this this creates only a "node info" object.
I even check IF_WD_CONTEXT_NODE but i could not find any method that creates a node with attribute.
Please help!
Thanks
GopalHi
I am getting the following error while creating a dynamic context node with 2 attributes. Please help me resolve this problem.
Note
The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
My code is like the following:
TYPES: BEGIN OF t_type,
CARRID TYPE sflight-carrid,
CONNID TYPE sflight-connid,
END OF t_type.
Data: i_struc type table of t_type,
dyn_node type ref to if_wd_context_node,
rootnode_info type ref to if_wd_context_node_info,
i_node_att type wdr_context_attr_info_map,
wa_node_att type line of wdr_context_attr_info_map.
wa_node_att-name = 'CARRID'.
wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
insert wa_node_att into table i_node_att.
wa_node_att-name = 'CONNID'.
wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
insert wa_node_att into table i_node_att.
clear i_struc. refresh i_struc.
select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
rootnode_info = wd_context->get_node_info( ).
rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
attributes = i_node_att
is_multiple = abap_true ).
dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
dyn_node->bind_table( i_struc ).
l_ref_interfacecontroller->set_data( dyn_node ).
I am trying to create a new node. That is
CONTEXT
- DYNFLIGHT
CARRID
CONNID
As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
Also I cannot define the structure in the ABAP dictionary because it changes based on condition
Message was edited by: gopalkrishna baliga -
Create attributes for BP in CRM
Hi, I am creating a new BP in CRM and I need to add the marketing attributes to the BP. I am using the below BAPI's but the marketing attributes is not working depsite it returning the assignemtn created message, and despite otehr future GET bapis' correcntly pulling back the data. There seems to be some memory issue. Has anyone been able to create a BP and add marketing atributes successfully?
BAPI_BUPA_FS_CREATE_FROM_DATA2
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = s_return.
add the marketing attributes
CALL FUNCTION 'BAPI_OBJCL_CREATE'
EXPORTING
objectkeynew = i_objectkey
objecttablenew = i_object_table
classnumnew = i_class
classtypenew = i_class_type
status = '1'
IMPORTING
classif_status = s_status
TABLES
allocvaluesnum = eit_values_num
allocvalueschar = eit_values_char
allocvaluescurr = eit_values_curr
return = it_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = s_return.Hi,
You can not use the BAPI_OBJCL* function modules directly. Try to use function module CRM_MKTBP_SAVE_BP_LIST. If it does not work try CRM_MKTBP_PUT_OB + CRM_MKTBP_SAVE_OB.
There are some posts that talk about CRM_MKTBP_SAVE_BP_LIST. Try this one
[Reg: CRM Marketing attributes for CRM 7.0; -
An error occured while creating the original attribute for message no26 296
Hi All,
I am new to DMS , we are trying to store PM documents on content server , created a storage category and while assigning files to storage category then on saving the document i get the below error :
An error occured while creating the original attribute for
Message no. 26 296
Diagnosis
An error occured while creating an original in the Knowledge Provider.
System Response
The original could not be created.
Procedure
Contact the systems administrator and check the log file (transaction Evaluate application log, object SDOK).
Please let me know what configs i am missing ...
Thanks in advance
regrds
pushpaHi Pushpa,
Which enhancement package are you on currently? This is observed in cases where originals in DIR's are invisible and sometimes error message 26296 occurs in transaction CV01n. Hence,please check your entries in the table SDOKPROP to avoid such a problem in your system.
Further,suggest you explore if the below resolutions can be adopted in your case.
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=10321987
http://wiki.sdn.sap.com/wiki/display/PLM/OriginalsinvisibleafterEHP3or+EHP4
Regards,
Pradeepkumar haragoldavar -
Can´t create a date attribute for basic asset
Hi
I created a basic asset where I want to have a date attribute to pick up a date for calendar.
My question is: How can I create a date attribute for a basic asset? For what I understand I have to create an element attribute in my descriptor file like this
<PROPERTY NAME="imagedate" DESCRIPTION="Image date">
<STORAGE TYPE="TIMESTAMP" LENGTH="8"/>
<INPUTFORM TYPE="ELEMENT" WIDTH="24" MAXLENGTH="48" REQUIRED="NO" DEFAULT="" INSTRUCTION="Format: yyyy-mm-dd hh:mm"/>
<SEARCHFORM DESCRIPTION="Image date" TYPE="ELEMENT" WIDTH="48" MAXLENGTH="128"/>
</PROPERTY>
Then, when I create a new instance of this asset, this attribute appears with this error:
Date: Unable to find element OpenMarket/Xcelerate/AssetType/Oportunidade/ContentForm/imagedate
But the element (imagedate.xml) is there!!
I request help.It seems that the table does not have the entries, maybe b/c we are on R3 4.7. Could you tell me what the entries are suppossed to be to allow the Asset and Cost Center lookup? The search does work for WBS element though and I don't see anything specific to WBS element in that table. In any case if you know the entries that would be great, also this table is not modifiable via SM30, here are the entries that I have in that table.
AUF_NETNR PLM_HELPVALUES_AUTHCHECK
BU_PARTNER BUPA_BAPI_F4_AUTHORITY
DAENR PLM_HELPVALUES_AUTHCHECK
DOKNR PLM_HELPVALUES_AUTHCHECK
EQUNR PLM_HELPVALUES_AUTHCHECK
KUNNR PARTNER_BAPI_F4_AUTHORITY
LIFNR PARTNER_BAPI_F4_AUTHORITY
MATNR PLM_HELPVALUES_AUTHCHECK
NW_AUFNR PLM_HELPVALUES_AUTHCHECK
PARNR PARTNER_BAPI_F4_AUTHORITY
PS_POSID PLM_HELPVALUES_AUTHCHECK
PS_PSPID PLM_HELPVALUES_AUTHCHECK
QMNUM PLM_HELPVALUES_AUTHCHECK
S_AGNCYNUM INT_FLBOOK_F4_AUTHORITY
S_AIRPORT INT_FLBOOK_F4_AUTHORITY
S_BOOK_ID INT_FLBOOK_F4_AUTHORITY
S_CARR_ID INT_FLBOOK_F4_AUTHORITY
S_CITY INT_FLBOOK_F4_AUTHORITY
S_CONN_ID INT_FLBOOK_F4_AUTHORITY
S_COUNTNUM INT_FLBOOK_F4_AUTHORITY
S_COUNTR INT_FLBOOK_F4_AUTHORITY
S_CUSTOMER INT_FLBOOK_F4_AUTHORITY
S_FLCONN INT_FLBOOK_F4_AUTHORITY
S_FLCONN1 INT_FLBOOK_F4_AUTHORITY
S_FLCONN2 INT_FLBOOK_F4_AUTHORITY
S_PLANETYE INT_FLBOOK_F4_AUTHORITY
S_TRNUM INT_FLBOOK_F4_AUTHORITY
TPLNR PLM_HELPVALUES_AUTHCHECK
USCOMP SUSR_BAPI_F4_AUTHORITY
XUBNAME SUSR_BAPI_F4_AUTHORITY -
Imported XSLT cannot create attributes for generated XML element
I have two xslts. One imports the other.
The imported xslt creates XML elements with attributes and this XML is stored in a variable in the main stylesheet
If I perform the transformation with JRE prior to 1.6.0.18 then all works fine
If I use 1.6.0.18 or 1.6.0.19 then the attributes aren't added.
If I add attributes in the main xslt it works fine or if I output the element directly instead of first storing it in a variable then it also works fine.
Problem seems to be when you try to add attributes from an imported stylesheet and store the generated element in a variable.
Below two stylesheets to illustrate :
First MainStylesheet.xsl
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 1993-2005 Seagull Software Systems, Inc. -->
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:exsl="http://exslt.org/common"
extension-element-prefixes="exsl"
exclude-result-prefixes="xs">
<xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes" />
<xsl:import href="innerstylesheet.xsl"/>
<xsl:template match="/TestData">
<xsl:variable name="generatedElementXml">
<xsl:call-template name="generateElement">
<xsl:with-param name="s">testValue</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:for-each select="exsl:node-set($generatedElementXml)">
*** GeneratedElementXML {<xsl:text>
</xsl:text><xsl:copy-of select="*"></xsl:copy-of>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>Next innerstylesheet.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:exsl="http://exslt.org/common"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
extension-element-prefixes="exsl" >
<xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"/>
<xsl:template name="generateElement">
<xsl:param name="s"/>
<TestElement testAttribute="$s" />
</xsl:template>
</xsl:stylesheet>The result output by jres before 1.6.0.18 is :
<?xml version="1.0" encoding="UTF-8"?>
*** GeneratedElementXML {
<TestElement xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" testAttribute="testValue"/>
} The result output by jres since 1.6.0.18 is :
<?xml version="1.0" encoding="UTF-8"?>
*** GeneratedElementXML {
<TestElement xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
} Note : the 'testAttribute' attribute is missingHave found the difference in the code
In both JRE1.6.0_17 & JRE1.6.0_18, the class 'com.sun.org.apache.xalan.internal.xsltc.dom.AdaptiveResultTreeImpl' has the following method
public void addUniqueAttribute(String qName, String value, int flags)
throws SAXException
addAttribute(qName, value);
}In JRE1.6.0_17 the next method is
public void addAttribute(String name, String value)
if (_openElementName != null) {
_attributes.add(name, value);
else {
BasisLibrary.runTimeError(BasisLibrary.STRAY_ATTRIBUTE_ERR, name);
}In JRE1.6.0_18 the next method is
public void addAttribute(String uri, String localName, String qname,
String type, String value)
if (_openElementName != null) {
_attributes.addAttribute(uri, localName, qname, type, value);
else {
BasisLibrary.runTimeError(BasisLibrary.STRAY_ATTRIBUTE_ERR, qname);
}Note - the addAttribute method has additional parameters in JRE1.6.0_18 but the call from addUniqueAttribute wasn't updated.
So in JRE1.6.0_18 addUniqueAttribute actually invokes the following method in the base package com.sun.org.apache.xml.internal.serializer.EmptySerializer
public void addAttribute(String name, String value)
aMethodIsCalled();
void aMethodIsCalled()
// throw new RuntimeException(err);
return;
}and as you can see this does nothing. Hence the fact that the attribute isn't added. -
How to create a hirarchy for this characteristic having lengh 50?
Hi guru's
I have a scenario like characteristic is having lengh 50.Now I want to create a hierarchy for this characteristic.
But Hirarchy allows maximum lengh 32chrs only.
So could you please let me know how to create a hirarchy for this characteristic having lengh 50?
Thanks in advance
SivanandIsn't this the same question as here:
Hi all, Have a problem, Please let me know urgently.
Why the duplicate postings with different names?? -
How to create a attribute for a table
I am created a table with four columns.
How to create a attribute for each column.........Hi Cranjith Kumar,
First Create a node for ur table.In that give your table name in the dictionary structure then select option add attributes from the structure that will display the fields there u can select the fields then automatically attributes for ur table will be created in the context.
Reward points if useful.
Edited by: srilalitha yerramsetti on Jun 18, 2008 3:23 PM -
Thru code how to create a context node n context attribute for a table
Hi Friends....i need some clarification...according to my requirement i need 2 create contx node n ctx attribute for a table..i.e through the code(implemention NWDS) means this has 2 b done in dynamically...
More clearly according to the structure of a table in MySql DB the same table structure has 2 b designe in my view ..suppose my table(MySql) have 20 col's(name,dept,desig..) n 300 recoreds ..i hav to show that structure in view.
waiting for reply..frndzzzzzzzzHi Rajeshkelam,
Take a Value Node say "Employee".
Create 20 Value attributes (name, dept, desig..) under the Value Node(Employee).
Then Create a Dynamic Table using the "Employee" Value Node.
check this threads.
Dynamic table creation
Dynamic Table
Regards,
Mithu -
SAP CRM MObility Activity Survey to create Marketing Attributes for a BP
ATtrHi Gurus ,
I have to create an Activity from IPAD ( CRM Mobility ) which will create a survey response,and the survey responses have to be captured and then create Marketing Attributes for the BP related to the Activity. I am not able to use the Callback Function given to IPAD Application.
So my Approach so far has been :
implement a badi that gets trigerred at Survey Response submission.
in that call function module crm_svy_activity_pai.(Made a Z-copy of this to enforce COMMIT WORK )
I am not able to pass the parameter lr_values for FM: CRM_SVY_ACTIVITY_PAI
These are the 2 links that has been useful so far . Kindly add to this if possible.
Regds
OindrilaHi Jacques,
Once you click on Marketing in Web UI you will find "Marketing Attribute" in the Work Area.Click on that.
You need to give ID No. and Attribute Set name.
You need to mark Persons and Organisation checked also.
Below that you will find 2 blocks " Attributes" and "Value"
Under Attribute gve your Attributes Names you want to define ( e.g. Age,Salary or any client defined..) then select the Format ( Numeric or Chracter etc...)
Once you have filled in all the Attributes you click on one attribute and below you need to fill the Values ( e.g 20-30 yrs etc...) . If you want to make that value a default one you can select default check box against each value.
That way for each attributes you can define values. Hope this would help you.
Regards...
Edited by: akscrm akscrm on Sep 3, 2008 2:19 PM -
How to create an marketing attribute for the busines partner
hi guys,
can any body help.
how to assign/create the marketing attribute set to the business partner.
is there any function module which to create the marketing attribute for the business partner by passing the BP GUID.
if any body is having an sample code can u please post it.
regards
viswagHi Viswa,
In CRM 4.0, marketing attributes set can be created at T-code [CRMD_PROF_TEMPL]
The created attribue set can be assigned to BP at T-code [CRMD_PROF_BP]
The other way you can open the BP, in marketing at marketing attributes tab your can assign the created attribute set.
regards
satish kumar
*-Reward points if found helpful.
Maybe you are looking for
-
Data should get inserted in all tables if i enter the form field only once
Hi, I have a new question again. There are 5 tables in a database, that is t1, t2, t3, t4 & t5. the first 4 table has one common column, known as lc_no. I have build the form using the form builder. In that form, there is a 1 text field for lc_no. I
-
Windows - error : output module .mov after effects
When exporting a Quicktime movie from After Effects on windows 7, I get the following error ... After Effects error: Rendering error while writing to file "(my main internal drive / my file name).mov". An output module failed. The file may be damaged
-
How to delete pictures in ipad air
how to delete pictures in ipad air
-
hi gays, i have two program, the first one use {IMAQ create} to get a image from USB webcam, the second one is picture data process which use [Unflatten Pixmap VI] to get a image data from a BMP file. Now I want to combine this two program, but data
-
I need my password reset on my Mac.
I need to reset my password on my Mac notebook....