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

I'm not getting the same result with my FI-GL validation on user account when using F2548 and when

medkhaled
Participant
0 Kudos
190

Hello,

I'm not getting the same behavior with my FI-GL validation (OB28 on user account) when using F0718 (Post General Journal Entries) and when using FB01.

Seems like F0718 is not able to capture the right account user. Is it normal ? Is there a way to correct this ? Thank you!

Any help please ?

View Entire Topic
Lakshmipathi
SAP Champion
SAP Champion
0 Kudos

Please note in OB28 validations/substitutions are tied to call points in FI (document header, line item, complete document). In classic transactions (FB01, FB50, F‑02, etc.), the system fills BKPF-TCODE with the actual SAP GUI transaction code. Your validation can check BKPF-TCODE = 'FB01' and it works. In Fiori apps like F0718, the posting is not executed under “FB01” at all. Instead, the app calls the Journal Entry API (BAPI_ACC_DOCUMENT_POST / ACC_DOCUMENT) in the background. That means BKPF-TCODE is not populated with FB01. Often it is blank, or filled with a generic technical value. As a result, any validation logic that depends on BKPF-TCODE or “user account” fields behaves differently. This is why you see your validation trigger in FB01 but not in F0718 — it’s normal in S/4HANA.

To fix it, avoid relying on BKPF-TCODE. Instead, use document type, account type, or enrich the posting with a BAdI if you need to distinguish Fiori vs. GUI.