on 10-21-2010 1:57 PM
Hello,
Is there any way to prevent creation of sale order reference to expired contract?
Please suggest.
Thanks,
Hi Fariba,
I think SAP has a standard way to meet this requirement. Once the contract validity expires - it would not allow you to create a reference order. Just incase it does, you can add a piece of abap code to the copy control at header level between Contract to Order ( VTAA) checking the validity of contract before allowing to create a sales order.
Regards
Sadhu Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I understand that it has be my abap code in requirement.
But I think the field has to be checked is VBAK-GUEEN ( not VBAK-ANGDT = Quotation valid from )
Thanks anyway it was helpfull.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As Shadu says, create your own VOFM subroutine using '001' as a model and set it in VTAA. You can see in this subroutine this coding:
* Check the validity period of the reference document
if vbak-angdt > 0 and
vbak-angdt > sy-datlo.
write vbak-angdt to bp_datum_ausgabe.
message w008 with bp_datum_ausgabe.
endif.
Replace the warning message (it's hardcoded) by other and use the field of date that you need.
If you need something else, dont hesitate to tell us.
Regards,
Eduardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Message No: V1 448 is a std messge.
I dont think you can change this from Warning to Error.
Tx:OVAH - check for SD Variable messages, where you can change the type of Message from W to E.
Through development you can restrict this.
Regards,
Reazuddin MD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.