cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Updating custom field extended for OPD view C_BILLINGDOCUMENTOMPARAMDET

jyotis
Explorer
0 Kudos
345

Hi,

We have create a custom field to determine when to trigger EDI channel for different billing documents. The custom field is extended to CDS view C_BILLINGDOCUMENTOMPARAMDET for OPD. However, how do we populate this custom field with data? The only BAdi that works is SD_BIL_DATA_TRANSFER but we have no custom routine for data transfer so it doesn't feel right to use this field. 

Any suggestion on another BAdi that could be used in S4HANA Public cloud for populating custom field in billing OPD data source. 

Thanks!

/Jyoti 

Accepted Solutions (0)

Answers (1)

Answers (1)

Chris1973
Active Contributor
0 Kudos

Good day @jyotis 

Thank you for your question.

This Video Tutorial: How to Configure Output Parameter Determination for Billing Documents will provide guidance.

Consider these references for more details.

Business Rules for Output Parameter Determination

Extending Billing Document Form Template with Custom Fields

In summary, I would not advice to use SD_BIL_DATA_TRANSFER to populate fields for OPD. Instead make use of BAdI SD_BIL_MASTER_MODIFY under the Sales billing document business context. This allows you to enrich the billing header before you save it.

Doing that will ensure that your custom field is populated before OPD runs and thereby enabling your EDI logic.

Best regards

Chris

jyotis
Explorer
0 Kudos

I don't see SD_BIL_MASTER_MODIFY in custom logic app in public cloud. I tried searching for this in SAP help but haven't found any document either.

Also, I know about OPD settings and billing extension but what I can't figure out are 2 things:

1) Populating values in custom field created for OPD conditions

2) Billing output should be updated to "Completed" status only after the condition has been satistfied, but that doesn't seem to work since output will get stuck in "In Preparation" mode. 

I do not see any other option but to schedule the printing of output and hope that the condition gets satisfied before that. 

Background of the requirement is that pakistan requires clients to submit their invoice information to the authority, and they provide their reference number which should be printed on the invoice pdf sent out to the customers. But this requires that pdf invoice should be completed only after the reference number has been updated in the billing document but output is not getting updated in the change event of billing document.