Create a TCODE for an ABAP Query

Assigning a T-Code to an ABAP Query can be done in two ways.  By first method, you assign Query Program Name to the T-Code. In second, you assign the Query directly to the T-Code.

It is recommended not to assign Query program name directly to trnasaction code in case of queries(prefer method 2 than method 1), because Queries are generated and may vary system by system. But I have seen first being used more.

Continue Reading…

Assign a T-code to Maintenance View in SAP

There are some cases where you want your application to call the Maintenance View (instead of creating Create/Changes/Delete i.e. CCD screens for the operation).

In this case you have to assign a T-Code to the Maintenance View you created. (Note: User should have the authorization for SM30).

Continue Reading…

LOOP AT WHERE. Vs LOOP.IF. in ABAP

At first sight, both the statements ( loop at itab where <key> = <val> ;   loop at itab. if <key> = <val>. ) looks like performing the same task.

But when it comes to performance, both beats each other in there own domain.

Continue Reading…

Assign/Create Authorization Group for a Table in SAP

Many times an ABAPer or Functional consultant gets the Message ‘You are not authorized to display this table’, when viewing tables, even ZTables. Tables by defualt are created with Authorization Object S_TABU_DIS and Authorization Group &NC&.

Basis Team, as part of Audit/security may not allow this authorization on Tables.

Continue Reading…

Best way to Loop At ‘Standard’ Internal Table in ABAP

When it comes to looping thru a standard Internal Table, almost every ABAPer normally loops like this (I_COEP is already sorted)
(1) Loop at I_COEP where kokrs = i_cobk-kokrs
and belnr = i_cobk-belnr.
……
endloop.

And this the SLOWEST method to be adopted.

Continue Reading…

Page 13 of 14« First...1011121314