Searching on data element

Is there a way to perform a sort and a search against the data element of my key / value pair?
I have a DB that I use to track some remote files. I have an ID that I use as the key to my key value pair that points me to a given file. This must be unique in the DB. I am trying to use the data portion of the pair to contain the file's last accessed time. At times, I have a need to retrieve all items by age (i.e. those with the oldest last access time).
Is there a way to accomplish this with Berkley DB? (BTW, I was using a secondary DB table for this but encountered other problems that I have already posted on and received no responses so I am trying to create an implementation that does not use secondary DBs).
Thanks,
Chris

Hi Chris,
I am not sure if this is what you are looking for,
but the way I have tracked remote files is using
a structure containing information about the file
e.g. filename, fully qualified location, other
relevant information about the file as my data,
and fully qualified file name as the key. The data
structure can contain any information of interest
about the remote file. In my case, I keep the files
shareable storage so that my records can participate
in transactions and replication.
Thanks,
Sandra

Similar Messages

  • How to search for Data elements...

    Hai friends,
         I have the 'short descriptions' of some fields and I need data elements relating to those short descriptions.
         I searched using se12 transaction. But the result is not upto the mark. Is there any other way of searching..? If yes, please tell me.
                         Thank You

    Hi,
      Go to Tcode se15 and expand ABAP Dictionary and then double click Data Elements, on the right hand side you will get Standard Selections, give ur description there and then press enter...
    hope this will give you solution.
    Regards,
    Ramesh.

  • Data element for new column

    Hi All
    I have to add one column in exisitng custom table. the new column is SRFLAG which will contain value Y or N.
    Can any one suggest me what will be data element? I want to use existing data element?
    please suggest existing table also in which it is used?

    Hi Dude,
    I will tell u a way to find the answer on your own.
    Go to SE11,choose DATA TYPE radio and press F4.
    Press Search for Data elements.
    Enter a relevant short desc., with asterisk.
    For eg., yesno*
    Then  enter the Data Type as 'char' and Length as 1 and press continue.
    A list appears containing the relevant DEs.From there choose
    the required one.
    Change your search options and try till you get the required one.
    To find the Table enter the name of the DE in the Data Type field and choose the where-used list icon.
    <REMOVED BY MODERATOR>
    Regards,
    Lakshmanan
    Edited by: Alvaro Tejada Galindo on Feb 14, 2008 11:26 AM

  • Change data element in search help

    Hi at all,
    how can i change the data elemte of an parameter in the search help?
    The selektion method of the search help is a view and the data element comes from the DB.
    Maybe it is possible to change the length of the parameter in the result list? That would help, too!
    Thanks in advance.
    Regards

    Alexander,
    see this code bellow:
    REPORT  zsearch.
    TYPES:
    BEGIN OF ty_scustom,
      id   TYPE scustom-id,
      name(8) TYPE c,
    END OF ty_scustom.
    DATA: wa_scustom TYPE ty_scustom.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
    SELECT-OPTIONS s_name FOR wa_scustom-name NO INTERVALS OBLIGATORY.
    SELECTION-SCREEN END   OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_name-low.
      PERFORM f_select.
    *&      Form  f_select
    *       text
    FORM f_select.
      TYPES: BEGIN OF ty_data,
            name TYPE scustom-name,
            END OF ty_data.
      DATA: tl_data TYPE STANDARD TABLE OF ty_data,
            wl_data TYPE ty_data,
            tl_return TYPE STANDARD TABLE OF ddshretval,
            wl_return TYPE ddshretval.
      SELECT  name
        FROM scustom
        INTO  TABLE tl_data.
      CHECK sy-subrc = 0.
      SORT tl_data BY name.
      DELETE ADJACENT DUPLICATES FROM tl_data COMPARING name.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
    *   DDIC_STRUCTURE         = ' '
          retfield               = 'NAME'
         value_org              = 'S'
        TABLES
          value_tab              = tl_data
    *   FIELD_TAB              =
         return_tab             = tl_return
      EXCEPTIONS
          parameter_error = 1
          no_values_found = 2.
      IF sy-subrc = 0.
        READ TABLE tl_return INDEX 1 INTO wl_return.
        CHECK sy-subrc = 0.
        s_name-low = wl_return-fieldval.
      ENDIF.
    ENDFORM.                    "f_select
    Is it helpful? In search help show full name, but in parameter, only 8 first chars. Is it what you want to do?
    Regards,
    Rodrigo

  • How to add user defined search help to data element -EXTWG ?

    Dear All,
    EXTWG is external material groupp field in Material Master. I am using this field to provide some external material group .But there is no search help attached to it. I want to create a search help and attach to it .I can create a search help but how to attach to a standard date element .How can i do??

    hi
    good
    go through this links ,i hope these ll help you solve your problem
    http://help.sap.com/saphelp_nw2004s/helpdata/en/90/8d7307b1af11d194f600a0c929b3c3/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ee86446011d189700000e8322d00/content.htm
    thanks
    mrutyun^

  • Search Help attached to Data Element Question

    Hello! Hopefully this is a simple question to answer. I have looked online but cannot find exactly what I need.
    We currently have a search help attached to a data element. The search help is a custom search help. It does work so when you are in the screen it will show you options to pick from for that field. However, the field also allows for free-form text so the user can type in whatever and the screen will take it.
    Is there a way through the data element or search help to make it so the user is restricted to only what is in the search help and cannot just enter whatever?
    Thanks!!

    For restricting values You can use the at selection screen event  on that field.
    The search help field values will be there in a table .
    So what ever values are there in the table for that particular field , only those values will come in F4 also ..
    If it not maintained then issue an appropriate error message.
    at-selection screen on p_field.
    selct single  field from table into v_value.
    if sy-subrc <> 0.
    message ""Error message.
    Endif.
    Regards
    Mishra

  • How to deal with the change of data element?

    Hi, experts
    My trouble's background is:
    A CBO table(ZIEBTCIITM) saves invoice items .
    There are three fields relevant to quantity in it.
    And they have the corresponding data elements with the same type QUAN,13 characters and 3 decimals.
    Now because the quantity is so small,for example 0.00004,that the 3 decimal digit is not suitable.
    I want to change the CBO table to adapt my business,so the quantity fields' decimal should be expanded firstly,and there are transction data in the CBO table.
    My question is :
    1) Is it necessary to backup the CBO table before data element change?
    2) What should I do is Only to expand the data elements' decimals?
    Anyone can give me suggestion?

    Hello Mic
    To be on the save side I would suggest to export the table entries to Excel and create a transport request containing the original table and its entries:
    R3TR TABL ZIEBTCIITM
    R3TR TABU ZIEBTCIITM *
    Next you should create your own data element (or search for a suitable standard data element), e.g. ZQUAN13_5 (13 digits, 5 decimals).
    Replace the data element of the DB fields with your new data element and activate the DB table.
    I expect that nothing will happen to the entries in the DB table except that your quantity fields should have 5 decimals now.
    Regards
      Uwe

  • Need changes in standard data element

    Hi gurus,
    I want to change in one of SAP standard data element for adding search help into it.
    for this fields there is no user exit or any enhancement is present.
    I have taken access key from our basis guy after putting access key i am unable to change the data element i mean access key is correct but i am unable to edit data element.
    so can anybody tell me how can i change in this data element.
    note : I have access key.
    Regards
    Ankit

    Hi,
    What data element you are about to change, you should take extra care before changing standard data elements as it may be used in many places.
    Do a Where-Used list to determine nothing else will be affected because of this change.
    Regards
    Karthik D

  • Finding Short Text for selected Data Element

    Hi all,
    I need to find the short description using a data element (technical name) as a search criteria, where you can use trxn SE12 to search for its short description.
    e.g. KEY = 'Synchronization key'
           SPRAS = 'Language Key'
           VBELN = 'Sales and Distribution Document Number'
    In my ABAP program, I have a list of data elements (technical name) but I want its short description to be displayed.
    Can someone shed of light of how to achieve the above?
    Thanks and regards,
    Patrick

    Field DDTEXT Table DD04T will return the short description of the data element. Also pass language 'E' in DDLANGUAGE field and data element name in ROLLNAME.
    For short description use field: DDTEXT
    For Short Field Label use field : SCRTEXT_S
    For medium Field Label use field : SCRTEXT_M
    For medium Field Label use field: SCRTEXT_L
    For heading Use Filed: REPTEXT

  • Field names for data element are not displayed in selection box

    Hallo zusammen,
    ich habe ein Selektionsfeld definiert und einen Parameter erzeugt, der auf ein Tabellenfeld verweist. Der Feldbezeichner für das Datenelement aus der Tabelle wird nun aber nicht angezeigt, sondern ausschließlich der Variablenname.
    Woran kanndas liegen?
    Danke!
    Edited by: Matt on Feb 9, 2010 1:41 PM - translated subject

    I created data elements and use them in a db table. I've added this data elements as parameters of a selection screen in a function group top include but when I test my function module with this selection screen I see only the field names and not my field captions of my data elements.
    While editing report choose Goto->Text elements->Selection Texts-> select Dictionary checkebox next to your parameters ->activate. The caption will be used then.
    And another question: I have defined and activated a search helper which I can call in my selection screen with F4 but I don't see the symbol behind the text-field. What is the reason?
    Refer standard program DEMO_DYNPRO_F4_HELP_DICTIONARY to see various techniques of attaching input help to screen field, together with search help
    Regards
    Marcin

  • Dynamic text in Data elements

    Hi all,
              Can we populate the data element text dynamically.
             For eg: we have field  TXT whose data element is ZTEXT and the short text that appears in the table is TEXT.
            Now we want to create two other fields TXT1 and TXT2 and the text that needs to appear should be other than TEXT (could be TEXT1 & TEXT2) is it possible to do such kind of modifications..
          To boil down, we want to use one data element across different fields but that text needs to be diffferent.
    Thanks in Advance,
    Regards,
    Kishore Yerra.

    The text is inherited from the data element. While creating tables you have 2 options 'Data Elements'   OR  'BUILT-IN  / PREDEFINED' see the button next to SEARCH HELP button in the table - toolbar.
    In such case why you want to use the Text element, you can use th BUILT-IN  / PREDEFINED Types, You can direcly give the field name and type along with required texts.
    Hope it will help.
    Regards,
    Vishal

  • F4 help in data element.

    I have a fileld in table that has the structure of eban.
    There is a field pstyp and it has input help in it's data element.
    I want to suppress the f4 help and attach customized f4 help without implementing Badi.
    Please help how to suppree the data elements f4 help.

    make your own structure, use own data element. Assign own search help to data element. Or assign own search help in your own structure. Then you dont even need an own data element, just copy structure EBAN and change search help assign in structure..
    Thats when you need it generally.
    If you just need to overwrite the search help for e.G. a certain Dynpro, then just assign your own search help to the dynpro field.

  • Convert in right data element

    hi all
    i have import materialnumber from a textfile, now i want to convert this materialnumber from string in matnr type. For this, i need a class or functionmodul...
    Thx abap_begin....

    Sigh, this really is a basic question that should have been answered plenty of times. However, I feel obliged to comment, because I don't like wrong answers (because if people actually do search, they will pick up wrong suggestions)...
    SAP uses so called [conversion exits|http://help.sap.com/abapdocu_70/en/ABENCONVERSION_EXITS.htm] for converting values for certain domains. E.g. for the data element MATNR, which you can find in the data dictionary (transaction SE11), you'll see that a domain with the same name MATNR is used. If you drill down into the domain, you'll find a field labeled conversion routine and there you see MATN1. This means that input data is converted to internal format via CONVERSION_EXIT_MATN1_INPUT and the internal format is converted to external format via CONVERSION_EXIT_MATN1_OUTPUT. In your specific case you'll have to use the first function, if you have an external material number that needs to be converted to the format how it's used internally on the database.
    That much for the do's, now to the don'ts:
    <ul style="list-style:square!important;">
    <li>Don't use CONVERSION_EXIT_ALPHA_INPUT, because this is simply incorrect. Depending on your customizing for material numbers it might lead to wrong results as it's simply not the right conversion routine (as you can see clearly in the data dictionary). There is for example a customer exit for material number input, which would not be applied at all if you use this wrong function module.</li>
    <li>Don't assume that conversions are always automatically applied. I.e. if I have a variable of type STRING and MOVE the contents to another variable of type MATNR, the contents will simply be copied one-to-one (with possible truncation though, since material number has maximal 18 characters). The statement that the conversion exits are automatically applied when you use the right datatype is true if we talk about screen fields where users enter data.</li>
    </ul>
    Cheers, harald

  • Need new description for Data Element based on Company Code.

    Hi,
    Requirement: The data element AUFNR which has the description "Order Number" needs to have description as "Engagement Number" for a specific company code. All other company codes to retain the description "Order Number".
    Example: There are three company codes: AAAA, BBBB and CCCC. The company code CCCC wants the description of data element: AUFNR as "Engagement Number" while AAAA and BBBB wants to retain the standard description: "Order Number".
    Pre-Work: Before posting this question, i did search however have not found a solution for this.
    In SAP i tried to create an Implicit Enhancement at:
    Program: RADBTDDF
    Sub Routine: SE_DD04T_ROLLNAME_ROLLNAME
    However, as the program is SAP Basis program, i was not successful.
    Any hints are appreciated and solution is rewarded.
    Thanks for your time.
    With Regards,
    Goutham.

    Dear Matthew,
    Thank you for the reply.
    I am giving some more details into the requirement.
    If a user assigned to company code: CCCC (may not be directly, relationship will be drawn) has logged into the SAP system. If he opens the transaction related to Internal Order, like KO01, KO02, KO03 etc. He should be able to see the description of field: "Order Type" as "Engagement Type".
    Similarly in the next screen the field "Order" needs to be displayed as "Engagement Number".
    However, for users who belong to company codes: AAAA and BBBB the SAP Standard Descriptions will be shown.
    Please let me know if this is possible or any inputs in that direction are highly appreciated.
    Let me know if further details are required.
    Best Regards,
    Goutham.
    P.S: As far as i know, Anees Jawad proposal would work if it is required to change the description at the system level.

  • ZSearch Help: Unable to attach it with Data Element XBLNR1

    Hi,
    I made a ZSearch help, which will show the contents of one field of a Ztable.
    There is a field XBLNR(Reference) with data element XBLNR1 in transaction FB50.
    I want to attach Zsearch help with it.
    I have the access key also, but when I am unable to attach Zsearch help with the data element XBLNR1 because it is not in editable mode.
    Can anyone tell me the solution?
    Or is there any other method with which I can attach Zsearch help with the screen field?
    Regards,
    Priyanka.

    Hi Priyanka,
    you can attach search help to the XBLNR element direclty.
    GO to the program SAPMF05A screen number 1010  in SE51.go to layout and double click on doc.ref field. You can assign searhelp in attributes.
    ofcourse , u need access key for this.
    hope that helps.
    regards,
    sap fan.

Maybe you are looking for