Delimiting dates in SM30

I created a custom 'Z' table with key fields including end date (ENDDA).  The begin date (BEGDA) is the first field that is not a key field. When I click on the delimit button and enter a date to delimit the record, the previous record is delimited but the new record is not created. This process should delimit the existing record and create a new one, but instead there is only the delimited record.  Isn’t this part of the SAP standard delimiting functionality?  I’ve seen posted issues like mine but no resolutions.  Any help would be appreciated.

Hi Anand,
The delimit 'feature' I'm referring to is similar to delimiting info-type (PAxxxx) records in HR.  When I enter SM30 to maintain my 'Z' table, there is a Delimit button along with the 'New Records', 'Copy', and 'Delete' buttons.  (I think this is because ENDDA and BEGDA are specified as adjacent fields with ENDDA being the last key field.).  The Delimit button (when pressed) should allow the user to 'end' an existing record AND create a new record.  As an example: My 401k contribution is currently 5% so my record would have a Begin Date of 01/01/2004 (my hire date) and an End Date of 12/31/9999.  Today I change my contribution to 7%.  When I delimit the existing record, the End Date is updated - Begin Date 01/01/2004 and End Date 07/20/2005.  A new (delimited) record SHOULD also be created - Begin Date 07/21/2005 and End Date 12/31/9999.  However, the new record is not being created, that’s my problem.
Regards, Rick.

Similar Messages

  • Sorting While maintaining data through SM30

    Hi Techies,
    I have developed a z-table with key fields a,b & c. Now when I am entering data through SM30, C(Char field) field is getting sorted after saving.
    My requirement is to store the data in table without any sorting. Actually this field C has some sequencing issue. So, Is there  any event for table which can be used to resolve this issue.
    Note: I have already tried Event 01 by creating a new include and giving my ID breakpoint. But its noty trigerring .
    Any advice would be deeeply appreciated.
    Thanks & Regards,
    Vinit

    Hi Florian,
    Actually The field 'C' mentioned above contains the name of chemical compounds. I am fetching this data from databse and displaying in printout. In printout the user wants the field 'C' should get displayed accoridng to Chemical Sequence.
    Currently the data in Legacy system is stored in that manner. I just wanted to know if v can restrict the sorting of field C, Than i dont have to write extra logic for displaying data in printout.
    Hope you understand the exact issue.
    Any suggestions would be appreciated.
    Note: yes i checked in SE16, SE16N & SE11, but same issue.
    Regards,
    Vinit
    Edited by: vinit005 on Sep 16, 2011 9:33 AM

  • I have a acrobat reader, can I import text delimited data format to a PDF Form so that it can auto fill into forms that was created? If not, what about FDF and XML data

    I have a acrobat reader, can I import text delimited data format to a PDF Form so that it can auto fill into forms that was created? If not, what about FDF and XML data

    Yes, you can do all of that via Tools - Forms - More Form Options - Import Data, if you have Acrobat.
    If you only have the free Reader then you can still do it, but it requires a script.

  • Import tab delimited data in livecycle designed form

    Hello,
    Is it possible to import tab delimited data in livecycle designed xdp form?
    Also will it work when we user right enable form so that user can import their data in PDf form?
    Thanks
    Manoj

    Hi Paul,
    This is what I get when in use the function importData
    NotAllowedError: Security settings prevent access to this property or method.
    Doc.importXFAData:-1:XFA:topmostSubform[0]:Receipt[0]:Button8[0]:click
    so what settings are needed and how should my file be formatted. doe sthis function work for XMl or text files or both?
    Now when I use load xml function I get this error
    Xml parsing error: syntax error (error code 2), line 1, column 1 of file
    the file contents are:
    <?xml version="1.0" encoding="ISO-8859-1"?>
          <Receipt>
               <cfien>This is the new string</cfien>
          </Receipt>
    where receipt is my form name and cfien is my field name.
    Can you tell me how to make an XMl file to load the data or give a sample file. Do I need to have SOM expressions in field names?
    Thanks
    Manoj

  • Delimiting Dates Functionality in Z table

    Hello, i need to create the delimiting dates functionality, which will trigger proper warning message and will handle overlapping time periods.
    Can anyone help me on this?
    I've already enabled and coded the two Standard Modules in the Custom table's Screen Logic:-
    PROCESS BEFORE OUTPUT.
      MODULE liste_initialisieren.
      LOOP AT extract WITH CONTROL
       tctrl_zxxm_pc CURSOR nextline.
        MODULE liste_show_liste.
        MODULE liste_deactivate.
      ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE liste_exit_command AT EXIT-COMMAND.
      MODULE liste_before_loop.
      LOOP AT extract.
        MODULE liste_init_workarea.
        CHAIN.
          FIELD zxxm_pc-zz_tdate .
          FIELD zxxm_pc-z_poc .
          FIELD zxxm_pc-zz_fdate .
          FIELD zxxm_pc-zz_pc .
          MODULE set_update_flag ON CHAIN-REQUEST.
        ENDCHAIN.
        "INSERTED AJMAL.D 13/03/2008
        CHAIN.
          FIELD zxxm_pc-zz_fdate .
          FIELD zxxm_pc-zz_tdate .
          MODULE temp_delimitation ON CHAIN-REQUEST.
        ENDCHAIN.
        "END
        FIELD vim_marked MODULE liste_mark_checkbox.
        CHAIN.
          FIELD zxxm_pc-zz_tdate .
          FIELD zxxm_pc-z_poc .
          FIELD zxxm_pc-zz_fdate .
          MODULE liste_update_liste.
        ENDCHAIN.
      ENDLOOP.
      MODULE liste_after_loop.
    But its giving me dump.  Are there any other coding of configurations to make?

    Hello,
    Plz do not write code in the PBO/PAI of a TMG.
    You will lose all the code, once the TMG is regenerated.
    It's safe to handle a TMG through events, since the code exist in a separate include.
    Once the TMG is regenerated all you have to do is reattach the Subroutine.
    Regards,
    Remi

  • Do validations on fields while User enters data thru SM30

    Hi All,
    I am creating a custom table and would like to validate the data when user is entering the data thru SM30 manually and display appropiate status or error messages if the data entered is wrong. Also i have to allow only those users that are assigned for that role to access the table and should be able to Add and Update but not delete any record from the table. This is Urgent as i have to get this done real quick and then test my program on it. Any help will be greatly appreciated.
    Thanks in advance,
    David.

    David,
    For doing validations you need to make use of modification event
    <b>01     Before saving the data in the database</b>
    Refer to link for list of events available
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm">Extended Table Maintenance Events</a>
    To control with authorization please refer to the link below.
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/a7/5134d2407a11d1893b0000e8323c4f/frameset.htm">Maintain authorization groups</a>
    Refer to this blog for event creations
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc</a>
    Regds
    Manohar

  • No support for tab-delimited (or other character-delimited) data export

    First, to echo others' comments, I am thoroughly impressed with this project. This is a well-designed application that feels very professional and reasonably robust for beta. I only wish that Oracle had invested the resources to do this earlier.
    To the point, in the right-click pop-up menu within the data results tab there is an "Export" sub-menu. This menu has various options for exporting raw data. However, it does not provide the ability to export tab-delimited data or to change the delimiter arbitrarily.
    This feature is particularly important for data containing special characters. For example address data, even after parsing into standard fields, may still contain commas rendering a CSV export useless.
    This would be a very useful enhancement.

    There is an export to Tables in Microsoft Excel option. Did you try that?

  • Data Maintenance view exist - but unable to modify data in SM30.

    Dear all,
    Had created a customized table, with "Display/Maintenance Allowed". Table maintenance is also generated. So data in the customized table can now be maintained via SM30 in the Development server.
    However, when the customized table is transported into Testing server -- when attempting to modify the table in SM30,
    an info message pop up stating "Client 003 has status not modifiable". With that, could not maintain the table directly.
    Kindly shed so light on the matter above.
    Thanks in advance.

    Your table maintenace generated is flaggedas 'Standard recording routine' - check in - table maintenance -> 'Dialog data transport details'.
    If you want to allow to maintain in QA or in Prod box please set the flag to 'no, or user, recording routine' .

  • How can we protect the  ztable non key fields data in sm30 display.

    Hi experts,
         I have created tablemaintenence generator for one z table, in sm30 user has access to enter the data.
    in that maintenence i have to protect the non key field values data  like once the user saves his data.than in the edit mode it has to show the nonkey fields data  but  dont access to edit some nonkey fields... please help

    Hi
    U need to change the screen flow generated by maintenance view generator: here go to Enviroments->Modifications->Screen; doubleclick on your screen and the system take you to screen painter.
    Here go to screen flow and in PBO add new module in order to protect the field for the old records: u can use the statament LOOP AT SCREEN./ENDLOOP to do it.
    LOOP AT SCREEN.
       IF .....
         SCREEN-INPUT = 0.
         MODIFY SCREEN.
       ENDIF.
    ENDLOOP.
    Max

  • F4 help for custom table field - to be used when populating data thru SM30

    Hi,
    I have a custom table with 5 fields - say A, B, C, D and E. While populating data to the table through SM30, I need to create a F4 help for the field C. A  custom function module needs to be used.
    I have created a module for the same in the event PROCESS ON VALUE-REQUEST of the function group of the table.
    But the F4 for field C depends on the values put in fields A and B.
    I am not able to get the values of fields A and B from within the module PROCESS ON VALUE-REQUEST.
    Please help me to create the F4 help.

    hii,
    This is the piece of code i have used in one of my SM30 to get f4. mopdify according to ur need and use.
    revert back for further help.
    w_dynpread-fieldname = 'ZSITEDCDATA-SITE'.
      APPEND w_dynpread TO i_dynpread.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname               = 'SAPLZSITEDCDATA'
          dynumb               = sy-dynnr
          translate_to_upper   = 'X'
        TABLES
          dynpfields           = i_dynpread
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          invalid_parameter    = 7
          undefind_error       = 8
          double_conversion    = 9
          stepl_not_found      = 10
          OTHERS               = 11.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE i_dynpread INTO w_dynpread INDEX 1.
      IF sy-subrc IS INITIAL.
        SELECT land1 FROM t001w
          INTO TABLE i_site
          WHERE werks EQ w_dynpread-fieldvalue.
        IF i_site[] IS NOT INITIAL.
          DATA: lv_line TYPE i.
          CLEAR lv_line.
          DESCRIBE TABLE i_site LINES lv_line.
          IF lv_line GT 1.
            CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
              EXPORTING
                retfield        = 'ZSITEDCDATA-SITE_COUNTRY'
                dynpprog        = 'SAPLZSITEDCDATA'
                dynpnr          = sy-dynnr
                window_title    = 'Site Country'
                value_org       = 'S'
              TABLES
                value_tab       = i_site[]
                return_tab      = i_return
              EXCEPTIONS
                parameter_error = 1
                no_values_found = 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.
            ELSE.
              READ TABLE i_return INTO w_return INDEX 1.
              IF sy-subrc IS INITIAL.
                zsitedcdata-site_country = w_return-fieldval.
              ENDIF.
            ENDIF.
    Thanks ,
    Gaurav

  • Reading a comma delimited data stream

    I need a clean, preferably simple way, to parse a comma delimited string that enters a local variable once a minute. The variable buffer needs to be cleared before the new string comes in. If you can help and have more questions about this I can send a detailed explanation. thanks in advance.
    [email protected]

    I placed my code inside a loop and have attached it. The data in the array is replaced every time that the function is called. You can see where I also added a step to reset the string. I am not clear what you mean by "clear what is not overwritten". Do you mean that the string length changes and you want to only display that amount of data? This example should do that. I added a random string length to show that behavior.
    I feel like I am missing something about what you want. Do you have an example that shows what you are doing and you can point to where you wnat something different.
    Attachments:
    comma_delimetd.vi ‏37 KB

  • Cannot maintain data in SM30

    I added 2 fields in DB then i generated a table view object so that users can through sm30 to maintain data. Once i transport the reqeust to production and then maintain the data, system alert me that "Client has status 'not modifable'. Acutally, some of table views are maintain by this method. What's wrong? Thanks

    1 - Goto your Z table in SE11
    2 - On "Delivery and Maintenance" tab, check if Delivery Class is set to "A" and Data browser/Tableview Maint. is "X" (Display/Maintenance Allowed).
    If they don't, change the settings and activate the table.
    AFTER THAT, you should go to Utilities -> Table Maintenance Generator.
    Click on the first button (the pencil for edit), then on the pop-up window click Expert Mode. Than select all items and click OK.
    This should adjust all the SM30 program and should work OK!
    The problem is that when you change the table Display/Maint. info, the SM30 function modules need to be updated. Otherwise, you still get the non-modificable message!
    I hope this may be helpful!
    Bye

  • How to validate data in SM30

    Hi All,
    I have one ztable with 2 fields. One for company code and other for G/L acc. I want to validate the G/L acc corresponding comp code. If G/L not maintain for corresponding comp code sys should give error in sm30.
    How I can achive this.
    Thanks,
    Paras

    Hi
    Go to SE54 - Give the table name - Environments - Events
    Using the code 05 enter a routine name (it can any name say "ZROUTINE" double click on that.. It will get you to a include with FORM... ENDFORM..
    You have to write code inside this FORM ... ENDFORM
    This code will be executed all the time before you create a entry.. Meaning as soon you enter details for a new entry.. this event will get triggered..
    Generally any custom additional codes like validation, athourity-check, or some functionality to be built... evrything will be achieved only via EVENTS..
    Let me know if you have questions
    Thanks
    Geetha

  • HRMD_A Delimiting Date Update Mode

    Hello all,
    For creating a Employ master i have used HRMD_A IDOC.It is successfully creating it.
    But when i try to Update the Employ Master :
             For creating the existing infotype with the new evaluation period.It is overwriting the existing record.
    Ex : For an Employee XXX , 07 infotype already exists with valid period as 12.01.2001 to 31.12.9999
    When iam running in update mode (OPERA : U)
              --With changed data & with new valid period 3.02.2001 to  31.12.9999
             --- Ideally it should delimit the existing record from  12.01.2001 to 2.02.2001
             -- But when process the IDOC it is Overwriting the existing record.History is getting deleted.
    Is there anything iam missing while passing the data.
    How to resolve this issue ?
    Regards
    Prasad

    Hello, we have a scenario identical to the one described in the original post. We are using HRMD_A07 with process code HRMD.  Does anyone know of a solution to delimit the historical records?  Is this functionality dictated by the process code?
    Thank you,
    Brian

  • Tab Delimited data from file into array

    Could someone give me a full example of how to pull strings out of a text file and insert into an array. I have posted a couple of times and the segments of code that I get back isn't working. I don't know where I am going wrong exactly, so I would like to see a full example. Here is what I posted last.
    I don't want to use a loop. I want to specify what each array element is and how may there are before it is run.
    import java.util.StringTokenizer;
    import java.io.*;
    public class ReadDataFile
    public static void main(String args[])
    try
    FileReader fr = new FileReader("DataFile");
    BufferedReader br = new BufferedReader(fr);
    String s;
    String data[] = new String[12];
    int count = 0;
    while((s = br.readLine()) != null)
    StringTokenizer st =new StringTokenizer(s);
    data[0] = st.nextToken();
    data[1] = st.nextToken();
    data[2] = st.nextToken();
    data[3] = st.nextToken();
    data[4] = st.nextToken();
    data[5] = st.nextToken();
    data[6] = st.nextToken();
    data[7] = st.nextToken();
    data[8] = st.nextToken();
    data[9] = st.nextToken();
    data[10] = st.nextToken();
    data[11] = st.nextToken();
    data[12] = st.nextToken();
    System.out.println(data[3]);
    catch(IOException ioe)
    System.out.println(ioe.getMessage());
    With this I get this error when I try to run it.
    Exception in thread "main" java.util.NoSuchElementException
    at java.util.StringTokenizer.nextToken(StringTokenizer.java:235)
    at ReadDataFile.main(ReadADataFile.java:37)
    Thanks

    Just return String array instead of returning vector and change tokanizer according to ur requirement
    public Vector valuesarr(HttpServletRequest req, HttpServletResponse res,String user,String filename,String folder)
                        PrintWriter out =null;
                        boolean indbool=false;
                        boolean fd=false;
              try{
                             out = res.getWriter();
                        BufferedReader br =null;
                        String     fl=folder+"/txt/"+filename+".txt";
                        File tt = new File(fl);
                   String s, s2 = new String();
                        String userval;
                        String files;
                        int ind=0;
                        boolean indigo=true;
                        Vector v=new Vector();
                        if( tt.exists() )
                             String mainarr[]=null;
                             br = new BufferedReader(new FileReader(fl));
                                  while((s = br.readLine())!=null)
                                            s2=s+"\n";
                                            if (s.indexOf(user) > -1)
                                                 ind=s.indexOf(user);
                                                 StringTokenizer st = new StringTokenizer(s,";=");
                                                 String [] filearr1=new String[s.length()];
                                                 int t=0;
                                                      while(st.hasMoreTokens())
                                                           String stfiles1=st.nextToken();
                                                           filearr1[t]=stfiles1;
                                                           t++;
                                                 String filearr2 []=new String[t];
                                                      for( int a=0;a<t;a++)
                                                           if(filearr1[a]!=null)
                                                           v.addElement(filearr1[a]);          
         return v;
    }catch(FileNotFoundException f)
         out.println(f.getMessage());
         return null;
         catch(IOException io)
              out.println(io.getMessage());
              return null;

Maybe you are looking for