Regarding creation of a standard table
Hi,
In my landscape, somebody deleted a standard table in one of my systems. when i am trying to access this table it is throwing an error message stating that table does not exist. check name.
Now i want to know how to create this standard table and how to get the structure of that table.
kindly help me regarding this issue.
thanks & regards,
eeswar
Hi
Well the solution you are thinking for this problem, doesn't seem to be a right way to me. Although recreation is no where possible for standard table, you can carry out transport.
As the table is standdard one, and deleted you should rather think of restoring your backup. Because even if you transport it from one system to other, the data missing from your active server cannot be recovered and system can become inconsistent.
So think about it once. Before applying transport.
Regards
Rahul
Similar Messages
-
Regarding adding a Custom field to Standard Table
Hi ABAPers,
Can any one explain the below spec-description.
"The purpose of this design is to provide the foundation for a more automated solution to the invoice reconciliation process. This design calls for adding a custom field to the standard SAP table EINE as well as a data maintenance tool for the same. There will also be a new custom table for storing values associated with the new EINE field. These new tables will also provide users with the ability to determine which PIR are soon to expire."
We have to add one custom field to standard table EINE, how we can add this custom field to STND table.
According to me we can add it through append structure. is it correct or not.
and what is data maintenance tool.
Pls.............Explain in details.
Thanks in advance.
Regards,
Ramana Prasad. THi,
Goto SE11 ,give ur table name.Then press display button.Then in the application tool bar press on append structure ...Now create a zstructure and add ur custom field and then activate the table.
Regards,
nagaraj -
Query regarding Standard table vs Z-table in SAP about deletion of data?
Dear Experts,
Can we delete the data form the standard table in SAP. If yes than will it ask for the request to make them effective itself, because when we delete the data from any ztable, it will not ask for the request to make them effective at the produstion server ? If possible plz update me with yr elaborate and detailed concerneds.
Regards,
AkgSorry to intervene here Dhina but that is just halfways correct.
If delivery class NOT = C then it is NOT a customizing table and therefore you wont get any transport request updating or deleting data from it.
But if it is a customizing table then you got to look for the recording routine. You can see this by viewing your table in SE11, then using the menu like following:
utilities->table maintainance generator.
Then look at the info in the bottowm frame. if "standard recording routine" is tagged, then you get a transport request.
If the other option is tagged you wont get it. What again means you can customize this table directly in the system where you need those entries.
why is that?
well assume there is a customizing for e.G. materials, depending on materialnumber. If that table would have a standard recording routine you would need ALL your materials in your development system which would be quite unusual.
Edited by: Florian Kemmer on Jun 9, 2011 2:00 PM
some typos corrected, left some for sure -
Creating a custom change document for a standard table field
Hi
Is it possible to create a change document for a field in a standard table?
I have searched the forum and only found threads about creating change document to a custom table.
Will the creation of change documents to a standard SAP table be a modification?
Thanks.
Regards
Sowbhagya.LYes it will be a modification on standard table, but you can always create change document for any field by assigning it to custom change object.
Regards,
Krishna. -
How to store custom data in standard tables?
How can I to store data in standard tables without creating a Z table?
I want to store the next rows:
SRD 100 R3D 100
SRD 110 R3D 110
SRD 120 R3D 120
SRD 130 R3D 130
But I prefer to avoid to use a Z table because the maintenance in a upgrade system.
Somebody knows if some standard data type exists?
Or how to make it to avoid the creation of a Z table?Hi Juan,
The data store in the standard table is also custom data. If it is a customizing table then you can very easily add data using SM30 or if it is transaction table then use any transaction to create the data.
If you want to add more fields in the existing table (extra columns) then you can use APPEND or INCLUDE structure.
Regards,
Atish -
Can we enter data in any standard table directly through custom form??
Dear All,
Can we enter data in any standard table directly through custom form??
I have create custom form in R.12. I want to insert data in quality standard table directly through custom form. Need experts guideline.
Awaiting regards,Hi,
Can we enter data in any standard table directly through custom form??
I have create custom form in R.12. I want to insert data in quality standard table directly through custom form. Need experts guideline.
Awaiting regards,
I would not recommend touching the standard tables at all unless you are being guided by the SR. For a record to be in the standard table it should go through series of validations based on the what operation you are performing and some times datas are dependent upon the other tables, and also some times the same records are hit to so many other tables simultaneously.
Therefore I would not recommend this brother.
Thanks &
Best Regards, -
How do I read this "standard" table in my Function Module?
I have a remote-enable Function Module (RFC). I am receiving two tables as part of the parameters. Table "A" is header information, and Table "B" is detail information. So for every 1 "A" header record, I may have 1 to many "B" detail records. I have a field we'll call "vendor_number" that is the common link between the two tables.
Here's what I want to do: I want to loop through table "A", and for each record, I want to do a READ on table "B", using the "ref_doc_no" from "A" as my key, to get the position of the first matching record. I hold onto the value of the table index and then start looping table "B", adding 1 to the saved table index each time to process all of the detail records.
Here's the problem: This worked great as an ABAP program. I had my "B" table declared with "ref_doc_no" as a non-unique key. But when I ported my code over to the RFC, it told me that the RFC could only deal with standard tables. I had to remove the "ref_doc_no" key declaration. So now when I try to activate, I get an error similar to this:
The declaration for the key field "another_field" is incomplete; however, "another_field" is contained in the key of table "B" and must be filled.
I don't understand that. I've not declared any keys for table "B". I don't understand why it's thinking I need to populate "another_field" (I don't even know what the value would be). My code to read the table (i.e. the line getting the error) is this:
Priming read on table (sets the initial sy-tabix index value)
READ TABLE it_incoming_invoice_line_item "table 'B'
WITH TABLE KEY ref_doc_no =
wa_incoming_invoice_header-ref_doc_no
INTO wa_incoming_invoice_line_item.
Is it possible for me to do some sort of direct read on a table in an RFC? The only alternative I can think of would be to have to loop through table "B" until I find the first occurrence of a match. Is that what I need to do?
Thanks everyone. Points, as always, awarded for helpful answers.Dave,
1. You can fire SELECTS in an RFC as well, but in your case the data exists in SYSTEM A and the RFC is in System B, so you can't do that. You can fire SELECTS on tables in the same system.
2. Quick example of two table loops - EKKO (HEADER) EKPO (ITEM).
LOOP AT EKKO.
LOOP AT EKPO WHERE EBELN = EKKO-EBELN.
ENDLOOP.
ENDLOOP.
I hope this is clear now.
Regards,
Ravi -
Maintenance view on the standard table
Hi,
We need to have a maintenance view on the standard XYZ table .
Since it is a std table. we would not be able to create a maintenance view since we need an access key.
So we have to :
1. Copy the table XYZ into a Z_table. (just the structure alone).
2. Create a table maintenance generator on this table.
3. When the data is being saved in the maintenance view, update the record in the XYZ.
How we can populate the XYZ when the Z_table is populated with data?
Can anyone help in this regard.
Thanks and regards,
KapilHi Rich,
Thanks for your reply.
I am referring to standard table "comc_settyp_attr" in SAP-CRM system . I have copied it and created a z_table. But its not allowing me to create a maintainance view. Its giving an error :
GUID in table key (Field name CUSTINFO) not supported.
But when i create the z_table without the GUID(char 32) as key field, it generates table maintenance. But the key field is required.
Can you help me in this regard.
Regards,
Kapil -
Problem Regarding Creation of Compound field
Hi all,
I have a problem regarding creation of a compound source field.
My source field is say for eg. SF1 and SF2
Destination Field is a look up flat field say LF which has 2 display fields D1 and D2
I mapped SF1 to D1 and SF2 to D2
But when i right click at source and select 'Create compound field' for SF1 and SF2, the compound field is not created automatically.
Can anyone give me a hint as to why is this happening?
Regards,
RoshaniHi Roshani,
Just check for couple of other things, like
1) I hope its not a qualified table and none of those fields are qualified.
2) None of the fields are ther currently in the matching set in the next tab.
3) You didnt map the main filed (look up table filed, which is there as a sub-table name)
4) There are no more display fields for that table.
I hope it should be one of the above issues. please check for them.
Cheers,
Cherry. -
Regarding creation of node element
Hi
i hav a doubt regarding creation of node element. u can create new node element using method create(cn)Element available either directly from wdContext or from wdContext.node(cn) where cn is any context node.
can any one plz explain me what's the difference between two.
does it has any thing to with node being singelton or non-singelton?
also can anyone explain me the difference between add and bind method.
thanks.hi
good
Data Binding Methods
If a property can, or must be bound to the context, the respective bind and bound methods are available.
● The bind methods bind the value of a property to the context element specified by the path.
The name of the method is created according to the following pattern:
BIND_<runtime name of the property>.
Example: table, property: design, method: BIND_DESIGN.
● The bound methods return the path of the context element to which a property is bound and return NULL if no binding exists.
The name of the method is created according to the following pattern:
BOUND_<runtime name of the property>.
Example: table, property: design, method: BOUND_DESIGN.
ADD METHOD->
Two add methods that add an element.
○ If only the element is transferred as parameter, then the element is added at the and of a list
○ If an index is transferred as well, then this element is transferred at the specified index position.
http://help.sap.com/saphelp_erp2005/helpdata/en/66/18b44145143831e10000000a155106/content.htm
thanks
mrutyun^ -
Read a csv file, fill a dynamic table and insert into a standard table
Hi everybody,
I have a problem here and I need your help:
I have to read a csv file and insert the data of it into a standard table.
1 - On the parameter scrreen I have to indicate the standard table and the csv file.
2 - I need to create a dynamic table. The same type of the one I choose at parameter screen.
3 - Then I need to read the csv and put the data into this dynamic table.
4 - Later I need to insert the data from the dynamic table into the standard table (the one on the parameter screen).
How do I do this job? Do you have an example? Thanks.Here is an example table which shows how to upload a csv file from the frontend to a dynamic internal table. You can of course modify this to update your database table.
report zrich_0002.
type-pools: slis.
field-symbols: <dyn_table> type standard table,
<dyn_wa>,
<dyn_field>.
data: it_fldcat type lvc_t_fcat,
wa_it_fldcat type lvc_s_fcat.
type-pools : abap.
data: new_table type ref to data,
new_line type ref to data.
data: xcel type table of alsmex_tabline with header line.
selection-screen begin of block b1 with frame title text .
parameters: p_file type rlgrap-filename default 'c:Test.csv'.
parameters: p_flds type i.
selection-screen end of block b1.
start-of-selection.
* Add X number of fields to the dynamic itab cataelog
do p_flds times.
clear wa_it_fldcat.
wa_it_fldcat-fieldname = sy-index.
wa_it_fldcat-datatype = 'C'.
wa_it_fldcat-inttype = 'C'.
wa_it_fldcat-intlen = 10.
append wa_it_fldcat to it_fldcat .
enddo.
* Create dynamic internal table and assign to FS
call method cl_alv_table_create=>create_dynamic_table
exporting
it_fieldcatalog = it_fldcat
importing
ep_table = new_table.
assign new_table->* to <dyn_table>.
* Create dynamic work area and assign to FS
create data new_line like line of <dyn_table>.
assign new_line->* to <dyn_wa>.
* Upload the excel
call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
exporting
filename = p_file
i_begin_col = '1'
i_begin_row = '1'
i_end_col = '200'
i_end_row = '5000'
tables
intern = xcel
exceptions
inconsistent_parameters = 1
upload_ole = 2
others = 3.
* Reformt to dynamic internal table
loop at xcel.
assign component xcel-col of structure <dyn_wa> to <dyn_field>.
if sy-subrc = 0.
<dyn_field> = xcel-value.
endif.
at end of row.
append <dyn_wa> to <dyn_table>.
clear <dyn_wa>.
endat.
endloop.
* Write out data from table.
loop at <dyn_table> into <dyn_wa>.
do.
assign component sy-index of structure <dyn_wa> to <dyn_field>.
if sy-subrc <> 0.
exit.
endif.
if sy-index = 1.
write:/ <dyn_field>.
else.
write: <dyn_field>.
endif.
enddo.
endloop.
REgards,
RIch Heilman -
Adding Field in standard Table control in crmd_order (standard order)
Hello All,
I want to add a Field in standard table control in Crmd_order - standard order general tab. Please Let me know it is Possible to add, if Possible Let me know how to achieve this Functionality.
Thanks,
Feroz.hi,
If you don't want to access key...then only option is ,you have to search USER Exit or BADi (Try using BADI ME_GUI_PO_CUST) for me22n transaction......to adding the field.
Regards
Gaurav -
Wht r the standard tables for vendor customer and sales order report/
Hi wht r the standard tables for vendor and customer reports and is how in normal we cannot use them for vendor reporting and etc ?
Hi
Customer is related to Sales Module
So for a customer we fetch the reports of Sales orders , Deliveries and Billing doc's
CUstomer and Vendor related tables with important fields:
KNA1: Customer Master-General(KUNNR,NAME1,LAND1)
KNB1: Customer Master(Company Code)(KUNNR,BUKRS,PERNR)
KNC1: Customer Master Data (Transaction Figures)(KUNNR,BUKRS,GJAHR)
KNVK: Customer Master Contact Partner(PARNR,KUNNR,NAME1)
KNVV: Customer Master sales data(KUNNR,VKORG,VTWEG,KDGRP)
KNBK: Customer Bank Details(KUNNR,BANKS,BANKL,BANKN)
KNVH: Customer Hierarchy (HITYP,KUNNR,VKORG,VTWEG,SPART)
KNVP: Customer Master Partner Functions(KUNNR,PARVW,KUNN2)
KNVS: Customer Shipment data(KUNNR,VSTEL,TRANS)
KNVI: Customer Tax data(KUNNR,ALAND,TATYP)
LFA1: Vendor Master-General (LIFNR,NAME1,ORT01)
LFB1: Vendor Master(Company Code)(LIFNR,BUKRS,PERNR)
LFC1: Vendor Master (Transaction Figures)(LIFNR,BUKRS,GJAHR)
Sales related Tables for a customer
VBAK: Sales Document(Header Data) (VBELN, KUNNR)
VBAP: Sales Document(Item Data) (VBELN,POSNR,MATNR,ARKTX,CHARG)
Enquiry, Quotation, Sales Order are differentiated based on Doc.
Type(VBTYP field) in VBAK,VBAP Tables( for Enquiry VBTYP = A,
for Quotation 'B' & for Order it is 'C'.)
LIKP: Delivery Table (Header Data)(VBELN,LFART,KUNNR,WADAT,INCO1)
LIPS: Delivery Table (Item Data)(VBELN,POSNR,WERKS,LGORT,MATNR,VGBEL)
(LIPS-VGBEL = VBAK-VBELN, LIPS-VGPOS = VBAP-POSNR)
VTTK: Shipment Table (Header Data)(TKNUM)
VTTP: Shipment Table (Item Data)( TKNUM,TPNUM,VBELN)
(VTTP-VBELN = LIKP-VBELN)
VTFA: Shipping Document Flow(TKNUM,VBELV,VBELN)
VTPA: Shipping Partners data(VBELN,PARVW,KUNNR,PERNR)
VTTS: Stages in Shipment(TKNUM,TSNUM,TSTYP)
VTSP: Transport Stage/Shipment Item Allocation(TKNUM,TSNUM,TPNUM)
VEKP: Handling Unit: Header(Packing)(VENUM,VSTEL)
VEPO: Handling Unit: Item (Packing)(VENUM,VEPOS,VBELN)
VBRK: Billing Table(Header Data)(VBELN,FKART,BELNR)
VBRP: Billing Table(Item Data)(VBELN,POSNR,FKIMG,NETWR,VGBEL,VGPOS)
(VBRP-AUBEL = VBAK-VBELN, VBRP-VGBEL = LIKP-VBELN)
Apart from these tables there are lot of other tables which starts with
V, but we use the following tables frequently.
VBUK: All Sales Documents status & Admn. Data(Header)(VBELN,VBTYP)
VBTYP= C(Sales Order) VBTYP=J(Delivery) VBTYP=M(Invoice)
VBUP: Sales Documents status & Admn. Data(Item)(VBELN,POSNR)
VBEP: Sales Doc. Schedule Lines Data(VBELN,POSNR,EDATU,WMENG)
VBKD: To get sales related Business data like Payment terms etc.(VBELN,ZTERM)
VBFA: sales document flow data(VBELV,VBELN,POSNV,VBTYP)
VBPA: Partner functions Data(VBELN,PARVW,KUNNR,LIFNR)
VEDA: Contract Data(VBELN,VPOSN)
VEDAPO: Contract Data(VBELN,VPOSN)
Vendor related MM tables
EBAN-- Pur.Reqn. Data (BANFN,BNFPO,BADAT,MATNR)
EBKN-- Purchase Requisition Account Assignment(BANFN,BNFPO,VBELN)
EINA- Purchase Info.Record (General Data)(INFNR,MATNR,LIFNR)
EINE-- Purchase Info.Record (Pur.Orgn Data )(INFNR,EKORG)
ELBK-- Vendor Evaluation Header Data(LIFNR,EKORG,KLASS)
EKKO-- Purchase Order Data (Header)(EBELN,BSTYP,BSART)
EKPO-- Purchase Order Data (Item)(EBELN,EBELP,MATNR)
RFQ and PO are differentiated by Doc Type(BSTYP)in EKKO table.
For RFQ it is A and for PO it is F.
MKPF-- GRN Data (Header) (EBELN,BLDAT,BUDAT,XBLNR,BKTXT)
MSEG-- GRN Data (Item)(MBLNR,BWART,LIFNR,MATNR,EBELN)
Apart from this there are lot of tables which begin with 'M'& 'E', but we
use the following very often.
EKBE--PO History Data (EBELN,EBELP,BELNR,BLDAT,MATNR,VGABE)
EKBZ--PO History with delivery Costs(EBELN,BELNR,LIFNR,XBLNR)
EKET--Schedule lines data of a PO (EBELN,EINDT,SLFDT)
EKES--Vendor Confirmations Data(EBELN,EBTYP,EINDT,XBLNR)
Reward points if useful
Regards
Anji -
Inserting record in standard table
Dear Sapians
I want to insert a record in standard table PRPS for testing one scenario. we tried to insert through abap program but we are unable to insert data in the PSPNR field.
Best regards
Sukumaran.Ehi,
check this code it may help u,
TABLES : AFKO,
AFPO.
DATA : BEGIN OF GI_AFKO OCCURS 1,
AUFNR LIKE AFKO-AUFNR,
END OF GI_AFKO.
data gi_AFPO like ZPRODUCT occurs 0 with header line.
*DATA : BEGIN OF GI_AFPO OCCURS 100,
MANDT LIKE
MATNR LIKE AFPO-MATNR,
DWERK LIKE AFPO-DWERK,
END OF GI_AFPO.
DATA: gv_date(11)," LIKE ekpo-aedat,
gv_date1(11),
year(4),
month(2),
day(2),
flag(1),
read_flag(1).
START-OF-SELECTION.
gv_date1 = sy-datum.
year = gv_date1+0(4).
month = gv_date1+4(2).
day = gv_date1+6(2).
year = year - 3.
CLEAR gv_date1.
CONCATENATE year month day INTO gv_date1.
select aufnr
from afko
into table gi_afko
where ( GLTRP <= sy-datum AND gltrp >= gv_date1 ) .
IF SY-SUBRC = 0.
select matnr
dwerk
from afpo
into CORRESPONDING FIELDS OF table gi_afpo
for all entries in gi_afko
where aufnr = gi_afko-aufnr.
ENDIF.
SORT GI_AFPO BY MATNR.
IF NOT GI_AFPO[] IS INITIAL.
MODIFY ZPRODUCT FROM TABLE GI_AFPO.
IF SY-SUBRC = 0.
MESSAGE I003 WITH 'VALUES UPDATED IN TO TABLE ZPRODUCT'.
ELSE.
MESSAGE I003 WITH 'VALUES NOT UPDATED IN TO TABLE ZPRODUCT'.
ENDIF.
regards
siva -
Standard Table to be updated based on User action
Hi Friends ,
i have a requirement , its a report and in that based on the user action ( if the user checks a check box that is available in the output screen of the report and saves it) the value should be updated in a standard table as 'X'. I have appended the field in the standard table and now i need to write a logic at user command to populate the zfield that i have added in the table based on the user's input. Can someone suggest me how to proceed further on this ? Kindly let me know if you have any sample piece of code related to this scenario...
thanks in advance.HI,
Usually we can udpate the tables using UPDATE statement.
But SAP will not suggest to use these statements which will hit the table directly. We need to use the standard transactions to create or update the standard tables.
For eg: you are using a ztable.
then once your report is ready, then use the user_command form ( for ALV) .
fetch the records where the user have selected the records ( check box = 'X").
*& Form USER_COMMAND
FORM user_command USING g_ucomm TYPE sy-ucomm
gs_selfield TYPE slis_selfield .
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ls_ref1.
CALL METHOD ls_ref1->check_changed_data .
this will update the check box values in your internal table.
now you can use
loop at itab into wa where check eq 'X'.
fill your final internal table where you need to update the table.
endloop.
loop at newtable.
update ztable set value = 'X'
where keyfield = w_keyfield.
if sy-subrc eq 0.
message s000.
endif.
endloop.
endform.
regards,
Venkatesh
Maybe you are looking for
-
Field Text is a required field for G/L account ZA01 476900
Dear SAP Guru's, When I am doing the MIGO for the purchase order from the Sales order purchase requisition. I am Getting the error. Field Text is a required field for G/L account ZA01 476900 Where can i define the feild text for G/L Accounts. regards
-
User athentication problem in jsf
Hi all, Upto to now i used filters for user authentication by placing the protected pages in the folder from the remaining the pages which are on root. The filter will come into action by the url detection of the foldername. But actually my problem h
-
Static coming through computer line out, PLEK500
I have three of these working just fine, in this configuration: #1 tied to cable modem #2 tied to ethernet port of a macbook pro #3 tied to a Roku box #4 is meant to serve the Ethernet port on the Mac Pro tower in my home office. Unfortunately, upon
-
I purchased a movie on Apple TV and cannot find it on other Apple TVs in the house or on my ipad. It says I have no purchases, but I was watching it yesterday. The reception was so bad that I stopped and wanted to view it today. It has a link to o
-
Hi I am configuring out of box mappings and I am getting strange error for few tasks. Most of the tasks are executing successfully but few are failing and the error log says : ANOMALY INFO::: Error while evaluating $$CURRENT_QUARTER MESSAGE:::No mapp