主页 > 专属服务器 > > 正文

网站建设_代理服务器技术_是什么

来源:胜利云 发布时间:2021-12-31 13:10 标签:技术服务器是什么网站建设代理
浏览:

Purpose : Assign and Modify marketing attributes to the Business Partner through the report in SAP-CRM.

Here the source code.

Goto tcode SE38.

DATA : it_f type CRMT_MKTBP_BP_VALUES_T,

it_1 type TABLE OF CRMT_MKTBP_BP_VALUES,

it_2 type TABLE OF CRMT_MKTBP_ATTRIBUTE_VALUES,

wa_1 type CRMT_MKTBP_BP_VALUES,

wa_2 type CRMT_MKTBP_ATTRIBUTE_VALUES.

DATA : ET_RETURN type TABLE OF BAPIRET2.

wa_2-ATNAME         = ‘HOBBIES’.

*wa_2-ATWRT          = ‘soccer’.

wa_2-ATWRT           = ‘golf’.

APPEND wa_2 to it_2.

wa_2-ATNAME         = ‘FZ_BYKE_SET’.

*wa_2-ATWRT          = ‘childern’.

wa_2-ATWRT          = ‘youngers’.

APPEND wa_2 to it_2.

wa_1-PARTNER_GUID    = ‘005056C000081EE48DE3BD1167EF9685’.

wa_1-PARTNER             = ‘0000423192’.

wa_1-ATTRIBUTE_SET   = ‘INTERESTS’.

wa_1-ALLOCVALUES     = it_2.

append wa_1 to it_1.

wa_1-PARTNER_GUID   = ‘005056C000081EE48DE3BD1167EF9685’.

wa_1-PARTNER            = ‘0000423192’.

wa_1-ATTRIBUTE_SET  = ‘FZ_BYKE_SET’.

wa_1-ALLOCVALUES    = it_2.

append wa_1 to it_1.

CALL FUNCTION ‘CRM_MKTBP_SAVE_BP_LIST’

EXPORTING

IV_MSA                              = ‘ ‘

IV_COMMIT                        = ‘X’

it_alloclist_bp                      = it_1

IV_CONVERT_VALUES       = ‘X’

IV_OBJTYP                         = ‘BUT000’

IV_SET_LOCK                     = ‘X’

IV_WRITE_ALE                   = ‘X’

TABLES

ET_RETURN                       = ET_RETURN

.

CALL FUNCTION ‘BAPI_TRANSACTION_COMMIT’

EXPORTING

WAIT              = ‘X’

*  IMPORTING

*    RETURN        =

.

IF sy-subrc = 0.

MESSAGE ‘MARKETING’ ATTRIBUTES SUCCESSFULLY CREATED FOR GIVEN BP’ TYPE ‘S’.

ELSE .

MESSAGE ‘MARKETING ATTRIBUTES NOT CREATED FOR GIVEN BP’ TYPE ‘E’.

ENDIF.

Before execution.

In the program we are assigning marketing attributes to the business partner number  0000423192.

Go to tcode BP for testing particular business partner.

Here, there is no marketing attributes to the existing business partner.

After execution:

Details of bp number 423192 Marketing attributes.

FZ_BYKE_SET is the attribute set name and its attribute is FZ_BYKE_SET and its value is CHILDREN shown in the below screen shot.

And INTERESTS is the attribute set name and its attribute is HOBBIES and its value is SOCCER shown in the below screen shot.

Finally marketing attributes successfully assigned to particular business partner.

Now If you want to modify the attributes values then go to program change the values in the code. Modified screen shot shown below.

Here value youngers is the modified value to the FZ_BYKE_SET attribute set.

And value golf is the modified value to the INTERESTS attribute set.

Successfully modified both values of both attribute sets.

Nice blog SIVA. I am new to SAP CRM. Very useful info...

Thanks Kasi.

Regards,

Siva R.

Hi Siva.

In general can not we assign or modify the marketing attributes to particular business partner without using this report./?

Yeah Kasi.

Not only by using this report to get that. You can assign or modify the marketing attributes to existing BP go through SAP Tcodes.

Below is the way of create/change and assign marketing attributes to existing BP through tcodes.

tcode CRMD_PROF_TEMPL for creating Attribute Set.

tcode CRMD_PROF_CHAR for change/create Attributes.

tcode CRMD_PROF_BP for assigning attribute set to existing BP.

And finally go to tcode BP enter business partner number and check attribute set, attributes, values and all those stuff assigned or not. Still have any queries let me know. ..

Regards,

Siva R.

Excellent effort Siva.

Thank you very much for your helpful suggestions.

I have been assigned to BP successfully.

Yalimram.

Thanks Shiva. very handy

Nice blog Siva

Thanks for this

Arden

Hi Shiva,

Nice Blog!!!!

I want to add the marketing attribute values instead of overwriting the old ones.

Is there any way to do that.

In the given example after executing the second time, i need soccer and golf should be attached to the BP.

I have checked the above FM using fcode as well, still it is overwriting.

Thanks,

Ravi

Hi Ravi Teja,

Thanks.

Yes there is way to do that.

If you want to Add attributes to BP we can use this FM

CRM_MKTBP_CHANGE_BP and import your bp number guid and fcode etc.. then marketing attribute values will be add with out overwrite unless use this FM it will be overwrite.

Regards,

Siva R.

Hi Shiva,

I test FM CRM_MKTBP_CHANGE_BP  ,有哪些云服务器,如何租用服务器, it still overwrite ,not add。

Regards,

sanly

Hi Siva,

an alternative solution would be to use the BOL to update the marketing attributes. Once you have a BP-entity you can simply do the following:

DATA: mktattr_entity TYPE REF TO cl_crm_bol_entity,

mktattr        TYPE crmt_mktbp_attribute.

mktattr_entity = bp_entity->create_related_entity( iv_relation_name = |BuilMktAttributeRel| ).

mktattr-attribute_set  = |INTERESTS|.

mktattr-attribute        = |HOBBIES|

mktattr-value             = |soccer|.

mktattr-changed_at    = sy-datum.

mktattr-changed_by   = sy-uname.

mktattr_entity->set_properties( mktattr ).

IMHO this code is easier to read and understand compared to the direct use of the function module. Furthermore, you can use the same code to create marketing attributes in the Web UI as well.

Best,

Christian

Yes absolutely Christian. We can assign Marketing attributes through create_related_entity get from Business Object Layer. For web UI purpose.

But we have plenty of BAPIs right. So i tried to how do we use CRM_MKTBP_SAVE_BP_LIST  BAPI.

,大数据好就业吗,云服务器 免费,大数据的现状
发表评论
验证码: 点击我更换图片

注:网友评论仅供其表达个人看法,并不代表本站立场。

热门文章

  • 亚马逊云_海报cdn_优惠券
    <strong>亚马逊云_海报cdn_优惠券</strong>

    亚马逊云_海报cdn_优惠券

    消费者在哪里?这不是医疗保健领域的"捉迷藏"游戏,而是建立一个全面运转的医疗保健系统所需要的关键缺失要素。让消费者参与进来——作为一个消费...

  • 云解析_svn服务器安装_限时特惠
    <strong>云解析_svn服务器安装_限时特惠</strong>

    云解析_svn服务器安装_限时特惠

    集成/docker/梅索斯/marathonapachemesos是一个用于调度和管理分布式应用程序的开源集群管理器。Mesos几乎就像整个集群是一个单一的集群一样分配CPU和RAM等资源...

  • 云服务器_阿里云服务器账号_哪家好
    <strong>云服务器_阿里云服务器账号_哪家好</strong>

    云服务器_阿里云服务器账号_哪家好

    技术支持副总裁Aileen Wyer和高级系统管理员Maruf Rahman最近与我们坐下来讨论我们的合作伙伴关系如何帮助CAN Capital的遗留备份基础设施现代化,以简化数据管...

  • 消息队列_折枝by困倚危楼百度云_新注册优
    <strong>消息队列_折枝by困倚危楼百度云_新注册优</strong>

    消息队列_折枝by困倚危楼百度云_新注册优

    今天,两位前行业分析师(现在是Veeam高管)讨论了塑造数据保护行业和IT格局的趋势:Jason Buffington@JBuff,前ESG数据保护首席分析师Dave Russell@BackupDave,Ga...

  • 中间件_服务器能干什么_超低折扣
    <strong>中间件_服务器能干什么_超低折扣</strong>

    中间件_服务器能干什么_超低折扣

    Nathan Sielaff,World Vision的系统工程师,负责备份、存储等。他致力于创建一个灵活和敏捷的IT环境,这样组织就不必担心底层基础设施,可以将精力集中在任...

云储存

更多 >
云储存网站建设_企业邮箱foxmail_免费领
云储存网站建设_开源cdn源码_速度快
云储存游戏服务器_FTP服务器_是什么
云储存亚马逊云_仙剑奇侠传2百度云_是什么
云储存数据库服务器_分布式数据库的特性_怎么