cancel
Showing results for 
Search instead for 
Did you mean: 

Enhancement to check for release of permit

former_member222161
Participant
0 Kudos
645

Hi All,

We would like to check whether permit is issued before saving the maintenance order.

Please suggest any solutions.

Thanks & regards,

rajesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Best is to use a BADI "WORKORDER_UPDATE" and in the AT_SAVE method of the class you can implement the check whether first the permit exist for the order by checking table IHSG and if yes then whether the permit has been issued by checking table IHGNS for that order.Order object number will be the key for both tables. You can decide suitable error handling procedure.

former_member222161
Participant
0 Kudos

Hi,

Thanks for the response.

We have used user status called in progress in the maintenance order,the requirement is if permit is not released, the user status in progress not to be allowed before saving of the order

step 1: the permit is released

step 2; user status in- progress selected

step 3: order saved

all the above steps are done in a sequence before saving the order

the problem we are facing with above steps of execution are, in step 2 after release of permit values will not be updated in table IHGNS as we have not saved the order and clicked in user status in progress and saved the order

Could u please suggest any enhancement or BADI so that we'll be able to capture details of permit release at run time before saving the order (after selecting user status : inprogress)

Thanks & regards,

rajesh

Former Member
0 Kudos

Hi Rajesh,

               You can read permit data from the buffer. A general way always would be using assignment of screen components so that data from one screen can be copied and made available wherever desired. You can get help from technical ABAP developer for this. Generally data from screen can be made available in BADI by using ASSIGN COMPONENT syntax.

Former Member
0 Kudos

Permits are used to get the approval from the approver before releasing / closing the order. Without that approval, you can't proceed further.

What is the need for checking Permit Release at save point of order??

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rajesh,

Try with User exit IWO10009 which is for customer check while saving maintenance order.

Inside this you can define your own logic to check permit issued before saving.

Also User exit IWO10007 is used for enhancements of permits in maintenance order.

Hope this will solve your issue.

Regards,

VINOD.V