日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

SAP CRM settype的创建,背后发生了什么

發(fā)布時(shí)間:2023/12/19 编程问答 53 豆豆
生活随笔 收集整理的這篇文章主要介紹了 SAP CRM settype的创建,背后发生了什么 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

來自我的同事Sara。

當(dāng)我們?cè)贑RM系統(tǒng)里創(chuàng)建一個(gè)settype之后,其實(shí)系統(tǒng)后臺(tái)悄悄的幫我們創(chuàng)建了很多ABAP對(duì)象,比如對(duì)應(yīng)的database tables, other ABAP Dictionary objects, function groups, function modules, and screens等等。
Create set types:

DB check:自動(dòng)創(chuàng)建了一個(gè)和settype ID同名的數(shù)據(jù)庫表

問題:How this DB generate?
How to check what function groups, function modules, and screens are created? Especially which screens?
When we assign the attributes to the set type, I guess it will insert lines into the table.

Jerry的解答:

當(dāng)你創(chuàng)建一個(gè)新的settype時(shí),product框架會(huì)自動(dòng)生成針對(duì)該settype的structure和存儲(chǔ)Table, 以及對(duì)應(yīng)的用于CRUD的function module。但是了解框架本身如何實(shí)現(xiàn)我前面說的這些事情,對(duì)我們接下來做的co deployment沒有直接幫助。你的這個(gè)問題可以轉(zhuǎn)換成:

假設(shè)我只知道product的description字段是通過某個(gè)settype實(shí)現(xiàn)的,我想不問別人,自己弄清楚該settype的名字和訪問該settype的CRUD的function module名字,該如何做?

I got one information from my colleague, the Product Description function is implemented by the SAP standard set type. Then I want to make clear:
(1) Which standard set type implement Product Description and it’s DB table?
(2) Which function module (API) implement the CRUD of Product Description?

寫在前面:本文提及的方法只限一種思路,不排除個(gè)別Assignment Block 不適用的情景,請(qǐng)大家廣開思路,積極探索更多的方法來研究,希望能總結(jié)出更多的具體API,簡(jiǎn)化每一個(gè)功能的實(shí)現(xiàn)。

Product ID: SZIPC (in QHD)
After this self study, I can get a general knowledge of how the product fields implemented in the SAP System.

Then I will start this self study step-by-step by question driven.

(1) Which standard set type implement Product Description?

Try Google it first. Wow, got some information. set type name COMM_PR_SHTEXT.

(2) Is it right? How can I display set type?
One way, Google.

Second way, I would like to use SE93 to find transaction code by transaction description, got it!
TCODE: COMM_SETTYPE

There is some issue, you can not display set type by TCODE: COMM_SETTYPE directly, you can only use COMM_ATTRSET input the set type COMM_PR_SHTEXT first the sue TCODE: COMM_SETTYPE to dispaly.

(3) Then how can I find the DB for this set type and the CRUD function model?

There is 2 ways.

The first way, is to use TCODE: ST05 trace.
I update the description from Material_Sara to Material_SaraZhang. I search with key words ‘Material_SaraZhang’, then I find the DB–COMM_PORTEXT.

The second way, I would like to use TCODE: SE93 find the package of TCODE COMM_SETTYPE.–
Assume,I do not know, Most of the Set Type name = DB Table name.

There must be a table include all the Set Type name and DB Table names, how can I find it?
This is an important thinking point, for every TCODE in SAP, it’s a collection of multiple functions /tables/views. Which should be packaged in a package.

In the package, there is multiple DB, from the DB description, you can know COMC_SETTYPE is the admin table which include all information we want.–Admin table and header table always as the start and base point of DB relationship.

Filter by the set type name** COMM_PR_SHTEXT**, we found the set type DB COMM_PRSHTEXT and related function module.

(4) How the function module work when I read the product description?

TCODE: SE37 find COM_COMM_PR_SHTEXT_READ_WITH_P and set breakpoint.

search Product ID: SZIPC

in WebClient UI.

Follow the call stack, find the key API for read product set types.

(5) How the function module work when I Update the product description?

Function Module: COM_COMM_PR_SHTEXT_MAINTAIN_UP
Follow the call stack, find the key API for update product set types.

(6) I will try to simplify this function module, pick this function into a report for confirming how does this CALL FUNCTION ‘CRM_PRODUCT_UI_GETDETAIL’ work?

This is the key function for processing product set types.

We’d better to understand it’s indeed input value
One, is product guid in a structure.
Two, is the set type name.
It means that, any set type can read by this function.


要獲取更多Jerry的原創(chuàng)文章,請(qǐng)關(guān)注公眾號(hào)"汪子熙":

總結(jié)

以上是生活随笔為你收集整理的SAP CRM settype的创建,背后发生了什么的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。