AM referenced by another AM

Hi everybody!
in a first page I created a new row as a currentRow in a VO1 from AM1. I don't have to commit this transaction so I used a GetTransaction.postChange().
Then in a second page contained by AM2 I want to get the VO1 from AM1 and modify attributs of the current row from VO1.
For that I already referenced AM1 from AM2 in JDEV and I use this code in the CO of the seconde page:
ApplicationModuleImpl am = getAM1();
(OR I tried ApplicationModuleImpl am = (ApplicationModuleImpl) findApplicationModule("AM1");)
ViewObjectImpl VO = (ViewObjectImpl) am.findViewObject("VO1");
Row row = interventionVO.getCurrentRow();
The AM and the VO are found but the current row is lost (= NULL) !!
Do you have an idea about how to get this current Row?!
thanks
Quentin

Yes, in my function pageContext.setForwardURL the variable retainAM is already true.
My problem is the transaction is lost if I change of AM. Maybe it is normal with this framework and I should change all the design of my development.

Similar Messages

  • How to access an attribute(this is referencing to another class) in a class

    Dear Gurus,
    I have to read an attribute of a class and that attributes type another class.
    I have intantiated the class and my question is how to read the attribute. I know I can not dirrectly read the attribute since this is another class. I think I have to first reference the attribute right? Please advise me.
    My code looks like below:
    data: lo_fpm                                 type ref to if_fpm.
    data: lo_msg_mgr                        type ref to if_fpm_message_manager.
    data: lo_component_manager    type ref to cl_fpm_component_manager.
    lo_fpm = cl_fpm_factory=>get_instance( ).    " cl_fpm_factory is a class which has a static method get_instance
    lo_msg_mgr = lo_fpm->mo_message_manager.
    lo_component_manager = lo_fpm->mo_component_manager.
    The above statement is giving syntax error. I do not know why.
    The basic difference b/n the two methods is if_fpm~mo_message_manager    type ref to if_fpm_message_manager    and
    mo_component_manager     type ref to cl_fpm_component_manager.
    Any help would be appreciated.
    Thanks,
    GSM

    Hello
    I cannot test the following coding because I do not get the singleton instance yet it should work:
    *& Report  ZUS_SDN_CL_FPM_FACTORY
    *& Thread: How to access an attribute(this is referencing to another class) in a class
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1398429"></a>
    REPORT  zus_sdn_cl_fpm_factory.
    DATA: go_fpm TYPE REF TO cl_fpm.  " class implements if_fpm.
    DATA: go_msg_mgr TYPE REF TO if_fpm_message_manager.
    DATA: go_component_manager TYPE REF TO cl_fpm_component_manager.
    START-OF-SELECTION.
      BREAK-POINT.
      go_fpm ?= cl_fpm_factory=>get_instance( ). " cl_fpm_factory is a class which has a static method get_instance
      CHECK ( go_fpm IS BOUND ).
      go_msg_mgr           = go_fpm->mo_message_manager.
      go_component_manager = go_fpm->mo_component_manager.
    END-OF-SELECTION.
    Regards
      Uwe

  • Contact Person is referenced by another object.  , 'Sales Quotations ** '

    Hi, experts:
    I am using B1WS updating BusinessPartner, and I find that the
    myBusinessPartner.ContactEmployees(i).InternalCode
    changed each time updating BusinessPartner, even if I do nothing at all.
    If any ContactEmployee be referenced by another object such as sales order, it would report error!!!
    so, plz share with me, if anyone come to this problem.
    My source code:
    Dim myBusinessPartnersService As BusinessPartnersService.BusinessPartnersService = New BusinessPartnersService.BusinessPartnersService
                Dim msgHeader As BusinessPartnersService.MsgHeader = New BusinessPartnersService.MsgHeader()
                msgHeader.SessionID = +SessionID+
                msgHeader.ServiceName = BusinessPartnersService.MsgHeaderServiceName.BusinessPartnersService
                msgHeader.ServiceNameSpecified = True
                myBusinessPartnersService.MsgHeaderValue = msgHeader
           Dim myBusinessPartnerParams As BusinessPartnersService.BusinessPartnerParams = New BusinessPartnersService.BusinessPartnerParams
                myBusinessPartnerParams.CardCode = +CardCode+
                Dim myBusinessPartner As BusinessPartnersService.BusinessPartner = New BusinessPartnersService.BusinessPartner()
                myBusinessPartner = myBusinessPartnersService.GetByParams(myBusinessPartnerParams)
                myBusinessPartnersService.Update(myBusinessPartner)
    many many many thanks
    Constantine

    Thank you, Yatsea.
    I managed to remove lines in ContactEmployees. The question is all InternalCodes are changed, which shouldn't have been.
    I guess all related records are removed, and inserted again.
    Did this happen to you during your test?
    I just got B1_ 2007_B_PL08 released on Nov.13. Gonna test again under PL08.
    Kind regards
    Constantine
    I test again under PL08, it doesnot help.
    Edited by: Constantine Ho on Dec 4, 2008 5:09 PM

  • How do you add a Day to a Date Referenced from another field

    I tried this and all of the other Date Calcs in the other posts but can't get it to work. The field (Read Only Text or Calculated Date field:
    var MyDate=xfa.resolveNode("form1.#subform.RepeatableSubform.#subform.StartDate")
    if(HasValue(MyDate)) then
    Num2Date( (Date2Num(MyDate.formattedValue, "EEEE, MMMM D, YYYY") + 1), "EEEE, MMMM D, YYYY")
    null
    endif
    Any Suggestions?

    Try it like this...
    Num2Date( (Date2Num(MyDate.rawValue, "YYYY-MM-DD") + 1), "EEEE, MMMM D, YYYY")

  • I want to delete a column that is referenced in a formula in another column without deleting the other column

    How can I delete a column of numbers that are referenced in another column without deleting the other column?

    select the column to delect by click in the column header
    select the contextual menu for that column by clicking (and holding) the down arrow:
    select "Delete Column" to remove the column:

  • Reference columns from another query

    I've made XML data template in Report Builder, which consists of multiple data queries and groups. When I use for each XML structure in Word template builder to obtain data, I get data only from one data query, and blanks for fields that I referenced from another group.
    Is there any way to solve that problem.
    Thanks in advanced for the answers.

    It seems to me that you are trying to get to a higher/parent element from within a lower/child group. So, use the ../ notation to get up to an element in a parent group. And add ../ as you go higher and higher. ex. <?../../CHECK_DATE?> Obviously, for referencing lower group, you just open the group with a for-each.
    Make it a habit to open and close your groups for ease of readability.
    Shree

  • Can I see Referenced Albums for Images in a Project in File View?

    I am deleting duplicates in a File View in my Projects and I have gone ahead and /highlighted/ the images that are in my Albums with various colors (purple, red, green etc). This was a very helpful suggestion so that I can now rather easily see what Images are definitely being "used" or referenced by another Album.
    Am I correct in thinking that there is no way to see this Album in a File View COLUMN or Columns so that I can explicitly know where these Images are being used? Does that question make sense? I mean, is there some widget or plugin (or even some file in the Aperture database that I could open) that would let me see this somehow?
    Thanks!

    for planning services I am assuming that you are using service activity
    check if determine plan cost is set up in the network header
    secondly make sure that the plan costing variant is set up with the valuation variant  to define where to get the plan values from

  • Extractor on Z table with currency fields referenced from T001

    Good morning.
    We have a requirement to extract a Z table (keys Material Number, Plant) to BW.
    In trying to build a datasource on this table, I get a message saying currency fields referenced from another table.
    So, the key figures in this Z table are referenced from T001 (which has Company Code as key
    How do I tie these two tables? I was thinking if I could get Company code from any of the Material Master tables then I could include that in the view but haven't been able to Material and Company Code relation yet.
    Any thoughts on how to go about building this datasource are greatly appreciated!

    In your datasource just include the table name and check the datasource it should be ok.
    The reason it asks for these tables could be that the Z table that you are using should be using a datatype "CURRENCY" and currency will by default have USD or EUR etc associated. So when you include the appropriate "T" table it knows to make connection. You need not have to write exits to populate the currency fields.
    Hope this helps.

  • Fire plug on another window

    Hi All,
    I need to use a popup window that has a startup plug that must be initialized. The window contains a view that is referenced from another DC (That means that the only way to communicate with it is via plugs).
    I know how to do the popup, but I don't know how to call its startup plug directly from the code.
    The final scenario should be as follows:
    1) The initial view has a button
    2) When pressing the button the referenced view is displayed as a modal popup (I need to pass parameters to this view).
    3) In the popup there is also a button that when clicked sends the selected information and closes.
    4) The selected information is displayed on the initial view.
    Thanks,
    Aviad

    Hi Aviad,
    For creating and getting the values from one window to other you can use the Events. Follow these steps:
    1) Go to the Component controller. Create a new <i>EVENT</i> there, say <b>setValue</b> and a Method say <b>setFinalValue().</b>
    2) Create a attribute of type string in controller context, say <b>text</b>.
    3) In the 1st window from which you want to pass the value, create a METHOD, say <b>SettingValue();</b>
    4) In this method (ie:<i>SettingValue()</i> ), write a code to set the value of text and call the event of the controller.
    To the the value of text:
    wdThis.wdGet<Controller_Name>().wdGetContext().currentContextElement().setText("Any Value");
    To call the event:
    wdThis.wdGet<Controller_Name>().setFinalValue();
    5) In the controller code write this code in the setFinalValue method.
    public void setFinalValue( )  {
        //@@begin setFinalValue()
           wdThis.wdFireEventSetValue();
        //@@end
    6) In the next window where you want to access this value create a Event Handler in the View of it.
    <i>Methods-> New - >Event Handler-> Next -> Give name (say <b>setTextForCell</b>). Select the Event Source (ie: <i>Name of the controller</i>) and set the subscribed Event (ie: <b>setValue</b>).</i>
    7) In the implementation write this code to get the set value
    public void setTextForCell(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin setTextForCell(ServerEvent)
           String text = wdThis.wdGet<Controller_Name>().wdGetContext().currentContextElement().getText();
         Use this value anywhere you want
        //@@end
    I hope this will solve your problem.
    Regards
    Pravesh
    Ps: Please consider rewarding points if helpful and solved.

  • Merge Referenced Data

    Hi everybody,
    I would be interested to know how you handle merging of main table records that are referenced by other records.
    During merging of records, MDM deletes the matched records and creates a new one with merged data. However, it is not possible to delete records that are referenced by another record through Lookup(Main). Therefore the merge operation will fail.
    Is there any workaround for this? Relationships are not an option.
    Best regards
    Christian

    Hi Laurent,
    thanks for your answer. I tried to reproduce it with ecore files and failed. It must depent somehow on matches, diffs and dependencies in my model. If both attributes in ecore have the same name, the attribute is matched and let to a real conflict.
    I will investigate and write again, if I know more details.
    Thanks
    Benjamin

  • No rows are loaded after the execution

    Which product and version are you using?
    ans client 9.2.0.2.8 and db 9.2.0.4
    - On which platform and version is it installed?
    windows 2000
    - Is this part of Oracle Applications (i.e. Financials, Inventory, etc.)?
    its part of 9ids. I installed data warehouse in saperate home
    - Has this ever worked correctly? If yes, what has changed?
    No. This is my first project and we are evaluating oracle over other warehouse
    product.
    All is working except the rows are not loaded. Mapping is validated correctly. Deployed successfully, executed successfully from the deployment manager but 0
    rows are loaded. You get a small pop up window after execute of a mapping. Log message
    at the end of the execute shows insert 0, update 0, delete 0 and merged 0.
    The mapping consists of two table operators. One from source table from differenct schema and one for target. There is nothing so complicated here. All I want is
    to copy the data from source to target table through warehouse. My question really what do I need to insert the record? Once the mapping is defined, deployed and executed should not the rows be loaded?
    Everything else is working. Like creation of target tables and so on.
    The source operator properties are bound_name-eqpthist_qtr, primary source-no loading type-Insert.
    The target has bouondname-test, primary source-no, loading type delete/insert.

    after the execution there errors whatsoever. It executes with out any error.
    Its working when I replace the source table with one from the target schema itself. I mean a copied table to target using slqplus. I uses any tables under its schema itself then all the rows are inserted. Its not working when copying/referencing from another source schema. THe target user is given select any table, all object privileges of the source table, even dba role. Still no rows are loaded.
    the target has DBA,CONNECT,RESOURCE,AQ_USER_ROLE, WB_A_VLSIOWRUN, WB_D_VLSIOWRUN, WB_R_VLSIOWRUN, WB_U_VLSIOWRUN, SELECT_CATALOG_ROLE.
    The target has system privs as
    CREATE VIEW
    CREATE TABLE
    ALTER SESSION
    CREATE SESSION
    CREATE SYNONYM
    CREATE TRIGGER
    CREATE ANY TYPE
    CREATE SEQUENCE
    CREATE SNAPSHOT
    CREATE DIMENSION
    CREATE INDEXTYPE
    CREATE PROCEDURE
    SELECT ANY TABLE
    DROP ANY DIRECTORY
    DROP PUBLIC SYNONYM
    CREATE ANY DIRECTORY
    CREATE DATABASE LINK
    GLOBAL QUERY REWRITE
    UNLIMITED TABLESPACE
    CREATE PUBLIC SYNONYM
    SELECT ANY DICTIONARY
    CREATE PUBLIC DATABASE LINK
    and the following privs on the source table as well
    SELECT
    ALTER
    DELETE
    INDEX
    INSERT
    UPDATE
    REFERENCES
    ON COMMIT REFRESH
    QUERY REWRITE
    DEBUG
    FLASHBACK

  • How to modify a column name & How to modify a constraint name

    How to modify a column name?
    How to modify a primary key constraint name if the pk has been referenced by another foreign key?
    Thanks.

    Hi,
    What version of oracle are you using? If it is 9i,
    then you can the command
    alter table <table_name> rename column <column_name> to <new_column>;
    if it is 8i or earlier, you can create a view with the required names.
    hth
    Always post the oracle version and the platform you are using to get better response.

  • How to disabled the input parameter dialog box in crystal reports 9

    Post Author: Murtaza
    CA Forum: General
    Hi friends,I have got stuck with a weird problem.  In my
    crystal report, I have set up some input parameters.  I am setting
    values for these parameters somewhere inside code.  But I don't
    want to show the default input parameter dialog box. Under any case,
    user should not see the ugly parameter dialog box that crystal
    presents.   Please suggest me how I can achieve
    this.  I cannot do this through code, because our environment does
    not allow that.  I have to do this in crystal reports viewer and
    by setting some property of the crystal report object. But everything
    must be done on UI, not through code. So, the solution should not be the following. 
    // step before step 1
    // **** the line needs to refer to the report and be set before setting
    ReportSource in the viewer to myReport
    myReport.EnableParameterPrompting = False
    Any help would be greatly appreciated.  Murtaza

    Post Author: sleahcim
    CA Forum: General
    Hi Murtaza,
    Unfortunately, I am not aware of any method to suppress the prompt for the input parameters, but still use them.  It is truly a design-related issue for the report.  The reason that the prompt appears is because the parameter it is prompting for is used in the report; in particular either the Group or Record Selection, or referenced in another formula.
    The only way I can think of to not show the prompt, is to not use the parameter in the report.  You did mention that you are setting the value of the parameter inside of the report -- are you doing this through using a formula?  Perhaps you can just remove the parameter and only use the formula that you are setting the default values with.
    -Michael

  • Getting Error while Interfacing the Data in OM

    Hi Gurus,
    i am getting following error while i am running the interface in order management for interface the data into standard tables
    the error is as follows
    "This Customer's PO Number is referenced by another order" . This error is for the header table
    "You are trying to insert an existing order or update an order that does not exist. Please enter a correct operation code. ;" . This error is for the Lines table
    can anyone help me out wat is the cause and solution for it.
    any inputs is highly appreciable.
    thanks

    Hi,
    Please refer to following metalink document :
    Sales Order Import Fails With Error Customer Po Number Referenced By Another Ord [ID 778895.1]
    Regards,
    Vikas

  • Not able to delete the interfaces in odi designer - Resolved

    While deleting the interface i am getting error, see below:
    This object is referenced by another object. View the details for more information.
    You may also see where this object is used in this hierarchy.
    I don't think this interface object is referenced by another object.
    Can you tell me how to delete the interface.
    Thanks in advance.
    Message was edited by:
    Mani

    Hi Mani,
    The hierarchy is like Data Models/Stores are Used In Interfaces, Interfaces are used in Packages.
    So if you wanna delete anything in this hierarchy you need to delete the referenced one.
    For deleting an Interface you no need to delete the data models/stores, you need to delete the interface in Package where its used.
    Cross check again and there should be some reference in the Package for that Interface.
    Also you can't able to use an Interface at MODEL.
    P.S: Sorry for mess up you...:)
    Thanks,
    Guru

Maybe you are looking for

  • How do I add certain songs and playlists to my iPhone but not others?

    Hi all, I recently installed iTunes 11.0 onto my MacBook Pro, and I yearn for the days of far simpler content management.  All I want to do is add certain songs and playlists from my computer onto my iPhone without re-syncing the entire thing (every

  • Hotkey (Ctrl+B) is not working after migration from Forms 6i to 10g

    Dear Gurus, Need your help regarding the following problem: After migrating from Forms 6i to 10g (Rel 2), Ctrl+B (used to list the blocks in a form) hotkey is not working anymore (all other hotkeys are working fine). I've checked my FMRWEB.RES and it

  • FW800 Card causes G4 all firewire ports to go dead

    I tried to install an Allegro Firewire 800 card from Sonnet into my G4 1GHz Dual Processor G4. I put the card in, connected my firewire drive and got the following outcome. 1. When I re-booted, the computer hung at the blue screen that comes right af

  • I am having alot of dropped calls in area code 21826

    I have the Iphone 5s and my wife has the Samsung s5 and the last couple week I can not make or receive a call with out it being dropped. We have lived in this house for over a year with no problems. I also have a problem with my text messages getting

  • Skype 7.0 adds country code to Mac contact phone n...

    [Topic title updated by moderator to be more descriptive. Original topic title was: "Re: New Skype for Mac 7.0"] I recently upgraded my Mac to version 7.0. When I opened my contacts, I noticed that all of my contact numbers now had the country code +