on 02-14-2012 5:31 AM
Hi Team,
I am developing MBO Native application in SUP 2.0. I want to approve my PO , so i have added Update operation in the MBO. Now i have List, Detail and Structure MBO. I have wriiten the code to update.
STR_HEADER process = new STR_HEADER();
process.setInputValues(..);
DETAIL dtl =DETAIL .findByPrimaryKey(poNumber);
dtl.setValues(..);
dtl.setCOMMENTS(commentEF.getText());
dtl.setSTR_HEADER(process);
dtl.save();
dtl.__update(false);
dtl.submitPending();
<>DB.synxhronize();
But it is not updating in the Backend.
Regards,
Ram
Hi Ram,
Need to understand one thing, why is it that you are setting Update(false) in the client code. If there is any specific reason for this please do let me know. Other wise please try and follow the below steps.
1. Call the method from the class where you have defined update. (Eg: While creating update operation in MBO Employee, you have named it as Approve, then the generated code will have the Approve method in the Employee class which you need to call before performing save operation)
2. Save the values like you have done.
3. Do a Submit Pending
4. Call the Synchronize MBO Method
The above flow has worked for me. Hope it helps you as well.
Regards,
Kartik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.