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

Multiple transaction

Former Member
0 Likes
411

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.

3 REPLIES 3
Read only

Former Member
0 Likes
374

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

Read only

Former Member
0 Likes
374

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.

Read only

Former Member
0 Likes
374

d