Data exchange of settype COMM_PRFREEATTR

i042416發表於2020-02-11

(1) in ERP, use tcode SM30, view name: MATERIALID, configure an external long material number for material created in MM01:

in my example, it is AAAAA

Data exchange of settype COMM_PRFREEATTR

Once saved, it will be saved in table MATERIALID as below:

Data exchange of settype COMM_PRFREEATTR

(2) download it into CRM:

This is what I observed in tcode SMW01:

Data exchange of settype COMM_PRFREEATTR Data exchange of settype COMM_PRFREEATTR Data exchange of settype COMM_PRFREEATTR

Question 1: why I insert an entry in Material Identification including a external material number and then the external number will disappear after I save it.

Data exchange of settype COMM_PRFREEATTR

Answer:

There is a routine to convert the input/output of MATERIALID-MATNR_EXT

Data exchange of settype COMM_PRFREEATTR Data exchange of settype COMM_PRFREEATTR Data exchange of settype COMM_PRFREEATTR Data exchange of settype COMM_PRFREEATTR

When I insert a value in MATERIALID-MATNR_EXT, the input value will be convert to another value according to rules in CONVERSION_EXIT_MATNL_INPUT. In my case, ENHANCEMENT MGV_CONV_EXIT_SAPLOMCV in FM CONVERSION_EXIT_MATNL_INPUT is switched off.

Data exchange of settype COMM_PRFREEATTR Data exchange of settype COMM_PRFREEATTR

So When I insert aaaa, you can see the input is converted to null.

Data exchange of settype COMM_PRFREEATTR Data exchange of settype COMM_PRFREEATTR

Question 2: Why I can see external long material number in se11 table Materialid, but cannot see data in view material identification ?

Data exchange of settype COMM_PRFREEATTR

Answer:

The display of external long material number in view "material identification" is converted by routine:

Data exchange of settype COMM_PRFREEATTR

But the ENHANCEMENT 8 MGV_CONV_EXIT_SAPLOMCV in CONVERSION_EXIT_MATNL_OUTPUT is still switched off which is same as in FM CONVERSION_EXIT_MATNL_INPUT. So we just can see null external long material number in view "material identification".

Debug the data extract FM CRS_MATERIAL_EXTRACT in ERP side:

Before extract data from table materialid, two condition must be met:

Data exchange of settype COMM_PRFREEATTR

table mgv_tlmnr is used to activate long material number:

Data exchange of settype COMM_PRFREEATTR Data exchange of settype COMM_PRFREEATTR

After activate long material number, one entry will generate in table mgv_tlmnr about time.


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2675052/,如需轉載,請註明出處,否則將追究法律責任。

相關文章