cancel
Showing results for 
Search instead for 
Did you mean: 

Filling VKDFS-SORTKRI while Cancelling a Billing Document ( VF11 )

Sijin_Chandran
Active Contributor
0 Kudos

Hello Gurus,

We have placed a Custom Code which executes during Delivery Creation ( VL01N ) and during Delivery Creation it updates VKDFS-SORTKRI field with a desired value.

And thereafter Billing Document gets created as expected, taking the values from VKDFS.

And as a standard Process once a Billing Document is created then corresponding entries from Table VKDFS is removed. VKDFS holds the Documents which are open for Billing hence it gets cleared once Delivery Document is Billed.

Now the issue is when a user cancels a Billing Document ( VF11 ), at this point again a fresh entry gets maintained in VKDFS against the Delivery Document, but this time VKDFS-SORTKRI would be blank.

I need to find a place where I can write code which fills VKDFS-SORTKRI during VF11 so that the desired functionality is even achieved in case of Billing Cancel scenario.

Searched for EXITs but with no success.

Checked with Below EXITs:

V60P0001

V05I0001

-----Update----------------------------

Even tried with V05IEXI2 which says, even this is not working. If it works as it says in Description then this could have done the purpose.

*---------------------------------------------------------------------*
* FORM USEREXIT_VKDFS_SORTKRI_BILLING *
*---------------------------------------------------------------------*
* Userexit to fill the field VKDFS-SORTKRI in the *
* BILLING transactions
* INPUT: LVBRK BILLING note: header
* OUTPUT: VKDFS-SORTKRI

Thanks,

Sijin

Accepted Solutions (1)

Accepted Solutions (1)

Sijin_Chandran
Active Contributor
0 Kudos

We raised an SAP Incident and they have asked to run Program RVV05IVB for regenerating the SD Document Indices ( VKDFS ).

After running this VKDFS~SORTRKI is populated after Cancelling a Billing Document as well.

But still I feel like an EXIT like V05IEXIT should also be available when Billing Indexes are generated while cancelling a Billing Document. And must say description of V05IEXI2 really made me feel that it is the EXIT which we were looking for. But alas 😞

Thanks,

Sijin

Answers (1)

Answers (1)

Lakshmipathi
Active Contributor
0 Kudos

While posting such queries, please also add in which version your system is running. There is an OSS note 331771 for older version which you can have a look at it. If that is not helping, then, you can try with BADI BADI_SD_BILLING or BADI_SD_BILLING_ITEM

Sijin_Chandran
Active Contributor
0 Kudos

Very thanks for your update.

System Info:

S4 HANA On Prem 1709.

Sijin_Chandran
Active Contributor
0 Kudos

Hi both of the BADIs which you have shared is for Internal Usage of SAP only. So customer cannot implement them.

Moreover I got some hint while debugging :

We implemented V05IEXIT for filling VKDFS-SORTKRI while creating Delivery Document.

and likewise there is a EXIT V05IEXI2 in which its clearly mentioned EXIT for filling VKDFS-SORTKRI during Billing Transactions.

As per its description its seems to be correct one, but its not getting triggered in VF11.

If nothing fruitful comes here am thinking to raise SAP Incident.