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

Few Queries (Basic-Level)

Former Member
0 Likes
679

Hi All,

I am having few questions on Basic ABAP Programing

1) Selection Screen:

When i am at selection screen and if i press Cancel, it will take me to the list.For Eg if AT Start of selection, i am selecton data from database and writing to list, so even if user press cancel at selection screen , the query will be executed. How should we handle it?

2) In BDC, what is the exact difference between input session and call transaction. I am able to keep both in sessions and get the logs. I am able to view all the facilities in call transaction that are offered by input session. So, when should we go for waht and what is the exact difference between two.

Regards

Mitesh

1 ACCEPTED SOLUTION
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
515

Hi,

This is for your first query.

Try this (I think sy-ucomm for cancel is CANC.just check).

LEAVE LIST-PROCESSING .

Regards,

J.Jayanthi

Message was edited by: Jayanthi Jayaraman

3 REPLIES 3
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
516

Hi,

This is for your first query.

Try this (I think sy-ucomm for cancel is CANC.just check).

LEAVE LIST-PROCESSING .

Regards,

J.Jayanthi

Message was edited by: Jayanthi Jayaraman

Read only

Former Member
0 Likes
515

Hello Mitesh,

Here are the answers -

1. When you are on the selection screen and hit cancel, the control should not and will not go to the list, unless you have done somthing programmatically to get such a functionality.

As a rule, all the Database selects should happen in the START-OF-SELECTION, just as the name suggests. when you hot Execute on the selection screen, the control will go to start-of-selection.

2. Refer to <a href="http://help.sap.com/saphelp_nw04/helpdata/en/fa/097008543b11d1898e0000e8322d00/frameset.htm">this link</a> in the SAP Library.

Regards,

Anand Mandalika.

Read only

0 Likes
515

Hi All,

Sorry for late reply, actually i was not having SAP environment with me.

From your solution, i got to know that i made some mistaked while coding, I used AT EXIT-COMMAND to Quit from the selection screen ( the program was using calls screen).

Regards

Mitesh