‎2009 Jan 10 6:30 AM
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
‎2009 Jan 10 6:38 AM
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.
‎2009 Jan 10 6:33 AM
Check this thread for events.
https://forums.sdn.sap.com/click.jspa?searchID=20788351&messageID=6552223
‎2009 Jan 10 7:00 AM
‎2009 Jan 10 6:35 AM
‎2009 Jan 10 6:38 AM
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.
‎2009 Jan 10 7:00 AM
Dear Vinod, thanks a heap..will try your solution..Points Added..
‎2009 Jan 10 1:07 PM
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