cancel
Showing results for 
Search instead for 
Did you mean: 

SUP 2.0 Update Operation Fails

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Karthik,

Thanks for your reply.

_update(false) method is used to update in the local db. To change the status. I have Update operation name as process(). for that method need to pass any values?

Regards,

Ram

Answers (0)