cancel
Showing results for 
Search instead for 
Did you mean: 

How to create custom logic that checks custom field in billing document item

takahiroyamauchi
Explorer
0 Kudos

Hi,Experts,

I am searching how to create custom logic that checks custom field in billing document item.

But I cant find Badi that do it.

Is it possible to create custom logic that checks custom field in billing document item?

If it is possible,would you be so kind to tell me how to do?

Thank you,

Best regard,

Takahiro Yamauchi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Takahiro,

You can implement checks for items to be invoiced, and also reject such items, with BAdI 'Custom Data Transfer for Billing Documents' (at business context 'Sales: Billing Document Item'). Here you can access standard fields as well as custom fields.

Logic implemented for this BAdI is executed during billing document creation. After the billing document has been created, we do not have a check BAdI.

Best regards,

Christian

takahiroyamauchi
Explorer
0 Kudos

Hi ChristianG

Thank you for the reply.

Please tell me BAdI 'Custom Data Transfer for Billing Documents' in more detail.

>Logic implemented for this BAdI is executed during billing document creation.

>After the billing document has been created, we do not have a check BAdI.

Is this BAdI excuted when only billing document is copied from reference document?

And after copied,when we change fields,is not this BAdI excuted?

I'd appreciate if you could answer these questions.

Thank you,

Best regards,

Takahiro Yamauchi

Former Member
0 Kudos

Hello Takahito,

yes, your understanding is correct in both points.

Here is a description of BAdI 'Custom Data Transfer for Billing Documents':

'This filter-enabled Business Add-In (BAdI) is used in the Sales and Distribution (SD) Billing component. You can use it to provide custom data transfer routines (that is, custom logic in the BAdI method) that control the data transfer that takes place when the system copies data from reference documents (for example, sales orders) to new billing documents. Example use cases of this include forcing invoice splits and preventing items that don't fulfill certain criteria from being billed.'

A full documentation is available in App 'Custom Fields and Logic', when you start to create a BAdI implementation for it. After pressing CREATE, you can navigate to the BAdI documentation.

Best regards,

Christian

takahiroyamauchi
Explorer
0 Kudos

Hi Christian,

Thank you for the reply.

I understood.

I want to implement logic that check fields in Billing Documents after copied.

But it might be impossible.

It's clear.

I choose your comment best answer.

Thank you,

Best regards,

Takahiro Yamauchi

0 Kudos

Hello ,

Our system is on S/4HANA 2021 on-premsie, but I do not see the BADI 'Custom Data Transfer for Billing Documents' (at business context 'Sales: Billing Document Item').

Please suggest.

Regards,

Shubhangi

Answers (1)

Answers (1)

ewig_dennis
Member
0 Kudos

Hi all,

I also do not see BADI "Custom Data Transfer for Billing Documents" in our S/4HANA 2021 OP. Any idea why this BADI is not visible in buisness context "Sales: Sales Document Item"?

Best regards

Dennis