Begin date - End Date in a custom table
Hi all,
I have created a custom table, where each record has a "Begin date" and a "End date".
Requirement.
Existing record
Field1 Field2 Begin date End date
A B 1/1/2008 12/31/9999
New record to be created
A C 1/1/2009 12/31/2009
Requirement is that the new record should delimit the old record.
That is after inserting the second record, table entries should be like this.
A B 1/1/2008 12/31/2008
A C 1/1/2009 12/31/9999.
Any idea how to achieve this?
Thanks
Krishna
Thanks guys for your interest.
I solved the problem.
Solution
In table maintenance generator
goto Environment---->Generate Time-Dep.
Thats it.
Thank you
Krishna
Similar Messages
-
Problem while saving date field in custom table
Hi,
Iam facing the following problem while saving a date field in custome table
i have a date field zdate in which the value is 02082010.
now when i try to insert this value in the custom table it is getting updated as 20/10/0208 , but it should be 08/02/2010
How can i correct it..
Regards
Kumarjust before saving u might have to use a string reverse FM and then save it..
CALL FUNCTION 'STRING_REVERSE'
EXPORTING
STRING = p_string
LANG = sy-langu
IMPORTING
RSTRING = r_string
EXCEPTIONS
TOO_SMALL = 1
OTHERS = 2 -
Update real time account general data into a custom table
Hi,
I have created a z table for storing account general data for some business requirement. I have created a program and executing batch job to update this z table on periodic basis. Can anyone suggest some other alternative solution to update this z table whenever an account gets created/modified in CRM system? Instead of running a batch job periodically, I need a real time replication of the account data in this custom table.
Thanks and Regards,
Sneha.Hi,
Thanks for your reply.
But, Can you elaborate the solution, Can we use Business Transaction Events(BTEs) for updating Partner data? Will these be triggered for Account Creation/Modification. If so, Can u suggest any BTE which can be used for my requirement?
Thanks and Regards,
Sneha. -
How to manage data in a custom table added in SBO?
Hello,
I'm developing a addon for one client that needs to control an aditional step, after each Invoice is posted.
Since SBO does not allow me to add additional fields to Invoice header table (OINV), I thought to add a custom table to SBO database to control the process for each Invoice (simple table with 2 columns: DocNum to hold the Invoice number, and Status to keep track if the Invoice was processed or not).
When I added a Custom Table in SBO and checked the table definition in SQL Manager, I found that SBO added automatically 2 new columns (Code and Name).
Since the PK is defined at Code column (and not the DocNum has I wanted), I found that it not very handy to manage data (insert, delete & update) with this table definition.
I tried to find a DI object that could manage easily the data of this table type but had no sucess.
Then I thought in adding the custom table directly in SQL Manager, and manage it directly with Recordet objects.
However this seems not a standard process to manage data since it interacts directly with the DBMS, which can be dangerous...
Is there any way or DI object to manage this custom tables added in SBO?
Thanks all!
Manuel DiasHi Manuel,
What do you mean by SBO does not allow me to add additional fields to Invoice header table (OINV).
Have you tried it add a UDF to OINV,if so what is the exception you got while adding.
If you Have not tried Use the following code to create.
Dim oUserFieldMD As SAPbobsCOM.UserFieldsMD
oUserFieldMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
If (Not isColumnExist(TableName, ColumnName)) Then
oUserFieldMD.TableName = "OINV"
oUserFieldMD.Name = ColumnName
oUserFieldMD.Description = Description
oUserFieldMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
oUserFieldMD.EditSize = Size
(objUserFieldMD.Add() )
End If
if the field is added successfully.
Then open the Invoice screen and goto View menu and click on user defined fields then it will show you one form which contains the field you added,
You can access this field using DIAPI of Invoice object
regards
Vishnu -
Urgent help needed in inserting data into a custom table in oracle WorkFlow
Hi
I am trying to get data from the WF and insert into a custom table..
I read that workflow procedures WONT allow commits...
Oracle Workflow will not support autonomous commits in any procedure it calls directly. If you need to perform commits, then embed your SQL in a subprocedure and declare it as an autonomous block. This subprocedure must be capable of being rerun. Additionally, note that Oracle Workflow handles errors by rolling back the entire procedure and setting its status to ERROR. Database updates performed by autonomous commits cannot be rolled back, so you will need to write your own compensatory logic for error handling
Have anyone did this..
Please give me some idea ...It is urgent
I am getting data using getitemattribute..and try to insert it into a custom table
thanks
kpPl do not post duplicate threads - insert dont work in Workflow
Srini -
How to upload data in a custom table in quality server
Hi All,
I want to upload data in custom table in quality server.
I forgot to tranfer TMG into QA. I also don't send any upload program to QA.
Is there any way to upload data directly to table in quality server i.e. by use of debugging.
Regards,
NarendraHi Narendra,
As suggested by Jorge you can create data through T-code SM30 (for this you need to have table maintainence generator in development) and get it tranported to Quality and production and maintain the data through it or else to can create a request for data creation through SM30 in development and get it transported to quality and production.
Thanks,
Chinmay -
How to capture userid,date in a custom table while updating a form
Hi,
I have a requirement to insert the userid, the form name and the date on which the record is saved in a custom table while updating a custom form.
We are using Form Builder 6.0.
I am new to Forms and can anyone help me with these?
I would also want to know under which trigger i should be writing the code in.
Thanks in advance.you can use:
usrid := get_application_property(username);
formname := get_application_property(current_form);
dt := to_char(sysdate,'dd/mm/yyyy hh:mi:ss');
you insert these values in on-update trigger at form level -
Huge data upload to custom table
I created a custom table and the requirement is to load huge data to this table around 20million records. I have input file with 1million records. After loading few files, I got error max extents 300 is reached. We talked to basis and they increased to 1000. Still I'm getting this error.
The way my porgram written was
reading all input data to internal table i_zmstdcost_sum_final.
INSERT zmstdcost_sum FROM TABLE i_zmstdcost_sum_final.
Can any one suggest me the best solution or how to alter my program?
Thanks,
PVHi
If you need to load a very large number of records u shouldn't load the record in an internal table and use the commit statament after a certain number of record and close a file after loading all its records.
LOOP AT T_FILE.
OPEN DATASET T_FILE.
IF SY-SUBRC = 0.
DO.
READ DATASET T_FILE INTO WA.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
INSERT ZTABLE FROM WA.
IF SY-SUBRC = 0.
COUNT = COUNT + 1.
ENDIF.
IF COUNT = 1000.
COUNT = 0.
COMMIT WORK.
ENDIF.
ENDDO.
IF COUNT > 0.
COMMIT WORK.
COUNT = 0.
ENDIF.
CLOSE DATASET T_FILE.
ENDIF.
ENDLOOP.
Max -
Data Archival for Custom Tables
Hi Experts,
We have a requirement of archiving the related custom tables while we archive the standard SAP tables data. We are going a head with creating the custom archiving objects to handle this. However, i would like to know about the feature of "Exit routine assignement in generation" in the standard Archiving objects (AOBJ). Can this be used to handle custom tables data? If yes, can you please provide me an example how this can be acheived? If not, what is the purpose of this?
Please help!!
Thanks and Best Regards,
SuryaHello Lavaughn,
I can not speak for SAP, but from my personal experience TimeStamps are the state of the art to store time date info in db tables. Even with date/Time fields a conversion to the local timezone is necessary. Of course you can reuse your db definition on dynpros. But since UI and business logic will be divided anyway this is also not really a valid point.
Best Regards
Klaus -
How to enter data in a custom-table
Hi All,
I created a custom-table in sapCRM system. There won't be a place to enter records on the screens. So how can the users enter new records into the table? Is there any other way they can do that.
Regards,
RanjanHi,
In SE11, on "Delivery and Maintenance" tab, make sure your table is "Display/Maintenance Allowed". There could be other settings too, but i know only this one.
Then, once you inside the table, hit F5 or in the upper tool menu, choose "Table Entry-> Create".
Populate mandatory fields and save.
We have done the same in few projects, but only in the Development environment.
There could be other security settings you need to do, since you will be creating entries in Production.
Regards,
Vadim. -
Adding data into a custom table through a report transaction
Is it possible to add data into a table through a report transaction. I have been asked to create a report in which when we add certain data in the selkection screen it updates thoses particular fields and the rest of the records can be fille dout in the output. Basically I have a customised allocation table called zalloc. I have to create a report with selection screen having receiving plant, material document of the original transfer psoting , issuning plant , line item number , batch, receiving and issuning storage location. I need to validate this against the mseg table and whatever entry I make in teh selection screen should update my zalloc table from here.
Can anyone help me with this please.
ThanksHi Aarav,
Yes, It is possible to add records to a table using a report transaction. You can use Update or Modify to insert records in a table.Convert the data fetched from the ZALLOC and convert it into an internal table of the same format as that of the ZALLOC table and simply do an
loop at itab_zalloc into wa_zalloc.
*INSERT INTO ZALLOC FROM WA_zalloc*.
endloop.
OR
INSERT ZALLOC FROM TABLE ITAB_ZALLOC
OR
UPDATE ZALLOC FROM TABLE ITAB__ZALLOC .
Update will modify if that record exist and returns sy-subrc as non zero if entry does not exist.
OR
MODIFY updates an existing DB entry or, in no matching entry exists, inserts a new entry into the DB table -
Data Entry into customized table
Hi All,
I have created a z-table and selection screen with four fields. Whenever I enter the data into these four fields, the data should go to the z-table through my report.
Will you please send me how to do this?
Thanks in Advance,
RamanaHi KCR,
You can do this by program or by generating a table maintanence generator using SM30.
IF you want to do this through program declare internal table with the same structure as that of your table and populate it with details as per the selection screen data and use "INSERT INTO <table name> FROM TABLE ITAB".
OR
Goto se11 give your table name change, in the attributes tab select display and maintanence allowed and then select menu path UTILITIES > Table maintanence generator . IN the next screen displayed
give Authorization groups as &NC& (if you dont want any auth check) Function group as your table name( you can give any name starting with Z), select maintanence type one step and give single screen as 100 ( you can give any number you want) and then select create button(located left top corner). this will generate a table maintanence for you.
After doing above steps go to sm30 and give your table name and select maintain which will display a nice table control with the table fields where you can maintain as many records as you want and click on save.
Thats it.
Reward if helpful.
Regards,
Kalyan. -
Problem to update data in a Customized table
Hi,
I want to update the internal tables record into a ztable i am using
Loop at itab.
UPDATE ZTABLE
Endloop.
Comit Work.
this program is running fine in Test environment but while i run in some other environment the fields are updated correctly except one field (amt value i get this amt by doing some logical calculation it can be negative sign also) .
I dont know how this was not updated correctly. anyone please give me the suggestion,
If any changes was happened in this environment.
Thanks in Advance
John VictorHi Try
MODIFY ZTABLE.
Jey -
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 -
Source of data for custom tables in Oracle Apps
Hi,
Is there any way to find the source of data for the Custom tables. The source can be either any function, procedure, package or a trigger or any other process. The reason why I need to know about it is because we have some custom tables that are used by some custom Reports. Sometimes those reports comes out blank because the data in these custom tables is blank. So I need to know which processes are populating data in these custom tables. Any help would be really appreciated !!
Thanks,
KMIs there any way to find the source of data for the Custom tables. The source can be either any function, procedure, package or a trigger or any other process. The reason why I need to know about it is because we have some custom tables that are used by some custom Reports. Sometimes those reports comes out blank because the data in these custom tables is blank. So I need to know which processes are populating data in these custom tables. Any help would be really appreciated !!I do not think there is a direct way to find out the source of the data unless your custom processes are documented.
You may enable AutditTrail (search the forum for links/docs) and see if this would help.
Thanks,
Hussein
Maybe you are looking for
-
Hi ... I have a problem with my ipod touch: I can not activate my ipod with my Apple ID, it tells me that my account can not activate this device, but my apple ID is OK. The proposed me as ipod help entering previous credentials, but the ipod is mine
-
Lightroom 3.6 camera raw 6.6: pictures destroyed
Dear Support-Team, I am using a Canon Rebel T3i and have problems while importing my raw-pictures into my lightroom 3.6 In the importing window - all pictures look great and good. As soon as they are imported, some of them get destroyed (half of the
-
How can I get a credit card re-instated with ITunes/Apple Store? It was blocked due to an ITunes billing error. Called customer (lacking in) service, but they were no help! The rep emailed that I had to get a new credit card No way.... --PB
-
HELP! Problem Projecting Numbers Document
Hi I am trying to project a Numbers document from my iPad onto a projector via the 30pin to VGA adaptor. In the past, this has worked fine, projecting full screen. However on this document it is squeezing it vertically. - I think 16:9. Are there any
-
Revision: 13116 Revision: 13116 Author: [email protected] Date: 2009-12-21 04:50:52 -0800 (Mon, 21 Dec 2009) Log Message: Making the control bar's 'stop' button optional (and toggled off by default). Modified Paths: osmf/trunk/apps/samples/