Updating text data and master data
Hello everyone,
I'm new to the ABAP language and I'm having some trouble with updating and inserting data in my tables. The problem goes like this :
1) To modify an existing line in my table, I need only to update a text data. So I specify 'T' as tab class in the RSDMD_WRITE_ATTRIBUTES_TEXTS function. The update works fine.
2) To add a new line to my table, I have to deal with both master data and text data. So I have another RSDMD_WRITE_ATTRIBUTES_TEXTS function this time with 'M' as tab class. I have put this function before the one with 'T' as tab class.
My problem is that the add a new line doesn't work. I'd be very grateful if anyone could give me some hint. Thank you very much for your help.
Best Regards,
Dimple
Here's my code :
clear : t_wa_tproginv, t_wa_mproginv, l_wa_mproginv, l_wa_mproginv.
l_form_fields-id = 'ZPROGINV'.
read table gt_form_fields from l_form_fields into l_form_fields.
l_wa_tproginv-/BIC/ZCPROGINV = l_form_fields-frm_val.
l_wa_mproginv-/BIC/ZCPROGINV = l_form_fields-frm_val.
l_form_fields-id = 'ZEXAUTO'.
read table gt_form_fields from l_form_fields into l_form_fields.
l_wa_tproginv-APPR_YEAR = l_form_fields-frm_val.
l_wa_mproginv-APPR_YEAR = l_form_fields-frm_val.
l_wa_mproginv-OBJVERS = 'A'.
l_form_fields-id = 'ZLANGU'.
read table gt_form_fields from l_form_fields into l_form_fields.
l_wa_tproginv-LANGU = l_form_fields-frm_val.
l_form_fields-id = 'ZPROGINV_TC'.
read table gt_form_fields from l_form_fields into l_form_fields.
l_wa_tproginv-TXTSH = l_form_fields-frm_val.
l_form_fields-id = 'ZPROGINV_TL'.
read table gt_form_fields from l_form_fields into l_form_fields.
l_wa_tproginv-TXTLG = l_form_fields-frm_val.
append l_wa_tproginv to t_wa_tproginv.
append l_wa_mproginv to t_wa_mproginv.
call function 'RSDMD_WRITE_ATTRIBUTES_TEXTS'
exporting
i_iobjnm = 'ZCPROGINV'
i_tabclass = 'M'
tables
i_t_table = t_wa_mproginv
exceptions
attribute_name_error = 1
iobj_not_found = 2
generate_program_error = 3
others = 4.
if sy-subrc <> 0.
lt_err_msg-condition = 'rsdmdmzproginv'. read table gt_err_msgs from lt_err_msg into lt_err_msg.
concatenate sy-msgid '/' sy-msgty '/' sy-msgno '/' sy-msgv1 '/' sy-msgv2 '/' sy-msgv2 '/' sy-msgv3 '/' sy-msgv4 into lt_err_msg-message.
page->messages->add_message(
condition = lt_err_msg-condition
message = lt_err_msg-message
severity = lt_err_msg-severity ).
endif.
call function 'RSDMD_WRITE_ATTRIBUTES_TEXTS'
exporting
i_iobjnm = 'ZCPROGINV'
i_tabclass = 'T'
tables
i_t_table = t_wa_tproginv
exceptions
attribute_name_error = 1
iobj_not_found = 2
generate_program_error = 3
others = 4.
if sy-subrc <> 0.
lt_err_msg-condition = 'rsdmdmzproginv'. read table gt_err_msgs from lt_err_msg into lt_err_msg.
concatenate sy-msgid '/' sy-msgty '/' sy-msgno '/' sy-msgv1 '/' sy-msgv2 '/' sy-msgv2 '/' sy-msgv3 '/' sy-msgv4 into lt_err_msg-message.
page->messages->add_message(
condition = lt_err_msg-condition
message = lt_err_msg-message
severity = lt_err_msg-severity ).
endif.
call function 'RSDMD_MD_ACTIVATE'
exporting
i_chabasnm = 'ZCPROGINV'.
call function 'RSDDS_AGGREGATES_MAINTAIN'
exporting
i_protnumber = 'ZCPROGINV'.
if sy-subrc <> 0.
lt_err_msg-condition = 'rsdmdtzproginvchgrun'. read table gt_err_msgs from lt_err_msg into lt_err_msg.
concatenate sy-msgid '/' sy-msgty '/' sy-msgno '/' sy-msgv1 '/' sy-msgv2 '/' sy-msgv2 '/' sy-msgv3 '/' sy-msgv4 into lt_err_msg-message.
page->messages->add_message(
condition = lt_err_msg-condition
message = lt_err_msg-message
severity = lt_err_msg-severity ).
endif.
I found the prob. It was elsewhere. Thx anyway.
Similar Messages
-
Meta data,Transaction data and Master data
Hi all,
Could you plz make me clear exactly wht does Meta data,Transaction data and Master data mean and the differencesHi Ganesh,
<b>MASTER Data</b> is the data that exists in the organization like employee details, material master, customer master, vendor master etc. These are generally created once.
Master data are distributed throughout the company, they are often not standardised and often redundant. As a result it is very costly to offer efficient customer service, keep track of supply chains and make strategic decisions. With SAP Master Data Management (SAP MDM) these important business data from across the company can be brought together, harmonised and made accessible to all staff and business partners. As a key component of SAP NetWeaver, SAP MDM ensures data integrity via all IT systems.
Regardless of the industry, companies often work with different ERP and Legacy systems. The result: the business processes are based on information about customers, partners and products which is displayed in different ways in the systems. If the data are recorded manually, there are more inconsistencies: some data sets are entered several times, others cannot be retrieved by all divisions of the company.
As corporate applications are becoming increasingly complex and produce ever greater amounts of data, the problem is intensified further. Nevertheless, your employees must work with the inconsistent data and make decisions on this basis. The lack of standardised master data easily leads to wrong decisions, which restrict efficiency and threaten customer satisfaction and profitability.
In a word: in order to save costs and ensure your companys success it is necessary to consolidate master data about customers, partners and products, make them available to all employees beyond system boundaries and use attributes valid company-wide for the purpose of description.
<b>TRASNACTION Data</b> - These are the business documents that you create using the master data - Purchase orders, sales orders etc
http://help.sap.com/saphelp_nw2004s/helpdata/en/9d/193e4045796913e10000000a1550b0/content.htm
Regards,
Santosh -
Transaction datas and master data -reg
hi all,
I would like to know what are all the master datas and transactional datas
uploaded during implementation in materials management moduleModul Data Object
CO Cost Center
CO Internal Orders
CO Actual by cost center
CO Plan by cost center
CO Balances for cost center
CO Balances for profit center
CO actual by customer/product
CO mixing ratios
CO Procurement alternatives
CO Cost element
EHS Dangerous goods data
EHS MSDS data
EHS substances
FI Balances General ledger
FI Bank Master
FI Fixed Assets
FI Chart of accounts
FI Open items - Accounts Payable
FI Open Items - Accounts Receivble
FI Open Items - G/L
FI primary cost elements
MM Inventory direct material
MM Inventory MRO
MM material master
MM open purchase orders
MM open requisitions
MM Source list
MM Info records
MM QM-Info record
MM Vendor master
MM Outline Agreements
MM Quota Arrangements
MM price conditions
MM message conditions
MM standard texts
MM Classification, class and characteristics
MM batch classes
MM material classification
PM Equipment BOM
PM funcitonal location BOM
PM Maintenance orders
PM Maintenance Task Lsit
PM Maintenance Schedule plan
PM Maintenance Single_Cycle Plan - by Assembly
PM Maintenance Single_Cycle Plan - by Equipment
PM Maintenance Single_Cycle Plan - by Functional Location
PM Task List PM
PM Task List - long text
PM Notifications
PP Bill of material
PP process orders
PP recipes
PP ressources
PP production versions
QM Inspection methods
QM Inspection plans
QM Master Inspection characteristics
QM QM Classification
QM master inspection characteristics
QM certificate profile assignments
QM material specifications
QM Inspection type assignment material master
SD batch search strategy
SD condition records material substitution
SD contact persons
SD credit management data
SD customer master
SD Customer material info record
SD freight conditions
SD material exclusions
SD sales orders
SD product proposals
SD routes
SD sales price conditions
SD quotation
SD contracts
SD transportation zones
SD routes
SD route determination
SD output condtion records
WM bin locations -
Difference between earliest master data and master data change bonus
Hi,
Can anyone tell me what is the exact difference between earliest master data change and master data change bonus? Whenver any infotype is changed, why are the dates updated in both the fields? Is it not enough if only Earliest master data change field is updated? I was thinking that Earliest master data change bonus field is updated when IT267 is created, but even if i change the time data both the fields are getting updated. Please advise?
ThanksHi,
Earliest master dat change date is date beyond which no master data change can be put in for employee in infotype.
It is used to restrict any master data entry beyond certain date as restriction for employees that client has set and is moreover controlled at control record level but ocassionally used at employee level whenever payment was hold for long time and so on.
Master data change bonus date is date which gets automatically filled in whenever there is any master data change.
This date cannot be past earliest master data change date and will throw error if tried for employee to input.
Thanks,
Ameet -
InfoObjects both appear in transaction data and master data
Hi,
If your transaction data has say infoObjects MMM, EEE, and TTT that you're loading daily or weekly, would you also enhance the infoObject MMM to have EEE and TTT as attributes. MMM has master data (attribuets and texts), and EEE and TTT are not key figures. If yes or no, what would be the reasoning for it?
Thanks,
WillHi:
<i>Thanks for the clear explanation. I am working with the material 0MATERIAL. I am enhancing some other InfoObjects for 0MATERIAL_ATTR and 0MATERIAL and at the same time those InfoObjects are being loaded as transactional data too. I am wondering and perplexed about why the requirement would include a view of the data based on the transacitonal load date and the master data load date per your explanation link? Would it have to do something with historical tracking of data?</i>
1) Since most of the time, we use Business Content, IF it comes with oading both Master Data & Transaction Data same time, we go with it becuase we don't want to unnecessarily change deliverd Content.
2) ANother good reason is Rememner, Master Data (e.g., for 0material) is not ONLY for the Cueb you are working on, BUT, its shared among other Cuebs in BW landscape. So, there si a agood chance that other Cube will use 0material, but doesnot have e.g., 0MATL_GROUP as transaction data. So, you should have Master Data that will be shared by all the Cubes/InfoProviders using it.
3) Next, if your Master Data changes (and your Master Data is not Time Dependent), then you can go to Cube and see what was the value on the day you laoded the Cube (I guess I already said this info in prevous post, just to repeat).
<i>Have you come across or implemented this requirement and why would anyone want to implement this approach to see data from the transactional and master data point of view in terms of the load date?</i>
Yes, I had come across many examples similar to the one that I just stated. -
Problem in Master Data and Master Data Lines
Hi All
I'm facing a big problem...I have a UDO with object type as Master.....As master table and master data line table has code field in common the value for this column should be same....but the problem arises here...it happenes that when i enter the data Code field of master data table has different value from code field of master data lines...
Any one can please help........
ThanksHi Pati,
After posting the message did you get a delivery confirmation reply? If not, you need to open a new message saying you have yet to get a answer for your previous message (and state the previous message number).
Then sill you get no answer, you need to get in contact with your SAP Business Partner (if you're a customer) or your Channel Partner (if your a SAP Business Partner).
Regards,
Vítor Vieira -
Diffrence btw configurable and master data?
can anyone pls tell me the difference between configurable data and master data?
thanks
Edited by: tracey_hrecc6.0 on Sep 30, 2010 5:20 PMConfiguration Data is what is created by the people who work on the software (an example would be the data created in various tables while creating Periodic Work Schedule Rules and the DWS & PWS behind them)
while the Master Data is what is created by the users of the software (an example would be the data created when a user saves the IT0007 that identifies what Periodic Work Schedule Rule an employee is assigned to). -
What is difference between tha master data and tranction data
Hi, Gurus
this is sudhakar
i want to no what is the difference between the transaction data and master data give with examples .
Thanks
sudhakarHi,
The most important data classes are master data, transaction data, organizational data and system
data.
Master data is data that is rarely modified. An example of master data is the data of an address file, for
example the name, address and telephone number.
Transaction data is data that is frequently modified. An example is the material stock of a warehouse,
which can change after each purchase order.
Organizational data is data that is defined during customizing when the system is installed and that is
rarely modified thereafter. The country keys are an example.
System data is data that the R/3 System itself needs. The program sources are an example
for more info go through..
[http://help.sap.com/saphelp_nw70/helpdata/]
regards,
NR -
SID table in the general tab and master data/text tab
Hello Bi Experts,
For example 0material Info-object:
There is a SID table in the general tab i.e /BI0/SCOMP_CODE
There is another SID table Attribute in the master data/text tab i.e /BI0/XCOMP_CODE,here there are Nav attributes with name S__0COMPANY.
When i got 0company info-object it got its own SID table i.e /BI0/SCOMPANY
Can some body explain me what is significance of SID table Attribute in the master data/text tab and what is difference with SID Table of attribute?
Cheers,
StalinHi,
SID is surrogate ID generated by the system. The SID tables are created when we create a master data IO. In SAP BW star schema, the distinction is made between two self contained areas: Infocube & master data tables/SID tables.
The master data doesn't reside in the satr schema but resides in separate tables which are shared across all the star schemas in SAP BW. A numer ID is generated which connects the dimension tables of the infocube to that of the master data tables.
The dimension tables contain the dim ID and SID of a particular IO. Using this SID the attributes and texts of an master data Io is accessed.
The SID table is connected to the associated master data tables via teh char key
Sid Tables are like pointers in C
Tables Starting with Description:
M - View of master data table
Q - Time Dependent master data table
H - Hierarchy table
K - Hierarchy SID table
I - SID Hierarchy structure
J - Hierarchy interval table
S - SID table
Y - Time Dependent SID table
T - Text Table
F - Fact Table - Direct data for cube ( B-Tree Index )
E - Fact Table - Compress cube ( Bitmap Index )
For more info go through the belwo link
http://www.sap-img.com/bw010.htm
Regards,
Marasa. -
Our previous consultants used to load data to master data 0MATL_GROUP.
1. RSA1 -> InfoProvider -> Select 0MATL_GROUP or 0MATL_GROUP___T
Check these above two and find the records loaded are both 1,216 for Language EN.
We check the data flow of this master data (0MATL_GROUP or 0MATL_GROUP___T) and find there are four branches which target 0MATL_GROUP:
branch 1: 0MATL_GROUP is itself an InfoSource and the datasource is 0PROD_CATEG_R3_MAP_ATTR. However under this datasource, there is no any InfoPackage, i.e., the system doesn't load data to 0MATL_GROUP through this branch.
branch 2: Through InfoSource 0MATERIAL_ATTR. However the InfoPackage under this InfoSource target data load to 0MATERIAL but not 0MATL_GROUP, i.e., the system doesn't load data to 0MATL_GROUP through this branch.
branch 3: Through InfoSource ZMATL_GROUP_ATTR and it's corresponding datasource Z_MAT_GROUP_ATTR. InfoPackage monitor shows the data load record for this datasource is 490 (Run RSA3 on R3 for this datasource also gives the same record count).
branch 4: Through InfoSource 0MATL_GROUP_TEXT and it's corresponding datasource has the same name. InfoPackage monitor shows the data load record for this datasource is 1190 for Language EN (RSA3 on R3 for this datasource gives the same count for language EN).
2. InfoObj. 0MATL_GROUP
1). Master data tab (/BI0/PMATL_GROUP): 526
2). Text table (/BI0/TMATL_GROUP):
1657 (includes both EN and other lan-guages), for EN: 1190.
3. Check R3 Table T023T (Material Group Descrip-tions) for EN: 1190.
Our questions are:
1. The InfoProvider 0MATL_GROUP and 0MATL_GROUP___T
both have counts of 1,216 for Language EN. And for the four branches in the data flow, only 3rd and 4th branches feed data to it. 3rd branch (datasource Z_MAT_GROUP_ATTR) feed count is 490 and 4th branch (datasource 0MATL_GROUP_TEXT) feed count is 1190 for Language EN. We wonder how attribute and text data are corelated to each other and with it's master data. Obviously 1,216 is not equal to the sum of 1190 and 490, the how 1190 (text) and 490 (attribute) constitute the master data count 1,216?
2. Do we have to use 1st and 2nd branches to feed data to 0MATL_GROUP?
3. How InfoObj. 0MATL_GROUP Master data tab (/BI0/PMATL_GROUP) shows the count is 526? it should be 490 from the custom datasource Z_MAT_GROUP_ATTR, right? But why the count is different?
We would be appreciated any expert input!Kevin,
can you check the data in Material Group charecterstic againest R/3. One moe thing check how these 4 branches Mapped to material Group?
Take the for Attributes it should be 490. it is 525. try to analyse what are the extra records comparing with Source. take the you found so and so meterial group extra then analyze from where is it getting extracted to BW i mean which DS.. (either branch 1 or brach 2 or branch 3 or 4). then check in R/3 side DS for the 4 branches. then you will know what exactly happening.
Analyze the data from step by step from r/3 to BW for each level. You will get clue.
Nagesh.
Message was edited by: Nagesh Ganisetti -
Loading GL Master Data -- Attributes, Text, Hier ; and Transaction Data
Hi all,
Could any one give me the steps individually to load the following type of data in BI 7.0:
1. Master Data with Attributes
2. Master Data with Text
3. Master Data with Hierarchy
4. Transaction Data
Do I have to create the Transformation and DTP's individually to load all the above kind of Data?
Please give me the information as much as you can.
Thanks,For master data when you create tranformation it will prompt infoobject to act as infoprovider, and then you create DTP to schedule data to it. It works fine with attribute and Texts, though hierarchy dosn;t support much features of 2004s at my side. Like i am not able to migrate Hierarchy datasource to 2004s, and even when i replicate it, it comes as 3.5 datasource only.
For transaction data follow Gokuls step, or try to find on forums you will get lot of discussion on it. -
Assigning Text of a master data to another info object
Hi,
I need to assign text of a master data infoobject, to another inobject.
Can i directly read the two tables (master data and its text table ) and assign it to the info object in the update rules?
Sample code would really help.
Thanks.Hi Thomas,
We've folllowing info objects.
info1.
info2.
Scenario : We weant load text data from info1 to info2..
Crate Export data source for info1.
Go to info2 : insert this info object as a data target.
Assigin source : info1 export data source.While assigning it'll ask do u want Attr or Text .Say text .
Plz assign points if it is useful.
Thanks,
Vijay Sekahr Reddy. -
Dear Experts,
i am getting the below error when i was giving * (Star) to view all the items in DB
[Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. 'Items' (OITM) (OITM)
As i was searching individually it is working fine
can any one help me how to find this..
Regards,
Meghanath.SDear Nithi Anandham,
i am not having any query while finding all the items in item master data i am giving find mode and in item code i was trying to type *(Star) and enter while typing enter the above issue i was facing..
Regards,
Meghanath -
Cant fully load updated data to Master data attribute
Hi BW expert,
I meet an issue here, I am not able to load updated data to master data attribute. My loading selection is based on employee number range.
e.g employee number 00001 to 10000
However the data is successfully loaded to master data but lot of the attribute data are not updated. e.g 056, 057, 098, 0100.
I checked in PSA, there is no data updated for the attribute.
I checked in RSA3 in R/3, there are attribute data extracted.
Please advice, why attribute data is not updated when I load it in a range number. The attribute only work when I load one employee number.
Thanks.
regards,
Wesley Koocheck this:
Re: Error while running InfoPackage
Master data/text of characteristic 0MATERIAL already deleted
Master data/text of characteristic ZXVY already deleted
Hope it helps.. -
How to Display the ColumnName for the Text of any Master Data Object in BEx
Hi Experts,
In Bex Analyzer While Displaying the Key and text of any Master data object it shows column name for master data key but not for the text, here client requirement is he wants to see the Text column name as Description for any master data text.
say Customer Number is a master data object , while displaying key and text of CustomerNumber - column names should look like as below
CustomerNumber Description
C11111 Pepco
C11112 Coke
but usually in Bex Analyzer it displys as following(Text without column Name)
CustomerNumber
C11111 Pepco
C11112 Coke
Please suggest how can we achive this requirement, thanks in advance.
Regards,
ChandraHi Chandra,
I suggest you to enhance your datasource with text feild, by adding text feild to your datasource in ECC side and replicate it ti BI side.
For this you have to write code at CMOD.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/302d4b15-5847-2a10-93bb-9c45d9f06b16?QuickLink=index&overridelayout=true
Better this doc will help you.
Regards,
rvc
Maybe you are looking for
-
IM FED UP WITH ITUNES... I NEED HELP (DOWNLOADING 7.6)
I've tried to download the newest version of itunes 7.6 on my DELL windows XP computer at least 50 times. It takes me strait to the thank you page without downloading anything. I've tried multiple ways of trying to downloading this, considering I jus
-
Black image boundry lines when placing image in Illustrator
I am making a business card in Illustrator 6. I placed an image of my black signature with transparent background on the white background business card, and now it is leaving a box were that signature image canvas ends. This happens with both a .psd
-
Template link to css styles lost
Hi, why, when I create a new page based a template, does the link to the css style sheet become broken? I can see in the code of the new page that ".." is missing from the "../" in the url to the style sheets – but the template has the correct links
-
Hi, Can any one point me the step by step to connect, retrieve data from SAP MDM with NetWeaver Developer studio.. I have installed NWDS and MDM 5.5 SP06 .. I tried by importing jar files in to NWDS preferences.. But I am unable to connect to MDM.. I
-
Install the whole suite for calendar, email, tasks, & contacts
Hello I'm trying to install the whole communication suite but I am unfamiliar with the application. I'm looking for all the functionality in the subject, however for 1 I don't know what all of the dependancies are. Once I install all of the dependanc