Message Boards

OOABL Issue

Sirseh Bagh, modified 2 Years ago.

OOABL Issue

Post Date: 12/6/23 (Bronze, 3 Posts) Recent Posts
Hi all.
I am stuck on an issue hoping you can help. 
A customer wants to add Confirmed By (SOCustomUser1) to Sales Order Header when a SO is confirmed using the action. The action already assigns the header's Confirmed Date and Is Confirmed. 
I created an extended class for SalesOrderHeader with 2 methods: Update and UpdateWithConfirmation. I added some debugging msgs in both methods. 
When I manually update the SO, i get the msgs in the log file in UpdateWithConfirmation indicating that what I have done is correct. However, when I run the Confirm action, I don't get any msgs. Since the Confirmed Date and Is Confirmed are being changed with the action, I assume that at some point, one of the 2 update methods will be called. However, that doesn't seem to happen.
Another approach I tried was to extend the SalesOrderConfirmation class. I know it is an action, but it has its own BC, so I thought I would try it. I added the method SubmitSalesOrderConfrimation, and I put msgs in it. The msgs are displayed in the log file, but the ds that is passed as input-output has no data which doesn't make sense to me.
Any help is highly appreciated. 
Thanks,
Sirseh
Kashinath Mali, modified 2 Years ago.

RE: OOABL Issue

Post Date: 6/6/24 (Bronze, 2 Posts) Recent Posts
Hi Sirseh,

The actions from any standard business components are built using action business components (Coded) with physical class files. You can get the URI of these business components from the "Business Component > Views > Actions" of those business components.

The "Confirm" action of the Sales Orders screen is built using SalesOrderConfirmation action BC, which has the physical file "SalesOrderConfirmation.cls" to handle the event on click.
For your particular requirement, you should override the "SubmitSalesOrderConfirmation" method and add a custom code for updating the sales order field before calling to super procedure.
You can get the sales order number from the "ttSalesOrderConfDetail" temp table and update the sales order field using platform API.

To investigate your case, where you are not getting data, could you please be so kind as to share the part of the code that you have written?

Thanks & regards,
Kashinath Mali

Message place holder