Mdifying "Code" column in UD Master Data table
Hi all..
is it possible to modify the length of the field "Code"(Default column crerated when a UDT-Master Data is created) in Master Data table.
if it is possible,Please give me sample..
Sandeep
Hi Sandeep,
you can use for example the following code:
oUserFieldsMD.GetByKey(sTableName, 2)
oUserFieldsMD.EditSize = 10
nerr = oUserFieldsMD.Update()
The EditSize sets or returns the field maximum value entered by the user. This applies only when the Type property is set to db_Alpha or db_Numeric.
There is one exception that alphanumeric values can not be decreased.
Regards Chris
Similar Messages
-
How are attribute and text master data tables linked in SAP R/3?
Hello,
how are attribute and text master data tables linked in SAP R/3?
Most tables with attribute master data like T001 for company codes,
have a text master data table T001T (add "T" to table name).
When looking at the content of table T001 via transaction se11,
the text are automatically joined.
But for some tables there is no "T"-table (e.g. table TVBUR for sales offices
has no text table TVBURT), but in se11 you get texts. There is an address
link in TVBUR, but the Name1, etc. are empty.
a) Where are the text stored?
b) How does the system know of the link?
Hope someone can help!
Best regards
ThomasHi Thomas
The master and text table are not linked by name, of course, if you see the text table, it has the same key fields of master table, only it has the field key spras and the field for description.
The link beetween the tables is done by foreign key: if you check the text table TVKBT u need to see how the foreign key for field VKBUR is done:
-> Foreing key with table TVBUR
-> Foreing key field type -> KEY FIELD FOR A TEXT TABLE
->Cardinality-> 1-:CN
It's very important the attribute sets for Foreing key field type, if it's KEY FIELD FOR A TEXT TABLE, it'll mean the table is a text table: i.e. that mean the master table is a check table for the text table, where the foreign key type is for text table.
U can find out the text table of master table by SE11: GoTo->Text Table
U can fined some information in table DD08L.
Max -
Abap code not working - deleting based on master data table information
Hi,
I wrote a piece of code earlier which is working and during test we found out that it will be hard for the support guys to maintain because it was hard coded and there is possibility that users will include more code nums in the future
sample code
DELETE it_source WHERE /M/SOURCE EQ 'USA' AND
/M/CODENUM NE '0999' AND
/MCODENUM NE '0888' AND.
Now I created a new InfoObject master data so that the support people can maintain the source and code number manually.
master data table - the codenum is the key.
XCODENUM XSOURCE
0999 IND01
0888 IND01
now I wrote this routine all the data gets deleted.
tables /M/PGICTABLE.
Data tab like /M/PGICTABLE occurs 0 with header line.
Select * from /M/PGICTABLE into table tab where objvers = 'A'.
if sy-subrc = 0.
LOOP at tab.
DELETE it_source WHERE /M/SOURCE EQ tab-XSOURCE AND /M/CODENUM NE tab-XCODENUM.
ENDLOOP.
Endif.
But when I chage the sign to EQ, I get opposite values , Not what I require.
DELETE it_source WHERE /M/SOURCE EQ tab-XSOURCE AND /M/CODENUM EQ tab-XCODENUM.
Cube table that I want to extract from
/M/SOURCE /M/CODENUM
IND01 0999
IND01 0888
IND01 0555
IND01 0444
FRF01 0111
I want to only the rows where the /M/CODENUM = 0999 and 0888 and i would also need FRF101
and the rows in bold should be deleted.
thanks
Edited by: Bhat Vaidya on Jun 17, 2010 12:38 PMIt's obvious why it deletes all the records. Debug & get your answer i wont spoon feed
Anyways on to achieve your requirement try this code:
DATA:
r_srce TYPE RANGE OF char5, "Range Table for Source
s_srce LIKE LINE OF r_srce,
r_code TYPE RANGE OF numc04,"Range table for Code
s_code LIKE LINE OF r_code.
s_srce-sign = s_code-sign = 'I'.
s_srce-option = s_code-option = 'EQ'.
* Populate the range tables using /M/PGICTABLE
LOOP AT itab INTO wa.
s_code-low = wa1-code.
s_srce-low = wa1-srce.
APPEND: s_code TO r_code,
s_srce TO r_srce.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM:
r_code COMPARING ALL FIELDS,
r_srce COMPARING ALL FIELDS.
* Delete from Cube
DELETE it_source WHERE srce IN r_srce AND code IN r_code. -
What are the master data tables for 'Plant'?
Hi friends,
What are the master data tables for 'Plant' that contain below data?:
PLANT
NAME1
NAME2
LANGUAGE
HOUSE_NUM_STREET
PO_BOX
POSTAL_CODE
CITY
COUNTRY_KEY
REGION
COUNTRY_CODE
CITY_CODE
TIME_ZONE
TAX_JURISDICTION
FACTORY_CALENDAR
Thanks a lot!Hi,
Plz try out following tables for your requirement.
TOO1W
ADRC
J_1IMOCOMP
T001W : werks TYPE t001w-werks, "PLANT
name1 TYPE t001w-name1, "PLANT DESCRIPTION
adrnr TYPE t001w-adrnr, "PLANT ADDRESS NUMBER
ADRC: addrnumber TYPE adrc-addrnumber, "ADDRESS NUMBER
str_suppl1 TYPE adrc-str_suppl1, "STREET2
str_suppl2 TYPE adrc-str_suppl2, "STREET3
street TYPE adrc-street, "STREET
city1 TYPE adrc-city1, "CITY
post_code1 TYPE adrc-post_code1, "CITY POSTAL CODE
post_code2 TYPE adrc-post_code2, "PO Box postal code
tel_number TYPE adrc-tel_number, "TELEPHONE NUMBER
fax_number TYPE adrc-fax_number, "FAX NUMBER
str_suppl3 TYPE adrc-str_suppl3, "STREET4
location TYPE adrc-location, "STREET5
city2 TYPE adrc-city2,
For Tax Details :
J_1IMOCOMP : werks TYPE j_1imocomp-werks,
j_1icstno TYPE j_1imocomp-j_1icstno,
j_1ilstno TYPE j_1imocomp-j_1ilstno,
Hope this will help.
Regards,
Archana -
Insert data in a user master data Table
Hi every body,
I've created a User Master data table named 'MyTable'. i want to add data to this table but there is an error which occur : 'to generate this. First Define the Numbering Series in the Administration Module'. I want to add data to this table using C# code, without using UDO.
Is it possible?
Thank you for helping me
HaifaHi,
thank you for your answer.
I didn't understand very well, i will ask the question in an other way.
it is possible to insert records in a master data table by using the code C#
I mean :
usertable = _Company.UserTables.Item(tablename);
usertable.Code = code;
usertable.Name = name;
usertable.UserFields.Fields.Item("U_ContCode").Value = ContCode;
usertable.UserFields.Fields.Item("U_CardCode").Value = CardCode;
lRetCode = usertable.Add();
without encountering the problem of numbering series.
Haifa -
How to check the records in Master Data Table?
Hi,
I am trying to load the Master Data Table using the Flat File.Now how to check the records in Master Data Table?
I done the following way:
Info Provider->Info Object->Right Click->Display Data or Maintain Master Data
But it's not showing the records.It's asking like CID from......To......
CID(SID)from.............To.......
here CID means customer id(characteristic).
and showing some settings.
Please guide me.
Thanks & RegardsHi Sri,
Go to T- code RSD1 and type your info object name and open the P- table in the infoobject then select execute symbol to see the updated data in to master data info object.
regards
sap -
Customer master data table KNVV is missing
Hi All
I a trying to cancel the billing document using transaction VF11. System shows error as " customer XYZ customer master data table KNVV is missing"
Please advice how to proceed?
Thanks and regards
satyaprasadHi,
Goto the T.Code "Se11/SE16".
Enter the table name as "VBRK".
Enter your invoice number.Execute.
Check the value of "VKORG(Sales Organisation)","VTWEG(Distribution Channel)" and "SPART(Division)".
Or you check the same in "VF03" screen also.
Make a copy of the above three fields.
Goto the T.Code "Se11/SE16".
Enter the table name as "KNVV".Enter your customer number in "KUNNR" and the values of "Sales organisation,Distribution channel and division" into their respective fields.Execute.
Check if there are any entries.The result should be no entries so that only you will receive this error message.
If you created the customer with out sales area,while creating the order only it will give you an error message as "No customer master record exists for sold-to party XXXXXXX
Message no. VP199".
As the partners are defined in sales area data only.
Regards,
Krishna. -
Web report data provider change from Master data table to InfoCube
hi Experts,
I have created one report on top of multiprovider but in the selection screen when i check the values for a variable I came to know that data is coming from master data table and not from data provider(InfoCube).Can any one help to change the data selection from master data table to data provider(InfoCube) and i am sure that there is no ODS involved in the multiprovider.
Thanks in advance
With Regards,
BalaHello,
If u are using Analyser then just put a Analysis Grid on the output of the query(should cover all the rows and column) , click on the grid and put the dataprovider. and do auto fit.
Rohit -
I have a key figure in my master data table i want to display the key figur
Hi All,
I have a key figure in my master data table i want to display the keyfigure in my report how can i display it can somebody help me in this scenario
Regards
Kiran KumarHi Kiran,
Assume that Material master data table material has price as an attribute. To get this price as key fig in query, get material number in rows and in columns create new formula with replacement path to get material price as key figure.
Note: Without taking material number into rows, we can't get the price into columns.
Hope this helps u..
Cheers......
Sk babu -
How mapping sharepoint list Columns to Sql server data table columns programaticlly
Hi ,
I have one Verification List in share Point ,in that list i have 10 columns.And we have sql server in that sql server we have one data table Verification_Table
in that table we have 25 column, my requirement is all list data move to sql data table[ what ever columns mapping to list--->data table that data store in data table reaming column is Null]
using grammatically not in BCSHello,
You can create SQL connection and use Datareader to read from SQL.Firs create a connection string and put this string in web application web.config file of your sharepoint site.
Now use below code to call your connectionstring in your webpart.
SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.AppSettings["ConnectionString"]);
Here is link to read the data from SQL:
http://www.akadia.com/services/dotnet_data_reader.html
Here is one MSDN link to read SP list data:
http://msdn.microsoft.com/en-us/library/dd490727%28v=office.12%29.aspx
Let me know if you have any doubt
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Where do entries in master data table come from?
Hi,
we have an InfoObject used in lots of cubes, ods and so on. Now there are entries in master data table, that are not correct - and they can´t be deleted, since they are used in some InfoProvider.
Is there a way to find out what entry in masterdata table is used which InfoProvider?
Thanks for your help!
AngelikaHi Angelika,
Yes, there is a way.
Execute deletion of master data. Only not used data may be deleted.
Then run SLG1 t-code, find the last deletion log, expand the node, double click beneath it and see messages that will tell you which infoproviders contain some particular master data and don't allow to delete these master data.
Best regards,
Eugene -
Hi All ,
I have to update item code .so i want to know how can i update this . and i want to know if it is better to delete item data through SQL Back end .and what tables are linked to item master data table .
Thanks In advance
Areeba AliHi,
you can delete the item code using SQL statement thorugh backend using this sql query e.g. item code is B747400:
delete from dbo.oitm where itemcode = 'B747400'
if you delete it, the db will not consistent and no more support from SAP AG except you create new db and taken the opbal for the db.
The warehouse journal, all created documents and history tables will not consistent anymore after the deletion.
to prove it, you may check using this code:
select itemcode,dscription from oinm where itemcode not in (select itemcode from oitm)
select itemcode from oitw where itemcode not in (select itemcode from oitm)
select itemcode from itm1 where itemcode not in (select itemcode from oitm)
select itemcode from itw1 where itemcode not in (select itemcode from oitm)
All of the tables involve in the above queries will be affected. If the item never have any transactions, you can delete it directly using this step:
1. search the item
2. if the item is available then right click --> select remove
JimM -
How to find the number of entries in a master data table
Hi Experts,
I am trying to find the entries in 0CUSTOMER master data.
BW>LISTCUBE>Data target: 0CUSTOMER and selected the fields that I need.
I would like to know how to find the "number of entrees". I tried to run the SUM for a count field, but it is taking forever as there are huge number of records .Hi Dev,
Go to the change/display mode of the info object (0CUSTOMER) in your case. Go to the Master data/Text tab. Here you will find the master data tables according to your settings (P orQ or X or Y). Double click on the table name and it will take you to the SE11 display. From there, you can check the number of records as you do in any transparent table.
Hope this helps.
Thanks and Regards
Subray Hegde -
What are the T-codes that contain the master data for material and vendor?
what are the T-codes that contain the master data for material and vendor?
hi ,
- Display Material tcodes...
MM01 - Create Material
MM02 - Change Material
MM03 - Display Material
MM50 - List Extendable Materials
MMBE - Stock Overview
MMI1 - Create Operating Supplies
MMN1 - Create Non-Stock Material
MMS1 - Create Service
MMU1 - Create Non-Valuated Material
ME51N - Create Purchase Requisition
ME52N - Change Purchase Requisition
ME53N - Display Purchase Requisition
ME5A - Purchase Requisitions: List Display
ME5J - Purchase Requisitions for Project
ME5K - Requisitions by Account Assignment
MELB - Purch. Transactions by Tracking No.
ME56 - Assign Source to Purch. Requisition
ME57 - Assign and Process Requisitions
ME58 - Ordering: Assigned Requisitions
ME59 - Automatic Generation of POs
ME54 - Release Purchase Requisition
ME55 - Collective Release of Purchase Reqs.
ME5F - Release Reminder: Purch. Requisition
MB21 - Create Reservation
MB22 - Change Reservation
MB23 - Display Reservation
MB24 - Reservations by Material
MB25 - Reservations by Account Assignment
MB1C - Other Goods Receipts
MB90 - Output Processing for Mat. Documents
MB21 - Create Reservation
MB22 - Change Reservation
MB23 - Display Reservation
MB24 - Reservations by Material
MB25 - Reservations by Account Assignment
MBRL - Return Delivery per Mat. Document
MB1C - Other Goods Receipts
MB90 - Output Processing for Mat. Documents
MB1B - Transfer Posting
MIBC - ABC Analysis for Cycle Counting
MI01 - Create Physical Inventory Document
MI02 - Change Physical Inventory Document
MI03 - Display Physical Inventory Document
MI31 - Batch Input: Create Phys. Inv. Doc.
MI32 - Batch Input: Block Material
MI33 - Batch Input: Freeze Book Inv.Balance
MICN - Btch Inpt:Ph.Inv.Docs.for Cycle Ctng
MIK1 - Batch Input: Ph.Inv.Doc.Vendor Cons.
MIQ1 - Batch Input: PhInvDoc. Project Stock
MI01 - Create Physical Inventory Document
MI02 - Change Physical Inventory Document
MI03 - Display Physical Inventory Document
MI31 - Batch Input: Create Phys. Inv. Doc.
MI32 - Batch Input: Block Material
MI33 - Batch Input: Freeze Book Inv.Balance
MICN - Btch Inpt:Ph.Inv.Docs.for Cycle Ctng
MIK1 - Batch Input: Ph.Inv.Doc.Vendor Cons.
MIQ1 - Batch Input: PhInvDoc. Project Stock
MI01 - Create Physical Inventory Document
MI02 - Change Physical Inventory Document
MI03 - Display Physical Inventory Document
MI31 - Batch Input: Create Phys. Inv. Doc.
MI32 - Batch Input: Block Material
MI33 - Batch Input: Freeze Book Inv.Balance
MICN - Btch Inpt:Ph.Inv.Docs.for Cycle Ctng
MIK1 - Batch Input: Ph.Inv.Doc.Vendor Cons.
MIQ1 - Batch Input: PhInvDoc. Project Stock
MI21 - Print physical inventory document
MI04 - Enter Inventory Count with Document
MI05 - Change Inventory Count
MI06 - Display Inventory Count
MI09 - Enter Inventory Count w/o Document
MI34 - Batch Input: Enter Count
MI35 - Batch Input: Post Zero Stock Balance
MI38 - Batch Input: Count and Differences
MI39 - Batch Input: Document and Count
MI40 - Batch Input: Doc., Count and Diff.
MI08 - Create List of Differences with Doc.
MI10 - Create List of Differences w/o Doc.
MI20 - Print List of Differences
MI11 - Physical Inventory Document Recount
MI07 - Process List of Differences
MI37 - Batch Input: Post Differences
for vendor..
XKN1 Display Number Ranges (Vendor)
XK01 Create vendor (centrally)
XK02 Change vendor (centrally)
XK03 Display vendor (centrally)
XK04 Vendor Changes (Centrally)
XK05 Block Vendor (Centrally)
XK06 Mark vendor for deletion (centrally
XK07 Change vendor account group
XK11 Create Condition
XK12 Change Condition
XK13 Display Condition
XK14 Create with cond. ref. (cond. list)
XK15 Create Conditions (background job)
reward points if useful,
venkat. -
M or P master data table to be used in routine read statement
Hi
I update of a DSO i had a requirment for a routine to get the Attribute of a Infoobject.
So which master data table M or P table i need to use in my read statement and why
ThanksUse M table as it it the view on time dependent(P table) and time independent(Q table) tables.
M table is view on time dependent and time independent attributes, you can see characteristic values and all the attributes for the Characteristic.
The tables that go in the view are the Master Data Table and the Time-Dependent Master Data Table. If the characteristic only has time-dependent attributes, only the time-dependent master data table goes in. If the characteristic has only non-time-dependent attributes, only the master data table goes in.
Maybe you are looking for
-
Excel Reports - Preserve Template Format
Two part question here: Part 1: Is there an easy way to use the NI Report Generation Toolkit or any of the Excel subvis in the _Office addons subdirectory to preserve the existing formatting of a cell that you are writing data to? For example, I have
-
JTable Sorting Columns???
I have Table with 5 columns and say 3 rows. I want to sort the first column.Let us say values in the first column are..CDF, MPC and ABC. so when i click on the column header now the values should be ABC, CDF and MPC..If i click on it again it should
-
Blank screen after loading Creative Cloud?
When I try to run the file, 'Launching creative Cloud does not finish installing and a blank screen appears. (Windows 7) I have tried uninstall/reinstall, I have tried removing the OOBE file step by step, neither of which have helped. Suggestions?
-
Hello. Consider a method such as:ResultObject get(int requestSize){ } this method will attempt to service the request and return a result who's size is 'requestSize'. However, what if the the method could only provide half the request? We already hav
-
HT1766 my ipod 2nd generation can't be restored because of some unknown problem what do i do?
help please! my brother jail broke my ipod and it broke down a few weeks after now i cant restore it and i just got it pleasr help me!!!!!!!!!!!!!