cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: Communication Data

pramod_gopisetty1
Active Contributor
0 Kudos

Hello Guru's,

I have private email, once I have a record I want to hide the Add Button for Private Email.

What and where can I do this?


I looked at the V_T7XSSPERSUBTY



And the Use case is B3 and when trying to make the change to B2 or B1 it dumps.


Please help me with this issue.


Thanks,

Pramod


View Entire Topic
pramod_gopisetty1
Active Contributor
0 Kudos

I have modified the BAdi: HRXSS_PER_SUBTY, Below is the Code I have:

if pernr is not INITIAL and INFTY eq '0105'.

     DATA: lv_subty type p0105-subty,

          lv_usrid_long type p0105-usrid_long,

          lw_msg  TYPE symsg.

     data: wt_tc type table of t591a,

           wa_tc type t591a.

     select * from t591a into table wt_tc where infty = '0105' AND

                                                   subty = '0030'.

     if sy-subrc = 0.    " Change the Time Constraint Class from 3 to 2 to restrict Only one record may be available at one time

       loop at wt_tc into wa_tc.

         wa_tc-zeitb = '2'. "new TC that you need

         modify t591a from wa_tc.

       endloop.

     endif.

     LOOP AT subtypes INTO wa_subtypes WHERE subtype EQ '0030'.

       wa_subtypes-case = 'B2'.                                 " Change the Use Case from B3 to B1

       MODIFY subtypes FROM wa_subtypes TRANSPORTING case.

       CLEAR wa_subtypes.

     ENDLOOP.

   endif.


This fixed the issue for me.


Thanks for all the help.


Cheers-

Pramod