Skip to Content
0
Sep 01, 2023 at 08:02 AM

Restrict the company codes in query.

33 Views

Hello Everyone,

I had a problem with infoset (SQ02). When I run the query (SQ01) by giving input of company code(BSIK -bukrs) it's displaying the data of two tables(Lfbk &bsik). I need to write a logic in SQ02 to restrict the company codes like if we give 1001,1002,1003 it should display the data other than the company code it should give the error message as company code restricted...

The local variable for retrieving the data using is %SELOPT

It's urgent.

Please help me with this with logic used and where to apply the logic..I am new to this SAP Query related work.

Appreciate your time and response!