cancel
Showing results for 
Search instead for 
Did you mean: 

Subsitute Bill Of Lading to Accouting Document line item during VF01

naverick
Member
0 Kudos

Hi Experts,

When VF01 posts the Accounting Document, we would like to fetch the Bill Of Lading (LIKP-BOLNR) from its Delivery Document header and substitute the BOL to Payment Reference (BSEG-KIDNO) of the Accounting Document AR line item.

We are developing logic in BTE 00001120 to identify Delivery Document from table VBFA through the Billing Document number. Still, we found it difficult because the table is updated after the Accounting Document posting.

Please help us to identify the Delivery Document number before posting the accounting document to fetch the Bill Of Lading. (Any method is acceptable, including Function module, User exit, etc.)

Thanks,

Hidehiro

Accepted Solutions (0)

Answers (1)

Answers (1)

Lakshmipathi
Active Contributor
0 Kudos

One easy option would be setting Posting Block so that, once the billing document is saved, you have the corresponding delivery reference. Also, no need to fetch the delivery reference from VBFA. From VBRP-VGBEL itself, you can take the delivery reference and pass it on to LIKP from where you can fetch the BOLNR. Via VF02 or VFX3, you can release the billing document by which time, via user exit, you can pass the BOLNR to BSEG table