cancel
Showing results for 
Search instead for 
Did you mean: 

Need a warning message in /sapapo/tl1 and /sapapo/tl3

Former Member
0 Kudos


Hello All,

We have a requirement to have a pop up message when a user executes the transaction /sapapo/tl1 and /sapapo/tl3. We frequently get issues where the user by mistake clicks "All Products" radio instead of "Mass Selection" inside the transaction.

We tried to look at greying the "All Products" radio button but was unable to find any solution. Has anybody done this before? If yes, can you share the solution?

Alternatively, if greying out the "All Products" radio button is not feasible, we would like a pop up message in the below two scenarios.

Scenario 1

Step1: Tcode /n/sapapo/tl1

Step2: Click on Create or Change button. This should result in a pop up message with a text “Pls do not click All Products radio button”

Scenario 2

Step1: Tcode /n/sapapo/tl3

Step2: Click on Change button. This should result in a pop up message with a text “Pls do not click All Products radio button”

Can anybody let us know if the above pop up messages are feasible and what is the solution for the same?

many thanks in advance,

Ehsan Ahmed

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Ehsan.

A possibility could be to create an implementation of BAdI /SAPAPO/MD_CHK_AUTH, Method LAST_AUTHORITY_CHECK and raise the popup there. An example of coding could be:

  IF ( SY-TCODE = '/SAPAPO/SCC_TL1' OR SY-TCODE = '/SAPAPO/TL1'
    OR SY-TCODE = '/SAPAPO/SCC_TL3' OR SY-TCODE = '/SAPAPO/TL3' )
    AND ( SY-UCOMM = 'CHANGE' OR ( SY-UCOMM = 'TOGGLE' AND I_ACTVT = '02' ) ).
    CALL FUNCTION 'POPUP_WITH_WARNING'
      EXPORTING
        Textline1 = 'All Products Warning'
        Textline2 = 'Do not set the flag All Products!'
        titel     = 'Warning'.
  ENDIF.

Former Member
0 Kudos

Hi Tiago,

Thanks for your detailed answer.

We are reviewing your solution and will update the results once we implement it.

many thanks in advance,

Ehsan Ahmed

Answers (0)