Adding new field with constant value for pre-existing records
Hi,
I have to introduce in different tables (ztable and standard one) a new field, containing the company code. The problem is that all the records already inserted in these tables should be filled with a particular company code ('DD01').
I'd like to have this field automatically filled with a constant value without having to develop a program in order to update all the preexisting data. The reason is that cardinality of these tables is aroud 100 Millions of rec....
Ideal solution should be to have some rule/routine defined in the data dictionary CR, so to get the field value during the import of the related CR.
I've seen that is possible to define routine, but only for maintainance view (so new records..). If I open the db view, the situation is the following (example):
Campi di ZKR_CRPU
Nm.campo Pos. Tp. dati Lngh. Decimali Not null Default
MANDT 1 VARCHAR 3 X '000'
ZZKDATANNO 2 VARCHAR 4 X '0000'
ZZKDATMESE 3 VARCHAR 2 X '00'
ZZKCODZONA 4 VARCHAR 3 X ' '
ZZKDCODCTDIS 5 VARCHAR 6 X ' '
ZZKCRPU 6 DECIMAL 10 9 X 0
Is it possible to change the default value? is there a solution to my problem without developing a tool just for updating a field? I can also define a custom data element if the problem can be solved.
Thanks a lot,
Gabriele
Hi!
If I were you, I will not look for another solution, because it's pretty easy task for ABAP.
It can be solved within 1 line:
UPDATE ztable SET zzcompany = 'DD01' WHERE zzcompany = ''.
Regards
Tamá
Similar Messages
-
Adding new field in the table for Output
Hi ,
I need to add a field catalogue as Payment method in the condition table for Output, but the payment method field does not exist in the table. Can this be done?
regards,
RaguHi Refer below link on sdn for adding new Field
Adding New Field to Catalog
Adding New fields to field catalog -
Adding new fields in web ui for complaint transaction
hi all,
i am able to add new fields thru eewb but my question is how these fields will reflect in web ui
and where these values will be stored i.e in which table?
do we need to create any z tables if yes how ?
plz help me out
thanks
madhuriHI,
When u add a new field through EEWB wizard, that field add in related table. Suppose u r adding a field for Complaint , for that u have to choose Business object for complaint.
After this step when u run wizard, not only this field will add in Complaint table but wizard also generate BADI, FM,some structures and data element and also some classes.
U can find all these related generated methods , structure etc from General Data of Task.
U dont need to create any Ztable, wizard take care itseld all data storage and handling.
Regards
Gaurav -
Adding New Field and Passing Values Between Screens
In the Oracle Projects Create Project screen, I've been asked to add a new LOV for Organization (LOV copied from a subsequent page) - and then pass the selected value to the next page and default in the value based on the selection on the first page.
I understand I'll be modifying the first page's XML to add the new LOV, but how can I get the second page to recognize the value selected on the first page? Do I need to pass this as a parameter?
Thanks in advance for your help!Thanks - I understand that the CO should not be extended, and other posts in this forum mention that the AM should not be extended either.
What is the recommended extension path in a scenario like the one I describe above (adding a field to a seeded page and trying to pass it to the second page)?
Sorry for all the questions - I couldn't find this scenario described elsewhere in the forums! -
Dynamci Query Result View - New Field with domain values
Hi,
I added to the result list a new field (using an append structure). Than I added it to the layout. This field contains a number, which will be translated into text by domain values. But in my result view only the number will be displayed. Any idea how I can display the text instead of the ID?
Thanks in advance Paul.Hi Paul,
You can display the domain text by fetching it in the corresponding GETTER method. The GETTER will be sending the ID; you can add extra code to fetch the corresponding text ID in the getter and return this in rv_value.
Regards,
Shiromani -
Adding Expired heading with static value for reverse proxy
I'd like to add an Expired heading to a response leaving a reverse proxy to make sure that the browser will not cache the file locally (or at least attempt to prevent it).
Is this possible with SWP? I cannot find out how to do this in the admin interface at least. I'm running 4.0.5 B04
thanx,I'd like to add an Expired heading to a response leaving a reverse proxy to make sure that the browser will not cache the file locally (or at least attempt to prevent it).
Is this possible with SWP? I cannot find out how to do this in the admin interface at least. I'm running 4.0.5 B04
thanx, -
Adding new fields in Custom Infotype
Hi,
I need to change some fields of Custom Infotype. But project is already gone live for 1 country. will making changes to infotype affect for existing live country?
Safe side....We are thinking Adding new fields in Custom Infotype. & displaying corresponding fields for countries in another tab
& hiding the old tab.
Please let me know procedure for Adding new fields in Custom Infotype for displaying in new tab.
Edited by: Sachin Thigale on Aug 23, 2010 7:04 PM
Edited by: Sachin Thigale on Aug 23, 2010 7:05 PMPlease search. Lot of Threads on this.
Follow these steps.
Go to Transaction PM01.
2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
3) Select the u2018Employee Infotypeu2019 radio button.
4) Select the u2018PS Structure Infotypeu2019.
5) Click on Createu2026 A separate table maintenance window appearsu2026
6) Create a PS structure with all the fields you want on the Infotype
7) Save and Activate the PS structure
8) Go back to the initial screen of PM01.
9) Click on u2018Allu2019 push button. It takes a few moments.
10) Click on u2018Technical Characteristicsu2019. Infotype list screen appears
11) Click on u2018Changeu2019(pencil) button
12) Select your Infotype and click on u2018Detailu2019 (magnifying glass) button
13) Give u2018T591Au2019 as subtype table
14) Give u2018T591Su2019 as subtype txt tab
15) Give your subtype field as subtype field
16) Save and come back to PM01 initial screen
17) Click on u2018Infotype Characteristicsu2019 u2026 Infotype list screen appears
18) Click on u2018Changeu2019 (pencil) button
19) Click on u2018New Entriesu2019
20) Enter your Infotype number and short text
21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotypeu2019s infotype characteristics screen and use as the reference to fill yours)
22) Save your entries.
23) Now the Infotype is created and ready to use.
24) If you want to change the layout of the Infotype as per your requirementu2026
25) In the PM01 initial screenu2026Select u2018Screenu2019 radio button and give 2000 as the screen name, then click on edit.
26) In the next screen.. Select u2018Layout Editoru2019 and click u2018Changeu2019.
27) Screen default layout appearsu2026here you can design/modify the screen..change the attributes of the fields..etc.
28) Save and activate. (Donu2019t forget to u2018Activate at every level
i think u have to select CI_INCLUDE while enhanceing the Standrad Infotype
The above details are from the following link
Re: How to add fields in custom infotype and update its screens -
Error on MIGO with added new field that was not pass empty
Hello,
I added new field and screen to MIGO with MB_MIGO_BADI using Sample
Code. It seems on MIGO. But when i pass empty this new field, i take an
error message. So how can i pass empty for this new field?
Best regards,
MunurI send all methods codes by order :
Moderator message - Please respect the 5,000 character maximum when posting. Post only the relevant portions of code
Edited by: Rob Burbank on Jan 11, 2011 5:12 PM -
Revision: 14599
Revision: 14599
Author: [email protected]
Date: 2010-03-05 07:38:39 -0800 (Fri, 05 Mar 2010)
Log Message:
Fix for FM-477 (DVR: Negative duration when publishing a new video with endoffsset value).
Ticket Links:
http://bugs.adobe.com/jira/browse/FM-477
Modified Paths:
osmf/trunk/framework/OSMF/org/osmf/net/dvr/DVRCastDVRTrait.as
osmf/trunk/framework/OSMF/org/osmf/net/dvr/DVRCastTimeTrait.as -
Adding new fields from CI Include to Standard SAP Screen
Hi All,
I am enhancing Infotype 0487. I have added new fields to the CI include and created the screen fields in subscreen 0200 with reference to the data dictionary fields. When I test the subscreen alone, the new fields are displaying correctly and F4 help is active. But when I view the whole screen(2000) in PA30, the new field is inactive and I am not able to enter data. Also F4 help option is present for the field but when it is selected, a message 'No Values Found' is displayed. Please suggest some solution.
Thanks in advance
Regards,
Sivasankari
Edited by: Julynila on Oct 7, 2010 10:41 AMHi,
This might be the standard transaction, so there is a possibility of adding the fields using the Screen variants using SPRO, get in touch with your functional consultant. there you can copy an existing screen and add the required fields and rename the screen to different number, and in the config this new screen can be added.
Thanks,
Srini. -
Adding new fields to existing cube
Hi all,
We have a cube with data, now we added 2 new fields to the datasource. And want to add two more fields in the Cube to correspond to the new fields. What would be the impact on the data that is already there in the cube? Can I go ahead and add the fields in the cube and start extracting data? What I want to know is what would be the implications in such a scenario?
Any insight or help would be appreciated and fully rewarded.
Thanks,
MavHi,
At least from the experience I had there were no performance issues. The only issue would be in terms of the time taken to transport. The larger the amount of data ,longer the transport time.
You can continue extraction of data for those 2 fields from that point on. No need to empty the data from the cube and reload again. Only thing is that the data in the past for these 2 fields may not be mapped to the existing data in the cube. If you want to do that dump the cube and reload. Otherwise the data will be mapped from the time you start extracting the new fields with the data in the cube.
Cheers,
Kedar -
Adding new fields to the data flow
Hi,
I am currently planning to add some new fields in one DSO and map it (with info source) in the update rules.
Will adding new fields to Info source - Comm. structure affect all the update rules connected to it?
The info source is connected to multiple DSO.
(The data source is currently under enhancement for these fields). Once this is done, we have to replicate it to BW.
Thanks,
Naveenyes.
Once the enhancement is done for data source in r/3 side, you will have to replicate the datasource in BW.
Adding new fields will deactivate the update rules. You have to map the same in update rule and activate the same.
This will require activation of transformations, update rules, etc for related DSOs. Try to find out the where used list for the DSO where you want to add the new objects. Then check each objects whether these are activate after the changes. If these are inactive, you will have to activate all the objects.
Cheers
Chanda -
Call transaction in new session with the value at hotspot
Hi all,
As a hotspot functionality I would like to open a new transaction in a new session with the value at hotspot. For that reason, I am using the FM ABAP4_CALL_TRANSACTION with the option STARTING NEW TASK.
This FM is not working because Parameter ID is not Maintained for the field (Hotspoted). So no value is passing to new transaction.
Please suggest any other way to implement this.
ThanksHi Anil..
This is the Solution for ur Requirement. try this program and change as per ur need.
REPORT ZSEL_CALL_TCODE.
data : IT_KNA1 TYPE TABLE OF KNA1 WITH HEADER LINE.
DATA : IT_SPA TYPE TABLE OF RFC_SPAGPA WITH HEADER LINE.
SELECT * FROM KNA1 INTO TABLE IT_KNA1 .
LOOP AT IT_KNA1 .
WRITE:/ IT_KNA1-KUNNR HOTSPOT ON.
HIDE IT_KNA1-KUNNR .
ENDLOOP.
CLEAR IT_KNA1-KUNNR.
AT LINE-SELECTION.
CASE SY-LSIND.
WHEN 1.
IF IT_KNA1-KUNNR IS NOT INITIAL.
REFRESH IT_SPA.
IT_SPA-PARID = 'KUN'.
IT_SPA-PARVAL = IT_KNA1-KUNNR.
APPEND IT_SPA.
CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'S1'
EXPORTING
TCODE = 'XD02'
SKIP_SCREEN = ' '
MODE_VAL = 'A'
UPDATE_VAL = 'A'
IMPORTING
SUBRC =
TABLES
USING_TAB =
SPAGPA_TAB = IT_SPA
MESS_TAB =
EXCEPTIONS
CALL_TRANSACTION_DENIED = 1
TCODE_INVALID = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
ENDCASE.
<b>Reward if Helpful.</b> -
Adding new fields to business partner relationship
Hi all,
We are trying to add new fields to business partneru2019s relationship using EEWB. We are adding 4 new fields when relationship type is "Is shareholder of", so we have created a new project at transaction EEWB and then a new extension and the wizard is started. At the wizard, we have define the 4 new fields with cardinality 1:1 and time dependent without gaps.
Also we have done all the extension setup, so the new fields only appears when that relationship is created and we can fill the new fields.
The problem that we have is that every time that you create a new relationship type "Is shareholder of", even if you fill the new fields or not, the system spend more than one hour to save the data, having also a "STACK_STATE_NO_ROLL_MEMORY" dump... It seems that the system goes inside a loop that never ends, but we haven't change any function, because the standard functionality is enough for us.
Any help on how to proceed?
Thanks in advance!!Please, anyone can help?
Thanks!! -
Adding new fields to assignment block, what are the steps to do this.
CRM 7.
Could someone tell me what the steps are to add new fields to specifdic assignment block. Assume that these fields do not already exist in any given structure/table.
My understanding is that I need to use transaction EEWB and then somehow use the component "BSP_DLC_FS" and view "factsheet". But having never used EEWB before I'ma tad lost. I'm in EEWB and have crfeated a project and believe that I now need to create an extension. When doing this I am displayed a box with 4 fields, being: Name, Description, EEW Bus object and Extension type. What are my next steps?
I assume that the EEW bus object is 'BUPA' and the extension type is 'ADD_NEW_FIELDS'. However, how do I know for sure that the EEW bus object should be 'BUPA', bearing in mind that I'm adding new fields to the Account (BP) main address communication data Assignemnt block?.
I wondered if anyone has a link to any guide docuemnt about how to do this?.
Any help would be very much appreciated.
I attempted to use EEWB to add new fields to BUPA but am hitting the error: BDT-DC is Not Prepared for This Application Object
On searching I can see that there are ways around this, via SM30 against table/view V_TBZ1_DC, changing the BDT BC settings, whatever they are. But it gives me a warning when this happens and mentions that only SAP are allowed to do this, but it will allow me to create a transport if I press on past this. Should I need to make this change though, or have I just done something wrong within EEWB I wonder.
JasonHi Jason,
You can try using Application Enhancement Tool (AET) to create new fields instead of EEWB,
Best Regards,
Gobinda
Maybe you are looking for
-
I bought blackberry in india. can i use it in usa?
i bought blackberry in india. can i use it in usa?
-
Getting error while compiling frmcmp_batch batch file
HI I am getting error while running frmcmp_batch commant to create .fmx file following is command that i am using $ frmcmp_batch module=$AU_TOP/forms/US/DEMxxEOR.fmb userid=APPS/apps output_file=$PO/forms/US/DEMxxEOR.fmx module_type=form batch=no com
-
Hi everyone, I have a surface device with windows RT 8.1 with project siena beta2. The app I have ready for the store has a camera screen with sliders. In beta1 the camera switching worked great, but beta1 had the issue with the photo capture savin
-
I changed the settings and now I cannot figure out how to change them to the default setting. How do you change the frequency in which you enter your password in iTunes?
-
So far: installed new driver from epson. As below steps: Thank you for contacting Epson regarding your Epson Stylus Pro 4880. It is my pleasure to respond to your inquiry. Please try the following steps below in an effort to resolve your issue. 1.Cli