Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

User exit for VF11

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

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.