01-20-2016 7:53 AM
Good time team,
In tr. FKKINVDOC_DISP reverse button not valid.
Maybe something missed?
Can't reverse simulated docuemnts.
01-20-2016 8:12 AM
Hi Evhen,
As far as I remember simulated billing documents are not reversed but deleted using TA FKKINVBILL_SIM_DEL. The reversal feature is for real billing documents, which in turn cannot be deleted.
Cheers,
Danilo
01-20-2016 8:12 AM
Hi Evhen,
As far as I remember simulated billing documents are not reversed but deleted using TA FKKINVBILL_SIM_DEL. The reversal feature is for real billing documents, which in turn cannot be deleted.
Cheers,
Danilo
01-20-2016 8:14 AM
Sorry, I just saw that you're referring to the invoicing documents - here you'll have to use TA FKKINVDOC_SIM_DEL instead. I'm sorry for the confusion.
01-20-2016 8:25 AM
01-20-2016 9:25 AM
Can you have look into table DFKKINVDOC_H (TA SE16) - is the affected document marked as a simulated one (DFKKINVDOC_H-SIMULATED = X)?
01-20-2016 9:36 AM
01-20-2016 9:54 AM
Do you have open clarification cases on those documents within table DFKKINV_CFC? If so you will have to clarify those documents first (TA FKKINV_CFC) before you can deleted them using TA FKKINVDOC_SIM_DEL.
01-20-2016 10:14 AM
01-20-2016 10:29 AM
OK, could you set a BREAK-POINT into program RFKKINV_DELETE_SIM_INVDOCS (Line 102 OPEN CURSOR WITH HOLD...) and then execute TA FKKINVDOC_SIM_DEL.
Once you stop at the BREAK-POINT it would be interesting what content the parameter P_MDCAT and the variable VD_INVDOC have. All other select-options should be intitial.
01-20-2016 12:15 PM
In the program wasn't selected on period date:
IF p_period IS INITIAL.
vd_invdoc = p_deldat.
ELSE.
vd_invdoc = sy-datum - p_period.
ENDIF.
And system was not seeing simulated of the last period.
Also I was used incorrect Selection Options:
Only was needed to use periods in days.