Application Development and Automation 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: 
Read only

Module Pool Transcation

Former Member
0 Likes
680

Hi all,

I have a requirement that i have to create 2 transactions(ZT01 , ZTO2) for the Same screen Number(9000). But the screen contains different functionality. i.e. the GUI Status and the Title are different.

How to do this??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
628

Hi,

Create two transactions ZT01 , ZT02 using Transaction SE93. In the module set_pfstatus of screen 9000, write following code.


CASE sy-tcode.
  WHEN 'ZT01'.
    SET PF-STATUS 'STAT1'.
    SET TITLEBAR 'TITLE1'.
  WHEN 'ZT02'.
    SET PF-STATUS 'STAT2'.
    SET TITLEBAR 'TITLE2'.
ENDCASE.

<b><REMOVED BY MODERATOR></b>

Regards,

Mukul

Message was edited by:

Alvaro Tejada Galindo

3 REPLIES 3
Read only

Former Member
0 Likes
629

Hi,

Create two transactions ZT01 , ZT02 using Transaction SE93. In the module set_pfstatus of screen 9000, write following code.


CASE sy-tcode.
  WHEN 'ZT01'.
    SET PF-STATUS 'STAT1'.
    SET TITLEBAR 'TITLE1'.
  WHEN 'ZT02'.
    SET PF-STATUS 'STAT2'.
    SET TITLEBAR 'TITLE2'.
ENDCASE.

<b><REMOVED BY MODERATOR></b>

Regards,

Mukul

Message was edited by:

Alvaro Tejada Galindo

Read only

Former Member
0 Likes
628

You can add Authority object in Transaction code and check authorization in your report. Depending upon authorization you can activate/deactivate screen elements.

Read only

Former Member
0 Likes
628

Hi,

Create 2 transaction codes, then in the PBO of 9000 you need to write the below logic

CASE sy-tcode.

WHEN 'ZT01'.

SET PF-STATUS 'ZT01'.

SET TITLEBAR 'ZT01'.

WHEN 'ZT02'.

SET PF-STATUS 'ZT02'.

SET TITLEBAR 'ZT02'.

ENDCASE.

Regards

Sudheer