Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all articles
Browse latest Browse all 8768

how to check sales order statutes while saving the sales order

$
0
0

Hi,

 

We can configure the status profile functionality  in which we can have various status in the sales order. The status are stored in table JEST .

 

we have  three status in sales order. It is CREA, CONF and PLAN.

 

When the sales order is created .It is always in CREA status (before save of sales order ). When we save the sales order and if the schedule lines are confirmed , then after saving the status changes to CONF. We can see this in sales order change mode.

 

If the schdule lines are not confirmed at the time of saving  the sales order,then the sales order remain in CREA status. This is a n existing logic developed some years ago.

 

 

We now have a requirement, that if during the save of the sales order , the sales order is in CONF status, then we are suppose to trigger a sales order output !

 

The issue is that we are not able to code, since the sales order status are available in JEST table after the save of sales order ? my questions are:

 

1) how can we check  which status the system is going into at the time of saving the sales order ? This is challenging since at the time of saving the sales order, the entries are not there in JEST table.So we cannot query on JEST table. How can we determine the sales order status at the time of saving the sales order ?

 

2) How to trigger or not to trigger an output based on the condition that sales order is in CONF status ?  what logic to build in sales order user exit ?

 

regards

Pamela


Viewing all articles
Browse latest Browse all 8768

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>