‎2008 Feb 14 8:36 AM
Hi Experts,
In Module pool program I wanted to create one Z-Transaction say ZVENDOR1.
If I enter ZVENDOR1 then I can create vendor & if enter ZVENDOR2 then I can change the existing vendor.
How I can set the multiple transaction for single screen like standard transaction MM01 for create material, MM02 to change material.
‎2008 Feb 14 9:02 AM
Hi Neha,
Create both the transactions and assign the program name to this transaction.In your module pool program check the transaction and do the necesary coding.If it is create modify the screen accordingly.Hope you can do this.
Small Eg:
case sy-tcode.
when 'ZDECL1'.
loop at screen.
if screen-name = ZDECLM-DECLNO'.
screen-active = 0.
endif.
modify screen.
endloop.
endcase.Edited by: shibuettickal on Feb 14, 2008 10:03 AM
‎2008 Feb 14 9:23 AM
HI neha gupta,
Create two tcodes by using one program and see the following code in the program.
In Create : You need to display empty screen so no need to write furthor code*
In Change : You need to display screen with some data in change mode so write like this
In PAI OF FIRST SCREEN.
if sy-tcode eq 'ZVENDOR2'
SELECT the data for table and display ( For change )
endif.
Reward if it is useful,
Mahi.
‎2010 Jan 15 7:10 AM