Insert value to field automatically when maintaining db table

Hi,
I am maintaining Z table in sm30.
The first field is the material code and the second field is the material description (and there are other fields).
The requirement is inserting the description of the material automatically after inserting manually the material code.
How can this requirement be implemented ?
Best Regards.
Ofir

Use event No 5 In table maintenance generator.
Table maintenance Generator -> Environment -> Modification -> Events ->  New entries => select event no 5. & do required coding
Regards
Vinod
Edited by: Vinod Kumar on Apr 21, 2010 5:26 PM

Similar Messages

  • Date delimit functionality when maintaining Z table

    Hi all,
    I have Begin date and End date fields in a Z table and  i want to achieve automatic date delimit functionality.
    So i have the subscreen area in my screen and called a std program and screen inside the subscreen. I have writen the below coding in the PBO event of my screen.
    MODULE DATE_D0001_IF_EXP.                       
    CALL SUBSCREEN DATELIMITS  INCLUDING 'SAPLSVIM' '0001'.                     
    " DATELIMITS  - name of my subscreen
    But when maintaining the table in SM30, the BEGDA and ENDDA field headings are displayed. But those date input fields are not getting displayed.
    Can someone tell me why the date fields from the std program, screen are not displayed inside my screen?
    Edited by: Shanthi on May 2, 2011 1:59 PM

    Hi,
    There are some imports being done in the program for screen 0001. Based on these values, the screen fields are made visible and invisible etc.
      IMPORT d0001_field_tab
             d0001_status
             x_header TO xheader
             current_date
             date_to_delimit
             date_to_posit
             vim_begdate_name
             vim_enddate_name
        FROM MEMORY ID vim_memory_id_2.
    So try doing your validation with the events available in table maintenance,.
    Regards,
    Harish

  • Error while inserting value Qualified field in the main table

    Hello,
    I am trying to populate Qualified field in the main table when a new record is inserted in the Products Repository.
    The field is Reference Price and its a qualified lookup field. I am using the below code to create qualified lookup value and create qualified link values.
    QualifiedLookupValue qlvRefPrice = new QualifiedLookupValue();
    TableId qltabid = repSchema.getTableId("ReferencePrices");
    FieldId qlfieldid = repSchema.getFieldId("ReferencePrices","RP_ReferncePrices");
    RecordId rdRefPrice = getRecordId(connPool,session,"RP",qlfieldid,qltabid);
    HashMap map = new HashMap();
    map.put(repSchema.getFieldId("ReferencePrices","StartDate_ReferencePrice"),new DateTimeValue(cal));
    map.put(repSchema.getFieldId("ReferencePrices","EndDate_ReferencePrice"),new DateTimeValue(cal));
    map.put(repSchema.getFieldId("ReferencePrices","ListPrice"),new FloatValue(Float.parseFloat("123.3")));
    map.put(repSchema.getFieldId("ReferencePrices","Currency"),new LookupValue(getLookupRecordId(connPool,session,"Currencies","Currency_Currencies","EUR")));
    QualifiedLinkValue qlvLinkValue = MdmValueFactory.createQualifiedLinkValue(rdRefPrice,map);
    qlvRefPrice.addValue(qlvLinkValue);
    emptyRecord.setFieldValue(fieldIdRefPriceHistory,qlvRefPrice);
    However when the createrecord command is executed I get the following error.
    java.lang.RuntimeException: No matching validation Id 97. at com.sap.mdm.internal.validation.ValidationInfoHelper.retrieveValidations(ValidationInfoHelper.java:71) at com.sap.mdm.data.commands.CreateRecordCommand.execute(CreateRecordCommand.java:246) at com.alcatel_lucent.productdetail.ProductItemDetail_Comp.createProduct(ProductItemDetail_Comp.java:2927) at com.alcatel_lucent.productdetail.wdp.InternalProductItemDetail_Comp.createProduct(InternalProductItemDetail_Comp.java:656) at com.alcatel_lucent.productdetail.ProductItemAddView.onActionSave(ProductItemAddView.java:971) at com.alcatel_lucent.productdetail.wdp.InternalProductItemAddView.wdInvokeEventHandler(InternalProductItemAddView.java:662) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132) at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335) at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143) at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:332) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:761) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:696) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253) at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149) at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73) at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:869) at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77) at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1356) at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:327) at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:869) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136) at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335) at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143) at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:332) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253) at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(AccessController.java:219) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)      
    I spoke to my MDM team and they say there is no validation which they have put for Reference Price field. I have tried inserting values in another field of type qualified lookup in the same main table and that works without any issue.
    The code is as below:
    QualifiedLookupValue qlvRating = new QualifiedLookupValue();
    TableId qlvtable = repSchema.getTableId("ProductRatings");
    FieldId qlvratinglink = repSchema.getFieldId("ProductRatings","RatingLink");                    
    RecordId rdidPR = getRecordId(connPool,session,"CI",qlvratinglink,qlvtable);
    wdComponentAPI.getMessageManager().reportSuccess("rdidPR "+rdidPR);
    HashMap mapPR = new HashMap();
    mapPR.put(repSchema.getFieldId("ProductRatings","AvailRating"),new LookupValue(getLookupRecordId(connPool,session,"AvailabilityRatings","AvailabilityRating_AvailabilityRatings","CI")));
    mapPR.put(repSchema.getFieldId("ProductRatings","EffectiveDate"),new DateTimeValue(cal));
    mapPR.put(repSchema.getFieldId("ProductRatings","FERAIndic"),new LookupValue(getLookupRecordId(connPool,session,"ReplacementIndicators","Code","FE")));
    mapPR.put(repSchema.getFieldId("ProductRatings","FERAOrdItem"),new LookupValue(getLookupRecordId(connPool,session,"ReplProducts","ProdID","100008200")));
    QualifiedLinkValue qlvLink = MdmValueFactory.createQualifiedLinkValue(rdidPR,mapPR);
    qlvRating.addValue(qlvLink);
    emptyRecord.setFieldValue(fieldIdRatingHistory,qlvRating);     
    I would really appreciate if someone can help in solving the issue.
    Thanks in advance,
    Aamod

    Hi Aamod,
    Sees that some validation/assignments are getting triggered as soon as you make changes to the record in MDM. Please check once after removing validations/workflow that you may have. This way you may debug the issue.
    Hope this helps!!
    Cheers,
    Arafat

  • Get value of field object when I double click on any column of report

    Hi,
    We are converting our projects from .NET 2003 to .Net 2008 and upgrading reports10 to crystal reports 2008 and changing our Active x report viewer control  to crystal report viewer.
    We donu2019t use reports just to see and print the data. Our use is a bit more.
    As we were using Active X Control (CRAXDDRT) to perform different operations
    Following are some functions which are included in our requirements:
    1-     We need the columns width to be flexible which we can changed in the code dynamically according to the users wish
    2-     Setting text of some fields dynamically from .Net code
    3-     Hide and show the columns dynamically from .Net code
           Upto here we are done using crystal report 2008 and .net 2008
           Now we are stuck with problem
    4-     When we double click on fieldobject at runtime we are able to fetch the value of field object by using e.objectinfo.text.tostring, so far it is perfect
    But we have different situation here and need a solution for this
    I have two fields like Account ID and Account Description
    I need the solution so that when user clicks either on Account ID or Account Description I should be able to fetch the Field object value of Account ID Column only so that i will be able to open different forms and reports based on that ID
    As we were doing it before using Active X Control the code snippet is giving below
    case "Field: Account. AccountID ", "Field: Account.Description"
    GlobalCode = GiveCode(mYFields.Item(1).value) '------ Where 1 refer to Account ID, so in both cases either we click Account ID or Description Field at run time we are able to return the account ID field value.
    so we need solution some thing like that please do let us know how we can do that
    For Your reference we were using CrystalActivexReportViewerLib10.CRVFields obejct to fectch the report values
    Thanx in Advance
    Regards,
    Arshad Hussain Bhatt

    Hello,
    I am getting value of that cell where I am clicking. But I need the value of other columns also in that particular row where I double clicked. For this I gave one example also that suppose I have a report where there are two columns. One is AccountID and other is AccountDescription. Now if I click on Account ID I get the value of AccountID and when I click on AccountDescription I get the value of AccountDescripiton This is oK n good but I want that If i double click on AccountDescription I should be able to get the value of AccountID also.Please tell me is there anyway to do so?
    We did so when we were using CRAXDRT.Report Bellow is the code snippet for how I did it in that.
    Dim MyField As CrystalActiveXReportViewerLIb10.CRVFields
    Private Function GiveFieldIndex(ByVal As CrystalActiveXReportViewerLib10.CRVFields, ByVal FldName As String) As Integer
    For i as integer = 1 To FldArry.Count
        If FldArry.Item(i).name = FldName Then
                    GiveFieldIndex = i
          End If
    End Function
    Private Sub CRViewer1_DoubleClick(ByVal eventSender As System.Object, ByVal eventArgs As AxCrystalActiveXReportViewerLib10._ICRViewerEvents_DblClickedEvent) Handles CRViewer1.DblClicked
    If MyField.Name = "Field: AdoJV.AccountID" Or MyField.Name = "Field: AdoJV.AccountDesc" Then
    /Following line will give us AccountID in anycase either we click on AccountID or Account Desc or even you can add more column by adding Or Operator. We need something like this in Crystal Report 2008/
      Dim GlobeAddEditCode  as String = myFields.Item(GiveFieldIndex(myFields, "Field: AdoJV.AccountID")).Value
    End If
    End Sub
    Regards,
    Arshad Hussain Bhatt
    Edited by: arshhb on Oct 31, 2009 6:44 AM
    Edited by: arshhb on Oct 31, 2009 7:09 AM
    Edited by: arshhb on Oct 31, 2009 7:13 AM

  • How to assign values to textbox automatically when cursor position changed

    I want to get values based on the values entered in the one textbox when we change the cursor position the value to be automatically loaded in to other text box is it possible please help me .....

    You still haven't explained what a text box is.
    Repeating what you've already said in "BOLD" text doesn't make the question any clearer.
    What does the changing cursor position have to do with anything. I can use the arrow keys to move the cursor without changing the text.

  • Identifying form fields automatically when word doc is imported

    Hi
    I am trying to convert a word document template to a PDF template using Adobe Live Cycle. There are 7 tables in the Word document. I saved the doc as PDF using Word. When i imported the PDF into the Live Cycle Designer, the form fields ( table rows and cells) are not being identified. All are kind of static text.
    However, when i opened the same PDF in Acrobat Pro, i was able to identify the form fields ( using Form > edit fields option).
    Is there something similar available in Live Cycle Designer. Can the LCD identify form fields automatically.
    Appreciate your help.
    Thanks and regards
    Ram

    I don't believe this functionality is built into LiveCycle Designer. However, you can start your form in Acrobat (Acroform) then import the PDF into LiveCycle. Keep in mind this is a one way process.

  • I don't want to fill the Actual GI Date field automatically when GI

    Hi experts
    When I post good issue a delivery, Actual GI Date field is filled automatically.
    I don't want it.
    I don't want the Actual GI Date field to be filled automatically.
    Please, let me know how to.
    With config or user exit, anything possible.
    Thank you.

    Thank you for your reply Vinod.
    But it's still not the exact answer I wanted.
    1.
    Subroutine USEREXIT_SAVE_DOCUMENT_PREPARE in MV50AFZ1 is not useful for this situation.
    The field WADAT_IST(Actual GI Date) already has a value(today's date which is automatically inputted by system) in that subroutine.
    So it's impossible to know whether Actual GI Date is manually inputted or not.
    2.
    The BADI you mentioned does not exist in our site.
    Regards
    Ji yeob

  • Values of fields cleared when navigating to a new page

    Hi
    In a transaction, I am giving values to the mandatory fields and other fields. From that page, i am navigating to other page for creating a relation or a new contact for that transaction. When i come back to the main page, values in 2 assignment blcoks and 1 field in 'Details'  section of the assignment block are displayed as blank. When i save this transaction, those fields are saved with the values which were previously entered. If i follwo this process for an already saved transaction, this problem does not come. I am not able to identify why is this happening. Please provide your inputs.
    Regards,
    Radhika
    Edited by: Radhika Chuttani on Dec 23, 2009 12:39 PM

    Hmmm I have read also about the Internet Explorer and Fingerprint Authentication Software issue.
    Found this
    http://support.toshiba-tro.de/kb0/TSB6701I80004R01.htm
    An update of the Fingerprint Authentication Software helped to solve the IE freezing.
    But as you said, this software was not installed on your Satellite.
    In your case I would recommend reinstalling the Internet Explorer on you computer. Maybe it helps.
    PS; Did you try to use the Firefox internet browser???

  • How do I get the value of material automatically when entered the material

    Respected,
      when I have created service notification in customer service .Then next process comes for creating service order and sales order but when I enter the material  in sales order it should pick the value of that material automatically but it is not picking the value of the material automatically so where should I change the setting so I will get the value automatically of that material .
    thanks
    AVANISH GULATEE

    - -- -  -- - -  -

  • How to set country field automatically when creating new customer??

    Hi Gurus,
    when customer number is entered in account identification, if there is no matching account, a new one is created. While creating , in the screen there is an country field and I want to set this field to a fixed value of our country. How can I do this??

    Hi everybody,
    I got a simple question. Can I use BADI: BADI_CRM_BP_UIU_DEFAULTS of Enhancement Spot CRM_UIU_BP_ENHANCEMENT
    to make the country 'US' as a default value for component: ICCMP_BP_DETAIL  (NOT: BP_HEAD)?
    Component ICCMP_BP_DETAIL is Interaction Center.
    If not which Badi or way I can use to make country 'US' as default value?
    Best Regards
    Oliver
    Edited by: Oliver Schultze on Dec 9, 2010 4:33 PM

  • How to set dynamic value for field Month when running background job ?

    Dear guys,
    I have a Z* report in our company, in the selection screen there is a period field (Month and Year) and this report running in background job periodically. My Question is how i can set for Month field become dynamic follow month value of date when this report executed ?
    Example :
    When Z* report running in background on 16.04.2008, Month Value will be 04 and when running on 16.05.2008, Month Value will be 05.
    Please advice.
    Regards
    Gunawan

    Dear guys,
    I have a Z* report in our company, in the selection screen there is a period field (Month and Year) and this report running in background job periodically. My Question is how i can set for Month field become dynamic follow month value of date when this report executed ?
    Example :
    When Z* report running in background on 16.04.2008, Month Value will be 04 and when running on 16.05.2008, Month Value will be 05.
    Please advice.
    Regards
    Gunawan

  • How to change data of a field automatically when sys date reaches a particu

    Hi,
      I have 2 fields in my database BOOKING_DATE and BOOKING_FLAG. What i want is that the moment SYSTEM date becomes more than BOOKING_DATE(for an already existing record) , the field BOOKING_FLAG should change its value to 'F' for that particular record.
    This actually should be happening in the background I guess. I dont know if its possible or not.
    THANKS

    Use this logic and create a progra. and then run this program in the background according to your need.
    data: BEGIN OF itab1 OCCURS 0,
          booking_date type sy-datum,
          booking_flag type c,
      END OF itab1.
    itab1-booking_date = '20110810'.
    itab1-booking_flag = ''.
    APPEND itab1.
    clear: itab1.
      itab1-booking_date = '20110811'.
    itab1-booking_flag = ''.
    APPEND itab1.
    clear: itab1.
      itab1-booking_date = '20110812'.
    itab1-booking_flag = ''.
    APPEND itab1.
    clear: itab1.
    LOOP AT  itab1.
    if sy-datum > itab1-booking_date.
      itab1-booking_flag = 'F'.
      ENDIF.
      MODIFY ITAB1.
      CLEAR ITAB1.
    ENDLOOP.

  • New computer at work, multiple users, I want to disable the feature that completes a field automatically when the first letter is typed - i.e. login info

    I've got Firefox 3.6.13, on Mac OSX btw.

    [http://kb.mozillazine.org/Menu_differences Firefox > Preferences] > Privacy > History: [ ] "Remember search and form history"
    See also [[Form autocomplete]]

  • Debugging ECC6: how to see the fields name when download internal table?

    When we debug a reprot in ECC6 and save to a local file an internal table, the fields are not appearing only the data,
    Is there a way to download also the table fields name?

    From the new debugger switch to the classic debugger using menu path Debugger->Switch to Classic Debugger. Form the classic debugger you can download internal table data with column name(s).
    Regards,
    Joy.

  • Error  Enter a value for field BP_GUID

    I am using MDG  7.0
    When I create a  Request for "Create ERP Customer",
    I then enter data including the sales Area Data and Company Code data
    Then Submit
    at the following approval step , Sales Area data and CC data is missing.
    I get ERROR message  "Enter a value for Field BP_GUID"
    Please advise what Table or T-code am I missing values for .
    Thanks for your assistance,

    hi,
    See the attached screen shot.
    Regards,
    Tushar

Maybe you are looking for

  • How to change the column name of Data Entry View of CAT2?

    Hi experts, The requirement is to change the name of one of the columns in the Time Sheet: Data Entry View appearing on execution of t-code CAT2. What should be the procedure to do the same?

  • Disable HTML generation in Interactive Reporting documents

    I need to disable the generation of HTML that came with bqy documents, i know that is an option in the bqy properties that you can check to enable or disable this, but i already serach in verion 9.0.1 and 9.3 ant dont have any option for this.. <BR><

  • Apple maps satellite imagery doesn't work

    After upgrading to iOS 6 and eagerly trying out the new maps , I was met with disappointment as the satellite imagery function doesn't work, I'm left with a pin surrounded by complete blackness. The normal map view works fine and so do all the other

  • Install JRE w/o removing other JREs

    I am building a Java application to be deployed on servers that live on an isolated network (i.e. not on the internet). I have very little information about the configuration of these machines, other than the OS which is XP, so I want to bundle a JRE

  • My app install is stuck on Finishing...

    My whole Creative Cloud desktop app does not appear to be working. I can open the app, but I tried to update Photoshop CC (2014) about a week ago and the progress indicator stalled at 85%. Today I decided to "x" out of it. Now it has said "Finishing.