on 01-29-2015 7:24 AM
Hi~everyone;
I refered to the note 1842573 - Cleared billing documents can be canceled
I created a routing 629, and copy the code in SAP Note 1870023
Now when i cancel a cleared billing document using vf11
a error message(VF193 TYPE E) show up, perfectly!
But, some billing document still can be saved with this error message
A reverse billing Document created
when error message vf193 show up, i hope it will not create the revers billing doc if i click save button.
thanks~
Hi
If you don't want to cancel the Cleared Billing document then do the below mentioned configuration and check the entire cycle
Go to T-Code: VOFA and select the respective Billing type.
Under Cancellation Window there is field called" Copying requirement" in that field assign Routine " 29" then system won't allow to cancel the billing document once document is cleared
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i get it;
the problem is coursed by a static data object in the note correction instruction
FORM BEDINGUNG_PRUEFEN_129.
DATA: LT_DOC_NUM TYPE ACC_DOC OCCURS 1 WITH HEADER LINE.
DATA: LD_AWTYP_IN LIKE ACCIT-AWTYP.
DATA: LD_DC LIKE SY-SUBRC.
STATICS: LD_VBELN LIKE VBRK-VBELN.
* Internal field
DATA: LD_DIALOG LIKE BOOLE.
* Initialisation error mark
CLEAR: LD_DC.
CHECK *VBRK-RFBSK = 'C'.
* FI-CA: if active, change AWTYP
IF NOT *VBRK-VKONT IS INITIAL.
LD_AWTYP_IN = 'FICA'.
ELSE.
LD_AWTYP_IN = 'BKPF'.
ENDIF.
* Read FI-document
IF LD_VBELN NE *VBRK-VBELN. “ just here
CALL FUNCTION 'AC_DOCUMENT_RECORD'
EXPORTING
I_AWTYP = 'VBRK'
I_AWREF = *VBRK-VBELN
I_AWSYS = *VBRK-LOGSYS
I_AWTYP_INCL = LD_AWTYP_IN
I_BUKRS = *VBRK-BUKRS
X_DIALOG = LD_DIALOG
TABLES
T_DOCUMENTS = LT_DOC_NUM
EXCEPTIONS
NO_REFERENCE = 1
NO_DOCUMENT = 2
OTHERS = 3.
IF SY-SUBRC IS INITIAL.
DESCRIBE TABLE LT_DOC_NUM LINES SY-TABIX.
IF SY-TABIX NE 0.
LD_VBELN = *VBRK-VBELN.
LOOP AT LT_DOC_NUM.
*----- Cleared documents request can not be canceled
IF LT_DOC_NUM-STATUS EQ CHARC OR
LT_DOC_NUM-STATUS EQ CHARB.
LD_DC = 4.
EXIT.
ENDIF.
ENDLOOP.
IF NOT LD_DC IS INITIAL.
PERFORM VBFS_HINZUFUEGEN_ALLG
USING *VBRK-VBELN VBRP-POSNR 'VF' 'E' '193'
*VBRK-VBELN SPACE SPACE SPACE.
SY-SUBRC = 4.
EXIT.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDFORM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.