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

Update LFB1 table for field ZTERM(Payment terms)

PAccM
Explorer
0 Likes
1,675

Dear all, 

In XK02 tcode, i give supplier and Purchase Org, check box Purchasing data and hit enter, going inside, i have to change the Payment terms at Purchase org level, now, requirement is to change the payment terms for all the company codes in LFB1(zterm field) table which are extended to these Purchase org when user click on save in XK02 after changing payment terms at purchase org level.
I identified the exit, EXIT_SAPMF02K_001, but help in finding a way to update LFB1-zterm.

Regards, 

Poornima

Accepted Solutions (0)

Answers (1)

Answers (1)

RaymondGiuseppi
Active Contributor
0 Likes

I would not use this Customer-Exit but the P&S BTE 00001420 to trigger an update in loop (LFM1 > T024E > LFB1) consider doing the update in an RFC enabled FM called IN BACKGROUND, so executed after the updates from the transaction are commited to database, there use a small BDC or a method such as MAINTAIN_BAPI of class VMD_EI_API.

PAccM
Explorer
0 Likes
Thank you for your response, but can you elaborate more pls on the solution you have suggested? may be with an example?