Problem getting field names with OCI

Hi,
I am trying to retrieve the names of select fields through the
OCI using OCIParamGet() followed by OCIAttrGet(). This seems to
work OK, in most cases, except occasionally I get one field name
concatenated to the following field name.
Has anyone else seen this before, and if so, how do you get
around it? Let me know if you need more details.
Thanks in advance.
Tim
null

That worked. Thanks!
Peter Kls (guest) wrote:
: Timothy Sim (guest) wrote:
: : Hi,
: : I am trying to retrieve the names of select fields through
the
: : OCI using OCIParamGet() followed by OCIAttrGet(). This seems
to
: : work OK, in most cases, except occasionally I get one field
: name
: : concatenated to the following field name.
: Try evaluating the string length returned by the OCIAttrGet
call.
: The name string is not (always) \nul terminated.
: : Thanks in advance.
: : Tim
: good luck
: Peter
null

Similar Messages

  • Get field names of an internal structure

    Hi,
    In my program, I have a structure created via begin-of/end-of.
    A table is based on this structure and later on, I use a macro that deals with the field names and values.
    I'd like to make the macro dynamic, in that it gets the table field names with hardcoded values.
    Is there anyway to get the names of my structure field names via an FM or through coding?
    Thanks,
    John

    Two ways:
    1) If you define your structure based on a data dictionary structure, you can use function module DDIF_TABL_GET to get the structure field names.
    2) In NetWeaver version 6.0 and above, you can use Run Time Type Services (RTTS) classes for this purpose.
    Here is sample code for RTTS:
    data: BEGIN OF wa,
            field1 type c,
            field2 type d,
            field3 type i,
          END OF wa.
    DATA: r_descr TYPE REF TO cl_abap_structdescr,
          wa_comp TYPE abap_compdescr.
    r_descr ?= cl_abap_typedescr=>describe_by_data( wa ).
    LOOP AT r_descr->components INTO wa_comp.
      WRITE:/ wa_comp-name.
    ENDLOOP.

  • Can I get field name of Selection screen ?

    Hi, experts.
    I'd like to manage PGM's screens & fields of screens. I need to know field names of selection screen in  external PGMs to manage input values of those fields.
    For values, I'll use 'Dynp_values_read', but what should I use for getting field names of selection screen?
    Is there any functions, classes or tables for PGM's fields of selection screen?
    I've found tables&functions for this and I found D020S, D020T, D021T for PGM's screen. But I counld't see proper field names that shows on a selection screen when I excuted PGM. I guess there's a conversion routine between data that saved in repository and field name on screen.
    Please let me know what should I use a function, tables or else.
    Thanks.

    Hi
    Use Read text pool syntax
    READ TEXTPOOL program name
    INTO T_TPOOL
    LANGUAGE 'NL'.
    within TB_TPOOL all select option field namees will be stored under field ID with type S
    Edited by: Lavanya K on Apr 22, 2009 10:02 AM

  • How to get cluster name with c++ API?

    Hi everyone,
    I want to get cluster name with c++ API, do you know how to do that?
    Thanks very much!!!
    Guangyin

    937347 wrote:
    Hi Robert,
    For Java, we can get the cluster name like this:
    cache.getCacheService.getCluster().getClusterName(),
    for c++, just as you said, do you mean that i can try to get cluster name like this:
    Sting::View name = cache->getCacheService()->getInfo()->getServiceName();
    InvocationService::handle invocation = cast<InvocationService::handle>(CacheFactory::getService(name));
    String clusterName = invocation->getInfo()->getServiceName();
    But i can not get the right result.
    I know little about how to use InvocationService, could you give me example?
    Thanks very much!!!
    GuangyinHi Guangyin,
    I do not know the C++ API, I never used it, but what you wrote definitely does not look right.
    InvocationService is a way to send arbitrary Java logic (you need to write both the Java logic and a C++ counterpart class, the C++ class will serialize itself with POF and the Java class will deserialize the same data appropriately) as a command to the cluster via the TCP*Extend connection and the command would execute on the proxy node and thus it would have access to the cluster itself.
    You probably should start with the documentation of the Coherence*Extend C++ API documentation for samples.
    http://docs.oracle.com/cd/E24290_01/coh.371/e22839/toc.htm
    http://docs.oracle.com/cd/E24290_01/coh.371/e22839/cpp_part.htm#CHDHCIEJ
    Best regards,
    Robert

  • Sql Problems, Same Field Names In Multiple Mysql Tables?

    I have a keyword search that searches multiple DB tables for thumbnail images using UNION ALL. I have two pages, results.php, and view.php.  My goal is to able to click a thumbnail image on results.php and be directed to a larger version of that same image on view.php. The problem is each image in all my tables uses the field name "id" so when I click a thumbnail on results.php I get two different images with the same id from different tables.  I tried changing the id's to different names, but when it was time to pass url parameters I can only choose 1 value. (if you can choose more than 1 I don't know how).  So my question is why are my id's from different tables being grouped together, and how can I change this?
    Image Results Page (which works perfect):
    SELECT *
    FROM table1
    WHERE keyword LIKE %colname% OR id  LIKE %colname% 
    UNION ALL
    SELECT *
    FROM table2
    WHERE keyword LIKE %colname% OR id  LIKE %colname% 
    View Image Page (having problems here):
    SELECT *
    FROM table1
    WHERE id = colname
    UNION ALL
    FROM table2
    WHERE id = colname

    Yes, that is going to be a problem - and it's just the beginning of your problems when you do not normalize your data. Your data model is not correct. You should not be storing similar data in 15 tables - it's a really big mistake.
    To solve your current problem you would need to include a table identifier in the query results in the Image results page, and pass that to the view page and then use PHP to dynamically create the SQL with the correct table....ugh!

  • Unable to get Field Names from Archived File

    Hi All,
    We have a ECC 6 Ehp4 system. When i retrieve Idocs archived using SARA, the data only contains application data. There is no field names available - eg: posting date, tax code etc. Please find below the background on this issue.
    I configured archiving of process idocs (status 52,12,03) from EDIDC tables. I set up the settings for Archive Object IDOC and archived the data for 15 days.
    Both archiving and deletion of data from the table was successful.
    I tried reading the Idoc data from Archive File using the Information System option -> Info structure (available as default for Idoc).
    But the data retrieved only shows the Application data for all the segments of the IDoc. The fields for the segments like Tax Code, Posting Date etc are not available in the data. Functional teams will not be able to make sense with just the application data.
    Am I missing some setting? Is there any way to retrieve the related field values also ?
    Please help.
    Thanks and Regards,
    Raghavan

    Hi All,
    There is tcode WE10. You could choose if the data source is archive and also the archive session. You will get the list of segments provided. click on the segment number and you will get the data.
    Thanks and Regards,
    Raghavan

  • Is there a way to rename multiple form field names with a "b" at the end?

    I have a two page form, both are identical.  I need to rename all the field names on page 2 with a "b" at the end of the file name so they dont conflict with that of the first page.  Is there any fast way of doing this without renaming each individual one at at time?  I have a LOT to do!

    It's not possible with JavaScript. The name property of a field is read-only.
    I would suggest making a template from the first page and then spawn a new page from it.
    If you do it from a script make sure you set the bRename property to true and the form fields will be automatically renamed, but you can't specify the name, it will be in following pattern:
    P<Page Number>.<Template Name>.<Original Field Name>

  • How to print Field name with value of a Class object?

    hi, In C#, I need to print a class field or property name with value without using reflection or string.join method.
    For eg.
    protected void Button1_Click(object sender, EventArgs e)
    List<EmployeeInfo> obj = new List<EmployeeInfo>();
    obj.Add(new EmployeeInfo { eid = 123 });
    obj.Add(new EmployeeInfo { ename = "abc" });
    Response.Write(obj.ToString()); // output must be => ename ="abc" , eid = 123
    public class EmployeeInfo
    public string ename;
    public int eid;
    It need to be resulted as follows automatically with property name and value :
    ename ="abc" , eid = 123
    It need to be resulted with good performance and simple way.

    You could override ToString method in EmployeeInfo class:
    public class EmployeeInfo
    public string ename;
    public int eid;
    public override string ToString()
    return string.Format("ename =\"{0}\" , eid = \"{1}\"", ename, eid);
    protected void Button1_Click(object sender, EventArgs e)
    EmployeeInfo obj = new EmployeeInfo() { eid = 111, ename = "aaa" };
    Response.Write(obj.ToString());

  • Field names with spaces in target file using fcc

    Hello Friends,
    My target structure fields:
    MT_Target
    ItemNo, ItemName, ItemQuantity, AmountValue, TotalAmount
    My requirement here is - In the target file - these fields should be generated with space. Shown as below:
    Item No, Item Name, Item Quantity, Amount Value, Total Amount
    How can i achieve this.
    Thanx
    S.

    if i understood u correctly u want to have a header line in ut target file same as that ur field names but with a space in between??
    if yes  the use :
    NameA.addHeaderLine=3
    NameA.headerLine =Item No, Item Name, Item Quantity, Amount Value, Total Amount
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

  • Getting field names of an internal table

    Hi all,
    Does anyone know if exists a statement, function module or method that gets the field names of an internal table ?
    Thanks in advance,
    David

    Hi,
    See this
    REPORT typedescr_test.
    TYPES:
    BEGIN OF my_struct,
    comp_a type i,
    comp_b type f,
    END OF my_struct.
    DATA:
    my_data TYPE my_struct,
    descr_ref TYPE ref to cl_abap_structdescr.
    FIELD-SYMBOLS:
    <comp_wa> TYPE abap_compdescr.
    START-OF-SELECTION.
    descr_ref ?= cl_abap_typedescr=>describe_by_data( my_data ).
    WRITE: / 'Typename :', descr_ref->absolute_name.
    WRITE: / 'Kind :', descr_ref->type_kind.
    WRITE: / 'Length :', descr_ref->length.
    WRITE: / 'Decimals :', descr_ref->decimals.
    WRITE: / 'Struct Kind :', descr_ref->struct_kind.
    WRITE: / 'Components'.
    WRITE: / 'Name Kind Length Decimals'.
    LOOP AT descr_ref->components ASSIGNING <comp_wa>.
    WRITE: / <comp_wa>-name, <comp_wa>-type_kind,
    <comp_wa>-length, <comp_wa>-decimals.
    ENDLOOP.

  • How to get field name dynamically of a table

    Hi,
    I have a table which has 5 fields, now i want to know the name of the fields dynamically at run time
    not the values each fields hold.
    I have tried field symbols, get reference but all i got the value of the field not the field name.
    is there any way  i can get the field name.
    regards,
    mayank

    1. If it is a DDIC table, you can use the FM 'DDIF_FIELDINFO_GET'. Search in SDN for details.
    2. If it is an internal table, check this code:
    TYPE-POOLS: abap.
    PARAMETERS p_table TYPE tabname .
    DATA: lcl_table TYPE REF TO cl_abap_tabledescr,
          lcl_struc TYPE REF TO cl_abap_structdescr,
          it_fields TYPE abap_compdescr_tab,
          wa_fields TYPE abap_compdescr.
    DATA: dref TYPE REF TO data.
    FIELD-SYMBOLS: <itab> TYPE ANY.
    CREATE DATA dref TYPE STANDARD TABLE OF (p_table).
    ASSIGN dref->* TO <itab>.
    START-OF-SELECTION.
    * Get the Table details
      lcl_table ?= cl_abap_typedescr=>describe_by_data( <itab> ).
    * Get the table line type i.e., structure details
      lcl_struc ?= lcl_table->get_table_line_type( ).
    * Get the components(fields) of the table line
      it_fields = lcl_struc->components.
      LOOP AT it_fields INTO wa_fields.
        WRITE: / wa_fields-name.
      ENDLOOP.
    BR,
    Suhas

  • Field names with now values behind are written to RDI-File?

    Dear experts,
    I have a question concerning the RDI file format.
    The specification of RDI file said the following about the structure of each RDI file
    "field name" is placed in position                 :        104     
    "field length" indicator is placed in position :        235 - 237
    "field value" is placed in position                 :        241     Specified by u2018field length indicatoru2019
    In addition I got the information, that even if there is no field value for a specific field name. That the field name and also the length of the field will be displayed in the RDI file.
    Now I generated an RDI file and I see that only these field (name, position, value) are displayed in RDI which have a value. Fields which contains no value are not displayed!
    In conclusion, my first question would be if its correct that field names and also the lengths are everys time displayed in RDI even if there is no value for it?
    If this is true,  the second question would be: Whatr could be the reason that the field names are not in the RDI file when there is no value for it.
    Thanks in advance for any helpful answers

    Dear experts,
    I have a question concerning the RDI file format.
    The specification of RDI file said the following about the structure of each RDI file
    "field name" is placed in position                 :        104     
    "field length" indicator is placed in position :        235 - 237
    "field value" is placed in position                 :        241     Specified by u2018field length indicatoru2019
    In addition I got the information, that even if there is no field value for a specific field name. That the field name and also the length of the field will be displayed in the RDI file.
    Now I generated an RDI file and I see that only these field (name, position, value) are displayed in RDI which have a value. Fields which contains no value are not displayed!
    In conclusion, my first question would be if its correct that field names and also the lengths are everys time displayed in RDI even if there is no value for it?
    If this is true,  the second question would be: Whatr could be the reason that the field names are not in the RDI file when there is no value for it.
    Thanks in advance for any helpful answers

  • Get Attachment name with rules/filters

    Hello!
    I want to create a rule through the GroupWise API that trashes incoming
    mails with certain attachment names.
    In the CreateRule-Screen there are tons of "filterable" fields avialable,
    both user defined and system internal, one of them is attachments.
    However, with the FilterSetText-Token it seems I can only access a few
    predefined fields, and the user-defined fields through the
    "FieldName"-parameter.
    How do I get the other internal fields, like "attachments"?
    Martin

    Your best bet maybe to create a search folder with the query you want
    and then read the resulting query out of the folder.
    You will find more details on Filter Expressions in the Object API, the
    Token docs seem to be more basic and some what older.
    Roger Thomas, Dev SysOp 22
    <[email protected]> wrote in message news:%Kmid.1859$[email protected]..
    > Hello!
    >
    > I want to create a rule through the GroupWise API that trashes incoming
    > mails with certain attachment names.
    >
    > In the CreateRule-Screen there are tons of "filterable" fields avialable,
    > both user defined and system internal, one of them is attachments.
    >
    > However, with the FilterSetText-Token it seems I can only access a few
    > predefined fields, and the user-defined fields through the
    > "FieldName"-parameter.
    >
    > How do I get the other internal fields, like "attachments"?
    >
    > Martin

  • Vb script to get fields name of SAP adobe forms

    hi
    is there any way to get and set fields of SAP adobe forms embedded in SAP portal

    I think when I tried to process each PC name from text file against registry key value, above code not working. As per my knowledge some issue in loop. Do I need to add FOR EACH feature? 
    Please help to correct it. Thanks in advance.
    Your code contains numerous errors. Furthermore you make things difficult for yourself by giving similar names to the objects used for your input and output. If you are a systems administrator then your best bet is to make an effort to learn the language
    instead of grabbing a few code fragments from here and there and hoping that somehow they will work.
    Try the cleaned up code below for this particular project. Note the consistent code indentation. It helps you enormously when trying to understand the structure of the code. Remember also that you must fully qualify all file paths. Writing to "Destination.txt"
    will cause endless confusion because you never know for sure where this file will reside.
     Const HKEY_CURRENT_USER = &H80000001
     Set oFSO = CreateObject("Scripting.FileSystemObject")
     sKeyPath = "Environment"
     sValueName = "LSFORCEHOST"
     sFile = "D:\Test.txt"
     If oFSO.FileExists(sFile) Then
       Set oInput = oFSO.OpenTextFile(sFile, 1)
       Do While Not oInput.AtEndOfStream
         sComputer = oInput.ReadLine
         If Trim(sComputer) <> "" Then
           Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" _
             & sComputer & "\root\default:StdRegProv")
           oReg.GetStringValue HKEY_CURRENT_USER,sKeyPath,sValueName,sValue
           Set oOutput = oFSO.OpenTextFile("D:\destination.txt",8, True)
           oOutput.WriteLine sValue
           oOutput.Close
        End If
      Loop
      oInput.Close
    End If

  • How to get field name on Production Order

    Dear All,
    I am going to make report on using items from production order. I'm facing problem to get following fields. These fields are on production ordersu2019 screen and tab is Summary.
    1-Actual Component Cost
    2-Actual Additional Cost
    3-Actual Product Cost
    I don't know where these fields are in database.
    Can anybody help me in this regards
    Sohail Anwar Ali

    Dear Sohail Anwar Ali,
    By B1 help:
    Actual Component Cost Total value of all components issued to the Production Order.
    Actual Additional Cost Displays the actual additional costs that occur when a component is defined in the Item Master Data as a non-inventory item, for example, a service or labor cost.
    If there is more than one additional cost for the item, the cost displayed here is the sum of all additional costs.
    The field is updated on product completion.
    Actual Product Cost Total value of all products received for this Production Order.
    Best Regards
    Jane Jing
    SAP Business One Forums team

Maybe you are looking for