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.

Similar Messages

  • 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

  • How to select a new table in logical database after creating the Infoset

    I have created a abap query report ,i have used logical data base ADA in the infoset in SQ02.In the logical database i had selected only two tables then ANALV and ANLB.Now my client wants one more field to be added and thats is from table ANEK.Now i need to select this table in logical database ADA.
    Please assist on how to select another table available in the Logicaldata base now which i didnt select when i created the query

    Markus,
    I have now selected the additional field Posting date in Document ANEK -BUDAT .Earlier the report had the fields from ANLCV - Current acquisition value ,ordinary dep posted selected for  the output.
    When i run the query after adding this new field ANEK-BUDAT the below warning  is generated  by system :
    The query specifications cannot be used to generate a list,
    i.e. the query will probably not return the list you desire.
    If you still want to execute the query, please use the
    "Generate" function
    -> 'Generate'
    Fields from parallel tables within a line*
    Line: 01
    Field: Posting Date in the Document
    (ANEK-BUDAT, table ANEK)
    Field: Ordinary depreciation posted
    (ANLCV-NAFA GEB, table ANLCV)
    Fields from parallel tables within a line*
    Line: 01
    Field: Posting Date in the Document
    (ANEK-BUDAT, table ANEK)
    Field: Current asset acquisition value
    (ANLCV-LFD KANSW, table ANLCV)
    2 warnings for query QUERY ***
    Please advice .How get this new field added.

  • Creating new tables in Logical Standby database

    Hi
    I have a requirement to create new tables in logical standby database. These tables will not be present on primary database. Is it possible to do this ?
    I have a new schema already created which has the privilege to CREATE new table.
    I have stopped the logical standby apply.
    When I am now trying to create a new table but it is failing with error : insufficient privileges.
    When I am trying to run below statement on new schema it is also failing with error of insufficient privileges.
    alter session disable dataguard;
    Please help.

    user8819121 wrote:
    Thanks Mahir,
    I was able to create the table after logging in as sysdba.
    But I need my user on that table to execute DML statements. My user has privileges to insert,delete and update any table.
    I tried the following statements to disable the guard but it is sill not working
    ALTER DATABASE GUARD STANDBY.
    Do I need to skip the tables created using dbms_logstdby package to not making it part of SQL Apply ? I guess not since the table is not in primary database.
    Amit
    You can skip only on primary, your created schema on Standby is not in primary.
    Then you must change Status of data guard to NONE. NONE is means is not any security on your data.
    In Guard status NONE can change all schema data.
    Please check link: http://docs.oracle.com/cd/E11882_01/server.112/e10700/manage_ls.htm#CHDGFGHG
    Following tests on user created before guard status is change from ALL to STANDBY.
    C:\Users\Administrator>sqlplus / as sysdba
    SQL> conn test/test
    Connected.
    SQL> select table_name from user_tables;
    TABLE_NAME
    T
    SQL> insert into t values(22);
    insert into t values(22)
    ERROR at line 1:
    ORA-16224: Database Guard is enabled
    SQL> conn / as sysdba
    Connected.
    SQL> select guard_Status from  v$database;
    GUARD_S
    ALL
    SQL> alter  database guard standby;
    Database altered.
    SQL> conn test/test
    Connected.
    SQL> insert into t values(1);
    insert into t values(1)
    ERROR at line 1:
    ORA-16224: Database Guard is enabled
    SQL> conn / as sysdba
    Connected.
    SQL> select guard_Status from  v$database;
    GUARD_S
    STANDBY
    SQL> alter  database guard none;
    Database altered.
    SQL> select guard_Status from  v$database;
    GUARD_S
    NONE
    SQL> conn test/test
    Connected.
    SQL> insert into t values(1);
    1 row created.
    SQL> commit;
    Commit complete.And Now I want share with you new tests :)
    Now user creating when after guard status change
    SQL> drop  user test cascade;
    User dropped.
    SQL> select guard_status from v$database;
    GUARD_S
    STANDBY
    SQL> create user test identified by test;
    User created.
    SQL> grant create session,  resource, create table to test;
    Grant succeeded.
    SQL> conn test/test
    Connected.
    SQL> create table t (n number);
    Table created.
    SQL> insert into t values(1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL>It means when guard status is ALL then all of user created guarding.
    When you changed status to STANDBY then Logical Standby guard only primary schema and created schema before change.
    NONE is not guard any schema. it means you can delete standby schema data too.
    Regards
    Mahir M. Quluzade
    Edited by: Mahir M. Quluzade on Apr 19, 2013 4:07 PM

  • ADDING A NEW FIELD IN TABLE MAINTENENCE GENERATOR

    I HAVE A REQUIREMENT OF ADDING A FIELD TO DATA BASE TABLE .
    THAT ADDED FIELD SHOULD BE ABLE TO MAINTAIN IN TABLE MAINTANENCE GENERATOR WHICH IS ALREADY THERE.
    CAN YOU GUYS TELL ME HOW TO ADD NEW FIELD IN TABLE MAINTENENCE GENERATOR.
    PLEASE TELL ME HOW TO DO THIS .
    I AM USING 4.6C

    Hi
    Add a field to existing table and delete the maintenance generator and re create the same
    Regards
    Shiva

  • Table for Logical System

    Dear ABAPers,
    I would like to know in which table the logical Destination for the corresponding Client will be available.
    Thanks & Regards,
    Ashok.

    Hi Gautham,
    This Table contains only the Client and the Logical System of that Client.My Exact Requirement is I need the RFC Destinations for that client.
    Thanks & Regards,
    Ashok.

  • Audit DBA Activity, skip table from logical standby!

    Dear All,
    My database is 10gR2 on windows 2003 server.
    I want to know if I can put some audit on the commands: execute dbms_logstdby.skip() to skip tables from Logical standby and also the same on unskipping the objects exec dbms_logstdby.unskip.
    Thanks, Imran

    Hi,
    Given that your Database is 10g, the auditing options were extended to included DML from only SELECT in 9i, but not audit on procedures.  You could double check the Fine Grained Auditing options in 10g, but I don't think this extends to DBMS_ packages.
    I would consider writing a trigger or a small job that monitors the DBA_LOGSTDBY_SKIP view for additional entries.  This is the only workaround that I can suggest that might fit your needs.

  • Table maintenence

    what is the use for table maintenence generator and where wil we use
    plzz.
    and also how to eleminate duplicate entries in internal table ?

    the purpose of table maintainence generator is to enable the table maintenance through SM30, and to implement and validation etc on table field inputs.
    Here are the steps to create the table maitenance generator for a ZTable :-
    1.SE11.
    2.CHOOSE TABLE.
    3.UTILITIES--->TABLE MAINT GENERATOR.
    4.AUTH GRP : W/O AUTH.
    5.FUNCTION GRP: PROJ DEPENDENT (SEE CREATE FUNC GROUP).
    6.MAINT TYPE : 2 STEP.
    7.MAINT. SCR NO. : CLICK APPL BUTTON | FIND SCR. NUMBER(S) |
    8.CHOOSE PROPOSE SCREEN NO FROM POPUP.
    9.REMEMBER OVERVIEW SCR NO.
    10.CLICK CREATE BUTTON ON APPL TOOL BAR.
    11.CLICK SAVE ON FUNC TOOL BAR.
    12.GO TO SE93. TO CREATE TRANSACTION CODE.
    13.WRITE SUTIABLE TRAN NAME..CLICK CREATE
    14.CHOOSE TRANSACTION WITH PARAMETERS(LAST).
    15.FILL SHORT TEXT.
    16.OK
    17.TRANSACTION : SM30.
    18.CHECK SKIP INITAL SCREEN CHKBOX
    19.SCREEN NO : FROM STEP 9.
    20.IN TABLE BELOW
    NAME OF SCREEN FIELD VALUE.
    VIEWNAME [TABLENAME]
    UPDATE X
    21.SAVE
    22.RUN TRAN CODE IN COMMAND BOX.
    tcode is SM30
    also see this
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • Help me in table maintenence genarator

    anybody can help me .what is the purpose of table maintenence genarator and how do i create for my ztable?
    with warm regards.

    Hi,
    Search on SDN with "Table Maintenance generator" and you will find multiple threads helping you with the solution.
    Regards
    Bhavesh

  • Events in Table Maintenence-for marking Deletion Flg when deleting frm SM30

    Hi All,
    I am tring to create a table maintenence.
    In my table we have a field Deletion flag....
    and as user hit delete in SM30 ..the record should not get delete ..but should mark the Deletion flag...
    I am tring to use Events in the maintenence but didnt find this functionality..
    Please suggest....
    I dont want to use module program...
    Thanks
    RK

    Hi,
    refer below link you will get idea to hide delete button from TMG screen
    Re: Disable delete button in Table Maintainance Generator

  • Table maintenence Generator

    HI,
      I created table maintenence for a table,
    when I use sm30 for new entry and when i save the record it is asking transport request every time new record inserted
    pls suggest
    thanks in advance
    karthik

    Also, if you set the 'Recording routine' in the table maintenance generator attributes to the default of 'Standard recording routine' this will link to the transport system and client settings.  If you don't want your table contents to be transported set this to 'no, or user, recording routine'.
    Regards,
    Nick

  • MBEWH table updation logic

    Would like to know the MBEWH table updation logic.

    Okay.
    The first period 001 "activity" was the cost change;  therefore the history of 012 was written to MBEWH. 
    I would not expect any other activity in Period 001 to cause or change the 012 entry in MBEWH.
    When there is activity in Period 002, the history of 001 will be written.
    If there is no activity in 002 and 003, When there is activty in Perod 004, the history of 003 will be written.
    To answer  the question  "what was the standard cost at the end of Period 002?"
    -  Look in 002 in MBEWH   in this example there is no record.
    -  Look FORWARD to next period.
    -  See record for 003 - the information in record for 003 is also the information for the end of 002.
    Hope this helps.

  • 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
    Senthil

    Hi 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.

  • Rendering xml-table into logical filename in SAP R/3

    Hi,
    I am trying to translate an xml-table with bytes into a logical filepath in SAP R3.
    Do I have to use the method gui-download or shall I loop the internal xml-table?
    When I tried to loop the xml-table into a structure, and then transfering the structure into the logical filename, I get problems with the line breaks in my xml-file. How do I get the lines to break exactly the same as I wrote them in my ABAP-code?
    Edited by: Kristina Hellberg on Jan 10, 2008 4:24 PM

    I believe you posted in the wrong forum.
    This forum is dedicated to development and deployment of .Net applications that connect and interact with BusinessObjects Enterprise, BusinessObjects Edge, or Crystal Reports Server. This includes the development of applications using the BusinessObjects Enterprise, Report Application Server, Report Engine, and Web Services SDKs.
    Ludek

Maybe you are looking for

  • Object not known in CO (IAOM 028)

    Hi, I'm facing a problem with the Settlement Type Prepayment in SAP CRM 2007. Here you can find the error message: Object not known in CO (IAOM 028): "You want to post to the object with technical key belonging to the business scenario . However, the

  • Different results for one query

    Hi, Today i got a very surprising issue with SQL 2008, my one team member inform that a single query is resulting two different data set from two diff-diff SSMS's query windows. Query is like this, Select * from table1 where trandate between '2014-08

  • Date validation 'validateDateTimeRange ' giving problem

    Hello Guys, We are using ADF 11g(11.1.1.2). Here we are trying to validate the date using validateDateTimeRange to validate the date. <af:inputDate id="dateLaborIt" required="true" binding="#{ClaimsBean.dateLaborPerformedI}"> *<af:validateDateTimeRan

  • Transcribing in Soundbooth CS4

    I'm using Soundbooth CS4 to transcribe an audio file that is about one hour long. Unfortunately, the resulting transcript does not accurately represent the speech in the audio file. Is there a way to create a more accurate transcript? Thanks.

  • BW 7.0 and CRM 5.1 Integration

    Hi, It will be great if anybody can give me any Docs or details on the BW 7.0 and CRM 5.1 Integration. Regards Vishwa email: [email protected]