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

BDC

Former Member
0 Likes
729

Hi Guys, While doin a BDC I have given the flat file name as type localfile & declared it as a parameter, along with this I'm using two other parameters start & end so as to determine the row values in the function module ALSM_EXCEL_TO_INTERNAL_TABLE..Now I have used AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE (P_FILE is the file parameter).

When I run the program under debugging mode the values for START & END are always zero..I tried to put the break-point before the declaration of parameters but tat break-point does not trigger at all..the program directly goes for execution without coming into the debugging mode..Can anyone help??

Also give me a link to find the right order of events to be used for EVENTS in a ABAP program & the order in which they are triggered..thanks in Advance...

Ajai

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
709

Hi Ajay,

Your code might be under event AT SELECTION-SCREEN ON VALUE-REQUEST event.

Code under this event will be executed only if press F4/click on F4 icon. So u r not reaching to ur break point. Click F4. It goes to that point.

Just place START-OF-SELECTION event for uploading file code. It works.

What ever order u code events will be executed in the predefined order mentioned below.

LOAD-OF-PROGRAM.

INITIALIZATION.

AT SELECTION-SCREEN OUTPUT.

AT SELECTION-SCREEN.

START-OF-SELECTION.

END-OF-SELECTION.

TOP-OF-PAGE(Triggers before first write/SKIP statement is executed)

END-OF-PAGE.

AT LINE-SELECTION/AT USER COMMAND/AT Pfn

Hope it is clear.

Thanks,

Vinod.

6 REPLIES 6
Read only

Former Member
0 Likes
709
Read only

0 Likes
709

thanks a lot for the link dear harini..points added

Read only

Former Member
0 Likes
709

just before pressing the 'F8'...put '/h'...& on the debugger

Read only

vinod_vemuru2
Active Contributor
0 Likes
710

Hi Ajay,

Your code might be under event AT SELECTION-SCREEN ON VALUE-REQUEST event.

Code under this event will be executed only if press F4/click on F4 icon. So u r not reaching to ur break point. Click F4. It goes to that point.

Just place START-OF-SELECTION event for uploading file code. It works.

What ever order u code events will be executed in the predefined order mentioned below.

LOAD-OF-PROGRAM.

INITIALIZATION.

AT SELECTION-SCREEN OUTPUT.

AT SELECTION-SCREEN.

START-OF-SELECTION.

END-OF-SELECTION.

TOP-OF-PAGE(Triggers before first write/SKIP statement is executed)

END-OF-PAGE.

AT LINE-SELECTION/AT USER COMMAND/AT Pfn

Hope it is clear.

Thanks,

Vinod.

Read only

0 Likes
709

Dear Vinod, thanks a heap..will try your solution..Points Added..

Read only

Former Member
0 Likes
709

hi,

before excute the report command box /h or place the cursor select query and click the deburg button

so your programe is deburg .

All the events declare like this.

LOAD-OF-PROGRAM.

INITIALIZATION.

AT SELECTION-SCREEN OUTPUT.

AT SELECTION-SCREEN.

START-OF-SELECTION.

END-OF-SELECTION.

TOP-OF-PAGE(Triggers before first write/SKIP statement is executed)

END-OF-PAGE.

AT LINE-SELECTION/AT USER COMMAND/AT Pfn