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;
Similar Messages
-
How to deactivate the marketting attributes for BP in CRM
Hi,
how to deactivate the marketting attributes for BP in CRM
I can add and maintain the same using tcode crmd_prof_char
But how do I deactivate.
Points will be rewarded
Thanks.
-
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. -
Error creating attribute for set_operation operator in OMB
I am trying this tcl scripting language OMB for OWB 10.1.0.2.. I get the
message
OMB02911: Name conflict for attribute B: API0408: Attribute object with name B already exists.
for the following script
OMBCREATE MAPPING 'A_MAP' \
ADD SET_OPERATION OPERATOR 'U' \
ADD ATTRIBUTE 'A' OF GROUP 'INGRP1' OF OPERATOR 'U' \
SET PROPERTIES (DATATYPE) VALUES ('NUMBER') \
ADD ATTRIBUTE 'A' OF GROUP 'INGRP2' OF OPERATOR 'U' \
SET PROPERTIES (DATATYPE) VALUES ('NUMBER') \
ADD ATTRIBUTE 'B' OF GROUP 'INGRP1' OF OPERATOR 'U' \
SET PROPERTIES (DATATYPE) VALUES ('NUMBER')
when I omit the last two add attribute statement, it works fine.
Any help welcome.thanks for your comments, now I have seen your previous one.
One further question please
I bound to a property this morning but: Haw I trigger the method binding and: the <rich:panelMenu> did'nt have an attribute like action or actionListener. I have made a research but i didn't found the solution.
cheers -
How to create attribute & set types with customer namespace COMM_ATTRSET?
Hi CRM Gurus,
I want to create some attributes and set types on CRM system with
`/FITGL/` namespace but system is not allowed to create objects
according. After debugging derives that SAP standart coding given below
on LCOM_ATTRIBUTE_NEWF19 include.
IF ( lv_systemname <> gc_sap_system ) AND
( iv_object_name(1) <> 'Y' AND iv_object_name(1) <> 'Z' ).
Should we make an enhancement on this include? Is there any side
efffects of this enhancement creating attribute & set types on CRM
system during the packaging in terms of related with other attribute & set types objects?
Kind Regards,
FahrettinHi CRM Gurus,
I want to create some attributes and set types on CRM system with
`/FITGL/` namespace but system is not allowed to create objects
according. After debugging derives that SAP standart coding given below
on LCOM_ATTRIBUTE_NEWF19 include.
IF ( lv_systemname <> gc_sap_system ) AND
( iv_object_name(1) <> 'Y' AND iv_object_name(1) <> 'Z' ).
Should we make an enhancement on this include? Is there any side
efffects of this enhancement creating attribute & set types on CRM
system during the packaging in terms of related with other attribute & set types objects?
Kind Regards,
Fahrettin -
PL/SQL: Create attributes
i am using oracle portal 10.1.4 and trying to use pl/sql to create attributes for a page group. however, there are no information about this inside the API (as far as i can see). i've also been browsing the forums for hours without any luck.
if there's no function to do this in the API, would it possible to create attributes manually in the table WWSBR_ATTRIBUTES ? (i tried this too, but didn't have sufficient privileges).
help would be gratefully appriciated.Hey people.. Is it possible or not? Anyone?
-
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 -
New Format for creating Attribute Sets.
Hi,
In SAP CRM webclient ui 7.0 there is a new format for creating Attribute Sets. The format is 'value table'.
On selecting Format=Value Table the field 'Table' comes up.
There is a message: Here you can enter a table that contains all the values you want to use. This is particularly useful for attributes with a lot of values or if you want to enter multiple attributes with the same values. The table must be a check table with a search help.
Do I need to create a table with all the fields in in marketing attribute assignment block with search help on attributes field.
Can you please guide as to how I should go about this issue.
Regards,
John.Hi John,
The Attribute Set of Format type 'Value Table' is for the Mutiple Attribute Sets. These can be either a Single Attribute Set with Multiple values or the Multiple Attribute Sets with One value.
You can include all such marketing attributes into one table which is a check table with search help. and use this as the Value Table.
Hope this helps you out!
Regards
Veena. -
Report accessible in CRM PCUI for marketing attributes for contacts
I am trying to create a report accessible in CRM PCUI home page for marketing attributes for contacts(info from CRM, not R3). Does anyone know the steps to get this done please?
Hi Abdul,
Can you tell me how did you do this. I have a similar requirement in PCUI where I need to have a two level report in PCUI.
Would request to treat this as very urgent.
Regards
Priyanka -
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. -
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) -
Creating BADI for datasource enhancement in CRM system
Hi,
I am working on SAP BI/BW. This is the first time I am working in CRM system with CRM datasources. Facing some problem for datasource enhancement as never done it before in the CRM system. Is there anyone who can help in in creating BADI for datasource enhancement in CRM.
Thanks in advance
MoumitaHi Kushal,
You can find the BADI name by,
Go to Transaction SE24
Enter the Object Type CL_EXITHANDLER and click on Display.
Double Click on method "GET_INSTANCE".
Put a Break-point on Call method cl_exithandler=>get_class_name_by_interface
Run RSA3 transaction and execute the DataSource.
The execution will stop at the break point.
Check the values of variable 'exit_name', it will give you the BADI name called at that time.
Thanks,
Kokila -
Creating BADI for datasource enhancement in CRM.
Hi,
I am working on SAP BI/BW. This is the first time I am working in CRM system with CRM datasources. Facing some problem for datasource enhancement as never done it before in the CRM system. Is there anyone who can help in in creating BADI for datasource enhancement in CRM.
Thanks in advance
MoumitaHi Prasad Reddy,
This are the available badis and exits for this t.code:
Enhancement/ Business Add-in Description
Enhancement
MGA00001 Material Master (Industry): Checks and Enhancements
MGA00002 Material Master (Industry): Number Assignment
MGA00003 Material Master (Industry and Retail): Number Display
Business Add-in
MG_MASS_NEWSEG User-Specific Fields & Segments in Mass Maintenance
MATGRP_SKU_UPD
CDT_CHECK_MATERIAL Checks for Existence of a Material in a CDT
BADI_MM_MATNR
BADI_MAT_F_SPEC_SEL BAdI for Material Special Field Selection
BADI_MATNR_CHECK_PVS
BADI_MATERIAL_REF Addition of customer-defined default data for material
BADI_MATERIAL_OD
BADI_MATERIAL_CHECK Enhanced checks for material master table
BADI_GTIN_VARIANT
BADI_EAN_SYSTEMATIC
o.of Exits: 3
o.of BADis: 11
Find the Exact exits and badis for ur requirement.
How to fine the exact badi:
1) Goto se24 (Display class cl_exithandler)
2) Double click on the method GET_INSTANCE.
3) Put a break point at Line no.25 (CASE sy-subrc).
Now
4) Execute SAP standard transaction
5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
7) This way you will find all the BADIs called on click of any button in any
transaction
Rgds,
P.Naganjana Reddy
if you follow this 7 steps, you will find a suitable BADI. -
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
Maybe you are looking for
-
Read only view which has an ORDER BY clause
Aim to create a read only view which has an ORDER BY clause Sample script CREATE TABLE tab1 ( col1 VARCHAR2(3), col2 NUMBER INSERT INTO tab1(col1, col2) VALUES ('ccc', 30); INSERT INTO tab1(col1, col2) VALUES ('bbb', 20); INSERT INTO tab1(col1, col2)
-
Should I buy an enclosure kit for cloning or just use what I have?
My internal 250gig hard drive is running out of space and I want to replace it with a 500gig internal drive (not purchased yet). I currently also have an external WD My Book for Mac (1TB), which I use for back ups via time machine. After I get the ne
-
When saving data to a text file there are two parameters that are saved, Delta T and TO. I am sure that (1/delta t) is the sampling rate... but what is TO? Thomas
-
Append output from other class
Hello! I have a blackjack game where I have used a.append(); to send output to a graphic textarea instead of the console. My game consists of several classes where one of them is the one who runs the actual game with graphic things and so on. In this
-
Can someone save this vi. in labview 7.0 please?
hi i have this vi in labview 7.1 and i need it in labview 7.0 which i dont have. can someone save it in 7.0 and repost it please? regards madgreek Attachments: array1vi.vi 38 KB