2012 Sep 20 7:47 AM
Hello All,
I want to apply restriction in t-code VF11
that when user can cancel any billing document.
i want to check whether any excise invoice available for that.
Please Help Me.
Regards
Chandramani J.
2012 Sep 21 5:55 AM
you can use BADI ( BADI_SD_BILLING ).
Implement this BADI , and code in the interface :
INVOICE_DOCUMENT_READ -->> read billing documents.
In this interface u will find the structure :
FXVBRK --> Billing Document: Header Data
FXVBRP --> Billing Item Data
using billing document no,
use select statement from table ,
select exnum from J_1IEXCDTL
into v_exnum
where rdoc3 eq FXVBRK-VBELN.
IF SY-SUBRC EQ 0.
MESSAGE 'Invoice can not be cancelled.Excise docuemnt has been created for this billing document' TYPE 'E'.
ENDIF.
Hello All,
I want to apply restriction in t-code VF11
that when user can cancel any billing document.
i want to check whether any excise invoice available for that.
Please Help Me.
Regards
Chandramani J.
2012 Sep 21 5:55 AM
you can use BADI ( BADI_SD_BILLING ).
Implement this BADI , and code in the interface :
INVOICE_DOCUMENT_READ -->> read billing documents.
In this interface u will find the structure :
FXVBRK --> Billing Document: Header Data
FXVBRP --> Billing Item Data
using billing document no,
use select statement from table ,
select exnum from J_1IEXCDTL
into v_exnum
where rdoc3 eq FXVBRK-VBELN.
IF SY-SUBRC EQ 0.
MESSAGE 'Invoice can not be cancelled.Excise docuemnt has been created for this billing document' TYPE 'E'.
ENDIF.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |