Populate Payment Method on Vendor Line Item based on Segment or Profit Centre Allocation
I need to pay Vendors from different bank accounts based on the allocation to different Segments or Profit Centres.
Set-up Step in Substitution Rule (Line Item):
Pre-Requisite BSEG-BUKRS = '1000' and BSEG-KOART = 'K' and BSEG-ZLSCH = ''
I have a table with an indicator that says If the Segment belongs to certain group then don't put payment method on document. If Segment belongs to other group the payment method 'X' must be placed on the Line item.
My issue is that the Segment is not populated on the BSEG structure
Can someone let me know where I can find either the other lines of the transaction entered or the derived segment/(s) for the Vendor Item