Can Transactional Transient fields be modified outside of transaction in jdoPostLoad?

It is not clear from specs whether Transactional Transient fields be
modified in jdoPostLoad. The specs state "Non-persistent fields whose value
depends on values of default fetch group fields should be initialized in
this method". However it can't be done for Transactional Transient (which
are Non-persistent ) fields outside of transaction. Often those
"Non-persistent fields whose value depends on values of default fetch group
fields" should be transactional but they can't as there is no way they can
be initialized in jdoPostLoad()
From specs:
10.1 jdoPostLoad
public void jdoPostLoad();
This method is called after the default fetch group values have been loaded
from the StateManager into the instance. Non-persistent fields whose value
depends on values of default fetch group fields should be initialized in
this method. This method is not modified by the enhancer. Only fields that
are in the default fetch group should be accessed by this method, as other
fields are not guaranteed to be initialized. This method might register the
instance with other objects in the runtime environment.
The context in which this call is made does not allow access to other
persistent JDO in-stances.

Right now Kodo allows modification to Transactional Transient fields outside
of transaction. However it would throw an exception if I attemp to modify a
collection which is declared as Transactional Transient
"Alex Roytman" <[email protected]> wrote in message
news:b3bsta$13f$[email protected]..
It is not clear from specs whether Transactional Transient fields be
modified in jdoPostLoad. The specs state "Non-persistent fields whosevalue
depends on values of default fetch group fields should be initialized in
this method". However it can't be done for Transactional Transient (which
are Non-persistent ) fields outside of transaction. Often those
"Non-persistent fields whose value depends on values of default fetchgroup
fields" should be transactional but they can't as there is no way theycan
be initialized in jdoPostLoad()
From specs:
10.1 jdoPostLoad
public void jdoPostLoad();
This method is called after the default fetch group values have beenloaded
from the StateManager into the instance. Non-persistent fields whose value
depends on values of default fetch group fields should be initialized in
this method. This method is not modified by the enhancer. Only fields that
are in the default fetch group should be accessed by this method, as other
fields are not guaranteed to be initialized. This method might registerthe
instance with other objects in the runtime environment.
The context in which this call is made does not allow access to other
persistent JDO in-stances.

Similar Messages

  • Kodo allows to modify transactional instances outside of transaction bug?

    Court ccc = Court.newInstance();
    jdo.pm().makeTransactional(ccc);
    //Should throw exception but does not
    ccc.setDescription("DDDDDDDDD");

    Court ccc = Court.newInstance();
    jdo.pm().makeTransactional(ccc);
    //Should throw exception but does not
    ccc.setDescription("DDDDDDDDD");You can modify transactional instances outside of transactions.
    Transactional instances are supposed to act just like transient instances
    except that modifications within transactions can be rolled back.

  • Modify Base Date field (INVFO-ZFBDT) in MIRO transaction

    Hi everybody,
    I have to modify the base date in MIRO transaction.
    This field must be filled with the invoice date, set before and it must be in edition only.
    Is there any way (Badi, variant transaction, etc.) to make it possible ?
    I heard it was possible through payment terms (only to set the date), but i can't make it work.
    Thanks in advance for your answer.
    Olivier

    And if there is no payment term then there is no use of baseline date becacuse baseline date helps you for the discount
    To specify when exactly an invoice is to be paid, you agree terms of payments with the vendor. These terms of payment contain the baseline date from which your cash discount period applies. If an invoice was blocked for payment for a long time, your cash discount deadline could expire. If you release this invoice, you can select the field Move cash discount date on the initial screen of the invoice release transaction and retain the agreed cash discount.

  • Modify Transaction Type - field BEWAR

    Can "Transaction Type" field BEWAR be updated in posted documents?  Field BSEG-BEWAR is not an allowable field for change in OB32.
    We have created a new transaction type and would like to update many documents with this new Transaction type for reporting purposes.  Is there a way other than OB32 to select a field as changable?
    Thanks

    Hi Jeff,
         the transcation type is normally used in the consolidation ledger, and balances are kept per transaction type. Any field which is also used  in other ledgers cannot be modified in G/L documents only. It always means 'reverse in G/L and post with new value'.
    Ingrid

  • Can JVM security policy be modified to access field values of private field

    Can JVM security policy be modified to access field values of "private" field in a Class?

    See http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/appA.html#ReflectPermission.
    Note that you will have to use reflection to access the fields once the security policy allows you to supress the access controls.
    Chuck

  • Can I update fields of DataTable where BDoc class is "Modifiable Read"

    Can i update fields of the DataTable in a BDoc which BDoc class is "Mobile Application(Modifiable read)"
    and Mobile Application Processing type is "(Standard)"

    Hi,
    the BO relations ACTCONTACTS and ACTEMPLOYEES from BOACTIVITY were based on the qBDocs ACT_CONTACTS resp. ACT_RESPONSIBLES with the properties mentioned by you so this should be possible...:-))
    Regards,
    Wolfhard

  • What report will tell me which tables/fields are used in a transaction

    Hi
    I'm new to SAP, but was wondering how I can navigate the data dictionary so I can get a list of all the tables, fields and field details for all fields used in the following transactions: IW29, IW39 and IW49N.
    Thanks and take care,
    Shayne

    Hi,
    Welcome to SAP!
    There are two ways to find what are all the tables used in the program,
    1. Easy & Effective way is to use ST05 and do SQL Trace.
    2. Normally, when you want to see the corresponding code in the program related to database activities, then do this,
        Goto SE38 --> Put the report name (say RIQMEL20) -> Press F9 --> Select data base activities (SELECT, DELETE, MODIFY, INSERT). Click Ok. This will show all the program lines.
    Regards,
    Vamsi

  • VA01 Transaction variant Field Modification

    Hi All,
    I need to deactivate ( make input = 0 ) certain fields in VA01 txn which has a transaction / screen variant. Everything thing works fine but the problem is, the other fields which was deactivated (make input = 0 ) using transaction variant appears in the screen ? Can you people tell how to solve this issue ? The user wants the screen as per the transaction variant. I am using the exit "FORM FORM USEREXIT_FIELD_MODIFICATION ?
    Thanks.

    The scenario is such that when the sales order is created against the invoice, some fields in VA02 still can be modified. but the user dont want that to be happened beyond the certain date. But it could be mofied with in the certain date. Now the problem is when i modify the screen as per the requirement, the fields which are hided using transaction variant appears in the screen.  when i comment my code...
    the transaction variant works properly ( i.e the fields got hided ) my code would be like.
    Date logic....
    IF SCREEN-NAme = VBAK-ZTERM.
    input = 0.
    modify screen.
    endif.

  • Regarding Adding Custom Fields to VTTK and VT01n transaction.

    Hi,
    We need to add few custom fields to Shipment header table VTTK.
    Also, these fields should be reflected in 'Additional Data' tab of transaction VT01n/VT02n for editing and should be available for display in VT03n.
    If anyone has done this, please provide the approach.
    Thanks,
    Arshad

    Hi Arshad,
    The fields suppl.1 to suppl.4 and Addit.text 1 to Addit.text 4 are the reserve fields available in additional data tab of shipment.
    If those fields are not being used already, u can utilise those fields for your purpose. Please check the documentation for the fields ADD01 to ADD04 and TEXT1 to TEXT4 in VTTK table.
    The description of the fields can be modified from CMOD transaction.
    Regards,
    Poornima

  • How can I pass field value betwen view in ICWC?

    Hi experts,
    I am new to this BSP programming. I have some requirements to modify standard ICWC in CRM 5.0
    Hope can get some advices and helps here.
    I have added a new field called <status> to context note SEARCHCUSTOMER in BupaSearchB2B view and also the same field name to context note CUSTOMER in BupaCreate view.
    I have added the field into both the HTM views and able to execute thru WebClient. However, I have one problem in passing the <status> value from BupaSearchB2B view  to the BupaCreate view when I click on the 'create' button.
    I do search and saw this thread How can I pass field value beetwen view in IC Web Client? , but i cant figure out how it works.
    Do I need to create the field <status> to context note CUSTOMER in BupaSearchB2B? Currently the context note does not have any attributes.
    Really appreciate for any help.
    Edited by: mervyn tay on Apr 7, 2009 11:42 AM

    solved by myself...
    code in the CREATE_ACCOUNT method.
            ev_entity->set_property( iv_attr_name = 'ZZICNO'
                                     iv_value = lv_icnum1 ).

  • Why do I keep getting the "modified outside Illustrator" box?

    I work with Illustrator and Photoshop both open simultaneously, moving Illustrator parts into Photoshop scans and importing Photoshop scans into AI for use as templates. Both are Adobe apps, right? So why do I get this warning when I work on the Illustrator file: "This File has been modified outside Illustrator. Do you want to continue?" It is matched by an equally imbecilic query in Photoshop, where I get the warning: "The disc copy of this file has been modified. Do you still want to save it?" or words to that effect. Am I missing something here? I’ve thought about it, and I honestly can’t imagine a situation wherein someone  with enough intelligence to use either or both apps as advertised, meaning that they want to use Photoshop and Illustrator to modify images, could find these warnings helpful.
    Who came up with these, and why is my computer asking me such stupid questions? And why isn’t there a “Don’t ask me this stupid question again” check box in the dialogue box? Please tell me these moronic inquiries will not appear before me in CS6.

    auto-update open documents.. in the preferences, at least for Photoshop. Illustrator is always going to warn you when link data changes.

  • Aggregate value of a transient field is not updated from cache

    Hello together,
    A view object has a transient field which display the count of records from a view accessor. In the EO for the view object ( of the view accessor) opearations on rows are perfomed from a different view object, this changes are not reflected in the transient field value.
    I know is not very clear,here is sample:
    Woker VO
    -Worker EO
    Worker2Department VO
    -Worker2Department EO
    Department VO
    -Deparment EO
    -workerCount: WorkersCounterViewAccesor.count("WorkerID")
    WorkerCounter VO
    -Worker EO
    -Worker2Department EO
    attribute binding: DepartmentID
    If from Worker2Department records are deleted or inserted, the value of workerCount is not updated.
    I've try to executeQuery on each view object,without success. I've notice that the WorkerCounter VO is having always the same records count after Worker2Department VO is updated.
    If the method getDBTransaction().postChanges() is invoked, then the data is correctly fetched but then there are different other problems, and i would like to avoid using of postChanges().
    My question is: why when rows are inserted/removes into/from a view object the changes are not visibile on different view objects declared for the same entiy object? Or how to make sure that the changes from an entity object are reflected in each view object that are using it?
    Thank you a lot,
    Bogdan

    Hi,
    If you place the 0WBS_ELM_EX  in the ODS ,either in the key field or in the data field , you can find it as a charecteristic in the report and you can drag it into the rows.
    To reflet the changes that you made to the masterdata , you need to run the attribute change run every time you load the data .
    regards,
    haritha

  • Transaction Type field not getting value in F-05 transaction

    Hi All,
    When ever we are doing a reverse posting for foreign currency valuation using F.05 Tcode it will create a BDC session where we can execute this batch Input session thru SM37.
    This will use F-05 Tcode to post the the entries, but the problem is one of  the field Transaction Type is not getting value for some of the GL account numbers range. This is totally SAP standard program take cares of it. Transaction type field value shuld be populated by '990' value for this GL account range, this is fixed. So is thr any User exit or Screen exit for this Tcode or how we can populate the value....
    Help me...
    Chandar
    Edited by: Bala Chandar on Feb 12, 2009 1:25 PM
    Edited by: Bala Chandar on Feb 12, 2009 1:28 PM
    Edited by: Bala Chandar on Feb 12, 2009 1:33 PM

    Hi Mr/Mrs Bala Chander,
    I am having the same problem.
    When running F.05 a BIM is created for GL account X. GL account X has a field status in which transaction type is defined as a required field because of BCS / ECCS. We have a substitution rule in place which should default the transaction type, based on several criteria. But when executing the BIM, I see that nothing is filled in field transaction type. Did you find a proper solution for your problem? Changing the field status is not an option in my opinion.
    Regards,
    Joep

  • Is it possible to add PERNR field to MIGO or MB1A transaction screens?

    Hi,
    Ours is a service industry with @ 10000 employees and we have implemented SAP with MM & HR module. We issue uniforms to all the employees when they join (new Joinee) and again once in January every year as reissuance. We intend to keep size information in employee masters in HR along with station code, designation, department and cost centers.
    At present we are using two fields goods recipient and unloading point to mention employee code and type of issue (new joinee or reissuance). This is because employee code (PERNR) field is not there in MIGO_GI screen or MB1A screen.
    Is it possible to add PERNR field to any of these transaction screens?
    If added then we can fetch the relevant information about issuance of information along with station code, designation, department in Z report.
    If possible, then how it can be done?
    Thanks in advance,
    Satish

    Hi ,
    as i understand we can add new fields in a transaction through user exit /field exit. so please discuss with your ABAP consultant & try to find out all the exit available for MIGO/ MB1A. then you have to decide which one will suit you. here you have to consider some factors like whether you need to enter values in the field or the field needs to fatch any value from any other table & should populate here.
    the ABAPer can then write the code & add your required logic here.
    i am not very good in this subject. just tried to share what ever i knew.
    regards,
    anubhab

  • Set the default field value to transaction code field, when calling from WD

    Hi all,
    Can we pass the value in a input field of a standard transaction calling from WD application. Suppose we are calling a transaction VA03 in an external window, then how will be pass the value in the VBAK_VBELN screen field.
    Is there any way to pass the value to this transaction field. I have also tried out to set the parameter ID 'AUN' for VA03 transaction VBELN field. But it did not work for me.
    Is there any way to set the default field value to transaction code field, when calling from WD?
    Please suggest, if anyone have any idea.
    Thanks
    Sanket

    Hi,
    I am using the below code to open a standard transaction. It will help you to explain my point more easily.
    DATA: url TYPE string,
              host TYPE string,
              port TYPE string.
    *Call below method to get host and port
      cl_http_server=>if_http_server~get_location(
         IMPORTING host = host
                port = port ).
    *create URL
      CONCATENATE 'http'
      '://' host ':' port
      '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'VA03'
       INTO url.
    *get the window manager as we are opening t code in external window.
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component TYPE REF TO if_wd_component.
      DATA lo_window TYPE REF TO if_wd_window.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
    call the url which we created above
      lo_window_manager->create_external_window(
      EXPORTING
      url = url
      RECEIVING
      window = lo_window ).
      lo_window->open( ).
    Note*
    One more query I want to add to this thread, that is there any possibility to call a custom transaction as well?

Maybe you are looking for

  • RemoveRow in Jtable

    I have 2 questions 1.This above code deletes a Row , but does not delete the row I select. public void Edit() {       int rows = defaultModel.getRowCount();       if (functions.getSelectedIndex() == 1) {           int[] newrows = newtable.getSelected

  • Page Layout mode: canvas colour

    Is it possible to change the canvas colour in Page Layout mode? Andy

  • Archive log mode

    Hi i m using oracle 10gR2 after installation i enable the archive log mode. 1) How can i determine the size of archive log? 2)When i enable the archive log mode after switch it genrate the second archive (01_MF_1_2_43.ARC) instead of first (01_MF_1_1

  • How to extend same material into different plants?

    Hi all, how to extend the same material into different plants anybody please tell me. thanks s.muthu

  • Sound won't work for MSI K8 Neo2 Platinum

    I just finished building a rig with a MSI K8 Neo2 Platinum mobo, but the only problem is that I can't get any sound. I get beeps, but no real sound. I tried reconnecting the wires and it looks like it's on in the BIOS so I don't know what the problem