Skip to Content
0
Aug 04, 2016 at 05:55 PM

Dispute Case Creation through FBL5N: BAdI Imple: How to get Accounting Document

684 Views

Hi Experts,

I am working on a requirement where I have included some custom fields on Dispute Case screen which are visible when i create Dispute case through UDM_DISPUTE or through FBL5N. These custom fields are SD related fields so they need to be filled by default whenever Dispute case is created through FBL5N. Custom fields are shown correctly & F4/validation is also working fine but I am struggling to auto-populate these custom fields.


I have implemented the BAdI 'SCMG_BEFORE_VALID_C' using which i can set/get values for attributes. To calculate some default values, I need to know the accounting document selected on FBL5N in BAdI implementation.


Method CHANGE's import parameters IM_CASE provides all case attributes but not the accounting document. Though buffer information is available in IM_CASE->IF_SRM_ROOT->POID_BUFFER but its a private attribute which is not accessbile.


How can i know the Linked documents in this BAdI implementation while creation. SInce its being created, data is not saved in any of the case DB tables.


You help will be highly appreciated.


Regards

Gaurav Karkara