Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8501

Re: start and end dates update IW31 tcode

$
0
0

Hi uirji,

 

There is an exclusive Enhancement for Release Conditions. This is IWO1002.

 

I have tested a code to suit to your needs.

DATA: LV_EINSA TYPE AFVV-EINSA,

      LV_NTANF TYPE AFVV-NTANF,

      LV_AUFPL TYPE AFVV-AUFPL.


 

SELECT SINGLE AUFPL FROM AFKO INTO LV_AUFPL WHERE AUFNR = CAUFVD_IMP-AUFNR.

SELECT SINGLE EINSA FROM AFVV INTO LV_EINSA WHERE AUFPL = LV_AUFPL AND APLZL = '1'.

SELECT SINGLE NTANF FROM AFVV INTO LV_NTANF WHERE AUFPL = LV_AUFPL AND APLZL = '1'.


 

IF LV_EINSA <> '1' AND LV_NTANF <> CAUFVD_IMP-GSTRP.

MESSAGE 'Release not possible due to Date condition for Operation1 not satisfied' TYPE 'I' .

NO_RELEASE = 'X'.

ENDIF.

As per this when your given conditions do not match, the following pop-ups would appear one after one and the RELEASE stopped.

 

Custom pop-up

1.JPG

 

Exit pop-up (No_Release)

2.JPG

 

When the user Savesthe order with values EINSA = '1' (Must start on) and NTANF with GSTRP Date, and Release tried again, he will be successful.

 

In the above code, you may include field NTANZ (time field for NTANF) to match with time field of GSTRP, if you need.

 

 

Hope this post is of some help to you.

 

 

Jogeswara Rao K


Viewing all articles
Browse latest Browse all 8501

Trending Articles



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