Prt master data
hi all,
i want to exteact prt (product resource tool ) related data from mateial master data ( mat type fhmi ).
my input consists of material and plant , and i need to extract other details.
can any body help me in this regard.
rgds
siva
Hi
Hope this code will help you.
reward if help.
REPORT zmm_longtext
NO STANDARD PAGE HEADING
LINE-SIZE 255.
Internal Table for Upload of Long Texts Data
DATA: BEGIN OF itab1 OCCURS 0,
matnr LIKE mara-matnr, " Material
text LIKE tline-tdline, " Long Text
END OF itab1.
Internal Table for Upload of Long Texts Data
DATA: BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr, " Material
text LIKE tline-tdline, " Long Text
END OF itab.
To create Long Text lines for CREATE_TEXT function module
DATA:BEGIN OF dt_lines OCCURS 0.
INCLUDE STRUCTURE tline. " Long Text
DATA:END OF dt_lines.
Variable declarations for CREATE_TEXT function module
DATA : dl_name TYPE thead-tdname, " Object Name
dl_lan TYPE thead-tdspras, " Language
gv_matnr TYPE matnr.
Constants
CONSTANTS:
Object ID for Long Text of Material Basic Data 1
c_best TYPE thead-tdid VALUE 'GRUN',
c_material TYPE thead-tdobject VALUE 'MATERIAL'. " Object
Parameters
PARAMETERS p_file LIKE rlgrap-filename.
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Start Of Selection
START-OF-SELECTION.
*To Upload Flat file
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = itab1
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
SORT itab1 BY matnr.
LOOP AT itab1.
CLEAR gv_matnr.
SELECT SINGLE matnr INTO gv_matnr
FROM mara WHERE bismt = itab1-matnr.
IF itab1-text NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text.
APPEND itab.
ENDIF.
CLEAR itab.
ENDLOOP.
DELETE itab WHERE matnr EQ ' '.
Upload the Texts
SORT itab BY matnr.
LOOP AT itab.
dt_lines-tdformat = 'ST'.
dt_lines-tdline = itab-text.
APPEND dt_lines.
dl_lan = sy-langu.
dl_name = itab-matnr.
Call the Function Module to Create Text
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = c_best
flanguage = dl_lan
fname = dl_name
fobject = c_material
save_direct = 'X'
fformat = '*'
TABLES
flines = dt_lines
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
IF sy-subrc <> 0.
WRITE:/ 'Long Text Creation failed for Material'(001),
itab-matnr.
ELSE.
WRITE:/ 'Long Text Created Successfully for Material'(002),
itab-matnr.
ENDIF.
AT END OF matnr.
REFRESH dt_lines.
ENDAT.
ENDLOOP.
Similar Messages
-
Migration of Equipment Master Data together with PRT data
Hello Experts,
we need to migrate Equipment Master Data which have activated the view PRT data. Most of the fields in this view are stored in table CRFH. Is there a way to migrate Equipment Master Data together with the PRT data of the Equipment? All the BAPI's I found do not have an import structure for those fields. Is a batch-input the only way?
Does anybody know a mass change transaction for Equipments?
Thank you and Regards
ChristianHi Krishna,
You can use the standard batch input program RFBIDE00 in LSMW to update the customer master data. However, there might be scenarios where you might be required to update the fields which do not get updated by the standard bacth input program. If any of such fields are defined as mandatory, then you wont be able to use this method directly.
In such cases you will have to either create a recording to poplate the fields which do not get updated by the standard program and use both the recording and the standard batch input program to update the customer master data OR create a recording for customer master create and use the same in LSMW.
Best regards,
Harsh -
Read Master Data for Process order status change (REL to CRTD)
I am unable to read master data and thus change the status of process order from REL to CRTD. (COR2)
The reason it says, error in BOM reading, Transport Requirement (TR) already generated.
Even after deleting the TR (LB02), the issue still exists.
Is there another way of changing the status or some more steps are needed for the TR deletion?
Thnx!
Abhi.Order header Status-
REL Released
MSPT Material shortage
PRT Printed
PRC Pre-costed
BASC Batch assignment complete
BCRQ Order to be handled in batches
SETC Settlement rule create.
In the error log it gives-
Diagnosis
Transfer requirements have already been generated, so therefore the bill of material cannot be read.
System Response
The system does not execute the action.
Then I deleted the TR (LB02), but still I cannot reread the master data.
The MSPT was for only 2 materials out of 6 and there is no GMPS status.
There is prod supply area and control cycle used.
and the TR generated at order release. -
Upload Vendor master data using LSMW
Hi All,
i am working on LSMW for uploading the Vendor master data (XK01),
when i execute the 13 th step (Create batch input session), i got a message like
"Editing was terminated" .
Could you please tell me why that message is comming.
Regards,
Amjad.hi
good
try with these links
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/smartforms/smartform%20in%20abap.pdf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/smartforms/tutorial%20with%20code%20sample%20on%20smart%20forms.pdf
thanks
mrutyun^ -
What is the process to copy Master Data in Production to Development?
Hi,
we have an outdated master data in our BW development environment and we would like to bring it to the same level as our BW production environment.
What is the process to copy Master Data in Production to Development?
ThanksHi,
You can try system copy for this.
Pls chk this document , might be useful
Activity to be performed after client copy :
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bff13df2-0c01-0010-6ba7-bc50346a6fd8
BW system Copy :
System Copy BW
Re: bw system copy
BDLS :
Re: After R/3 Refresh
BDLS on BW Q/A
Check following OSS notes.
Note 543715 - Projects for BW Migrations and System Copies
Note 886102 - System Landscape Copy for SAP BW 2.X, 3.X and NW2004s BI
Note 325525 - Copying and renaming systems in a BW environment
Note 184754 - Procedure after BW database copy
client copy
http://help.sap.com/saphelp_nw04/helpdata/en/c2/17e73a86e99c77e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/69/c24cc34ba111d189750000e8322d00/frameset.htm
Client Copy
http://help.sap.com/saphelp_nw04/helpdata/en/ff/9be1817d811c41985662da25061f98/frameset.htm
Thanks,
JituK -
How the Master data will be loaded from R/3 to BW?
Just u give detailed answer and if possible navigation. and if any important points are related with it, just u tell me.Hi
Go through these links..........
http://help.sap.com/saphelp_nw04/helpdata/en/58/a4513ce4af0a40e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/e92637c2cbf357e10000009b38f936/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c4/b007720ae4c248b945bb16f24bba31/frameset.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/help/sdn_nw04/sapdocu/netweaver/webas/630/helpdata/en/fa/9a2096e32f11d1a5370060087a79ea/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/80/1a634be07211d2acb80000e829fbfe/content.htm
Re: Master data identification
Master Data Loading Steps?
Master Data Extraction
hope it is helpful..................
assign points...
GTR -
XRPM: Need to find the BADI for adding custom fields to master data
Hi,
We have activated XRPM(4.0) business content and need to add some custom fields to some of the master data ( for example need to add custom fields to master data info object 0RPM_IHGU, 0RPM_IGCG etc).
We have enhanced the data sources ( 0RPM_ITEM_HEADER_GUID_ATTR and 0RPM_FIN_CAT_GUID_ATTR respectively) in the source system by appending additional fields to the append structure of the data source We are trying to find the BADI where we can implement the custom code.
Can anybody help to find the particular BADI, id there one for all master data carrying data source in the xRPM source system?
ThanksDear Arunava,
1) In your R3 goto SE16 --> open table ROOSOURCE.
Search for your OLTP source...eg: 0RPM*
The column EXTRACTOR will give you the module name.
2) Also look/follow the link:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9f668696-0701-0010-22be-a278e4587b68
Currently available BAdIs include:
RPM_BUPA_CUST_FIELDS BUPA customer fields
RPM_CALC_BUPA_BPFTE Calculate the business partner availability
RPM_CALC_STAFF_ICON calculate the staffing icon
RPM_CREATEUSR_NAME Generates user names
RPM_HR_IN_IF001 Customer exit for inbound time processing
RPM_HR_IN_IF002
RPM_HR_IN_IF003
RPM_HR_IN_IF004
RPM_HR_IN_IF005
RPM_HR_IN_IF006
RPM_INTEGRATION_OPTS get and set the project integration options
/RPM/OBJECT_SERVICES Object support services
/RPM/PERSON_CUST_FLD Resource customer fields
RPM_PROCESS_DATA Inbound processing of time data by customer
Good Luck, BB -
ABAP code to Enhance Master data
Hi Friends,
can you send me a sample ABAP code to enhance the master data
Regards
HariDear Adluru Hari Varma ,
Hereunder an example of code to enhance Master Data
0ART_SALES_ATTR for 0MAT_SALES:
EXIT_SAPLRSAP_002
DATA: l_biw_mvke_s LIKE biw_mvke_s,
l_tabix LIKE sy-tabix,
v_satnr LIKE mara-satnr.
CASE i_datasource.
WHEN '0ART_SALES_ATTR'.
LOOP AT i_t_data INTO l_biw_mvke_s.
l_tabix = sy-tabix.
clear v_satnr.
SELECT SINGLE satnr FROM MARA INTO v_satnr
where matnr = l_biw_mvke_s-matnr.
IF sy-subrc = 0.
l_biw_mvke_s-zzsatnr = v_satnr.
ENDIF.
MODIFY i_t_data FROM l_biw_mvke_s INDEX l_tabix.
ENDLOOP.
ENDCASE.
Also
the user exit code zxrsau02 to populate the new fields .say you add field zzfield1, user exit code zxrsau02 can be like
data : l_s_custattr like BIW_KNA1_S,
l_zzfield1 like tablexyz-fieldabc,
l_tabix like sy-tabix.
case i_datasource.
when '0customer_attr'.
loop at c_t_data into l_s_custattr.
l_tabix = sy-tabix.
fill the new field
select single fieldabc into l_zzfield1
where ....
l_s_custattr-zzfield1 = l_zzfield1.
modify c_t_data from l_s_custattr index l_tabix.
endloop.
take a look some links on enhancement
Enhancement
User exit
and download pdf 'enhancements in sap bw'
here you can find the steps ...
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5
hope this helps.
Re: enhancements
Check in SDN you will find more programs
Hope it helps.Revert back to me if you have any queries
Regards
Bala -
BW master data upload error..
Hi all.
Currently, Master data "OCOORDER attribute" was scheduled every morning.
However, this data hasn't been succeeded for two months.
After this data is running about 10 hours, I am receiving the following error message:
1. The attributes for characteristic 0COORDER are locked by a change run.
2. Error 1 in the update.
3. Lock NOT set for: Loading master data attributes.
We are using SAP BW 3.0.
In the monitor for Change Run program "RSDDS_CHANGERUN_MONITOR", even though this data wasn't successfully loaded,
it is showing following screen:
"Characteristics to be activated"
Did anyone of you have this problem before?hi,
yes realignment run must have been executed after master data loading. you are right, realignment and master data can't be processed in the same time.
0COORDER master data should not take 8 hours, it's too long, normaly master data should be in mins.
if you are in bw 3.x, you may try to use process chain,
here you can arrange realignment after all master data finished upload.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b0afcd90-0201-0010-b297-9184845346ca
hope this helps. -
Hi Techies,
What is the improtance/relvance of creating,
1.) In Logistics> Production> Master data > Prod.resources/tools and then Prod.resources/tools > PRT master (misc.) > Create. CF01,CF02,CF03
2) Orders for PRT T.codes CF20,CF21,CF22,CF22,
Thanks in advanceHi SChaitanya kiran,
Please refer the link
[Production Resources/Tools |http://help.sap.com/saphelp_46c/helpdata/en/4c/226cb846e611d189470000e829fbbd/frameset.htm]
Regards,
R.Brahmankar -
What is master data management
i want know clearly abut MDM in SAP.
Hi naresh reddy ,
SAP NetWeaver MASTER DATA MANAGEMENT
SAP NetWeaver Master Data Management (SAP NetWeaver MDM) is an enabling foundation for enterprise services and business process management -- providing a single version of the truth for customer, product, employee, supplier, or user-defined data objects.
Working across heterogeneous systems at disparate locations, SAP NetWeaver Master Data Management ensures cross-system data consistency through interactive distribution. It integrates business processes across the extended value chain, delivering features and functions to enable:
Master data consolidation -- Consolidate master data for companywide analysis and reporting. SAP NetWeaver Master Data Management consolidates and cleanses master data objects from disparate systems. After consolidation, it stores information from different systems in a centralized repository. Related rich content can be included to augment the data store.
Synchronization and distribution of master data -- Enable consistent data maintenance and distribution to ensure permanent harmonization of master data. Using global attributes, you can ensure that all systems receive the same master data during distribution -- and enrich the distributed data objects with additional attribute values in the target systems. Distribution can be controlled, visible, and traceable, with active status management at each distribution step.
Centralized management of master data -- Supports companywide quality standards by ensuring that central control of master data begins as soon as the data is created. Centrally created master data can subsequently be distributed to client systems as required using interactive distribution.
Administration of master data -- Manage master data without custom code. A powerful interface supports administrative tasks such as data exception handling and assignment of role-based access to business processes and information. Data managers use the interface to configure data source merging, business rules, and distribution details to downstream applications.
Management of internal content -- Collect and centralize all your content -- including parametric information and rich content such as images, paragraphs of text, PDF documents, and organizational intelligence about content -- in an enterprisewide repository.
Catalog search -- Deploy intuitive interfaces that help you locate items internally, publish Web catalogs on e-commerce storefronts and in supplier enablement programs, and integrate easy-to-search catalogs into e-procurement solutions -- all from a centralized repository, and all at speeds surpassing normal SQL-based queries.
Print catalog customization -- Disseminate product information directly from a centralized catalog repository to popular desktop publishing programs, and automatically generate fully formatted and populated page layouts.
Multichannel syndication of product catalog content -- Publish restructured and reformatted extracts or incremental updates of your product catalog content -- and distribute them to trading partners in several delimited text and XML formats -- on an unscheduled or regular basis.
Business process support -- Enable communication in a heterogeneous environment, and insert master data into other systems.
Business analytics and reporting -- Leverage synchronized data for reliable analysis and accurate reporting.
The following websites will clearly explain u wt is MDM. These websites contain PDF & PPT presentations:
SAP Netweaver MDM Overview
http://www.asug.com/DesktopModules/Bring2mind/DMX/Download.aspx?TabId=66&DMXModule=370&Command=Core_Download&EntryId=3431&PortalId=0
MDm
http://www.asug.com/DesktopModules/Bring2mind/DMX/Download.aspx?TabId=66&DMXModule=370&Command=Core_Download&EntryId=1666&PortalId=0
SAP Netweaver MDM Overview
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b09b548d-7316-2a10-1fbb-894c838d8079
SAP NETWEAVER MDM Leverage MDM in ERP Environments - An Evolutionary Approach -
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4059f477-7316-2a10-5fa1-88417f98ca93
Master Data Management architecture patterns
http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0703sauter/
MDM and Enterprise SOA
http://www.saplounge.be/Files/media/pdf/Lagae---MDM-and-Enterprise-SOA2007.10.10.pdf
Effective Hierarchy Management Using SAP NetWeaver MDM for Retail
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70ee0c9e-29a8-2910-8d93-ad34ec8af09b
MDM World
http://mdm.sitacorp.com/
MDM: Master Data for Global business
http://www.sitacorp.com/mdm.html
MDM Master Data Management Hub Architecture
http://blogs.msdn.com/rogerwolterblog/archive/2007/01/02/mdm-master-data-management-hub-architecture.aspx
Improve Efficiency and Data Governance with SAP NetWeaver MDM
http://www.sapnetweavermagazine.com/archive/Volume_03_(2007)/Issue_02_(Spring)/v3i2a12.cfm?session=
Data Modeling i MDM
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5d4211fa-0301-0010-9fb1-ef1fd91719b6
http://www.sap.info/public/INT/int/index/Category-28943c61b1e60d84b-int/0/articlesVersions-31279471c9758576df
SRM-MDM Catalog
http://help.sap.com/saphelp_srmmdm10/helpdata/en/44/ec6f42f6e341aae10000000a114a6b/frameset.htm
cheers!
gyanaraj
****Pls reward points if u find this helpful -
How can we do reporting on Master data?
Hi all:
can any tell me "can we do reporting on master data". if so, HOW? can you please give me a step by step procedure.
This is what i know:plz correct me if i am wrong.
1. assuming that i want a report on 0sales_area.
2. i need to make that DS available in Infoprovider tree.
3. to do so, in infosource, i need to choose flexible updating for Master data, which in turn makes the Infoobject available in Infoprovider.
4. then i need to create Update rules.
5. and can get a report in BEx?
Am I correct?
please correct me
Thanks
kedarKedar,
Direct update is generally used for Master data infoobject & here no update rules are used, that means data from source system passes though transfer structure, rules, & communication structure directly to Data target i.e. InfoObject.
Flexible Update - generally used for transaction data ( nowadays can be used for few master data as well) has another set of rule after communication structure i.e. update rule before moving data to data target.
Also check
Check these links:
Re: Flexible Update Vs Direct Update?
Flexible update of Master data
Re: Flexible update Vs direct update.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/37dda990-0201-0010-198f-9fdfefc02412
-Doodle -
Document upload/display for master data
Hello,
I have to implement a web application which provides a upload functionality for documents (images) of master data. Therefore exists a FM RSOD_MAST_CHANGE and this seems to be no problem to implement.
My problem now is to find a FM which provides the functionality to display these uploaded documents of specific master data characteristic.
Has anyone implemented such a functionality, too? Is there such a FM?
Many thanks
André Kloshi,
there is 'how to mass doc upload' doc with abap program, maybe can be modified for your requirement, also from there maybe can get idea to how display these uploaded documents
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8046aa90-0201-0010-5e99-962948c83331 -
Delta for generic master data extractor
Hello,
Is it not possible to load deltas for a generic master data extractor?
I have created a generic extractor on R/3 table MEAN (EAN number assigned to material). I have also performed the init run which worked fine, but no deltas are being loaded.
Why is this?
Best regards,
Fredrikhi,
its possible
how to generic delta
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
SAFETY DELTA
check these links
oss note 368739
Symptom
For the setup of summarization levels and summarization data in the Profitability Analysis a 'Safety delta' of half an hour is used. This means, the system only includes records which exist half hour already. You want to reduce this delta in order to get more current data in reporting.
Additional key words
Summarization levels, summarization data, safety delta, time stamp
Cause and prerequisites
The reason for the duration of these safety deltas are possible differences in the clocks on different application servers. If the delta is selected too short, when updating the summarization levels/data, records may not be taken into account. In particular the Account-based Profitability Analysis depends on the sufficient length of the delta, so that update processes which take longer do not cause inconsistencies. For the Costing-based Profitability Analysis a lock is set. If not active update processes exist, it fails and the update terminates.
Solution
The attached source code correction is not part of the standard system. With this change the safety delta is set from 30 to 5 minutes. You should only implement this, if exclusively the Costing-based Profitability Analysis is active in your system. If you also use Account-based Profitability Analysis we do not recommend the change for the above-mentioned reasons.
Generic delta safty intervals
oss note 392876
safety interval
0FI_GL_4 Safety Delta
Genric delta fro table
check this thread which already discussed about this topic
Generic Extractor - Delta
Shreya -
Hi,
I would like to know from where do the Master Data Datasources get the data? I mean as all know, for TD we go the LBWE route where we activate the datasources etc... But where are these Master data datasources located I am not asking about RSA5...? What I want to know is, how the master data mechanism works in R/3 as we dont fillup the setup tables for these.It would be helpful if someone can explain the behavior of FI Datasources too as these datasources are not in LBWE either..
Please throw some light on this,
Thanks.Hello,
Master data is data that remains unchanged over a long period of time, so this information is directly loaded either from the View or Data Base table hence we don't have the concept of filling up the setup tales.
For FI extraction Please refer:
http://help.sap.com/saphelp_nw04/helpdata/en/ee/cd143c5db89b00e10000000a114084/frameset.htm
You can find a document in this forum on COPA ,if you search this forum with "CO-PA".
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/how%20to%20set%20up%20connection%20co-pa%20-%20extraction
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/how%20to%20set%20up%20connection%20co-pa%20-%20retraction.
Thanks
Geeta
Maybe you are looking for
-
Can I put a READ function in a TRUE/FALSE case structure?
Hi, I have a vi that operates as controller for a mechanical system of motors. There are several sensors of various types, that provide input to the vi, including encoders, whose period is being measured. The attached vi is the encoder period measu
-
Can't Set up to Apple Pay and can't find Apple Pay in my Passbook
I have updated my iPod Touch 5th Gen. to iOS 8.1. I can't set up to Apple Pay in my Passbook and can't Find Apple Pay in my PassBook in my settings. How do I set this up for my iPod Touch? In My settings My PassBook app is not Listed but it is listed
-
XY graphing with large amount of data
I was looking into graphing a fairly substantial amount of data. It is bursted across serial. What I have is 30 values corresponding to remote data sensors. The data for each comes across together, so I have no problem having the data grouped. It
-
MacBook Pro USB Hubs no longer working
Hello Apple Support. My 13" Mid 2012 MacBook Pro (Running OSX Mavericks) is having some odd issues recently. I have 2 USB 3.0 hubs. One of them works perfectly fine, the other doesn't work at all. I've plugged everything from mice to USBS's, but the
-
Target movie clip fade within function
I'm working with this function that is loading in different .swf files based on buttons that are clicked: this.createEmptyMovieClip("targetMC",this.getNextHighestDepth()); function loadF(y:Number, d:Number) { targetMC.loadMovie("floors_swf/"+y+"_"+d+