How to assigned array index position to database field

Here is the sample data of my report.
Run#     Note1     Note2       Note1 ArrayIndex      Note2 ArrayIndex
101        CR         Work               1                              2
102        Work      ER                  2                              3
103        ER         Test                3                               4
104        ER         CR                  3                              1
104       Work                             2                           
Page Footer:    1. CR       2. Work     3.ER       4.Test
I have to load distinct values of note1 and note2 in to array and assigned the array index of that note1 and note2 values and on the page footer i have to print distinct note1 and note2. would like to see at the page footer like above.  I allready figer out how to load the distinct note1 and note2 values in array but i am not able to print the Not1Arrayindex and Note2Arrayindex value in the report. I am not sure how to print out the arrayindex values based on the array value.
Thanks for your help.

Hi Shweta,
Thanks for your help. I already take a look that thread but still itu2019s not clear.
I have to assigned the array index value like 1,2,3,4,5 and at the page footer
I have to load the N1 and N2 database value in to one array and then show then array index value next to it and at the page footer I have to show corresponding array index with index value.
Run# , N1  ,               N2             ,        Ind          ,          Ind
101 ,       CR      ,              Wk               ,              1           ,                 2
102 ,      Wk    ,                ER                ,              2           ,                 3
103 ,       ER      ,              Tst                 ,            3            ,                4
104 ,       ER      ,               CR                ,            3            ,                1
Page Footer: 1. CR       2. Wk   3.ER        4.Tst
Thanks for help.
Regards,
Shirin

Similar Messages

  • How to get all INDEXes from a database

    How to get all INDEXes in a database? I need to store them in script file (.SQL). My database version is 10.2.0.3.0.
    Edited by: Iniyavan on Sep 18, 2009 1:39 PM

    --Thanks, Koppelaars. The second query works. But I'm unable to store in spool file. May be it's due to CLOBs in the output. I did the following:
    set head off
    set feedback off
    set linesize 32727
    set pagesize 50000
    spool c:\indexes.sql
    select dbms_metadata.get_ddl('INDEX',INDEX_NAME,'MYSCHEMA')
    from user_indexes;
    spool off
    --In the spool file, I find only this
    CREATE UNIQUE INDEX "MYSCHEMA"."A" ON "MYSCHEMA"."BNK_DEALID" ("DEAL_ID")
    PCTF
    CREATE INDEX "MYSCHEMA"."ACCENT_RAC_REPORT" ON "MYSCHEMA"."ACCENT" ("SCHEME", "VAL
    CREATE INDEX "MYSCHEMA"."ACCENT_REPORT" ON "MYSCHEMA"."ACCENT" ("SCHEME", "APP_REF
    CREATE UNIQUE INDEX "MYSCHEMA"."ACCENT_X" ON "MYSCHEMA"."ACCENT" ("DEAL_ID")
    P
    CREATE UNIQUE INDEX "MYSCHEMA"."ACCNAV_X" ON "MYSCHEMA"."ACCNAV" ("SCHEME", "ACCNA
    --How to get all the DMLs in one SQL file?
    --Nagappan, I'm using WIN.

  • Org Mgt-How to assign person for positions in bulk

    Hi Gurus
    Let any one share how to Assign persons to position in bulk manner
    i have tried lsmw program but not working properly.using ppom_old it is too difficult to assign for 250 persons.let any one sap hr doctor give me medicine to sort out this issue
    with regards
    partha

    Hi
    Very helpful sir
    and nicely worked
    keep sharing and mould sap aspirants like me
    with regards
    partha

  • How to create a  index for solution database - CRM5.0

    Hello Experts,
    We want to have knowledge search in our IC web client
    Trex 7.0 is alreasy installed.
    I have done configuration in SAF.Also have created problem/solution in IS01-tcode
    When I tried to compile SDB, I am getting error " 2007 - Index does not exist.
    Can any one tell me how to create a index and how to assign a problem to SDB.
    Regards,
    Indhra.E

    Hi,
    Please ensure the following are correctly configured.
    At IMG location CRM > Enterprise Intelligence > Software Agent Framework
    1. The knowledge base has been configured - "Name and Configure Search Engine".
    2. The knowledge base has been included in application - "Configure Application". The knowledge base should be in both application "ALL" and "ICWEBClient". (SAP note - 1091759 refers to similar error)
    Then, as you might have executed the BSP application, CRM_EI_CMP_ADMN->default page, and select some language & click on Full index.
    You might want to monitor the indexing process in TREX with the help of TREX admin. If nothing is shown in the index queue after the detail compilation shows status as finished, then the problem is in the CRM side and the documents are not flowing to TREX. So you might want to put breakpoint at CL_CRM_SAF_SE_TREX_ABAP classes' FULL_COMPILE method and analyse.
    Kindly get back with any more details that you find if the problem doesn't gets solved.
    Regards,
    Uma.

  • How to assign qualifications to positions?

    How to assign qualifications to the positions for the purpose of profile match up?

    In PO13 there exists the possibility to assign relationships from
    positions to qualifications, but therefore you have to maintain the
    relationships 031 and 032 for positions with qualifications/requirements
    in table T777E. So please check if you have following entries there:
    S A031/A032 Q and
    Q B031/B032 S
    Then in PO13 when adding a new relationship, you can choose the object
    type Qualifications and assign the right one to the position.

  • How to assign values for more than one field

    Hi,
    I have written following code
    constants: fieldname(30) value '(SAPMF02D)KNA1-AUFSD'.
    constants: fieldname1(30) value '(SAPMF02D)KNA1-LISFD'.
    constants: fieldname2(30) value '(SAPMF02D)KNA1-FAKSD'.
    field-symbols: <L_FIELD>  TYPE ANY.
    field-symbols: <L_FIELD1> TYPE ANY.
    field-symbols: <L_FIELD2> TYPE ANY.
          Assign (fieldname) to <l_field>.
          <L_FIELD> = 'ZB'. " value according to your requirement
          Assign (fieldname1) to <l_field1>.
          <L_FIELD1> = 'ZB'.
    while debugging <l_field1> is not assinging (fieldname1).
    Im able to assing for (fieldname).
    how to assign value for (fieldname1).
    plz suggest me to assign values for more than one field.
    Regards,
    Brahmaji

    Hello,
    Because there is no field name called LISFD in KNA1. Actually you misspelled the field name.
    It is KNA1-LIFSD

  • HOW TO ASSIGN F4_VALUE_HELP FOR A REPORT OUTPUT FIELD???

    Hi Gurus,
      Can you please help me out in assigning F4_VALUE_HELP for a report output field where it is taking value as the input parameter....... If possible please help me out with some sample code ....
    Regards,
    Santosh
    Intelligroup

    I don't think that you are get the F4 functionality by pressing F4, but maybe if you use a hotspot you could achieve it.  Check this sample.  When you click on a company code in the list, it fires the F4 help defined by the program. 
    report zrich_0001 .
    tables: t001.
    data: begin of it001 occurs 0,
          bukrs type t001-bukrs,
          butxt type t001-butxt,
          ort01 type t001-ort01,
          land1 type t001-land1,
          end of it001.
    start-of-selection.
      select bukrs butxt ort01 land1 into table it001 from t001.
      loop at it001.
        format hotspot on.
        write:/ it001-bukrs.
        hide it001-bukrs.
        format hotspot off.
        write: it001-butxt.
      endloop.
    at line-selection.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
           exporting
                retfield    = 'BUKRS'
                dynprofield = 'BUKRS'
                dynpprog    = sy-cprog
                dynpnr      = sy-dynnr
                value_org   = 'S'
           tables
                value_tab   = it001.
    Regards,
    Rich Heilman

  • How to assign roles to positions?

    Hello everyone,
    I am new in SAP HR field and my question could be very basic but would really appreciate your reply:
    " I am configuring Indirect Role assignment model and want to use it to assign positions to users.
    Now, I want to know how are these positions linked to actual roles and from where can I assign some roles to my positions? "
    Thanks
    Harleen

    Hi Harleen
    As you know, we have both Standard and Structural authorizations in SAP HR
    1. Standard Authorization
    If you want to assign Standard Authorizations to a Position, you need to create Relationship b/w Object type S and AG (You need to have authorization to PFCG T code in this case)
    I am not very sure if SAP has provided any standard program to assign the Standard Authorizations which are avaialble against a position to a User.
    2. If you want to assign Structural Authorizations to a Position and in turn to a User
    Create Structural authorization profiles in OOSP, assign the same to position by creating Infotype 1017 for a Position and run RHPROFL0 program to update the same to the USER (T77UA) who is occupying the position (A008 Relationship b/w S & P and IT 0105 against P)
    Hope this helps
    Best Regards
    Reddy

  • How to assign a whole internal table to field symbol

    Can anyone explain me that , can we assign the whole internal table to a field symbol .If yes please explain with some simple example by assigning an internal tabl data to a field symbol and how to loop on to that field symbol to write the data from it.
    Please don't paste the F1 help .
    Thanks,
    Rose.

    hi
    good
    check this code
    ) Defining the table records and the field symbol in a similar type.
    just an ordinary standard table
    TYPES: BEGIN OF it_vbak_line,
    vbeln LIKE vbak-vbeln,
    vkorg LIKE vbak-vkorg,
    vtweg LIKE vbak-vtweg,
    spart LIKE vbak-spart,
    kunnr LIKE vbak-kunnr,
    END OF it_vbak_line.
    DATA: it_vbak TYPE TABLE OF it_vbak_line.
    FIELD-SYMBOLS: <it_vbak_line> TYPE it_vbak_line.
    or as a screaming fast hash table for keyed reads
    TYPES: BEGIN OF it_vbpa_line,
    vbeln LIKE vbak-vbeln,
    kunnr LIKE vbak-kunnr,
    END OF it_vbpa_line.
    DATA: it_vbpa TYPE HASHED TABLE OF it_vbpa_line
    WITH UNIQUE KEY vbeln.
    FIELD-SYMBOLS: <it_vbpa_line> TYPE it_vbpa_line.
    2) In ITAB processing, utilize the ASSIGNING command.
    loop example
    LOOP AT it_vbak ASSIGNING <it_vbak_line>.
    look at records--populate it_zpartner
    read example
    READ TABLE it_vbpa ASSIGNING <it_vbpa_line>
    WITH TABLE KEY vbeln = <it_vbak_line>-vbeln.
    3) Refer to the field symbol's fields in the loop or after the read.
    wa_zpartner-vkorg = <it_vbak_line>-vkorg.
    wa_zpartner-vtweg = <it_vbak_line>-vtweg.
    wa_zpartner-spart = <it_vbak_line>-spart.
    wa_zpartner-kunag = <it_vbak_line>-kunnr.
    wa_zpartner-kunwe = <it_vbpa_line>-kunnr.
    See the code example below for further detail. The code was written in R/3 4.6C and should work for all 4.x versions.
    thanks
    mrutyun^

  • How to assign search help for an input field by fetchign values from an int

    i have an input field ,
    i want to assign search help for the same by fetching values from a table.
    how to achieve this ?

    Using the below ways you can assign search help to a field.
    1) [OVS Search Help|http://wiki.sdn.sap.com/wiki/display/Snippets/OVSsearchhelp]
    2) [Freely Programmed Search Help|http://wiki.sdn.sap.com/wiki/display/WDABAP/Freelyprogrammedinput+help]
    3) Dictonary Help - Use the Data element for that purpose.

  • How to assign the Value to the Particular field-Text field

    Hi all,
    My requirement is to call the Web service with input from the ADF page.
    Steps I have done:
    1. I have created a Web service data control based on the WSDL file.
    2. Just drag and drop the Process, It is automatically created the form with the Input fields and then the Process button
    3. When I entered the values and then process button it will pass the values corretly.the web service is invoked correctly with the values entered.
    4. But when I try to assign the value from the some other field that is not working.
    I am assigning the Value to the field by go to the properties of the Particular field value =”CREATE”
    When I do like this that value is showing in the screen. But it will not pass the value to the web service.
    I think the value is only displaying in the screen. Not stored at bindings level. Kindly guide me in this.
    Thanks in Advance
    C.Karukkuvel

    If you want to have the value that is returned displayed in a field that has binding to another item and not the WS result item then the way to do this would be to override the method that is invoked with the button that calls the web service - you then take the result and assign it to the item you want.
    See the way it is done here:
    http://blogs.oracle.com/shay/2009/07/java_class_data_control_and_ad.html
    While this sample uses a simple method it would be basically the same for a Web service.

  • How to assign a value(populate) a custom field in a PCUI page ?

    Hi
    I am working in SAP CRM on its web interface PCUI.
    I have created a custom field "ZZ_NEWFIELD" through EEWB in Business Partner. It is visible in accounts transaction header (crmm_account).
    Now if I create an opportunity for this business partner, I want to fetch the value of "ZZ_NEWFIELD" from BP Master and display it in opportunity(header) transaction.
    Can someone tell me how to go about it ? I am novice to BSP applications.
    Regards
    Vishal

    Thanks Francisco for your reply.
    I have already posted it in the CRM forum as well but thought to place it here also.
    As for the weblog you menioned, it just details the method of extending the field and placing it in the IView. I have done it already.
    The problem I am facing is to how to populate this field ? I know the source field from where it has to get the data but I dont know the method/code to enable the value in new field placed in the Opportunity header.

  • How to assign money value to CRM money field in Script component?

    Hi All,
    Can anyone please help me with below issue?
    I have a money value (eg. 25.00) in the SQL table (Source) of type string which I am reading it in script component and want to push that same to MS CRM(destination) currency field.
    I have used Money class but still it is throwing the exception "System.InvalidCastException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #444AFC47"
    Used this lines of code. Please let me know if I am doing anything wrong and help with resolution.
                    if (!Row.Amount_IsNull)
                        Money Amount = new Money();
                        Amount.Value = Convert.ToDecimal(Row.Amount);
                        newTbldetails["new_amount"] = Amount.Value;
    Note: new_amount is the attribute in MS CRM (destination) with type Currency.
    Thanks,
    Sri

    This below code worked. There was a mistake in the assignment.
                    if (!Row.Amount_IsNull)
                        Money Amount = new Money();
                        Amount.Value = Convert.ToDecimal(Row.Amount);
                        newTbldetails["new_amount"] =
    Amount;
    Thanks,
    Sri

  • Assigning Finance manager position to a cost center in Org. Unit.

    Hi Guys,
                  How to Assign Finance manager position to a cost center in Org. Unit.
    I am using this assignment in a workflow, selecting finance manager from table HRP1001.
    Thanks
    Senthil

    Senthil
    We dont assign the Cost Centre to positon directly
    We assign the Cost Centre to the Org Unit
    later while assigning the Position to the Org Unit  the cost Centre will auotmatically gets defaul to Positions which belongs to that Org Unit
    try thru tcode PP01  give ur Object id of ur org unit and select Cost Centre Assigment infotype  gibve the dates
    ther give the Relationship A 011  and select ur Cost Centre  (K) 
    or u can also do thru Expert Mode P010 also
    Check this one and let me know if there is anything else
    Edited by: Sikindar on Apr 8, 2009 8:34 AM
    Edited by: Sikindar on Apr 8, 2009 8:34 AM

  • Assigning a default value to a field

    Hello Everyone,
           Could you please tell me how to assign a default value to a field in a transparent table, so that while creating an entry even if we don't enter the value, a default value will be assigned.
    Thanks,
    Anbu.

    Like this
    DATA: BEGIN OF itab OCCURS 0,
            field1 TYPE c VALUE 'X'
            field2 TYPE c,
          END OF itab.
    append itab.
    append itab.
    You will have by default X set in both rows for field1.
    Regards
    Marcin
    PS: Ooops I just noticed you meant transparent table but I wrote about internal one. As long as you maintain that table using maintenance view you can use event 05 - When Creating a New Entry and set fixed value for a field there. So whenever you create new entry it will receive that value.
    Edited by: Marcin Pciak on Jun 23, 2010 8:57 AM

Maybe you are looking for

  • How to manual purge WRH$_SQL_PLAN old data from sysaux - Need help urgently

    Hi All, In our production environment, we're encoutner SYSAUX tablespace high usage, the sysaux occupant show that the WRH$_SQL_PLAN occupied more than 50GB, we have logged a SR to oracle since last year Novemember, unfortunetly they're not able to p

  • Renaming Home Folder?

    I recently got my MacBook reformatted and I would like to rename my home folder to my name. How would I go about this? I am running Snow Leopard 10.6.4. Thanks!

  • No option to place from Bridge to Dreamweaver.

    I purchased Dreamweaver as a stand-alone download (legal & registered to my Adobe account), and I know that the stand-alone DW doesn't come with Bridge. Because I own PS, ID & AI, I already have Bridge installed. Since this is my first excursion into

  • Adobe-acrobat reader update error.....

    number 1635(error update) for windows xp p.c. home private licences adobe -acrobate reader free version for private home p.c., can you help me ? Thank's

  • Required Admin Privilges on HP OPEN VMS

    Hi All - Has anyone integrated HP Open VMS resource with IdM on any of the client engagements ? If yes, can you please provide me the details on required administrative privileges to perform provisioning/deprovisionig action on HP Open VMS through Id