Custom Table Maintenence
Hi All!!
I have made a custom table Yrepost. I want to maintain the data records in the table such that the table gets refreshed after every 40 days.
It means the data records be deleted after 40 days.
Can you please suggest how to do this? Will a basis administrator reqd. or can a developer do the same through settings etc.
Thanks in advance..
Prabhas
Hi,
Create a program with name starting with Z or Y.
Inside the program write code like:
tables: <your Y table>.
parameters : date1 type dats value sy-datum.
DELETE <ytable>.
Activate and create a variant.
Then;
Again in the start screen of se38. Just give program name.
Then from menu Program->Execute->Background->You can schedule it there
Regards,
Renjith Michael.
Similar Messages
-
Custom Transaction for maintence of custom table
hi friends,
i have created a custom table. and for it i need to have a custom maintenence transactions.the custom transaction should consits of insert, copy a row and upload....
but i dont think we have an upload feature in SM30,
now my doubt is how can I solve this,,, by any other method & dilaog program being my last priority.
Please let me know if u guys get some idea
Thanks in advance
TinaHi
U can use the fm GUI_UPLOAD to read and store the file in internla table, after transfer the data from internal table to database table. This is an example:
PARAMETERS: P_FILE(120).
DATA: FILENAME TYPE STRING.
DATA: T_FILE LIKE TABLE OF <ZTABLE>.
START-OF-SELECTION.
FILENAME = P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FILENAME
TABLES
DATA_TAB = T_FILE.
INSERT <ZTABLE> FROM T_FILE.
You can use this program only if the file have the same structure of Z-TABLE, otherwise you have to elaborate the data of T_FILE before inserting in the database.
Max -
Table maintenence generator events
Hi experts,
I am having a table in which I have implemented the table maintenence generator.The requirement is as follows:
Field A:User enters value 'aaa' using F4 help
Field B:Automatically gets populated with the short description corresponding to 'aaa'.
Here the short description depends on the selected value for field A.Hi debansu,
No need to do your coding in events in your case. first of all you understand the internal table used in table Maintainace, The internal tables used are TOTAL and EXTRACT. These table are of string type so you will have to catch your value using offset. To write the logic to popualte the value is very simple in your case. You add one Module in PAI logic of screen of Table maintainance generator in that Module you poupalte the field. for example say for the F4 value of field MATNR you want to populate field MAKTX. then in the one custom PAI moudule you write like this.
SELECT SINGLE FROM MAKT
INTO LF_MAKTX
WHERE MATNR = EXTARCT+3(18)(If Material is the 2nd field after MANDT).
In PAI LOOP is done on EXTARCT internal Table which holds Records in run time.
This will solve your requirment If you are not having F4 help then you can create it by adding one event PROCESS ON VALUE-REQUEST writeen in Flow logic of screen.
We use event where we want to do some validation based on some reasons like Before saving the data in database or before displaying to do the validation of records from table TOTAL. there are diffrent events in Table maintaince but in your case it's not required..
Let me know if you have any more issue.
<b>Kindly reward points for helpfull answers..</b>
Regards
Tanweer Zaki
Message was edited by:
Tanweer Zaki -
F4 help values in SM30 - Table maintenence
Hello Guys,
can anyone of you advise how to do the F4 help in SM30. I have a Z table and generated a table maintenence. I want the F4 values for customer or material or cocode..etc..to appear in SM30.Thanks
SenthilHi Senthil,
If the data element or the domain you have used for the field of your table, has search help attached to it, then you will automatically be able to use it in SM30..
Thanks and Best Regards,
Vikas Bittera.
**Reward if useful** -
Upload to Excel option in Table maintenence View
Hello Gurus,
I have a Z table, for which we have created a table maintenence view generated and then we've attached a Z taransaction code to the same.
So if the user want, he can go to this transaction and add/edit/delete table entries right then and there.
But now the user wants a upload from excel utility/option from the same screen.
I have read somewhere on SDN that we can create custom routines and attach it to table maintenence generator, but i donno how to do it.
Can anyone please guide me or point me to some links...it would be very helpful.
Thanks in advance.
Cheers,
Tatvagna Shah.HI ALL,
Recently I faced the same issue, I had to upload 1300 records into the table using table maintenance, First I thought of wiritng a Z program, but realised that it is not acceptable to client, because if the table is uploaded in testing servor or production servor, we have to trasport the program,and this this will only increase no of programs in the produiction servor and this many of these one are required for one time only, because we may require to create table miantenace for many z tables has a whole for the complete project.
My suggestion is to upload the data from excel by pasting (if possible) or manually.
Please correct me if I am wrong.
Thanks,
Vengal Rao. -
Table maintenence logic...
Hi,
I am working on table maintenence generator. I have three fields in this custom table.
Now when user goes to maintain this table in SM30, I want the data to populate in other field automatically based on the data keyed in one field.
For example when he choses option New Entries, as soon as he keys in data in one field of the table, other field should get its data based on some code logic from standard SAP table using data of first field.
Like, when user is entering ROLE in one of the field, the logic should fetch the description of that role in description field from SAP table AGR_USERS.
Regards,
Rajesh.hi check this....here if u enter matnr the desc will populate auto matically.
if sy-ucomm = 'ENTR'.
select maktx
from makt
into ztable-makt
where matnr = ztable-matnr
and spras = 'EN'.
endif.
regards,
venkat. -
Error while deleting a customer table
When I try to delete a customer table which is saved as a local object I get an error stating that the table is still used in ABAP Dictionary. It seems that the customer table is still used in a customer program, but the program is already deleted! I deleted the program earlier and thus no longer exist in our system. I cannot find any trace of the program, but am unable to delete the customer table now. Any suggestions?
Program name would have been of the table maintenance generator and you deleted it manually.
It should have been deleted from TMG .
Your problem will be resolved if you will create Table maintenance of the database table and then delete it again. -
How to find out the user who has created a new field in the custom table.
How to find out the user details who has created a new field in the custom table.
Thanks,
JoanHi Jesudasan ,
You can know the user details with version management.Please find the
below procedure to know.
Go to table->Utilities tab->version->Version management->Compare the previous one .
Hope this solves the issue,Let me know if you have any issues.
Thanks,
Rajani -
How to find the Table from which a Custom table is created.
Hi Gurus,
I have a custom table in SAP and want to figure how that has been created. How can I do that?
Regards
PrashantHello Prashant,
what do you mean by "how"?
When you say custom table do you mean "Customization table" or a "Customer table" (in namespace Z... or Y...)
Anyway, you can access SE11 transaction, view the table and then check its attributes. -
Converting garbled characters for JAPANESE characters in a custom table
Hi all,
I have a custom table that store Japanese characters.
After my company has upgraded to ECC6.0, this data in the custom table has become garbled and its alot of it garbled.
Is there any SAP tool that can I use to make the correction on those garbled Japanese characters?
Thanks,
William WilstrothHi Nils,
I really really really had a field day reading and testing around UC... To my dissappointment, I do not have the authorization to use SUMG and SCP too as well as a few of the TCODES...
I finally told my higher level technical mgnt. that this table might need some changes...
Has this problem of mine got anything to do with MDMP since its no longer supported in ECC6 and I found one coding that search for MDMP in RSVTPROT...
My colleagues suggest that the data be corrected from table DBTABLOG... which i find, in my opinion, is not the right way...
Thanks,
William -
How to Track the changes made to the custom table field value
I want to track the changes made to the custom table field value in table maintenance generator.please help me it is very urgent
Thanks & Regards,
KrantiHi Satya,
These are the steps you've to do.
1. Enable the change document flag in the data element level for the fields of the tables you want to monitor.
2. Go to transaction SCDO. Create a new change object, and add your table to this object. After generation, you'll get a function module.
3. Call this function module in the table maintainence generator screen, after the data is saved to the database table. This function module automaticallly writes the changes, with the old and new values, and the fields that were changed to the tables CDHDR and CDPOS.
4. You can keep track of the changes made to the table by monitoring these tables.
Regards
Anil Madhavan -
Custom Table for Verifying Duplicate Invoice against Legacy Invoice Data
Hi All,
We are trying to upload legacy invoice data in a custom table. Then we want to use SAP duplicate invoice check functionality to look for the potential duplicate invoice from this custom table as well apart from the standard SAP tables.
If you know of some user exit or any function module which I can use to link this custom table with the standard SAP duplicate invoice check functionality then it would be of great help.
Regards,
SanjayHi Jurgan!
Thanks for the reply,
We are using ECC6,
Support pack : SAPKH60013
Settings for Duplicate Invoice Check In Vendor Master is correct
Customization setting OMRDC transaction, tick mark for invoice reference no. only
If all the cited characteristics match, the system displays a
customizable message. M8462 (if logistics invoice documents are found) or M8108 (if accounting documents are found).
I have ensured that message M8108 (if accounting documents are found) is maintained as an error message in OMRM.
Still system is allowing duplicate invoices for the reference nos. 00082 and 00072.
For other reference Nos. which are previously used for other documents, system issues error message successfully.
I dont want to delete archived accounting doc. and if I maintaind BKPF entris of this archived doc manually it will create probelm in FI.
is this happen due to life span of secondory index of archived accounting doc. is completed ?.
Please Help
Many Thanks
Vikas -
How to create a custom table in the below format
Dear Friends
can any one please let me know hot to create a custom table as below
outpatient
|employeeno | class | startdate | enddate | spouse |1stchild | 2nchild| Rate | amount|
My FO wants to enter in the SM30 as above ......i.e he wants to have spouse ,1st child and 2nd child under one group........so he asking me to make as one group
and give a heading as outpatient.........similary i have to give for in patient.
Please could any one tell is it possible.
regards
syamala...Under the SAP forums section, there is ABAP development and in That there is ABAP General.
SAP forums > ABAP development > ABAP General.
Post in that forum.
Regards
AK
Please reward if helpful -
How to create the custom table?
Hi, how to create the custom table and how to integrate the table with defferent R/3?
my requiremnt is i have to create the two tables and those i have to integrate with the existed R/3 and using those R/3 i have to update my custom tables .....can give me some idea?
Tks
DPkhow to create the custom table
There are two approach in creating a table.
1. Bottom-up approach
2. Top-down approach.
Both are valid and you can choose which approach is suitable for you. I always use the bottom-up approach. Here are the steps to create the tables with this approach.
1. SE11 will take you to the DDIC and enter the name of the new table to be created. Let us say Zname. Click create.
2. Enter the short discription of the table and enter the field of the table. If it is primary key and you have to check the box.
3. Enter the data element and double click it, you will be asked to save and will take you to data element discription page. Enter the short discription of the data element and enter the information of domain like the length of field and type of field.
4. If you wanted to use the existing domain then its fine, or else, you have to create one. Enter the domain name in the data element page and double click it. Page will ask to save and jump to domain creation page.
5. In the domain page, you have to save the information which you have already given in the data elements page and check it. Before going to data element page, you have to activate the domain.
6. Go to data element page and save, check and activate.
7. Go to main table page and save, check, and activate.
8. Also, you have to save the technical settings of the table.
The table is now ready for operation. You can use it in your program or you can use it to enter information.
Check table: It is the table which will have all the information about the Foreign keys which are the primary keys in the check table.
It can be created by creating the foreign key from the main table. Click foreign key in the main table and it will take you to a page which will ask for table name and field to which foreign key relation has to be associated. Enter the information and you can create the check table automatically.
SM30 is used for maintenance of the table, that is to realease the errors occured during the creation of the table.
how to integrate the table with defferent R/3
Transport the Table to the another server/client/qas/prd
Kanagaraja L -
How to do a Search help on SAP structure field listing custom table data?
i have a SAP screen (Trans KE52) that they want to have a drop down (search help on).
The drop down should list values from a custom table.
How do you do this?
The values to be displayed are NOT from a structure table but from a transparent table. i believe I will need a search FM to do this but not sure how it is to be done.
Any one have ideas?
Thanks!
ScottHi Scott,
You need to go to SE11 and look for a searh help that match your requirment or build one.
In case you are going to develop one, in the definition tab of the search help look for the selection method and put in the input field the name of your transparent table.
After that you must specify the fields that you need to appear at the list and the one that is going to be selected for your field. This step you have to do it on the search help parameter grid.
Regards,
Eric
PD. Reward points if this was helpful
Maybe you are looking for
-
Adobe xmp metadata searchable on osx 10.5 server?
i'm not sure if this is the right category for this. we have 5 mac pro's that are connected to a NAS via Xserver running Mac OS X 10.5.x server. we've started using the xmp funtionality in adobe photoshop. on the 5 local clients, searching via spotli
-
any ideas
-
Dropped Ipad, red discoloration, won't fix by slapping
I dropped my iPad 1 and now there is a red discoloration on the screen. I had previously seen in an article on Apple Support that you can fix it by slapping the back of the iPad. I have tried that for over a day and it won't go back to normal.
-
Adobe Shape app won't sync with my desktop application.
I have just downloaded the new Shape app and after messing around with it a bit, I created a shape that I wanted to sync with Illustrator on my desktop. When I launched my illustrator program it wouldn't show up in my library. I've tried syncing from
-
GRC Installation : Ebs 12.1.1, GRCC & GRCM on same machine
Is it possible to install EBS & GRCC & GRCM on a single machine (intel i3 – 2100) that runs on i) win 64 ii) win 32 ? Is above possible on linux 64-bit ? Or do I need 2 machines if so what to install where ?