Populating table with values in custom controller

Hi
There are multiple rows of records in custom controller and i want to populate these values in a table which is in another view.How to do this.
thanks and regards
suresh

Hi,
If you are writing the code in the custom Controller then you can do the following
IPublic<CustomerController>.I<Node>Element ele=wdContext.create<Node>Element();
ele.setXXX();
ele.setYYY():
wdContext.node<NodeName>().addElement(ele);
Regards, Anilkumar

Similar Messages

  • How to change recon.account directly in Table with out changing customizing

    Hi Gurus,
    I want to change Customer reconciliation account but this is not possible any more due to display option for reconciliation account in customizing.
    I know I can change customizing and then change the reconciliation account, but there is a better way doing this.
    We can change this directly in the table without changing customizing, but I don't know how to do this. Does any one know how to change directly in the table?
    Many thanks in advance

    Hi there,
    The steps that you should take include:
    1. go to SE16
    2. put knb1
    3. on the field selection input the customer you want to edit
    4. Execute
    5. type to the transaction field /h and press Enter
    6. double click to the customer line item you want to change the recon
    7. this will navigate you to the debug environment
    8. on the debug environment press find/search button -or- CTRL+F to find a keyword code
    9. you should see  if code = 'SHOW'.
    10. now please double click on the word "code" to set the Breakpoint
    11. Press F7
    12. you will see the program routine will stop at if code = 'SHOW'.
    13. Double click on the word 'code'
    14. 'code' will appear on the righ hand side with value = 'SHOW'
    15. change the value of 'SHOW' to 'EDIT' by double clicking the Edit icon (pencil) and replacing the value of SHOW to EDIT
    16. press Enter
    17. press F8
    18. you can now change the recon field
    19. Press SAVE button
    20. Double click 2x (or more) on the STOP sign, until your breakpoint is gone
    21. press F8 and you should see the message of "Database Record successfully created"
    Good luck!
    Regards,
    Fausto
    Edited by: Fausto Jahja on Jul 21, 2009 5:26 PM
    Edited by: Fausto Jahja on Jul 21, 2009 5:50 PM

  • BP_CONT: not getting the contact person email value from custom controller

    Hi Experts
    not able to find the email address in any of the context node, actually my requirement is while creating the BP contact , get the email address  BP_ADDR/StandardAddress STRUCT.E_MAILSMT . take this email id and check whether this email id exists in system if exists throw the error while saving . for this I did the codin in BP_CONT component on save method but while saving some times my custom controller is getting initiated some times it was not containing any value , kindly let me know how can I get the email value of contact person in BP_CONT  component in view BPCONTOverview .
    here is my code on method eh_onsave
    lr_curo_bpcont_custcntrlr ?= me->get_custom_controller( controller_id = 'BP_CONT/BPCont' ).
      IF  lr_curo_bpcont_custcntrlr IS BOUND.
        TRY.
            lr_entity_privstdaddr ?= lr_curo_bpcont_custcntrlr->typed_context->privstdaddr->collection_wrapper->get_current( ).
            lv_privstdaddr_e_mailsmt = lr_entity_privstdaddr->get_property_as_string('E_MAILSMT'). " Get runtime email value of contact person
            lr_entity_bpcategory ?= lr_curo_bpcont_custcntrlr->typed_context->builheader->collection_wrapper->get_current( ).
            lv_partner_category = lr_entity_bpcategory->get_property_as_string('BP_CATEGORY'). " Get Partner Category value
          CATCH cx_sy_ref_is_initial cx_sy_move_cast_error cx_crm_genil_model_error.
        ENDTRY.
      ENDIF.
    here the problem is some times I'm getting the value and some times I'm not getting value the related objects also through get related entities contact person emial is not getting populated any where
    kindly help what is going wrong
    Thanks & Regards
    Rajasekhar

    Hello Rajasekhar,
    Could you please share how you resolved this issue? I have the exact same requirement (duplicate check based on email).
    Kind regards

  • Help populating table with applescript

    Hi
    I'm posting here in the hope that someone can give me a helping hand with an applescript. I myself know very little about applescript. I can create something very basic but thats about it.
    I have the following table
    Name
    Value
    Amount
    Donald Duck
    4
    5000
    Goofy
    10a
    7000
    George
    5
    4000
    Steve
    4
    6000
    Hank
    18
    9000
    Sue-Ellen
    5
    9050
    John
    18
    11000
    Hector
    18
    5500
    I would like to create an applescript that runs through this table and populates another table, we can call it "Results", that would look something like this
    Value 4
    Donald Duck
    5000
    Steve
    6000
    Value 5
    George
    4000
    Sue-Ellen
    9050
    A further complication is that this newly populated should only be populated if the following condition exists. The total sum of the newly created table (i.e the value column) should only be populated with posts from the original table as long as the sum of the newly created posts do not exceed the sum of a cell in a third table (we can call this the "sumtable").
    To make it clearer. If the sum of the "sumtable" is 24 050 then the newly created table will only create the posts I have made above. These posts must be made using the following values and in the order the values appear. The complete list of values is 3a, 4, 4a, 5, 6, 7, 10, 10a, 12, 13, 18 . So the script would start looking for values in that order and whenever it reaches a total sum that is equal to the sum in "sumtable" it will use those values, and only those, and populate the new table creating the necessary rows needed.
    It's possible that this is way to complicated to do. I have tried to make a formula in a table to do this but the problem is I ca never know how many rows are needed in advance.
    Hoping for some help or tips, but understanding if this is asking too much considering the amoutn of effort needed.
    Thanks

    consiglieri_swe wrote:
    i.e Goofy only gets part of his debt.
    The partial payment complicates the logic a little. Below is a script that can handle that. The usage is the same. Paste it into AppleScript Editor. Run. Paste results into A2 of the Results table and the table expands automatically to the number of rows needed. The Sum formula is in a Footer Row.
    The revised script, which now reads the available amount from a cell in a table (easily changed to another table as needed), is below.
    SG
    --accounts for partial payment of "last" creditor
    --reads available amount from a cell in a table
    property thePriorities : {"3a", "4", "4a", "5", "6", "7", "10", "10a", "12", "13", "18"}
    tell application "Numbers" to tell the front document to tell sheet "Sheet 1"
              tell table "Maximum"
                        set maxAmount to the value of cell "A2"
              end tell
              tell table "Table 1"
                        set {pasteStr, stillAvailable, allDone} to {"", maxAmount, false}
                        repeat with i from 1 to count of thePriorities --cycle through 3a, 4, 4a, etc
                                  set priorityBeingTallied to (item i of thePriorities)
                                  repeat with j from 2 to count of its rows
                                            tell row j
                                                   --get the values in a row
                                                      set thisName to value of its first cell
                                                      set thisPriority to my stripDecimal(value of its second cell)
                                                      set thisAmount to value of its third cell
                                                      if thisPriority is equal to priorityBeingTallied then --if it's in this priority
                                                                if stillAvailable > 0 then --include the row unless no more money
                                                                          set thisAllocation to my lesserOf(thisAmount, stillAvailable)
                                                                          set pasteStr to pasteStr & thisPriority & tab & thisName & tab ¬
                                                                                    & thisAllocation & return
                                                                          set stillAvailable to stillAvailable - thisAllocation
                                                                end if
                                                      end if
                                            end tell
                                  end repeat --rows
                        end repeat --priorities
              end tell --table
    end tell --app
    set the clipboard to pasteStr
    display notification "Click once in a cell and paste." with title "Numbers"
    pasteStr
    --handler needed because when asked for a cell value Numbers 3 adds .0
    to stripDecimal(val)
              set val to val as string
              set {oTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "."}
              set s to item 1 of val's text items
              set AppleScript's text item delimiters to oTID
              return s
    end stripDecimal
    to lesserOf(x, y) --used to calculate partial payment to "last" creditor
              if x < y then return x
              return y
    end lesserOf
    --end of script

  • How to get my custom controller updated with the global custom controller?

    Hi all,
    I'm new to CRM Web UI and need some advice from the expert. Currently I'm working on component ICCMP_BT_DATES and noticed something weird with this component. When this component is first launch it display the dates of a service ticket correctly. However when I navigate to another screen, save a new ticket and back, the dates are not reflected. When I went in and debug the component, I noticed that the context is still tied to the previous ticket. I think the custom controller is not updated with the latest from the global custom controller.
    My question is how do I get my custom controller updated with the latest.
    Regards,
    Ricky

    You have to bind your custom controllers context node to the event NEW_FOCUS of the collection wrapper on the global custom controller.
    Best place to do this might be the CONNECT_NODES of the context of your custom controller.
    Get the global CuCo with GET_CUSTOM_CONTROLLER() and then the appropriate context node. Now:
    SET HANDLER yourMethod for lr_global_cuco->typed_context->thecontextnode->collection_wrapper activation iv_activate.
    Of course you have to implement a method similar to ON_NEW_FOCUS as it is on many other nodes.
    cheers Carsten

  • Populating the table with values in a jsp

    need help...
    i have a jsp with 2 textboxes lastname and firstname and a button submit.
    wen i click on submit i should get a table on the same jsp below the submit button and it should be populated with the values entered in the textboxes.
    Can you pl help me out the the functionality of populating the textboxes?

    add a onclick function to button...on that onclick u hav e to populate a div with fname and lname
    in tat new div giv bean :write so tat u can get wat u have entered in above text boxes

  • Populating table with combination of values

    Hi,
    I have table A with columns col1, col2, col3.
    I have 4 distinct values for col1 (d1, d2, d3, d4).
    I have 2 distinct values for col2 (e1, e2).
    I have 3 distinct values for col2 (r1, r2, r3).
    I need to write a SQL to populate table A with combination of of all the values, so I would have 24 records (4 * 2 * 3). How can I do that?
    Thanks.

    with a as ( select 'd1' col1 from dual union all
    select 'd2' from dual union all
    select 'd3' from dual union all
    select 'd4' from dual )
    , b as ( select 'e1' col2 from dual union all
    select 'e2' from dual )
    , c as ( select 'r1' col2 from dual union all
    select 'r2' from dual union all
    select 'r3' from dual
    select * from
    a, b, c
    CO CO CO
    d1 e1 r1
    d2 e1 r1
    d3 e1 r1
    d4 e1 r1
    d1 e1 r2
    d2 e1 r2
    d3 e1 r2
    d4 e1 r2
    d1 e1 r3
    d2 e1 r3
    d3 e1 r3
    d4 e1 r3
    d1 e2 r1
    d2 e2 r1
    d3 e2 r1
    d4 e2 r1
    d1 e2 r2
    d2 e2 r2
    d3 e2 r2
    d4 e2 r2
    d1 e2 r3
    d2 e2 r3
    d3 e2 r3
    d4 e2 r3
    24 rows selected.SS

  • How to create a table with values to be selected?

    is there a class in java that display a table a table of parameters and allow the user to select the parameter, and process the value associated with this parameter field?
    thx!

    Yep,
    JTable and MouseListener

  • [ADF BC | ADF Faces] Updating a table with values updated in transaction

    Summary: A table is based on a view with a bind variable. Based on some action, I update rows in the view so that they no longer satisfy the query. How do I update the table to reflect this?
    I have an ADF Faces page with a multi-select table component on it, mapped to an ADF Business Components view object. The view object has a bind variable (:Status), which is used in the query to only retrieve rows with a specific status.
    The user selects rows in the table that should have their status changed, and then hits a button to perform the action. In the backing bean for the page, the button click is processed and the selected rows are updated to a different status. At this point the transaction is not committed.
    Changing the status of these rows now means that they no longer match the where clause of the view object, yet they still appear in the table.
    My question is, how can I update the table so that rows which don't match the where clause are removed?
    This is a simplified version of the problem I am working on - this needs to work when rows that aren't in the table are being updated so that they now MATCH the where clause and rows may also be added or completely removed.

    Quite an interesting little problem....
    I have created a simple test case to illustrate your scenario - perhaps Steve M could comment...
    My scenario:
    1). create an EO based on the HR.EMPLOYEES table
    2). create an updatable VO based upon the aforementioned EO. Add "COMMISSION_PCT IS NULL" to the where clause.
    3). Add the VO to an app module as usual.
    4). Create an ADF Faces page by dropping the VO from the data control as an ADF table. Show only first name, last name, and commission pct.
    5). Add a command button to the page so I can call various code from the backing bean.
    Now, when I update the commision for the first record to ".1" and press the submit button (the one in the table actions facet), the update "takes" - I assume that it's just in the EO cache at this point. The record still shows on the screen, even though it no longer meets the where clause criteria.
    When I add some code to the command button (#5) to perform a commit - the record STILL shows on the screen after committing to the DB. I can make the record disappear by either (in the same backing-bean method that does the commit)
    a). Re-execute the iterator after the commit
    b). Call "clearVOCaches" on the application module (forces the iterator to re-execute)
    I even tried programmatically adding the where clause back in (via addWhereClause) and re-executing the iterator - no go. I suspect that the only way to do this would be to post the changes to the DB (without committing them) and then re-execute the query. This, however, would be a killer from a scalability perspective.
    John

  • Table with Values for Displaying Icons in a Report

    I have found a report that displays red, green and yellow lights to help users to quickly review the results.
    Code has statements such as WRITE: AT /1 '@5B@' AS ICON. "(GREEN LIGHT)
      WRITE: AT /1 '@5C@' AS ICON. "red light
    I would like to know where I can go in SAP to see what other ICONS can be displayed and what the code would be.
    For example - I found the writing WRITE: AT /1 '@5D@' AS ICON - and using @5D@ you get a yellow warning.
    Thanks!
    Scott

    Rob,
    Code value will not be available in table ICON.
    its available in Type group ICON
    ie SE11--> select Type Group > ICON> display
    Here is sample
    CON_2 ICON_DUMMY                     '@00@'."  PlaceholderIcon
    ICON_2 ICON_CHECKED                   '@01@'."  Checked; OK
    ICON_2 ICON_INCOMPLETE                '@02@'."  Incomplete
    ICON_2 ICON_FAILURE                   '@03@'."  Failed
    ICON_2 ICON_POSITIVE                  '@04@'."  Positive

  • How to update this table with values from another table ?

    Hi
    I have a table "regies". I want to replace the values of the column "regies.agent" by the value of the column "regies_personnes.id"
    As you see the tables have a common values column. ie regies.agent = regies_personnes.nom
    Table "regies" :
    Insert into "regies" (AGENT) values ('Humberdot Alain');
    Insert into "regies" (AGENT) values ('Danard Patrick');
    Table "regies_personnes" :
    Insert into REGIES_PERSONNES (NOM,ID) values ('Humberdot Alain',1);
    Insert into REGIES_PERSONNES (NOM,ID) values ('Danard Patrick',2);
    Before we have this
    sql>select agent from regies ;
    Humberdot Alain
    Danard Patrick
    After the update, the result should be
    sql>select agent from regies ;
    1
    2
    Thank you for your kind answer.

    You will face error if you have duplicates
    ORA-01427 Single row subquery returns Multiple rows.Try this way
    create table regies(agent varchar2(30));
    create table regies_personnes( nom varchar2(30),id number);
    Insert into regies (AGENT) values ('Humberdot Alain');
    Insert into regies (AGENT) values ('Danard Patrick');
    Insert into REGIES_PERSONNES (NOM,ID) values ('Humberdot Alain',1);
    Insert into REGIES_PERSONNES (NOM,ID) values ('Danard Patrick',2);
    Insert into regies (AGENT) values ('Humberdot Alain');
    Insert into regies (AGENT) values ('Danard Patrick');
    Insert into REGIES_PERSONNES (NOM,ID) values ('Humberdot Alain',1);
    Insert into REGIES_PERSONNES (NOM,ID) values ('Danard Patrick',2);
    commit;
    update regies r set agent = (select id from regies_personnes p where r.agent = p.nom
    and rownum=1)
      where exists (select id from regies_personnes p where r.agent = p.nom
    commit

  • Populating table with data from another table with fewer columns

    Hi,
    I have 2 tables:
    Table 1:
    Column 1
    Column 2
    Column 3
    Table 2:
    Column 1
    Column 2
    I want to populate Table 1 with all the data from Table 2, and populate Column 3 of Table 1 with numbers from a sequence. Is there a SQL stmt to do this? If not, what is the best way to do it in PL/SQL?
    Thank you
    Shailan

    CREATE SEQUENCE t1_seq
    START WITH 1
    INCREMENT BY 1
    CACHE 100;
    INSERT INTO t1( col1, col2, col3 )
      SELECT col1, col2, t2_seq.nextval
        FROM t2Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Create a Z-table and fill it with value and transport everything

    Hi
    I would like to create a Z-table, fill it with values and then transport everything.
    This table will not be updated in the productions system.
    Delivery class = C Customizing table, maintenance only by cust., not SAP import
    Data Browser/table view maint = Display/maintenance allowed
    Field: MANDT, etc. etc.
    Technical settings: Data class = APPL1, Size = 0, Buffering switched on, Fully buffered.
    I also create the Table maintenance generator
    When I fill my table with values, these will not be saved in my change request.
    What I'm doing wrong?
    Thanks   //  Peter B

    Go to
    se11>utilities>table maintenance generator-->there u fill
    Fungroup group (inthe function group u give any a z name related to ur table name it create automatically)
    package
    maintenance screen type and screen name
    After this save and activate.
    Then goto
    Utilities>TABLE CONTENTS>CREATE ENTERIES

  • Fill a table with a genil object

    Hello,
    I will fill a custom table with the class CL_CRM_GENIL_GEN_TABLE_OBJ. Could anyone explain me how to fill a table with this class?
    Thank and regards,
    Harris

    Hello,
    Thank you very much so far.
    I followed the instructions in the above link.
    I'm a little bit confused how to fill the table with values. The class CL_CRM_GENIL_GEN_OBJ offers me the method "Save". I can imagine, to use this method to fill my table with values.
    Could anyone describe how to proceed if I want to fill my table.
    Thank you very much so far.
    Best regards,
    Harris

  • Transport Table with Data from Development to Quality

    Hi
    Requirement:
    Transporting Table with Values from Development to Quality System.
    I have a Z* - table, appended one field at the end.
    I need to transport data along with the table structure from Development System to Quality System.
    In Development System, I have assigned the Transport request in Client 100(We can't add data to the table in this client).
    What needs to be done to migrate the new table structure with Values.
    Thanks in Advance
    Regards,
    Baburaj
    NOTE: the requirement is to transport table and table entries through a transport request.
    There should not be any manual update for the table in the target System (Quality System).

    Check the delivery class assigned to the table. Please see the documentation
    Delivery class
        The delivery class controls the transport of table data when installing
        or upgrading, in a client copy and when transporting between customer
        systems. The delivery class is also used in the extended table
        maintenance.
        There are the following delivery classes:
        o   A: Application table (master and transaction data).
        o   C: Customer table, data is maintained by the customer only.
        o   L: Table for storing temporary data.
        o   G: Customer table, SAP may insert new data records, but may not
            overwrite or delete existing data records. The customer namespace
            must be defined in table TRESC. (Use Report RDDKOR54 here).
        o   E: System table with its own namespaces for customer entries. The
    customer namespace must be defined in table TRESC. (Use Report
    RDDKOR54 here.)
    S: System table, data changes have the same status as program
    changes.
    W: System table (e.g. table of the development environment) whose
    data is transported with its own transport objects (e.g. R3TR PROG,
    R3TR TABL, etc.).
    or during client copy
    the data of client-specific tables is copied.
    Classes C, G, E, S: The data records of the table are copied to the
    target client.
    Classes W, L: The data records of the table are not copied to the
    target client.
    Class A: Data records are only copied to the target client if
    explicitly requested (parameter option). Normally it does not make
    sense to transport such data, but is supported to permit you to copy
    an entire client environment.
    or during installation, upgrade and language import
    behavior differs here for client-specific and cross-client tables.
    nt-specific tables
    Classes A and C: Data is only imported into client 000. Existing
    data records are overwritten.
    Classes E, S and W: Data is imported into all clients. Existing data
    records are overwritten.
    Class G: Existing data records are overwritten in client 000. In all
    other clients, new data records are inserted, but existing data
    records are not overwritten.
    Class L: No data is imported.
    Cross-client tables
    o   Classes A, L and C: No data is imported.
    o   Classes E, S, and W: Data is imported. Exisitng data records with
         the same key are overwritten.
    o   Classe G: Data records that do not exist are inserted, but existing
         data records are not overwritten.
    ehavior during transport between customer systems
    Data records of tables of delivery class L are not imported into the
    target system. Data records of tables of delivery classes A, C, E, G, S
    and W are imported into the target system (this is done for the target
    client specified in the transport for client-specific tables).
    se of the delivery class in the extended table maintenance
    The delivery class is also analyzed in the extended table maintenance
    (SM30). The maintenance interface generated for a table makes the
    following checks:
    o   You cannot transport the entered data with the transport link of the
        generated maintenance interface for tables of delivery classes W and
        L.
    o   When you enter data, there is a check if this data violates the
        namespace defined for the table in table TRESC. If the data violates
        the namespace, the input is rejected.
    Thanks,

Maybe you are looking for

  • 24" iMac--latest models. Which video card option to choose?

    I am going to buy a new iMac 24" with 4 GB RAM. There is a $300 difference between two of the models, based mainly, so far as I can tell, on a processor speed difference of 2.6 to 2.9 Ghz, but mainly on the video card. The lower priced iMac has a NVI

  • SE61 Documentation Maintenance Authorization

    Dear SAP, I am having problem when run Tcode F-28 Post Incoming Payment. System popup and error saying that no authorization. But i did check the user's authorization role and there's no problem with the role. It also saying that to check SE61 Docume

  • Urgent Help with Java!

    How do you open this program on Command Prompt?? okie here i go I saved on dive C: (java) folder and then i put javac GradeReport.java on command pro. but nuttin came up... why is that? I'll really appriciate if anyone can help me out. Thank you! imp

  • Sequencing of tasks in STS

    Hi,   We are on BI 7.0 and are implementing Integrated Planning. We have set up the Status Tracking System. It works fine. However, within a particular node in the STS, there are 5 Web Templates assigned and these have to be executed in a sequence du

  • Problems with G5s?

    I have the family pack and successfully installed Leopard on my G4 laptop but have numerous issues, even after a second archive/install, with my dual 2.3 G5 desktop and am wondering if others have similar issues: computer fails to respond to "sleep"