Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Menu Exit for QA32

Former Member
0 Kudos

Dear All,

We are having the requirement in QA32 to disable the excel exporting option to perticular user.

When we execute the transaction QA32 it will asks for the selection parameters, after filling up the seletion parameters if we execute the list will dispaly the details of inspection lot.

Here i need to disable the EXCEL exporting option in the application toolbar for a perticular user.

Please suggest me on this.

Thanks.

Best Regards

Govardhan

6 REPLIES 6

Former Member
0 Kudos

Hi,

Try this program you will get all the user exits for the particular tcode.

Selection Text: P_TCODE: Transaction Code to Search

Text Symbols: 001 - Enter the Transaction Code that you want to search through for a User Exit

REPORT z_find_userexit NO STANDARD PAGE HEADING.

&----


*& Enter the transaction code that you want to search through in order

*& to find which Standard SAP User Exits exists.

*&

&----


&----


*& Tables

&----


TABLES : tstc, "SAP Transaction Codes

tadir, "Directory of Repository Objects

modsapt, "SAP Enhancements - Short Texts

modact, "Modifications

trdir, "System table TRDIR

tfdir, "Function Module

enlfdir, "Additional Attributes for Function Modules

tstct. "Transaction Code Texts

&----


*& Variables

&----


DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.

DATA : field1(30).

DATA : v_devclass LIKE tadir-devclass.

&----


*& Selection Screen Parameters

&----


SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.

SELECTION-SCREEN SKIP.

PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.

SELECTION-SCREEN SKIP.

SELECTION-SCREEN END OF BLOCK a01.

&----


*& Start of main program

&----


START-OF-SELECTION.

  • Validate Transaction Code

SELECT SINGLE * FROM tstc

WHERE tcode EQ p_tcode.

  • Find Repository Objects for transaction code

IF sy-subrc EQ 0.

SELECT SINGLE * FROM tadir

WHERE pgmid = 'R3TR'

AND object = 'PROG'

AND obj_name = tstc-pgmna.

MOVE : tadir-devclass TO v_devclass.

IF sy-subrc NE 0.

SELECT SINGLE * FROM trdir

WHERE name = tstc-pgmna.

IF trdir-subc EQ 'F'.

SELECT SINGLE * FROM tfdir

WHERE pname = tstc-pgmna.

SELECT SINGLE * FROM enlfdir

WHERE funcname = tfdir-funcname.

SELECT SINGLE * FROM tadir

WHERE pgmid = 'R3TR'

AND object = 'FUGR'

AND obj_name = enlfdir-area.

MOVE : tadir-devclass TO v_devclass.

ENDIF.

ENDIF.

  • Find SAP Modifactions

SELECT * FROM tadir

INTO TABLE jtab

WHERE pgmid = 'R3TR'

AND object = 'SMOD'

AND devclass = v_devclass.

SELECT SINGLE * FROM tstct

WHERE sprsl EQ sy-langu

AND tcode EQ p_tcode.

FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.

WRITE:/(19) 'Transaction Code - ',

20(20) p_tcode,

45(50) tstct-ttext.

SKIP.

IF NOT jtab[] IS INITIAL.

WRITE:/(95) sy-uline.

FORMAT COLOR COL_HEADING INTENSIFIED ON.

WRITE:/1 sy-vline,

2 'Exit Name',

21 sy-vline ,

22 'Description',

95 sy-vline.

WRITE:/(95) sy-uline.

LOOP AT jtab.

SELECT SINGLE * FROM modsapt

WHERE sprsl = sy-langu AND

name = jtab-obj_name.

FORMAT COLOR COL_NORMAL INTENSIFIED OFF.

WRITE:/1 sy-vline,

2 jtab-obj_name HOTSPOT ON,

21 sy-vline ,

22 modsapt-modtext,

95 sy-vline.

ENDLOOP.

WRITE:/(95) sy-uline.

DESCRIBE TABLE jtab.

SKIP.

FORMAT COLOR COL_TOTAL INTENSIFIED ON.

WRITE:/ 'No of Exits:' , sy-tfill.

ELSE.

FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.

WRITE:/(95) 'No User Exit exists'.

ENDIF.

ELSE.

FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.

WRITE:/(95) 'Transaction Code Does Not Exist'.

ENDIF.

  • Take the user to SMOD for the Exit that was selected.

AT LINE-SELECTION.

GET CURSOR FIELD field1.

CHECK field1(4) EQ 'JTAB'.

SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).

CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.

<b>Reward Point if Useful</b>

Regards

Gokul

Former Member
0 Kudos

Dear Gokul,

Thanks for the info.

I am sorry that the reply is not suitable to me.

My requirement was whether can we create a menu exit for the transaction QA32, as this is report trasantion.

reagards

Govardhan

0 Kudos

HI

these are the user exits available for your purpose.

QMSB0001 User exit after reading in inspection catalog data

QMSC0001 User exit after reading in inspection method data

QMSC0002 User exit for search field entry in the inspection method

QMSC0003 User exit after saving inspection method data

QMSD0001 User exit after importing master inspection charac. data

QMSD0002 User exit for search field entry in master insp. charac.

QMSD0003 User exit after saving master inspection charac. data

QPSD0001 Methods list for reading a characteristic version: yes/no

now do a little home work.

go to each exits in tcode SMOD and put break-point in each of the exits.

activate all the exits.

go back the transaction code and find out which particular exit is working for your requirement.

doing this u'll get the right exit to write the code.write your code here to stop the excel for particular user.

REWARD ME IF HAPPY.

Former Member
0 Kudos

Transaction Code - QA32 Change data for inspection lot

Exit Name Description

QSS10001 Possibility of calling a different print report

QEVA0004 Exit for changing information line in usage decision head

QEVA0005 User subscreen for displaying add. data for usage decisio

QEVA0006 Entry to usage decision transactions

QEVA0007 UD: Control of compulsory comment or long text presetting

QEVA0008 Usage decision: Customer function key (e.g. to cancel UD)

QEVA0009 UD: Predefinition of quantity to be posted to sample stoc

QEVA0010 UD: Usage decision check

QLCO0001 QM: Call alternative costs report from UD

No of Exits: 9

USER EXIT

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://www.sapgenie.com/abap/code/abap26.htm

http://www.sap-img.com/abap/what-is-user-exits.htm

http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction

http://www.easymarketplace.de/userexit.php

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://www.sappoint.com/abap/userexit.pdfUser-Exit

http://www.sap-img.com/ab038.htm

http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm

USER EXIT

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://www.sap-img.com/abap/what-is-user-exits.htm

http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html

Rewards if useful.........

Minal

Former Member
0 Kudos

Hi,

These exits will work if i need to process or not process of the inspections lots , i need the exit after dispalying the lot details and want to save it to excel, it will not allow to download the data to excel.

This is not at all relevant for the inspection lots only the user inetrface level.

Thanks.

Govardhan

0 Kudos

Hi,

use the BADI's

QPL1_SUBSCREEN_ADDON

INSPECTIONLOT_UPDATE

Refer

https://forums.sdn.sap.com/click.jspa?searchID=5436255&messageID=3677063

Regards