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

for one module pool program how to create two transactions

Former Member
0 Likes
805

hi

for one module pool program how to create two transactions.if we execute one transaction , it has to display one application. when we execute second transaction , it has to display the second application

4 REPLIES 4
Read only

Former Member
0 Likes
545

By using different screen numbers as per the applications.

Read only

Former Member
0 Likes
545

Hello,

Inside the report u need to make the changes liike this.


  IF SY-TCODE = 'ZFEHLTEILE' OR
     SY-TCODE = 'ZLIEFERLISTE'.
    LOOP AT SCREEN.
      IF SCREEN-NAME = 'SELPA-LOW'
      OR SCREEN-NAME = '%_SELPA_%_APP_%-VALU_PUSH'.
        SCREEN-INPUT = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

  IF SY-TCODE <> 'ZFEHLTEILE_PTA'.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'LAY'.
        SCREEN-ACTIVE = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

  IF SY-TCODE = 'ZLIEFERLISTE' OR " brc1wa2 002
     SY-TCODE = 'ZFEHLTEILE_ATMO3_END'.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'GR1'.
        SCREEN-ACTIVE  = 0.     " vsm1kor 002
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

Like this make change in ur report also.

vasanth

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
545

All you need to do is tie the transaction codes to different screens with in the module pool program. Your module pool can have a lot of screens, in some cases, taking the user in to two different directions, in these cases, the transaction codes are simply defined with two different start screens.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
545

Instead of different screens, you can have multiple transactions calling the same screen and use logic to determine how the screen should be handled (display or change for example).

Rob