How to validate enries in Maintenance Views with the help of Events?

Hello,
I have a Maint. View. I would like to apply a validation for a specific field of the table. And if there is an entry which is not proper, than I'd need an error message to be issue, and the fields should be open for correction.
I know this should be managed by Events. I tried many of them, but there was allways some different kind of issuses. E.g. When I used Event 21, the problem was that:  table "total" was not updated with the values I entered, when the Event triggered. More over, when I ussed a simple error message, that appeared on the screen, but when I hit Enter, I got an infinite LOOP, cause Event 21 was again triggered.
When I tried Event 01, the total table was already updated. But with the program went back to the sceen from where I called the maintenance of the table. And Issues the error message there. When I hit Enter it took me back to maintenance screen. But this is not very nice.
A bunch of hints would make me very happy, or a good example, which is priceless!
Thanks and regards,
Gyula

Hi priyaranjan,
Check the data in debug mode whether the record_tab is getting filled or not. If it is not filled use FM 'F4UT_RESULTS_MAP' to fill the data.
Refer the link F4UT_RESULTS_MAP Standard Search Help Exit for Filling Hit List - Function - ABAP - SAP to know how to use FM.
Once You get result from FM in to record_tab then sort the table as per your requirement.
Regards,
Ravikiran.K

Similar Messages

  • How to get BU, Company, Group details with the help of Employee number

    Hi Friends,
    How to get information related with Employee like Business unit, Company, Business Group and other details.
    Pravin

    Yes Arul.
    I want to get these information in a custom Java webdynpro application but if you can guide me how to get these values in SAP-Hr. Can you just give me details of tables. I have Employee number(pernr) with me and want to fetch Group, Company, Business Unit.
    With rgds,
    Pravin

  • How to add files to xcode project with the help of applescript

    i am tried but got some of the error which is enable to solve by myself becuase i am new in applescripting
    tell application "Xcode"
    open "Macintosh HD:Users:Nitesh:Desktop:sumeet:RND:iPhone:iPhone_V2_Ref_2.5.01:iPhone_V2.xcodep roj"
              tell project "iPhone_V2"
                        set resourcepath to "/Users/Nitesh/Desktop/sumeet/RND/images" (*full path of my folder that i want to add*)
    set filelist to {}
                        tell application "Finder"
                                  set filelist to (name of items of (POSIX file resourcepath as alias))
                        end tell
                        tell group "images" of root group
                                  repeat with i in filelist
                                            set filepath to resourcepath & (contents of i)
                                            set myfile to make new file reference with properties {namecontents of i), full path:filepath}
                                            add myfile to first target of front project
                                  end repeat
                        end tell
              end tell
    end tell
    the issues is:
    error "Xcode got an error: Can’t get group \"images\" of root group of project \"iPhone_V2\"." number -1728 from group "images" of root group of project "iPhone_V2"

    Applescript for this issue is more simple . Try to use my script that is here

  • Maintenance view with MARA joined twice

    Hello,
    I have a Z table which contains 2 fields containing material number, say: MATNR_1 and MATNR_2. Both have foreign keys pointing to MARA table.
    Now I'd like to create a maintenance view for that Z table which will contain texts for both of those matnr fields, taken from MAKT table. So I need a maintenance view which has that Z table as the main table of the view and MARA+MAKT tables joined <u>twice</u>: first for the field MATNR_1 and next for field MATNR_2.
    It looks like it is impossible to achieve by just clicking in SE11 - the system takes only the first matnr field into account (MATNR_1) and joining MARA for the second time (for field MATNR_2) seems not possible.
    Has anyone an idea how to achieve this ?

    I found a solution myself - actually a workaround, here it is if someone is interested:
    You can have data from a secondary table (a table that you cannot join by defining the view) filled "manually" at the screen level. When you generate a maintenance objects with the maintenance generator, modify the generated screen by adding a new field to it (for data that you need to be displayed). In PBO of that screen call your additional PBO module which just reads the data from the db table (or from anywhere you want) and fills that field.
    You can check standard transaction FI12 to have an example: field BNKA-BANKA is filled exactly with this technique (see PBO of that screen).

  • Maintenance View with Subset Fields

    Hi All,
    I have created a maintenance view based on a single DB table. Two key fields are defined to be as subset fields. No selection conditions are added to the view. I have used table maintenance genrator to define the screen (one step) along with the events.
    In SM30, i get the popup to fill the subset fields.
    I have created an event for AA (to replace default read). I am filling total attribute here.
    a) Is there some other attribute that i need to fill apart from total?
    I receive following dump
    " Exception condition "NO_VALUE_FOR_SUBSET_IDENT" is raised"
    When i set <status>-sbsid_rcvd = 'R' in read routine along with total, then the above exception doesn't appear.
    But filtering based on the subset values doesn't happen automatically.
    b) I also need have to have routines to perform insert, copy and validation.
    c) Would the contents displayed be automatically filtered based on the subset values or we need to process this in user routines for read and so on?
    As i find very limited documentation available for maintenance views with subset fields, could you suggest me some example to do the above?
    Thanks in Advance,
    Regards,
    Rekha

    Hello Rekha,
    Yes I've same idea, documentation for maintenance screens is inadequate.
    But there is way to find examples for all events,
    table TVIMF is storing the Table name - Event - Form name columns.
    For example when u want to  do something about  "creating a new entry"
    Just go se11 > Table maintenance generator and find related event : 05
    - Then go to TVIMF and display a record for event = 05
    - than go to function group of  maintenance screen of the TABLE in that record
    - find the subroutine form ( TVIMF-FORMNAME) in that function group
    This is a working example for that event, try or copy & use.
    I hope it helps you for the coding for all the events.
    Bulent
    Edited by: Bulent Balci on Aug 5, 2010 11:28 PM
    Edited by: Bulent Balci on Aug 5, 2010 11:29 PM

  • Add fields to maintenance view and update then using events

    Hi experts:
      I've created a table with 4 fields, one of them is userid. Also, there is a maintenance view to add new entries.
      I want to display user name when typing userid using events (1 or 21). I know how to do it if username is one of the fields of the table, but there is a requirement to not store username in the table, just userid.
    My question is: is possible to add a field into the maintenance view and update it using events but not store the value in DB?.
    Thanks in advance for your help.
    Regards,
    Carlos.

    In the save event just clear the entries of the field(user name) in the internal table.

  • Maintenance view on the standard table

    Hi,
    We need to have a maintenance view on the standard XYZ table .
    Since it is a std table. we would not be able to create a maintenance view since we need an access key.
    So we have to :
    1. Copy the table XYZ into a Z_table. (just the structure alone).
    2. Create a table maintenance generator on this table.
    3. When the data is being saved in the maintenance view, update the record in the XYZ.
    How we can populate the XYZ when the Z_table is populated with data?
    Can anyone help in this regard.
    Thanks and regards,
    Kapil

    Hi Rich,
            Thanks for your reply.
    I am referring to standard table "comc_settyp_attr" in SAP-CRM system . I have copied it and created a z_table. But its not allowing me to create a maintainance view. Its giving an error :
    GUID in table key (Field name CUSTINFO) not supported.
    But when i create the z_table without the GUID(char 32) as key field, it generates table maintenance. But the key field is required.
    Can you help me in this regard.
    Regards,
    Kapil

  • I need to know how to copy pictures to a cd with the captions showing, elements 8 and windows 7

    I need to know how to copy
    pictures to a cd with the captions showing, elements 8, windows 7

    Here are some suggestions.  Perhaps others will have even better ideas.
    1 -- for viewing on a Windows computer,  you can experiment with making a PSE Organizer slide show creation in which you specify to show the captions. Then save the Output of the slide show as a WMV file that the recipient could play on a computer with Windows Media Player.
    If you have a DVD burner on your PC, you can also use that WMV file as input to the Windows 7 DVD Maker program for making a TV playable DVD. And if your recipient(s) who will view on a computer have DVD readers, you could make video DVDs playable on computers or TV DVD players instead of using CDs.
    The limitations of this approach are that this wmv file you create is really a video file so
    -- it advances photo slides at the rate specified when you create the slide show
    -- the choices to save a wmv file are not very high resolution so that recipients who have high resolution monitors will not see the photo images are not getting the benefit of seeing the photos at their best
    -- your recipients can't print from this video slide show
    2 An entirely different approach is to
    -- For each individual photo, make a copy of the photo file and depending on how high resolution your originals you might want to resize down to monitor viewing sizes.
    -- Then use the PSE Editor Text Tool to place the caption on a layer above the photo. (I think that you could display the existing caption and then do a copy and paste so that you don't need to retype everything.)
    -- You should save this photo copy with the text as a uniquely named JPEG file. Use the file names to control the sequence in which you want the viewer to see the photos.  (Don't save as a PSD because others probably can't read the PSD format).
    -- Then use your computers CD burning software to burn a folder containing all those jpeg files with the captions to CD
    This approach is a bit of work for each photo and you did not say how many photo files you will be doing. However,
    -- computer users should be able to display  the jpegs as high resolution photos on their computer as well as optionally print from those photo files
    -- many TV DVD players can play (display) jpg files from a CD disc which also gives recipients the opportunity to view the photos on their larger TV screen
    Process 2 may seem complicated but once you get started I think it will be more of a production line.
    ADDITION
    Do you have any portrait orientation photos included with those you wish to send ? If yes, we might need to discuss some additional processing for them.

  • How to encrypt column of some table with the single method ?

    How to encrypt column of some table with the single method ?

    How to encrypt column of some table with the single
    method ?How to encrypt column of some table with the single
    method ?
    using dbms_crypto package
    Assumption: TE is a user in oracle 10g
    we have a table need encrypt a column, this column SYSDBA can not look at, it's credit card number.
    tha table is
    SQL> desc TE.temp_sales
    Name Null? Type
    CUST_CREDIT_ID NOT NULL NUMBER
    CARD_TYPE VARCHAR2(10)
    CARD_NUMBER NUMBER
    EXPIRY_DATE DATE
    CUST_ID NUMBER
    1. grant execute on dbms_crypto to te;
    2. Create a table with a encrypted columns
    SQL> CREATE TABLE te.customer_credit_info(
    2 cust_credit_id number
    3      CONSTRAINT pk_te_cust_cred PRIMARY KEY
    4      USING INDEX TABLESPACE indx
    5      enable validate,
    6 card_type varchar2(10)
    7      constraint te_cust_cred_type_chk check ( upper(card_type) in ('DINERS','AMEX','VISA','MC') ),
    8 card_number blob,
    9 expiry_date date,
    10 cust_id number
    11      constraint fk_te_cust_credit_to_cust references te.customer(cust_id) deferrable
    12 )
    13 storage (initial 50k next 50k pctincrease 0 minextents 1 maxextents 50)
    14 tablespace userdata_Lm;
    Table created.
    SQL> CREATE SEQUENCE te.customers_cred_info_id
    2 START WITH 1
    3 INCREMENT BY 1
    4 NOCACHE
    5 NOCYCLE;
    Sequence created.
    Note: Credit card number is blob data type. It will be encrypted.
    3. Loading data encrypt the credit card number
    truncate table TE.customer_credit_info;
    DECLARE
    input_string VARCHAR2(16) := '';
    raw_input RAW(128) := UTL_RAW.CAST_TO_RAW(CONVERT(input_string,'AL32UTF8','US7ASCII'));
    key_string VARCHAR2(8) := 'AsDf!2#4';
    raw_key RAW(128) := UTL_RAW.CAST_TO_RAW(CONVERT(key_string,'AL32UTF8','US7ASCII'));
    encrypted_raw RAW(2048);
    encrypted_string VARCHAR2(2048);
    BEGIN
    for cred_record in (select upper(CREDIT_CARD) as CREDIT_CARD,
    CREDIT_CARD_EXP_DATE,
    to_char(CREDIT_CARD_NUMBER) as CREDIT_CARD_NUMBER,
    CUST_ID
    from TE.temp_sales) loop
    dbms_output.put_line('type:' || cred_record.credit_card || 'exp_date:' || cred_record.CREDIT_CARD_EXP_DATE);
    dbms_output.put_line('number:' || cred_record.CREDIT_CARD_NUMBER);
    input_string := cred_record.CREDIT_CARD_NUMBER;
    raw_input := UTL_RAW.CAST_TO_RAW(CONVERT(input_string,'AL32UTF8','US7ASCII'));
    dbms_output.put_line('> Input String: ' || CONVERT(UTL_RAW.CAST_TO_VARCHAR2(raw_input),'US7ASCII','AL32UTF8'));
    encrypted_raw := dbms_crypto.Encrypt(
    src => raw_input,
    typ => DBMS_CRYPTO.DES_CBC_PKCS5,
    key => raw_key);
    encrypted_string := rawtohex(UTL_RAW.CAST_TO_RAW(encrypted_raw)) ;
    dbms_output.put_line('> Encrypted hex value : ' || encrypted_string );
    insert into TE.customer_credit_info values
    (TE.customers_cred_info_id.nextval,
    cred_record.credit_card,
    encrypted_raw,
    cred_record.CREDIT_CARD_EXP_DATE,
    cred_record.CUST_ID);
    end loop;
    commit;
    end;
    4. Check credit card number script
    DECLARE
    input_string VARCHAR2(16) := '';
    raw_input RAW(128) := UTL_RAW.CAST_TO_RAW(CONVERT(input_string,'AL32UTF8','US7ASCII'));
    key_string VARCHAR2(8) := 'AsDf!2#4';
    raw_key RAW(128) := UTL_RAW.CAST_TO_RAW(CONVERT(key_string,'AL32UTF8','US7ASCII'));
    encrypted_raw RAW(2048);
    encrypted_string VARCHAR2(2048);
    decrypted_raw RAW(2048);
    decrypted_string VARCHAR2(2048);
    cursor cursor_cust_cred is select CUST_CREDIT_ID, CARD_TYPE, CARD_NUMBER, EXPIRY_DATE, CUST_ID
    from TE.customer_credit_info order by CUST_CREDIT_ID;
    v_id customer_credit_info.CUST_CREDIT_ID%type;
    v_type customer_credit_info.CARD_TYPE%type;
    v_EXPIRY_DATE customer_credit_info.EXPIRY_DATE%type;
    v_CUST_ID customer_credit_info.CUST_ID%type;
    BEGIN
    dbms_output.put_line('ID Type Number Expiry_date cust_id');
    dbms_output.put_line('-----------------------------------------------------');
    open cursor_cust_cred;
    loop
         fetch cursor_cust_cred into v_id, v_type, encrypted_raw, v_expiry_date, v_cust_id;
    exit when cursor_cust_cred%notfound;
    decrypted_raw := dbms_crypto.Decrypt(
    src => encrypted_raw,
    typ => DBMS_CRYPTO.DES_CBC_PKCS5,
    key => raw_key);
    decrypted_string := CONVERT(UTL_RAW.CAST_TO_VARCHAR2(decrypted_raw),'US7ASCII','AL32UTF8');
    dbms_output.put_line(V_ID ||' ' ||
    V_TYPE ||' ' ||
    decrypted_string || ' ' ||
    v_EXPIRY_DATE || ' ' ||
    v_CUST_ID);
    end loop;
    close cursor_cust_cred;
    commit;
    end;
    /

  • I have a tiny problem that is driving me mad. When I am playing an album in iTunes using cover flow view (with the playlist beneath the artwork picture) the  picture is exactly above the album title. All is symmetrical. When I switch to full screen displa

    I have a tiny problem that is driving me mad. When I am playing an album in iTunes using cover flow view (with the playlist beneath the artwork picture) the  picture is exactly above the album title. All is symmetrical. When I switch to full screen display, the artwork moves a couple of inches to the left and the display is therefore asymmetrical. Why and how do I correct it? It would drive you mad to.
    Thanks for any help,
    Graham

    I was having the same problem, but tried the "Top Button + Home Button" reset and that did work for me. My unofficial guess is that perhaps RAM caches get filled through daily use of various apps leaving no memory for cover flow. Resetting the phone on the phone itself seems to reset that RAM. I can't say it's a cure-all, but it solved my issue. Hope this helps.

  • HT4623 How to use epson iprint after connected with iPad help

    How to use epson iprint after connected with iPad help.

    When you open Epson iPrint, you will see the various options of ways to proceed, e.g., Photos (to print photos), Maintenance (for printer maintenance). Scan (to perform scanning).

  • How can i use my apple ID with the itune store over my windows laptop

    how can i use my apple ID with the itune store over my windows laptop

    If you don't have iTunes installed on your laptop then you can download and install it from here : http://www.apple.com/itunes/download/
    You can then log into your account on it via the Store > Sign In menu option (on iTunes 11 on a PC you can get the menus to show via control-B) :
    And you can then select the Store on the left-hand sidebar (you can enable the sidebar via control-S), and then browse items in the store and buy them by clickin on their price.

  • How do I forward a text message with the iPhone?

    How do I forward a text message with the iPhone?

    You could take a screen shot (hold and release both buttons simultaneously) and then email the resulting image to someone.
    // crude workaround for now...

  • HT4994 How do I use which is sim with the device

    How do I use which is handsome with the device

    If the phone is carrier locked, contact the carrier it is locked to and find out:
    a) if they offer unlocking
    and
    b) if you qualify and what the charges to do so are.

  • How do I fill an Excel spreadsheet with the contents of a DataTable? (C#, OleDb)

    The following fills a DataTable with the contents of an Excel spreadsheet.
        oledbCmd.CommandText = "SELECT * FROM [" + stSheetName + "$]";
        DataTable dtDataTable = new DataTable();
        using (OleDbDataAdapter oledbAdapter = new OleDbDataAdapter(oledbCmd))
        oledbAdapter.Fill(dtDataTable);
    How do I fill an Excel spreadsheet with the contents of a DataTable?
    bhs67

    You can try this Excel library, it can help u to
    export datatable to excel to Database.
    After add the reference to your project ,add the following code:
    private void button1_Click(object sender, EventArgs e)
    //connect database
    OleDbConnection connection = new OleDbConnection();
    connection.ConnectionString @"Provider=""Microsoft.Jet.OLEDB.4.0"";Data Source=""demo.mdb"";User Id=;Password="
    OleDbCommand command = new OleDbCommand();
    command.CommandText = "select * from parts";
    DataSet dataSet = new System.Data.DataSet();
    OleDbDataAdapter dataAdapter = new OleDbDataAdapter(command.CommandText,connection);
    dataAdapter.Fill(dataSet);
    DataTable t = dataSet.Tables[0];
    //export datatable to excel
    Workbook book = new Workbook();
    Worksheet sheet = book.Worksheets[0];
    sheet.InsertDataTable(t, true, 1, 1);
    book.SaveToFile("insertTableToExcel.xls");
    System.Diagnostics.Process.Start("insertTableToExcel.xls");
    http://www.e-iceblue.com/Tutorials/Spire.XLS/Spire.XLS-Program-Guide/Data-Export-/Import-Export-Datatable-to-Excel-from-Database.html

Maybe you are looking for

  • How I can connect MBP early 2010 with a TV by HDMI

    I have a MBP early 2011, with a Firewire 800 conecction, a thunderbolt conecction an 2 USB 2.0 Conex, so how can I connect a hdmi tv with my MBP, because my old DVI cable can´t connect. I don´t know if the miniDVI can connect in some port I have. Tha

  • Mac mini (late 2012) boot up slow(1 minute plus)

    I notice my mac mini boot up pretty slow, which takes 1 minute and 30 seconds to boot into login screen. Does any one face the same issue?

  • How do I get rid of duplicates on my playlist caused by being in the cloud?

    So... how do I get rid of duplicates in my playlist, caused by having my music in the cloud? Wiithout, of course, having to delete several thousand songs individually? Grrr! Arggg!

  • Dates and charting

    Dates Reading 19/12/06 - 21/03/07 273 21/03/07 - 18/05/07 49 18/05/07 - 30/07/07 37 30/07/07 - 18/09/07 24 18/09/07 - 16/10/07 29 Above is a small section of data that I wish to display graphically either as a pie of bar chart or anything that shoes

  • Converting to 64 bit machine

    I have a question about converting my application from solaris 32 to 64. When I compile my code in 64 bit machine, one libary /usr/lib/libelf.a cannot be linked to my .o file. Is there any other library which has the same functions in 64 bit machine?