Application Development 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: 

transaction code

Former Member
0 Kudos

hi,

In initial screen i have 5 push buttons.

CREATE, CHANGE DISPLAY, EXPIRE, DELETE.

the requirement is i want transaction code for each and every push button, individually

where should i write the code, and where to assign the transaction.

please help.

kirthi.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Go to the Se 80 transaction and select u r program give the function code for each puch button and assign the each button to call one transaction .

Regards,

Nandha

Reward if it helps

5 REPLIES 5

Former Member
0 Kudos

Hi,

Go to the Se 80 transaction and select u r program give the function code for each puch button and assign the each button to call one transaction .

Regards,

Nandha

Reward if it helps

former_member219399
Active Participant
0 Kudos

Hi

assign Fcode for each and every button.

In PAI module of the screen you can call the transactions.

case sy-ucomm.

when 'CREA'.

call transaction 'TRX for creation'.

when 'CHAN'.

call transaction 'TRX for change'.

etc.

You can't assign a transaction for the push button. What you can do is on pressing the button, capture the Fcode in PAI, then call the corresponding transaction.

with regards,

Vamsi

former_member491305
Active Contributor
0 Kudos

Hi,

If you set the funtion code as '<b>VA01</b>' and function type as "<b>Transaction</b>"

for your push button,then it will directly call VA01 transaction when u press that button.no need to write the code.

Former Member
0 Kudos

You can create one specifc module in PAI in SE51, when you double click on that module, it will create a block in SE38 program. You can write the related logic by comparing with SY-UCOMM field.

regards

  • Dj

reward for all useful answers

Former Member
0 Kudos

Hi,

Assign function code for all the push buttons.

Capture the function codes in the PAI module as:

ok_code = sy-ucomm.

case ok_code.

when 'CREATE'.

call transaction 'CREATE_SOMETHING'.

when 'CHANGE'.

call transaction 'CHANGE_SOMETHING'.

endcase.

like that you can assign transactions to push buttons.

Regards,

Renjith Michael.