CRM 7.0 Material Search and MDM
How could MDM be used in CRM 70 , in order to have a better/quicker material search functionality ? can the same be done for ECC ( pre-requisite, having all the characteristic defined in MDM) . Any presentation on the topic will help . Thank you.
Hi Christophe
this can be done. You can call MDM web services for either doing a Free form search or even run a MDM matching strategy to find potential duplicates defined based on rules in MDM.
In one of our projects we have used Web services call from CRM ecommerce portal to MDM for doing a Customer search.
Thanks-Ravi
Similar Messages
-
I have a customer that will be sending material data from MDM to BI. In BI, they will be doing reporting using certain navigational attributes we've developed. From our experience, the process of using the navigational attributes seems slow as you step through and give each one a criteria.
Does it makes sense to do the lookup in MDM and send a list of material numbers to BI. I am thinking that might be faster but, he have no idea how this could be accomplished technically. Do you have any thoughts on using MDM to perform a quick search to get a list of materials and then sending the list to BI as the source for the reports.
Thanks
PaulHi Paul,
I have a customer that will be sending material data from MDM to BI. In BI, they will be doing reporting using certain navigational attributes we've developed. From our experience, the process of using the navigational attributes seems slow as you step through and give each one a criteria.
Does it makes sense to do the lookup in MDM and send a list of material numbers to BI. I am thinking that might be faster but, he have no idea how this could be accomplished technically. Do you have any thoughts on using MDM to perform a quick search to get a list of materials and then sending the list to BI as the source for the reports
In case of MDM and BI integration, there are several ways to perform the same.
1. Using File transfer system - As you have mentioned that in BI we define navigational attributes and transfer the Master data in the form of a .CSV file to BI, which then can report on both the Local Id's and the Global Id's.We had done this scenario with MDM SP04 and the reporting seemed to be good at that time.
2. With higher versions of MDM, there is a direct integration of MDM with BI using ABAP APi's. INfact the repository was created from BI in MDM server and only Data Manager is used in that case. You can go for this method as well. Plese find the link below to understand the same.
Integrating MDM with BI 7.0 Using Logical Connection Object, Part 1:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b01e4269-f744-2b10-929b-fa7b49aac540
Integrating MDM with BI 7.0 Using Logical Connection Object, Part 2:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d06a92de-614e-2b10-4989-d913c2154a64
Integrating MDM with BI 7.0 Using Logical Connection Object, Part 3:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00f0d853-936f-2b10-1880-d3deb1fbd858
http://help.sap.com/saphelp_nw70/helpdata/en/45/5d3bfaa9ef3bdfe10000000a1553f7/frameset.htm
3. Now coming to your requirement, if you want to use searches in MDM, then you can definitely do that in MDM. The records which get selected in the search creteria can be then syndicated to BI using the File transfer mechanism. This might increase up the speed as only few records will be syndicated as per the search creteria set. You can set the search in Syndicator directly.
Hope this info helps.
Thanks and Regards
Nitin Jain -
SRM 7.0 cross catalog search transparent punch out and MDM
Hi,
I have problems with transparent punch out and OCI.
We are using HTTP POST, but when we create a SC what should we recieve in SAP. I suppose we should use HTML (the vendor suppose submitted HTML), but as far as I see it, SAP expect to recieve HTMÆ, right? http://www.attsuppliers.com/downloads/OCI_40_EN20030611.pdf
<form name="ociform" action=" https://eprocurement.site.com/RecieveOCI.jsp" method="post" enctype="application/x-www-form-urlencoded; charset=UTF-8">
<input type="text" name="NEW_ITEM-DESCRIPTION[1]" value="Java developer"/>
<input type="text" name="NEW_ITEM-QUANTITY[1]" value="1"/>
<input type="text" name="NEW_ITEM-UNIT[1]" value="EA"/>
<input type="text" name="NEW_ITEM-PRICE[1]" value="15000.00"/>
<input type="text" name="NEW_ITEM-CURRENCY[1]" value="EUR"/>
<input type="text" name="NEW_ITEM-LEADTIME[1]" value="1"/>
<input type="text" name="NEW_ITEM-VENDOR[1]" value="8c7d1ea0-7823-1000-b356-c0a87c200001"/>
<input type="text" name="NEW_ITEM-VENDORMAT[1]" value="112233"/>
<input type="text" name="NEW_ITEM-MATGROUP[1]" value="8800000"/>
<input type="text" name="NEW_ITEM-EXT_PRODUCT_ID[1]" value="448f129ad5ebd8903ae85708c1316dbb"/>
<input type="text" name="NEW_ITEM-CUST_FIELD6[1]" value="20"/> <!-- VAT -->
<input type="text" name="NEW_ITEM-CUST_FIELD7[1]" value="1"/> <!-- Open Market Place -->
<input type="text" name="NEW_ITEM-CUST_FIELD8[1]" value="1"/> <!-- Request -->
<input type="text" name="NEW_ITEM-CUST_FIELD9[1]" value="0"/> <!-- Search Engine -->
<input type="text" name="NEW_ITEM-CUST_FIELD10[1]" value="0"/> <!-- Web Shop -->
<input type="text" name="NEW_ITEM-ZZ_E_MAIL[1]" value="[email protected]"/> <!-- email address as entered by user in eRequest -->
<input type="text" name="NEW_ITEM-LONGTEXT_1:132[]" value="Request: The description of0000004 v 1. Quote: quote-0000001. Description: Pet Dogs"/>
</form>
Furthermore, is it possible to do cross catalog search accross MDM and a transparent punch out catalog?
/JimmyWe are having problems with Transparent Punch Out and OCI.
We are using HTTP POST, but when we create a SC what should we receive in SAP??
Should we receive raw HTML or submitted/posted HTML?? As far as I can see, we should receive raw HTML...or?
Furthermore, is it possible to do cross catalog search across MDM and a Transparent Punch Out Catalog? -
MDM 3.0 and MDM 5.5
Hi All,
Can any body tell what are the differences between MDM 3.0 and MDM 5.5?
Regards,
NikhilMDM 3.0
Strengths
Supply chain expertise
Global metadata synchronization expertise – especially important to Consumer Packaged
Goods and Retail industries
3rd generation hub architecture with near term 4th generation features (image/content
management of A2i)
Weaknesses
Few production references
Early ramp up sites included: Deutsche Telekom, Dorel/PacificCycle, ENEL, General
Electric Consumer and Industrial, Heineken, Kingfisher Group, Nestlé, Nokia, Pemex,
Purdue University, Rubbermaid, Shell Europe, Tesoro Petroleum, Weyerhauser,
Whirlpool
Can be purchased only “on approval of SAP executive management on case by case
basis”
Batch emphasis; on-line capability not suitable for high transaction rates in large-scale
B2B or B2C scenarios
Emphasis on product/supplier capabilities rather than customer/employee
Lack of strong SI channel (the number of SIs promoting NetWeaver is a good channel,
however, the subset that are catering to SAP MDM is far smaller)
Under invested in marketing
No longer supported after 2012
MDM 5.5
Strengths
Support for single view of all major objects – customer, product, supplier and employee
(albeit lightweight customer and employee)
Focused on interactive cleansing and distribution of Material, Supplier, Customer, and
Employee master data within (SAP R/3-based) ERP environment; note that several large
organizations are using it outside of a SAP ERP environment such as GE and
Rubbermaid
Global metadata synchronization expertise
Product information management focus
o Fully integrated electronic and print publishing
o High performance parametric search across rich content
Hierarchical management
Integration with SAP infrastructure
4th generation data hub features (image/content management of A2i)
English, French and German initial support; Japanese 3Q2005
Weaknesses
Minimal references (Whirlpool)
Currently only supports “master data harmonization” – no automated central authority for
master data and therefore cannot enforce centralized/corporate data quality standards
Focused on interactive cleansing and distribution of Material, Supplier, Customer, and
Employee master data within (SAP R/3 based) ERP environment (n.b. = Not a typo – this
is either a strength or a weakness depending upon one’s requirements)
Batch emphasis, e.g. customer data is typically replicated in batch mode among
participating systems; however, enterprises can propagate customer data using the same
common architecture that is used by the product hub for replication/distribution via SAP
NetWeaver Exchange Infrastructure or directly via APIs
Lack of strong SI channel (the number of SIs promoting NetWeaver is a good channel,
however, the subset that are catering to SAP MDM is far smaller)
Under invested in marketing (if SAP was true believer at the executive level in the
strategic nature of enterprise master data management, then the SAP MDM product
would be much more prevalent in the overall SAP marketing mix)
Emphasis on product/supplier capabilities rather than customer/employee
Hope this will be helpful.
Reward points if found useful.
Regards
Sravan Velamury -
Unable to get Material No and Description from VBAP
Hi Gurus
Can anyone please help me to get material number and description from vbap table, The report is fine but I am unable to get material no and description.
regards
report ZCHGDOC_BY_SALES no standard page heading
line-size 132.
type-pools:
slis. " ALV types
Tables
tables:
cdhdr, " Change documents: Header
cdpos, " Change documents: Items
vbak, " Sales order: Header
mara, " Material No
user_addr, " User Address
vbap. " Contract order: Items
Types
types:
begin of ty_cdhdr,
objectclas like cdhdr-objectclas, " Object class
objectid like cdhdr-objectid, " Object value
changenr like cdhdr-changenr, " Document change number
username like cdhdr-username, " Changed by
udate like cdhdr-udate, " Changed on
utime like cdhdr-utime, " Changed at
tcode like cdhdr-tcode, " Transaction code
end of ty_cdhdr,
ty_it_cdhdr type ty_cdhdr occurs 0,
begin of ty_cdpos,
objectclas like cdpos-objectclas, " Object class
objectid like cdpos-objectid, " Object value
changenr like cdpos-changenr, " Document change number
tabname like cdpos-tabname, " Table name
tabkey like cdpos-tabkey, " Table key
fname like cdpos-fname, " Field name
chngind like cdpos-chngind, " Change indicator
value_new like cdpos-value_new, " New value of field
value_old like cdpos-value_old, " Old value of field
end of ty_cdpos,
ty_it_cdpos type ty_cdpos occurs 0,
begin of ty_dd03l,
tabname like dd03l-tabname,
fieldname like dd03l-fieldname,
as4local like dd03l-as4local,
as4vers like dd03l-as4vers,
rollname like dd03l-rollname,
end of ty_dd03l,
ty_it_dd03l type ty_dd03l occurs 0,
begin of ty_dd04t,
rollname like dd04t-rollname,
ddlanguage like dd04t-ddlanguage,
as4local like dd04t-as4local,
as4vers like dd04t-as4vers,
scrtext_l like dd04t-scrtext_l,
end of ty_dd04t,
ty_it_dd04t type ty_dd04t occurs 0,
begin of ty_kna1,
kunnr like kna1-kunnr, " Customer number
name1 like kna1-name1, " Customer name
end of ty_kna1,
ty_it_kna1 type ty_kna1 occurs 0,
begin of ty_user_addr,
bname like user_addr-bname, " user no
name_textc like user_addr-name_textc , " Username
end of ty_user_addr,
ty_it_user_addr type ty_user_addr occurs 0,
begin of ty_vbap,
matnr like vbap-matnr, " Material No
arktx like vbap-arktx, " Production Description
end of ty_vbap,
ty_it_vbap type ty_vbap occurs 0,
ty_text(500) type c,
ty_lines type tline,
ty_it_lines type ty_lines occurs 0,
begin of ty_merged,
vbeln like vbak-vbeln, " Sales order number
erdat like vbak-erdat, " Created on
auart like vbak-auart, " Order type
faksk like vbak-faksk, " Billing block in SD document
netwr like vbak-netwr, " Net value
waerk like vbak-waerk, " Currency
vkorg like vbak-vkorg, " Sales organisation
vtweg like vbak-vtweg, " Distribution channel
vkbur like vbak-vkbur, " Sales office
fkara like vbak-fkara, " Proposed billing type
kunnr like vbak-kunnr, " Sold-to party
bname like vbak-bname , " User No
xblnr like vbak-xblnr, " Reference
fbuda like vbkd-fbuda, " Date services rendered
username like cdhdr-username, " Changed by
udate like cdhdr-udate, " Changed on
utime like cdhdr-utime, " Changed at
tcode like cdhdr-tcode, " Transaction code
tabname like cdpos-tabname, " Table name
tabkey like cdpos-tabkey, " Table key
fname like cdpos-fname, " Field name
chngind like cdpos-chngind, " Change indicator
value_new like cdpos-value_new, " New value of field
value_old like cdpos-value_old, " Old value of field
scrtext_l like dd04t-scrtext_l, " Description of field
intnote type ty_text, " Internal note
hdrnote type ty_text, " Header note
name1 like adrc-name1, " Sold-to party name
matnr like vbap-matnr, " Material No
arktx like vbap-arktx, " Product Description
end of ty_merged,
ty_it_merged type ty_merged occurs 0,
begin of ty_vbak,
vbeln like vbak-vbeln, " Sales order number
erdat like vbak-erdat, " Created on
auart like vbak-auart, " Order type
faksk like vbak-faksk, " Billing block in SD document
netwr like vbak-netwr, " Net value
waerk like vbak-waerk, " Currency
vkorg like vbak-vkorg, " Sales organisation
vtweg like vbak-vtweg, " Distribution channel
vkbur like vbak-vkbur, " Sales office
fkara like vbak-fkara, " Proposed billing type
kunnr like vbak-kunnr, " Sold-to party
xblnr like vbak-xblnr, " Reference
objectid like cdhdr-objectid, " Change document object
end of ty_vbak,
ty_it_vbak type ty_vbak occurs 0,
begin of ty_vbkd,
vbeln like vbkd-vbeln, " Sales order number
posnr like vbkd-posnr, " Sales order item
fbuda like vbkd-fbuda, " Date services rendered
end of ty_vbkd,
ty_it_vbkd type ty_vbkd occurs 0.
Internal tables
data:
it_cdhdr type ty_it_cdhdr,
it_cdpos type ty_it_cdpos,
it_fieldcat type slis_t_fieldcat_alv,
it_kna1 type ty_it_kna1,
it_user_addr type ty_it_user_addr,
it_merged type ty_it_merged,
it_vbak type ty_it_vbak,
Material No
it_vbap type ty_it_vbap,
it_vbkd type ty_it_vbkd.
data:
wa_vbak type ty_vbak.
data:
st_tvariant like disvariant,
st_variant like disvariant.
constants:
co_as4local_a like dd03l-as4local " Active version
value 'A',
co_objectclas_verkbeleg like cdhdr-objectclas
value 'VERKBELEG',
co_posnr_initial like vbkd-posnr " Initial item number
value is initial,
co_posnr_initial_2 like vbap-posnr " Initial item number
value is initial,
co_save_u type c " User display variant
value 'U', " saving allowed.
co_trvog_0 like vbak-trvog " Sales order
value '0'.
data:
va_exit type c, " ALV display
va_tabix like sy-tabix.
selection-screen: begin of block b1 with frame title text-001.
select-options:
s_vkorg for vbak-vkorg OBLIGATORY, " Sales organisation
s_vkbur for vbak-vkbur, " Sales office
s_vtweg for vbak-vtweg, " Distribution channel
s_vbeln for vbak-vbeln, " Sales order number
s_usrnme for cdhdr-username, " Changed by
s_udate for cdhdr-udate. " Changed on
selection-screen: end of block b1,
begin of block b2 with frame title text-002.
parameters:
p_varint like disvariant-variant. " Display variant.
selection-screen: end of block b2.
Initialization
initialization.
Load display variant.
if not p_varint is initial.
move st_variant to st_tvariant.
move p_varint to st_tvariant-variant.
call function 'REUSE_ALV_VARIANT_EXISTENCE'
exporting
i_save = co_save_u
changing
cs_variant = st_tvariant.
st_variant = st_tvariant.
else.
clear st_variant.
st_variant-report = sy-repid.
endif.
at selection-screen on value-request for p_varint.
Provide display variant list for this program.
call function 'REUSE_ALV_VARIANT_F4'
exporting
is_variant = st_variant
i_save = co_save_u
importing
e_exit = va_exit
es_variant = st_tvariant
exceptions
not_found = 2.
if sy-subrc eq 2.
message id sy-msgid type 'S'
number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
if va_exit eq space.
st_variant = st_tvariant.
p_varint = st_tvariant-variant.
endif.
endif.
At selection screen
at selection-screen.
Load display variant.
if not p_varint is initial.
move st_variant to st_tvariant.
move p_varint to st_tvariant-variant.
call function 'REUSE_ALV_VARIANT_EXISTENCE'
exporting
i_save = co_save_u
changing
cs_variant = st_tvariant.
st_variant = st_tvariant.
else.
clear st_variant.
st_variant-report = sy-repid.
endif.
Start of selection
Extract order details from VBAK
select vbeln erdat auart faksk netwr waerk vkorg vtweg vkbur fkara
kunnr xblnr
from vbak
into table it_vbak
where vkorg in s_vkorg
and vkbur in s_vkbur
and vbeln in s_vbeln.
if sy-subrc ne 0.
No data found for selection
message s001(zgen).
exit.
endif.
loop at it_vbak into wa_vbak.
va_tabix = sy-tabix.
wa_vbak-objectid = wa_vbak-vbeln.
modify it_vbak from wa_vbak
index va_tabix
transporting objectid.
endloop.
if sy-subrc ne 0.
No data found for selection
message s001(zgen).
exit.
endif.
loop at it_vbak into wa_vbak.
va_tabix = sy-tabix.
wa_vbak-objectid = wa_vbak-vbeln.
modify it_vbak from wa_vbak
index va_tabix
transporting objectid.
endloop.
Extract Change data
select objectclas objectid changenr username udate utime tcode
from cdhdr
into table it_cdhdr
for all entries in it_vbak
where objectclas eq co_objectclas_verkbeleg
and objectid eq it_vbak-objectid
and username in s_usrnme
and udate in s_udate.
if sy-subrc eq 0.
select objectclas objectid changenr tabname tabkey fname chngind
value_new value_old
from cdpos
into table it_cdpos
for all entries in it_cdhdr
where fname NE 'CMPRE_FLT'
and objectclas eq it_cdhdr-objectclas
and objectid eq it_cdhdr-objectid
and changenr eq it_cdhdr-changenr.
endif.
Extract customer details from KNA1
select kunnr name1
from kna1
into table it_kna1
for all entries in it_vbak
where kunnr eq it_vbak-kunnr.
---- Changes are made here -
Extract Material details from vbap
select matnr arktx
from vbap
into table it_vbap
for all entries in it_vbak
where
vbeln eq it_vbak-vbeln
and posnr eq co_posnr_initial.
-----------------End of Change ----------------------*
Extract Contract No from vbkd.
select vbeln posnr fbuda
from vbkd
into table it_vbkd
for all entries in it_vbak
where vbeln eq it_vbak-vbeln
and posnr eq co_posnr_initial.
perform merge_data tables it_cdhdr
it_cdpos
it_kna1
it_user_addr
it_merged
it_vbak
it_vbap
it_vbkd.
if it_merged[] is initial.
message s001(zgen).
exit.
endif.
Release memory no longer required.
free: it_cdhdr,
it_cdpos,
it_kna1,
it_user_addr,
it_vbak,
it_vbap,
it_vbkd.
Build field catalog for call to report function
perform build_field_catalog tables it_fieldcat.
Output report.
perform output_report tables it_fieldcat
it_merged.
*& Form merge_data
text
form merge_data tables pa_it_cdhdr type ty_it_cdhdr
pa_it_cdpos type ty_it_cdpos
pa_it_kna1 type ty_it_kna1
pa_it_user_addr type ty_it_user_addr
pa_it_merged type ty_it_merged
pa_it_vbak type ty_it_vbak
pa_it_vbap type ty_it_vbap
pa_it_vbkd type ty_it_vbkd.
Local internal tables
data:
lit_dd03l type ty_it_dd03l,
lit_dd04t type ty_it_dd04t.
Local work areas
data:
lwa_cdhdr type ty_cdhdr,
lwa_cdpos type ty_cdpos,
lwa_dd03l type ty_dd03l,
lwa_dd04t type ty_dd04t,
lwa_kna1 type ty_kna1,
lwa_user_addr type ty_user_addr,
lwa_merged type ty_merged,
lwa_vbak type ty_vbak,
lwa_vbap type ty_vbap,
lwa_vbkd type ty_vbkd.
Local variables
data:
lva_dd03l_tabix like sy-tabix,
lva_dd04t_tabix like sy-tabix.
Sort Data
sort pa_it_cdhdr by objectid changenr.
sort pa_it_cdpos by objectid changenr tabname tabkey fname.
sort pa_it_kna1 by kunnr.
sort pa_it_user_addr by bname.
sort pa_it_vbak by vbeln.
sort pa_it_vbkd by vbeln.
loop at pa_it_vbak into lwa_vbak.
clear lwa_merged.
Assign sales order fields to reporting work area
lwa_merged-vbeln = lwa_vbak-vbeln.
lwa_merged-erdat = lwa_vbak-erdat.
lwa_merged-auart = lwa_vbak-auart.
lwa_merged-faksk = lwa_vbak-faksk.
lwa_merged-netwr = lwa_vbak-netwr.
lwa_merged-waerk = lwa_vbak-waerk.
lwa_merged-vkorg = lwa_vbak-vkorg.
lwa_merged-vtweg = lwa_vbak-vtweg.
lwa_merged-vkbur = lwa_vbak-vkbur.
lwa_merged-fkara = lwa_vbak-fkara.
lwa_merged-kunnr = lwa_vbak-kunnr.
lwa_merged-bname = 1wa_user_addr-bname.
lwa_merged-xblnr = lwa_vbak-xblnr.
Assgin Material to reporting work area
lwa_merged-matnr = lwa_vbap-vbeln.
Get name of sold-to party from PA_IT_KNA1
clear lwa_kna1.
read table pa_it_kna1 into lwa_kna1
with key kunnr = lwa_vbak-kunnr
binary search.
lwa_merged-name1 = lwa_kna1-name1.
Get name from PA_it_user_addr
clear lwa_user_addr.
read table pa_it_user_addr into lwa_user_addr
with key = lwa_user_addr-bname
binary search.
lwa_merged-username = lwa_user_addr-name_textc.
Get business data from PA_IT_VBKD.
clear lwa_vbkd.
read table pa_it_vbkd into lwa_vbkd
with key vbeln = lwa_vbak-vbeln
binary search.
lwa_merged-fbuda = lwa_vbkd-fbuda.
Get Material Data
clear lwa_vbap.
read table pa_it_vbap into lwa_vbap
with key matnr = lwa_vbap-matnr
with key vbeln = lwa_vbak-vbeln
binary search.
lwa_merged-arktx = lwa_vbap-arktx.
Get internal note text for sales order
perform read_text using '0002'
'1'
lwa_merged-vbeln
'VBBK'
lwa_merged-intnote.
Get header note 1 text for sales order
perform read_text using 'Z002'
'1'
lwa_merged-vbeln
'VBBK'
lwa_merged-hdrnote.
Determine if change documents exist for sales order.
clear lwa_cdhdr.
read table pa_it_cdhdr into lwa_cdhdr
with key objectid = lwa_vbak-objectid.
if sy-subrc ne 0.
continue.
endif.
loop at pa_it_cdhdr into lwa_cdhdr
from sy-tabix.
lwa_merged-username = lwa_cdhdr-username.
lwa_merged-udate = lwa_cdhdr-udate.
lwa_merged-utime = lwa_cdhdr-utime.
lwa_merged-tcode = lwa_cdhdr-tcode.
clear lwa_cdpos.
read table pa_it_cdpos into lwa_cdpos
with key objectid = lwa_cdhdr-objectid
changenr = lwa_cdhdr-changenr
binary search.
loop at pa_it_cdpos into lwa_cdpos
from sy-tabix.
lwa_merged-tabname = lwa_cdpos-tabname.
lwa_merged-tabkey = lwa_cdpos-tabkey.
lwa_merged-fname = lwa_cdpos-fname.
lwa_merged-chngind = lwa_cdpos-chngind.
lwa_merged-value_new = lwa_cdpos-value_new.
lwa_merged-value_old = lwa_cdpos-value_old.
Get description for field - determine date element
clear lwa_dd03l.
read table lit_dd03l into lwa_dd03l
with key tabname = lwa_cdpos-tabname
fieldname = lwa_cdpos-fname
binary search.
lva_dd03l_tabix = sy-tabix.
if sy-subrc ne 0.
select single tabname fieldname as4local as4vers rollname
from dd03l
into lwa_dd03l
where tabname eq lwa_cdpos-tabname
and fieldname eq lwa_cdpos-fname
and as4local eq co_as4local_a.
if sy-subrc eq 0.
insert lwa_dd03l into lit_dd03l
index lva_dd03l_tabix.
endif.
endif.
If data element was found, get description
if not lwa_dd03l is initial.
clear lwa_dd04t.
read table lit_dd04t into lwa_dd04t
with key rollname = lwa_dd03l-rollname
ddlanguage = sy-langu
binary search.
lva_dd04t_tabix = sy-tabix.
if sy-subrc ne 0.
select single rollname ddlanguage as4local as4vers scrtext_l
from dd04t
into lwa_dd04t
where rollname eq lwa_dd03l-rollname
and ddlanguage eq sy-langu.
if sy-subrc eq 0.
insert lwa_dd04t into lit_dd04t
index lva_dd04t_tabix.
else.
lwa_dd04t-scrtext_l = 'Description for field not found'.
endif.
endif.
endif.
lwa_merged-scrtext_l = lwa_dd04t-scrtext_l.
append lwa_merged to pa_it_merged.
at end of changenr.
Only process field changes for this change document.
exit.
endat.
endloop.
at end of objectid.
Initialise work area so we know change document for order has
been processed.
clear lwa_merged.
Only process change documents for this sales order.
exit.
endat.
endloop.
endloop.
endform. " merge_data
*& Form build_field_catalog
text
form build_field_catalog tables pa_it_fieldcat type slis_t_fieldcat_alv.
data:
Local variable
lva_col_pos type slis_fieldcat_alv-col_pos,
Local structure
st_fieldcat type slis_fieldcat_alv.
lva_col_pos = 0.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'VBELN'.
st_fieldcat-ref_tabname = 'VBAK'.
st_fieldcat-ref_fieldname = 'VBELN'.
st_fieldcat-row_pos = '1'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'VKBUR'.
st_fieldcat-ref_tabname = 'VBAK'.
st_fieldcat-ref_fieldname = 'VKBUR'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '6'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'VKORG'.
st_fieldcat-ref_tabname = 'VBAK'.
st_fieldcat-ref_fieldname = 'VKORG'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '6'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'KUNNR'.
st_fieldcat-ref_tabname = 'VBAK'.
st_fieldcat-ref_fieldname = 'KUNNR'.
st_fieldcat-row_pos = '1'.
st_fieldcat-col_pos = lva_col_pos.
st_fieldcat-outputlen = '6'.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'NAME1'.
st_fieldcat-ref_tabname = 'KNA1'.
st_fieldcat-ref_fieldname = 'NAME1'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '15'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'MATNR'.
st_fieldcat-ref_tabname = 'VBAP'.
st_fieldcat-ref_fieldname = 'MATNR'.
st_fieldcat-row_pos = '1'.
st_fieldcat-col_pos = lva_col_pos.
st_fieldcat-outputlen = '6'.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'SCRTEXT_L'.
st_fieldcat-ref_tabname = 'DD04T'.
st_fieldcat-ref_fieldname = 'SCRTEXT_L'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '20'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'UDATE'.
st_fieldcat-ref_tabname = 'CDHDR'.
st_fieldcat-ref_fieldname = 'UDATE'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '10'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'USERNAME'.
st_fieldcat-ref_tabname = 'CDHDR'.
st_fieldcat-ref_fieldname = 'USERNAME'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '6'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'FNAME'.
st_fieldcat-ref_tabname = 'CDPOS'.
st_fieldcat-ref_fieldname = 'FNAME'.
st_fieldcat-row_pos = '4'.
st_fieldcat-outputlen = '8'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'CHNGIND'.
st_fieldcat-ref_tabname = 'CDPOS'.
st_fieldcat-ref_fieldname = 'CHNGIND'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '8'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'WAERK'.
st_fieldcat-ref_tabname = 'VBAK'.
st_fieldcat-ref_fieldname = 'WAERK'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '5'.
st_fieldcat-col_pos = lva_col_pos..
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'VALUE_NEW'.
st_fieldcat-ref_tabname = 'CDPOS'.
st_fieldcat-ref_fieldname = 'VALUE_NEW'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '20'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
clear st_fieldcat.
add 1 to lva_col_pos.
st_fieldcat-tabname = 'PA_IT_MERGED'.
st_fieldcat-fieldname = 'VALUE_OLD'.
st_fieldcat-ref_tabname = 'CDPOS'.
st_fieldcat-ref_fieldname = 'VALUE_OLD'.
st_fieldcat-row_pos = '1'.
st_fieldcat-outputlen = '20'.
st_fieldcat-col_pos = lva_col_pos.
append st_fieldcat to pa_it_fieldcat.
endform. " build_field_catalog
*& Form output_report
text
form output_report tables pa_it_fieldcat type slis_t_fieldcat_alv
pa_it_merged type ty_it_merged.
Local variables
data:
lva_formname type slis_formname,
lva_repid like sy-repid.
lva_repid = sy-repid.
lva_formname = 'ALV_USER_COMMAND'.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = lva_repid
i_callback_user_command = lva_formname
i_save = 'A'
is_variant = st_variant
it_fieldcat = pa_it_fieldcat[]
tables
t_outtab = pa_it_merged
exceptions
program_error = 1
others = 2.
endform. " output_report
*& Form alv_user_command
text
form alv_user_command using pa_ucomm like sy-ucomm
pa_selfield type slis_selfield.
Local work areas
data:
lwa_merged type ty_merged.
clear lwa_merged.
read table it_merged into lwa_merged
index pa_selfield-tabindex.
case pa_selfield-fieldname.
when 'VBELN'.
Contract Number
set parameter id 'AUN' field lwa_merged-vbeln.
call transaction 'VA03' and skip first screen.
S_BCE_68001393
when 'USERNAME'.
Username
set parameter id 'username' field lwa_merged-username.
call transaction 'S_BCE_68001393' and skip first screen.
when 'KUNNR'.
Customer number
set parameter id 'KUN' field lwa_merged-kunnr.
set parameter id 'VKO' field space.
set parameter id 'VTW' field space.
set parameter id 'SPA' field space.
call transaction 'XD03' and skip first screen.
endcase.
endform. " alv_user_command
*& Form read_text
text
form read_text using pa_id
pa_inline_count
pa_name
pa_object
pa_text.
Local internal tables
data:
lit_inlines type ty_it_lines,
lit_lines type ty_it_lines.
Local work areas
data:
lwa_lines type ty_lines.
Local variables
data:
lva_tdname like thead-tdname.
refresh: lit_inlines,
lit_lines.
lva_tdname = pa_name.
call function 'READ_TEXT_INLINE'
exporting
id = pa_id
inline_count = pa_inline_count
language = sy-langu
name = lva_tdname
object = pa_object
tables
inlines = lit_inlines
lines = lit_lines
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
others = 7.
loop at lit_lines into lwa_lines.
concatenate pa_text
lwa_lines-tdline
into pa_text separated by space.
endloop.
endform. " read_text ENDLOOP.Hi
As per your code here:
"-------------- Changes are made here ----------------
*Extract Material details from vbap
select matnr arktx
from vbap
into table it_vbap
for all entries in it_vbak
where
vbeln eq it_vbak-vbeln
and posnr eq co_posnr_initial. " Here the condition specifies you want to select sales order items where there is no item number, which i beleive shouldnt be the case
" -----------------End of Change ----------------------
Try as below by commenting the Item Number is INITIAL condition:
select matnr arktx
from vbap
into table it_vbap
for all entries in it_vbak
where
vbeln eq it_vbak-vbeln.
"and posnr eq co_posnr_initial.
Regards
Eswar -
What are the CRM Trasaction data Data Sources and Data load Procedure
Hi BI Gurus,
Does anybody provide the CRM Transaction data DataSources names and Load procedure into BI7.0
I know the master Data load procedure from CRM to BI7.0.
if you provide Step-by-Step documents it is more help.
Thanks in Advance,
VenkatHi Venkat
In order to find the transactions want you can login the CRM system and then use the transaction RSA6. There you can expand all the subtrees by left clicking on the first line and then clicking expand the further left button. After that you can easily search any datasource you may want
Hope that helps
Rgds
John -
Upgrade - Installation CRM 7.0 with W2K3 and J2EE AddIn
Hi all,
Because of the end of maintance I have to upgrade CRM 4.0 to CRM 7.0.
During the upgrade phase Iu2019ve detected changes within the CRM System installation and architecture.
First thing I discover was that itu2019s not possible to install CRM 7.0 with the W2K3 64bit OS.
You have to install the system with Windows 2008 Standard 64bit Edition.
All our SAP Systems running with W2K3 64bit OS with very good performance and that is why itu2019s our standard OS.
The different between W2K3 and W2K8 is enormous. (Everyone who changed from WinXP to Win Vista knows what I mean.)
Even the change of the SAP Kernel causes yet unknown problems
But I thought so what, thatu2019s IT and upgraded the ABAP stack to 7.0
The upgrade was fine and finished.
After that I would like to install the missing J2EE Components and TREX.
But the next catch Iu2019ve discovered was that it isnu2019t possible to install the J2EE Engine as an AddIn Installation into the upgraded ABAP Engine.
Wow, thatu2019s a thing!!!!
Our company IT strategy is System consolidating and now I should make 9 out-of 3 systems.
(DEV-QS-PROD Landscape)
Not to mention the administrative complexityu2026.
Now Iu2019m searching for solutions to avoiding this problems.
For the J2EE AddIn installation I want to try a intermediate upgrade to a former CRM Release where a AdIn Inst is possible (e.g. CRM 5.0 or something) and than upgrade to CRM 7.0
But whatu2019s about the prescribed OS W2K8?
As far as I know there is no SAPinst for a CRM 7.0 Upgrade/Installation under W2K3.
Ok, for a company with a huge webshop it makes sense, but our webshop isnu2019t so big that there could be same performance problems.
As noted before, all our SAP Systems running with a W2K3 64bit OS and we donu2019t have performance problems.
Does anyone have an idea how I can solve my CRM 7.0 Inst/Upgrade Problems?
Best regards
Mario FischerHi Mario,
We installed CRM 7.0 a couple of months back with DVD- 51035700 (Master) on a Win 2003 server.
NW 7.01 (base for CRM 7.0) is supported on Win 2K3...but PAM does mention 2008 exclusively for CRM 7.0
As far as the Java Add In is concerned, ABAP & JAVA stacks have been seperated in order to simplify things.
The dual stack was difficult to administer & manage; hence, now you need to install 2 different systems & connect them via JCO.
We had a 16 GB server for CRM 7.0, which instead of hosting one "ABAP+JAVA" system, now has 2 systems (a seperate ABAP system & a seperate JAVA one)..n so far we havn't faced any issues as such.
In fact it's a good thing that since the 2 stacks have been seperated, the dependancy factor's been minimized.
Thanks,
Have a nice day,
S
Edited by: Saba Sheikh on Feb 24, 2010 1:08 PM -
Hi expert,
I am trying to make custom FM for material search based on certain search criteria.
It give me error like" In unicode programs, the " " character can not appears in names, as it does here in names "LT_MATNRSEL TYPE TABLE OF BAPIMATRAM".
Also it giving option for me as use " type range of" instead of "type table of"
also when i am making changes saying it is not expected. I am pasting the sample code below.
""Local Interface:
*" IMPORTING
*" VALUE(IV_MAXROWS) TYPE BAPIMAXROW DEFAULT 100
*" VALUE(IV_MATERIAL_NBR) TYPE MATNR OPTIONAL
*" VALUE(IV_PLANT) TYPE WERKS_D
*" VALUE(IV_MATERIAL_DESC) TYPE TEXT40 OPTIONAL
*" EXPORTING
*" VALUE(EV_PLANT) TYPE WERKS
*" TABLES
*" RETURN STRUCTURE BAPIRET2
*" RT_MATNRLIST STRUCTURE BAPIMATLST
DATA: lt_matnrsel TYPE TABLE OF bapimatram,
ls_matnrsel TYPE bapimatram,
lt_matdescsel TYPE TABLE OF bapimatras,
ls_matdescsel TYPE bapimatras,
lt_plantsel TYPE TABLE OF bapimatraw,
ls_plantsel TYPE bapimatraw,
lt_return TYPE TABLE OF bapiret2,
ls_return TYPE bapiret2,
ls_matnrlist TYPE bapimatlst,
lt_generaldata TYPE TABLE OF bapimatdoa,
ls_generaldata TYPE bapimatdoa,
lt_materialvaluationdata TYPE TABLE OF bapimatdobew,
ls_materialvaluationdata TYPE bapimatdobew.
*--- Returning the plant so it can be used as a MBO attribute
ev_plant = iv_plant.
*--- fill search ranges value
*--- Material Description
IF iv_material_desc IS NOT INITIAL.
ls_matdescsel-sign = 'I'.
ls_matdescsel-option = 'CP'.
ls_matdescsel-descr_low = iv_material_desc.
APPEND ls_matdescsel TO lt_matdescsel.
ENDIF.
IF iv_material_nbr IS NOT INITIAL.
ls_matnrsel-sign = 'I'.
ls_matnrsel-option = 'EQ'.
ls_matnrsel-matnr_low = iv_material_nbr.
APPEND ls_matnrsel TO lt_matnrsel.
ENDIF.
*--- Material Description
ls_plantsel-sign = 'I'.
ls_plantsel-option = 'EQ'.
ls_plantsel-plant_low = iv_plant.
APPEND ls_plantsel TO lt_plantsel.
*--- call BAPI
CALL FUNCTION 'BAPI_MATERIAL_GETLIST'
EXPORTING
maxrows = iv_maxrows
TABLES
matnrselection = lt_matnrsel
materialshortdescsel = lt_matdescsel
plantselection = lt_plantsel
matnrlist = lt_matnrlist
return = lt_return.
Thanks And Regards
Ranjeet SinghThis post is successful. Only error was in formatting. In my screen there are some dots which was creating problems.
Thanks for Reply.
Ranjeet Singh. -
How to import seeburger adapter and mdm adapter in sap pi 7.3
Hi all,
how to import seeburger adapter and mdm adapter in sap pi 7.3Hello
To import the Seeburger adapters, follow the instructions in the Master Installation guide and the individual guides for each of the adapters. These are available with the Seeburger software downloads.
Regarding the MDM adapter, this is the wrong forum for that question. Try the MDM forum (but first, try searching the forum as this is a very basic question).
Regards
Mark -
Customisation of F4 for material search
dear all,
while creating a sales order, when i enter material in line item, i want to customise search i.e. F4
i want to search material on two criteria at a time
1) material type
2) material group.
please give solutionIf You are in ECC 6 the option in the search crieteria is Advanced search for material using search engine.
Here you need to fill both Material type and Material Group manually. -
Why we need crm middleware for material replication?
Hi Experts,
Why we need CRM middleware for material replication from ECC to SRM when we can do the vendor replication from ECC to SRM with ABAP report? IS there any technical limitation?
Thanks and regards,
RanjanHello,
Vendors and locations, for example, you can replicate from ECC to SRM using ABAP reports.
However, if you want to replicate the following information, you should use the middleware:
- DNL-CUST-BASIS3 - Basis CRM online
- DNL-CUST-PROD0 - Material number conversions
- DNL-CUST-PROD1 - Product : categories
- DNL_CUST_SRVMAS - Customizing: Service Master
- MATERIAL - R/3 Material Master
- SERVICE_MASTER - R/3 Service Master
Check note 872533. It provides more information.
Regards,
Ricardo -
XML file getting stucked in queue in ECC preventing material status in MDM.
XML file getting stuck in queue in ECC preventing material status in MDM to be changed.
Hi SAP Experts,
We have an issue regarding XML messages getting stuck in queue in ECC preventing the material status in SAP MDM to be changed from "Approved" to "Updated/Posted".
Checking in transaction SXI_MONITOR the status of the XML Messages are Scheduled or Green Flagged, looking at the time started it has been an hour and it is not yet processed successfully; and also checking the queues XBTR* (XBTR0001, XBTR0002 and ETC.) via transaction SMQ2 have stopped.
We need to manual process the XML messages for it to be processed successfully.
I'm unable to understand why these files are getting stuck in Queue's.
Many thanks in advance and have an awesome day ahead.
Regards,
Aeron MercHi Aeron,
Check whether the Queue XBTR* (XBTR0001, XBTR0002 and ETC.) is Unregistered in SMQR.
If it is so you can see as U in the Queue type.
Try to register by selecting the queue and click on Registration button and activate.
Then check your message in MONI, hope this should solve your problem.
Thanks
Sai. -
Differences between MDM 3.0 and MDM 5.5?
Hi,
Can anybody tell, what are the differences between MDM 3.0 and MDM 5.5?
I heard that, there are lot and lot of changes...
Thanks for your reply,
regrads,
cgWe can look at differences in more than one way:
1. Technology wise
MDM5.5 is developed in C++ & runs on a C++ engine as compared to MDM 3.0 which runs under WAS
However MDM 5.5 is integrated with NW largely, though it can & is planned to be improved further
2. Product Catalog Management
MDM 5.5 has rich PCM capabilities which did not exist in MDM 3.0
3. Other additional capabilities in 5.5
Multilingual support
Syndication of data to XI or file system
Lean, R/3 Idoc based model for supplier, customer, material, employee
4. Ease of installation and usage is a also an advantage of 5.5
You can read Nitza Levi's blog on MDM home page for more details -
IS-Retail POSDM- double posting of material documents and billing document
Hello All,
I had initially posted this question in "Industries Solution General" forum. Reposting it in the appropriate forum-
We have a nightly job for program "RWPOS_PARA_ENQUEUE" which processes all WPUBON idocs (sales info) that comes in from POSDM. Sometimes we have noticed that for one idoc 2 material documents and 2 billing documents are being created with the same information.
Note that this happens sporadically and we have no idea why or when it can happen. Also, we have duplicate checks in POSDM and this happens only when the idoc flows into ECC from POSDM i.e. one sales idoc posts 2 sets of documents for no apparent reason. Is there any way to prevent this? Why is this happening? Your inputs will be really appreciated.
Thanks,
Smithahi,
Just go to FB03 click enter and then
Company code
Fiscal Year
Ledger
Document type against customer invoice DR and then if u hav an idea abt the customer invoice doc then give doc number ....other excute and search for the customer no....
And then double click on the document
then goto ENVIRONMENT -
> Document over view -
> relation ship brower click
then you can see all the relating document to that account i.e account doc,profitcenter doc ,material ,oytbond delivery doc ,billing doc etc...
if useful assign points.....
regards,
santosh kumar -
Search and remove subscribers manually from BC
I am wanting to remove several subscribers from multiple email lists.
Is this possible without having to scroll through countless pages from a variety of lists?
We often get around a dozen people who mail in and say 'remove me from your list' as opposed to managing their account.
In order to remove them I have to do the following.
Choose the first email list of many
change drop down display to 50 address
click address column to sort into alphabetical order
scroll through until I find the place where the email would be
if there, delete
if not there, assume its on a different list or they did actually unsubscribe as well as send the email to unsubscribe
With tens of thousands of email addresses and multiple lists, this takes a long time.
Is there a way to simply enter a search, then delete?
The only way I could see at the moment is to export, excel search and delete then re-import. Don't really want to be doing that though.
Many thanksHi,
In Admin, go to CRM > Search and lookup the user's e-mail address. Any user subscribing to a mailing list is turned into a CRM Customer. Once you find the contact, open it and go to "Subscriptions" and untick the respective list (all subscriptions will be listed on top, under "Campaign List")
Kind Regards,
Alex
Maybe you are looking for
-
BW Server Error when running Query in BEx Analyzer
Hi All, We are currently trying to run a custom Consolidation query in Bex Analyzer but coming across this error below. We are on BI 7.0 (SAP NetWeaver 2004s), BEx Analyzer 2004s Release, Support Pack 9, Patch 4, Revision 372. This error message is o
-
"cannot find symbol : class Scanner" error message
I have an error message that says: "cannot find symbol : class Scanner" I tried typing at the top of the program import java.util.Scanner;but I still have the same error message. What should I do ? Thank you in advance
-
I have a error in form printing
I am using 4 ddic tables as follows:- Building:- Building_id (primary key) Name Address Property:- Flat_id (primary Key) Building_id (foreign key relation to
-
Windows Server 2012 R2 Connection Broker migration
Hi All, I'm in the process of a VMware to Hyper-V migration and whilst in the process rather than migrating the 2012 RDS VM's over to Hyper-V I have decided to setup a bunch of 2012 R2 VMs. My original setup was 1 x Windows Server 2012 VM running RDS
-
Renders fine in everything but firefox
When I go to preview my page in Firefox the table cells that are supposed to contain content appear white, rather than the bgcolor a6d989 that I have them set to. Everything renders the way it ought to in the other browsers. I built my site using fir