Substring Operation in HTMLB

Dear Friends,
  What is the syntax of getting substring in HTMLB?
  My problem is to check values available in a structure to an HTML template. I'm a beginner with SRM developments, hence suggest me the syntax or resource to locate all HTMLB syntax.
Regards,
Deva.
Dear Friends,
  Thanx a lot for all your help. I could locate the BHTML documentation and with the functions could do the string operations.
  Please visit http://help.sap.com/saphelp_nw04/helpdata/en/5f/1fb05e4aee11d189740000e8322d00/frameset.htm
Regards,
Deva.
Message was edited by on 14/05/2007:
        Deva Jyothi Singh

Hi Deva,
In order to locate all HTMLB syntax, you can use tag browser in SE80.
Follow path BSP Extensions --> Transportable --> htmlb...
This will list all the tags in HTMLB.
Then you can click on a particular tag and check out the attributes.
The syntax is
<htmlb:bsp_extension  attribute1 = "abc"
        attribute2 = "xyz"
   .....attributen = "pqr"
         >
</htmlb:bsp_extension>
<i>Do reward each useful answer..!</i>
Thanks,
Tatvagna.

Similar Messages

  • Efficiency of Java String operations

    Hi,
    for an Information Retrieval project, I need to make extensive use of String operations on a vast number of documents, and in particular involving lots of substring() operations.
    I'd like to get a feeling how efficient the substring() method of java.lang.String is implemented just to understand whether trying to optimize it would be a reasonable option (I was thinking of an algorithm for efficient string pattern matching such as the Knuth-Morris-Pratt algorithm, but if java.lang.String already applies similarly efficient algorithms I would not bother).
    Can someone help?
    J

    Thanks for your comment. Yes of course you're right, I
    mean indexOf(). If so (thanks DrClap), let me enter the discussion.
    The indexOf() implements a so called "brute force algorithm".
    The performance is O(n*m), where n is the length of the text, and
    m is the length of the pattern, but is close to n on the average.
    The KMP is O(n), so the performance gain should be hardly noticeable.
    To get a real performance gain you should look at the BM (Boyer-Moore,
    O(n/m)) algorithm or some of its descendants.
    As for java.util.regex package, as far as i understand it should be
    several times slower than indexOf(), because it reads EACH character through an interface method (as opposed to direct array access in indexOf()).
    Though it's still to be proved experimentally.

  • Substring in Loop

    Hi Friends,
    I have the below query.
    select
    replace(replace(replace(REPLACE(REPLACE(replace(replace(replace(
    replace(LPAD(vendor_#, 4, '0') || additional_vendor_#, ' ', '')
    , ',', ''), '-', ''), 'LC', ''), '(CIGS)',''),'()',''),'(core)',''),'posonly',''),'(rx)','') AS VEND_NBRS
    from XXX_vendors
    WHERE VENDOR_# IS NOT NULL;
    This query will retrieve VEND_NBRS.
    VEND_NBRS
    683843474400
    002100872504290329933217355935693777597763337291822883509039
    600048167094
    657373467694
    52873621
    5272
    418404251082141321173574411741974200420242034204420543025216599167258424
    12001390255282579353
    38810839356469567985
    I need to repeatedly extract first 4 bytes (from each record) and insert into another table.
    Example : 683843474400
    Vendor #: 6838
    Vendor#: 4347
    vendor#: 4400
    Can you please let me know the script ,how to proceed further to insert the data into the table.
    I tried using the substring operation and i am getting buffer over flow error.
    Thanks,
    Divakar

    SQL> with t as (
    select '683843474400' vend_nbrs from dual union
    select '002100872504290329933217355935693777597763337291822883509039' from dual union
    select '600048167094' from dual union
    select '657373467694' from dual union
    select '52873621' from dual union
    select '5272' from dual union
    select '418404251082141321173574411741974200420242034204420543025216599167258424' from dual union
    select '12001390255282579353' from dual union
    select '38810839356469567985' from dual
          select level, vend_nbrs, regexp_substr (vend_nbrs, '.{4}', 1, level) single_vn
              from t
    connect by          level <= length (vend_nbrs) / 4
                     and prior vend_nbrs = vend_nbrs
                     and prior sys_guid () is not null
         LEVEL VEND_NBRS                                                                        SINGLE_VN
             1 002100872504290329933217355935693777597763337291822883509039                     0021     
             2 002100872504290329933217355935693777597763337291822883509039                     0087     
             3 002100872504290329933217355935693777597763337291822883509039                     2504     
             4 002100872504290329933217355935693777597763337291822883509039                     2903     
             5 002100872504290329933217355935693777597763337291822883509039                     2993     
             6 002100872504290329933217355935693777597763337291822883509039                     3217     
             7 002100872504290329933217355935693777597763337291822883509039                     3559     
             8 002100872504290329933217355935693777597763337291822883509039                     3569     
             9 002100872504290329933217355935693777597763337291822883509039                     3777     
            10 002100872504290329933217355935693777597763337291822883509039                     5977     
            11 002100872504290329933217355935693777597763337291822883509039                     6333     
            12 002100872504290329933217355935693777597763337291822883509039                     7291     
            13 002100872504290329933217355935693777597763337291822883509039                     8228     
            14 002100872504290329933217355935693777597763337291822883509039                     8350     
            15 002100872504290329933217355935693777597763337291822883509039                     9039     
             1 12001390255282579353                                                             1200     
             2 12001390255282579353                                                             1390     
             3 12001390255282579353                                                             2552     
             4 12001390255282579353                                                             8257     
             5 12001390255282579353                                                             9353     
             1 38810839356469567985                                                             3881     
             2 38810839356469567985                                                             0839     
             3 38810839356469567985                                                             3564     
             4 38810839356469567985                                                             6956     
             5 38810839356469567985                                                             7985     
             1 418404251082141321173574411741974200420242034204420543025216599167258424         4184     
             2 418404251082141321173574411741974200420242034204420543025216599167258424         0425     
             3 418404251082141321173574411741974200420242034204420543025216599167258424         1082     
             4 418404251082141321173574411741974200420242034204420543025216599167258424         1413     
             5 418404251082141321173574411741974200420242034204420543025216599167258424         2117     
             6 418404251082141321173574411741974200420242034204420543025216599167258424         3574     
             7 418404251082141321173574411741974200420242034204420543025216599167258424         4117     
             8 418404251082141321173574411741974200420242034204420543025216599167258424         4197     
             9 418404251082141321173574411741974200420242034204420543025216599167258424         4200     
            10 418404251082141321173574411741974200420242034204420543025216599167258424         4202     
            11 418404251082141321173574411741974200420242034204420543025216599167258424         4203     
            12 418404251082141321173574411741974200420242034204420543025216599167258424         4204     
            13 418404251082141321173574411741974200420242034204420543025216599167258424         4205     
            14 418404251082141321173574411741974200420242034204420543025216599167258424         4302     
            15 418404251082141321173574411741974200420242034204420543025216599167258424         5216     
            16 418404251082141321173574411741974200420242034204420543025216599167258424         5991     
            17 418404251082141321173574411741974200420242034204420543025216599167258424         6725     
            18 418404251082141321173574411741974200420242034204420543025216599167258424         8424     
             1 5272                                                                             5272     
             1 52873621                                                                         5287     
             2 52873621                                                                         3621     
             1 600048167094                                                                     6000     
             2 600048167094                                                                     4816     
             3 600048167094                                                                     7094     
             1 657373467694                                                                     6573     
             2 657373467694                                                                     7346     
             3 657373467694                                                                     7694     
             1 683843474400                                                                     6838     
             2 683843474400                                                                     4347     
             3 683843474400                                                                     4400     
    55 rows selected.

  • Use cast('12345' as tab.col%type) as a substr - PLS-00220

    Hello,
    I like to make sure that my constructed string fits into my variable, in a flexible way.
    The variable is like
    declare  t_comment tab.col%type; -- tab.col%type = varchar2(4)
    and in the PLSQL I would like to do concat a string and make sure it fits in my variable, just cut the right end if it is too long. I want it to be dynamic, so NOT
    t_comment := substr('1234567', 1, 4)
    CAST () works like a substring operator if casting to a smaller data type, but also leads to hardcoding.
    t_comment := cast ('1234567' as varchar2(4))
    But I want
    t_comment := cast ('1234567' as tab.col%type)
    But that gives me a
    PLS-00220: simple name required in this context.
    And when I define a subtype
    subtype comment_type is tab.col%type;
    t_comment := cast ('1234567' as comment_type)
    gives me a 
    PLS-00382: expression is of wrong type
    The documentation is also clear:
    CAST converts one built-in datatype or collection-typed value into another built-in datatype or collection-typed value.
    But it would be so nice to prevent hardcoding, to the varchar2(4) datatype in this case.
    Any suggestions on how to make this flexible?

    Hello,
    you can read the column length from the data dictionary and then use it in your SUBSTR instead of the hard coded value:
    SELECT data_length
    INTO v_length
    FROM user_tab_cols
    WHERE table_name = 'TAB'
    AND column_name = 'COL';
    t_comment := SUBSTR('1234567', 1, v_length);
    Not as simple as a %TYPE, but just as flexible.
    Regards
    Marcus

  • NQSError: 59007 in OBIEE 11.1.1.5.0 after upgrade from OBIEE 10.1.3.4.1

    Hi All,
    We have successfully up-grade Obiee 10.1.3.4.1 to Obiee 11.1.1.5.0. After upgrade we found below error for few reports in 11g.
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 59007] The length operand -1 of the SubString operator must be greater than zero. (HY000)*
    Note:This issue happens only in 11g.. not in 10g
    Can anyone pls help me how to resolve this issue.
    Thanks in advance,
    Syam
    Edited by: 942658 on Jun 25, 2012 9:05 AM

    From the client or the server?
    SERVER:
    tnsnames.ora:
    MCQUERY=
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=10.36.27.184)
    (PORT=1521)
    (CONNECT_DATA=
    (SERVICE_NAME=MCQUERY)
    listener.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.36.27.184)(PORT = 1521))
    FROM REMOTE SQLPLUS Client:
    tnsnames.ora
    MCQUERY=
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=10.36.27.184)
    (PORT=1521)
    (CONNECT_DATA=
    (SERVICE_NAME=MCQUERY)
    listener.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.1.0\Client_3)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = cotsdot370.cotsdot.dom)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.36.27.184)(PORT = 1521))
    Thanks,
    Malcolm
    Edited by: user10835577 on Aug 29, 2010 12:01 PM

  • Query Based Taxonomy - Dynamic Creation of a Query Problem

    Hi,
    I'm trying to create new category nodes in a taxonomy and to assing them queries. I know how to do this, but I encountered a strange behavior. Here is the situation:
    I have a string property DocumentType. When manualy creating a query, it looks like:
    DocumentType CONTAINS "Some string"
    But when I do the same using code I get:
    DocumentType IS "Some string"
    And as a result of this, the taxanomy is not working properly.
    Here is the code:
         indexService =
         (IIndexService) ResourceFactory
         .getInstance()
         .getServiceFactory()
         .getService(
         IServiceTypesConst.INDEX_SERVICE);
         //        This kind of classification index offers functionality working with query based taxonomies
         qbcIndex = (IQBClassificationIndex) indexService.getIndex(indexId);
         //        Get a query folder - a query folder is a representation of a query based taxonomies category
         queryFolder = qbcIndex.getQueryFolder(RID.getRID(folder));
         //        List of IQueryEntry objects for the query folder
         queryEntryList = queryFolder.getQuery(context);
         //        Cast the IQBClassificationIndex into a ISearchIndex object
         searchIndex = (ISearchIndex) qbcIndex;
         queryEntry = searchIndex.getNewQueryEntry();
         queryEntry.setRowType(IQueryEntry.ROW_TYPE_ATTRIBUTE);
         queryEntry.setPropertyName(propertyName);
         queryEntry.setPropertyOperator(IQueryEntry.PROPERTY_OPERATOR_EQUAL);
         queryEntry.setValue(propertyValue);
         queryEntry.setTermAction(IQueryEntry.TERM_ACTION_EXACT);
         queryEntryList.add(queryEntry);
         //        Set the query for the query folder
         queryFolder.setQuery(queryEntryList, context);
         qbcIndex.updateCategoryContents("Document_Types", false, context);
    Can somebody tell me what am I doing wrong please. Isn't it because of IQueryEntry.PROPERTY_OPERATOR_EQUAL? Is there any substring operator?
    Thanks a lot.

    Hi, Robert
      In this moment, I have a problem with Query Based Taxonomy, maybe could you help me. I insert the query in to the taxonomy from code, but when i use the method
      qbcIndex.updateCategoryContents("/taxonomies/borrame5/Prueba2", false, context);
      I got the next exception:
    #1.5#0014C210F3D1002A000001200000565B000431CC93AD5979#1180654627543#System.err#sap.com/irj#System.err#dummy01#10241#####SAPEngine_Application_Thread[impl:3]_17##0#0#Error##Plain###     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)#
    #1.5#0014C210F3D100310000012B0000565B000431CCC47166AB#1180655445698#System.err#sap.com/irj#System.err#dummy01#10241#####SAPEngine_Application_Thread[impl:3]_18##0#0#Error##Plain###com.sapportals.wcm.service.indexmanagement.IndexNotReadyException: Some documents are not included in this update because indexing has not been finished yet.#
    #1.5#0014C210F3D100310000012C0000565B000431CCC4717417#1180655445701#System.err#sap.com/irj#System.err#dummy01#10241#####SAPEngine_Application_Thread[impl:3]_18##0#0#Error##Plain###     at com.sapportals.wcm.service.indexmanagement.retrieval.trex.AbstractTrexIndex.updateCategoryContents(AbstractTrexIndex.java:2493)#
      I have doubt what parameters i need to pass to the method updateCategoryContents,
      Let me give some information:
    taxonomy:
       /taxonomies/borrame5/Prueba2
    repository:
       /documents/Portal_KOF/KM/Pruebas1/Pruebas Versionamiento
    classification and search index:
       borrame5
       I can't classify automatically, when i insert the query from code. When I manually insert the query from the portal, automatic classification run perfectly.
    Thanks
    Greetings
    JARO.

  • Problem input parameter

    Hello
    I have a requirement, is that I have a infobjeto operation hour that has the hours that a transaction took place, and I had to build a structure with a range of times, but that touched me to the transformation of one substring operation time to take the first two character of time and store it in another infobjeto created, I have the time as input parameter as date range and give the matchcode the parameter time only shows me the values ​​that holds the master data, but they need select a time range regardless the value is in the master data infobjeto hour.
    As I can handle this in the input parameter so that you can select for example from 00:00 to 05:00.
    If anyone can help me I appreciate it.
    Greetings.
    nando

    Hi David,
    This GROUP_TYPE option is not available anymore in 11.2.0.2 anymore it seems !.
    I posted a question about this today on the owb blog that triggered it all for me.
    I was trying to work tru your example of Table Function Operators and stumbled upon a OMBplus script that doesn't work anymore.
    It now says:
    OMB+> OMBALTER MAPPING 'TF_REFCURSOR_PARAM' MODIFY GROUP 'INGRP1' OF OPERATOR 'GET_EMPS' SET PROPERTIES (GROUP_TYPE) VALUES ('REF_CURSOR')
    OMB02902: Error setting property GROUP_TYPE of INGRP1: MMM1034: Property GROUP_TYPE does not exist.
    And indeed looking at the 11.1. ref doc it is mentioned but not anymore in 11.2.
    (search for group_type)
    11.1 :
    http://download.oracle.com/docs/cd/B28359_01/owb.111/b31279/omb_4create_1.htm
    11.2:
    http://download.oracle.com/docs/cd/E11882_01/owb.112/e14406/chap3006.htm#GDBBAFBF
    But the UI doesn't have the option either !
    How do i use a TFO with a ref_cursor ?

  • Problem while  using module DynamicConfigurationBean

    Hi experts
               I am doing a file-to-file bypass (<b>without any mapping involved</b>) scenario.My input file name is <comanycode>.<date>.<timestamp>.dat and I want output filename as <companycode>constant.<date><timestamp>.dat To achive this I used  <b>Dynamic configuration bean module</b> along with variable substitution but its appending the whole file name however i want only the first four letter of the input file namei.e company code.So plz guide me that wheather using this bean extracting some part of  the file name is possible or not?
    Is there is any other way to extract some part of the file name without doing any mapping i.e without the help of payload? Plz guide me as its urgent.
    Regard
    Neha

    Neha,
    DynamicConfiguration Bean will allow you to set the values,but if I understand right you want to perfrom substring operations etc on the data in the file.
    To do this, you would need a write a Custom Module.
    Regards
    Bhavesh

  • Need Target File  Name  Timestamp  is  same  as Source File name Timestamp

    Hi ,
           I want to genereate Target file name (Target_09062008082030.xml)   but  this time stamp is exactly Sorce FileTime stamp..(Source_09062008082030.xml)..
         so, i want to create a  target file  with the same source file time stamp.. 
    for this.. i sed Message Specific attributes... in both sender and receiver side.. but  that was creating with the complete name.of source file name.. but i want only Timestamp of the source filename... and remaing is the constant.. for this  how can i proceed  ..
    Thanks
    Jain

    See in Sender CC when you set the Adapter Specific Message Attr  for file name it will send the filename in the header of the XI Message.
    To acces this file name inside mapping you need to create a UDF . The type can be any thing as you desire.
    You dont need to pass any variable .if suppose you want the file name (constant) e.g ABC_<timestamp>.xml
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String fileName= conf.get(key);
    //see above your key is FileName which will be sent by the sender CC automatically... You are simply accessing it here using get() method.
    //now ur filename will contain name of the source file... you need to perform a substring operation to get the timestamp and create a new file name as you desire.
    fileName = "New_<timestmp>.xml"; //for e.g
    //set this file name again in header message using put()
    conf.put(key, fileName);
    //when you check on the adapter specific message attr for fileName in the receiver CC ,it will automatically take this new file name value.
    return fileName;
    // if you want to use this new fileName inside your mapping payload (for other fields) you can assign this to any target field,else just assign it to the root tag which will make no difference if this file name is not used anywhere.

  • Search Based on Native File Name

    Hi Experts,
    I am working on an application that is talking to UCM through CIS.
    I want to search content items based on Native File Name.
    Please tell me how to search Content Items based on Native File Name ?
    Help Please!!!!!
    thanks

    Hi
    Search query should be : dOriginalName <matches>`term`
    it can be <matches> or <substring > operator depending on the requirement you have to do the search part .
    Thanks
    Srinath

  • Help with scripting TOC

    Is there a way to script creating the TOC? (PC, CS4 InDesign)
    When I create the TOC I go through a number of actions:
    Select "Table of Contents..." from the Layout menu,
    I then select certain items in the TOC window, such as "include book documents..."
    I then select the styles from the right-hand list and 'add' to the left-hand list.
    I would like to have a script that would select the styles in the right-hand list by style name.
    I know that I can set a style for the TOC, but that has caused some issues with my co-workers. For example, if one of my co-workers places a "headings" style into a style group in one section (document) in a book, and another group with a different group name in another section (document) in the final book, then that style name is repeated multiple times in the right-hand list in the toc dialog. So, a TOC style is beyond their comprehension. It just confuses them.
    So, rather than set a toc style, I would like to script the process. Is it possible to get the right-hand list out, filter it through a script that looks for any style with the word "head" in it, move it to the left-hand list, apply a toc style and done?
    any suggestions are appreciated.
    Thank in advance,
    RP

    Could explain more fully how you are creating your forms and what programs you are using from the creation of the base document to which program and how you are adding fields.
    I think you are misunderstanding me.   I use Adobe Acrobat Professional 6.0.  I can get the calculations to work correctly if I use the form as it is after creating it. 
    But these forms are put into an SQL database and they get selected within a VB.net program or ASP.net program (both are used).  So these programs (VB.net or ASP.net) are adding the extra characters at the end, hence I do not know the names of the fields when the forms are being filled in.  So the calculations do not work with the "original names" that I created for the fields.
    I just figured if I created a routine that looped through and chopped off the extra characters these programs put on the end I would be able to do the calcuations and they would work.  I believe there is a substring operation within javascript.

  • Change default date format of reports data source

    Hi all,
    I need to convert an ugly EBS standard charactermode report (Oracle Reports) into the Xml-Publisher format. I'd like to use the existing report as the xml data source as all data is available in the old report.
    The problem is that the date format used by reports is determined by NLS_DATE_FORMAT (et al). This date format unfortunately is not xml compliant (dd.mm.yyyy in our case) and so Xml-Publisher date related features (e.g. sort by date) will not work .
    The report/template is submitted via the submit concurrent request form.
    Is there a way to make the underlying reports produce xml conformant dates without resorting to wild substring operations in the template or changing the EBS standard report?
    Thanks
    Christoph

    RajaramanV wrote:
    Can i change the nls parameter of a particular column(date field) in a table?if i set that it is apllied to all the tables in the database..No. Please understand that all dates, in all tables are stored in the same, oracle-defined, format. NLS_date_format affects how that internal date is converted to a character string for presentation to humans, or how to interpret a character string (received ,ultimately, from a human) for conversion to that internal format. It (NLS_DATE_FORMAT) can be set at several levels, but table/column is not one of them.
    Please read the link I posted in my earlier response. It will clear up your confusion.
    Edited by: EdStevens on Feb 1, 2012 6:55 AM

  • How to compute a bind variable from another?

    I am trying to create a View Criteria that has the following View Object Where Clause:
    (UPPER(LOCALE) = UPPER(:LocaleCode) ) OR (UPPER(LOCALE) = UPPER(SUBSTR(:LocaleCode,1,2)))
    In other words, I have a bind variable called LocaleCode, and I want to return all rows that either match the LocaleCode exactly (first part of the Where Clause), or match the first 2 characters of the LocaleCode value (second part of Where Clause).
    I can't seem to figure out any way to do this straight-up using the UI for a View Criteria - there doesn't seem to be a "substring" operator when adding an item to the clause.
    So, my thought was to create a second bind variable (e.g. "LocaleCode2") that was computed from the first bind variable (LocaleCode). This new bind variable would contain the first 2 characters from LocaleCode. I could then have the Where Clause be:
    (UPPER(LOCALE) = UPPER(:LocaleCode) ) OR (UPPER(LOCALE) = UPPER(:LocaleCode2))
    My problem is that when I define the LocaleCode2 bind variable, I see the option to set it to an Expression, but I can't seem to figure out how to build an expression that refers to another bind variable.
    So, my questions are:
    1. How can I have a bind variable expression refer to another bind variable (e.g. "LocaleCode2 = substring(:LocaleCode,1,2)" or something)?
    2. Is there a better way to do this altogether? (What I'm trying to do is set up a view criteria for a lookup table that will return rows that match a passed-in locale exactly (language and country), or just on the 'language' part (first 2 characters).)
    Thanks!

    I think that bind variable accessors in the VO class is what you need. You can override the getter method of the bind variable "LocaleCode2" in order to return the first 2 chars from the bind variable "LocaleCode". Have a look at this blog post for details:
    http://jdeveloperandadf.blogspot.com/2011/03/custom-java-bind-variable-in-where.html
    Dimitar

  • Help with Scripting forms when additional characters added

    Hi,
    I am new to scripting in adobe professional, I thank anyone in advance for any advice or help they can give me.
    I am trying to use the calcuations within the forms that I am putting fields onto.  In the process I discovered that the program the forms are within are attaching a pipe and additional characters after the actual name that I have named them.  So, I am not able to use even the simple calculations within adobe to "sum" fields.   For example: I named the field "1_1Text" and this is what displays when you go into the calculations and pick the fields you want.  But the actual name is "1_1Text|1234567" so the calculations will not work.
    I take it then I need to use the advanced scripting but I am unsure of the format for a routine such as this.  I have a little knowledge of javascript but it has been awhile.  There must be a scan to find the pipe and then you should be able to chop off the extra characters since I will never know the characters the program adds on so then I can do calculations on these fields. Then you would have to put them into an array or something to save them?   Any help with a script or hints would surely be appreciated.
    Thanks!

    Could explain more fully how you are creating your forms and what programs you are using from the creation of the base document to which program and how you are adding fields.
    I think you are misunderstanding me.   I use Adobe Acrobat Professional 6.0.  I can get the calculations to work correctly if I use the form as it is after creating it. 
    But these forms are put into an SQL database and they get selected within a VB.net program or ASP.net program (both are used).  So these programs (VB.net or ASP.net) are adding the extra characters at the end, hence I do not know the names of the fields when the forms are being filled in.  So the calculations do not work with the "original names" that I created for the fields.
    I just figured if I created a routine that looped through and chopped off the extra characters these programs put on the end I would be able to do the calcuations and they would work.  I believe there is a substring operation within javascript.

  • Odd question about BAPI to return doc number in BKPF-AWKEY ...

    One of my colleagues here needs to retrieve doc number from within AWKEY in BKPF.
    He knows he can do it with a simple select followed by a substring operation, but someone on the functional side is saying that it would be better if he could find an SAP-delivered FM or BAPI that returns the doc number within the AWKEY.
    Any one know whether there is an FM or a BAPI that performs this specific retrieval of doc number from within AWKEY?
    I don't see why there should be one, but maybe there is ....

    aRs -
    This is funny.
    The developer got back to me this morning - he does want to pass the awkey and get the docno.
    So the BAPI you suggested:
    BKK_RFC_GL_GET_DOCNO_BY_AWKEY
    is exactly what he wanted.
    Thanks again.
    Dave

Maybe you are looking for