‎2009 Feb 03 9:01 AM
Dear Freinds,
I have developed a custom screen 1000 on the screen i havepu four fields pernr, employeename ,begda and endda on the table control,
now iam calling the screen from my report as call screen 1000.
but is giving me dump straight away saying Dynpro does not exist only when iam using a table contol.
i have done the following steps please correct me
A) the table control which i have placed i named it as TC1.
b)
PROCESS BEFORE OUTPUT.
MODULE STATUS_1000.
LOOP at it_pa0001 INTO wa_pa0001 WITH CONTROL TC1
CURSOR tc1-current_line. " INTO wa_pa0001.
MODULE pbo_output.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1000.
LOOP at it_pa0001 . "into wa_pa0001 .
MODULE pai_output.
ENDLOOP.
in the top include i have declared as below
DATA ok_code TYPE sy-ucomm.
data : wa_pa0001 type pa0001,
it_pa0001 type standard table of pa0001.
CONTROLS tc1 TYPE TABLEVIEW USING SCREEN 1001.
in my report which iam going to run i have given as
call screen '1000'.
when iam running the report it is going dump directly from screen 1000 it not even going inside ,
could you please let me know what i have to further.
regards
divya
‎2009 Feb 03 9:05 AM
Hi,
You have defined table control using screem 1001. & You hav calld up ur table control in the module pool of screen1000.
Check it 7 do debugging & try to find on which line where it is getting dumped.
Regards
Mudit
‎2009 Feb 03 9:03 AM
hi Divya,
screen no 1000 is genarally used for standrd screen , pls try with other screen no's,,
i'm not sure... plz try..
Regards,
Chandu
‎2009 Feb 03 9:03 AM
Hi,
In your code you have written
CONTROLS tc1 TYPE TABLEVIEW USING SCREEN 1001.
But you are using screen 1000.
Regards
Sandipan
‎2009 Feb 03 10:04 AM
Hi Sandipan,
you are 100% correct yes that is the reason iam getting the dump, i haven observed any way lot and lots of thanks .
if you could please give me some code for getting data populated into table control orsample program
it would be great help.
regards
divya
‎2009 Feb 03 10:13 AM
Hi Divya,
You can follow the link for sample program
<http://sgstocks.tripod.com/abap007.htm>
Regards
sandipan
‎2009 Feb 03 9:05 AM
1000 screen number is reserved for the Selection-screen.
And when calling the screen, it should not be in quotes. It should be
CALL SCREEN 100. Thats it!
‎2009 Feb 03 9:05 AM
‎2009 Feb 03 9:05 AM
Hi,
You have defined table control using screem 1001. & You hav calld up ur table control in the module pool of screen1000.
Check it 7 do debugging & try to find on which line where it is getting dumped.
Regards
Mudit
‎2009 Feb 03 9:06 AM
Hi,
call screen '1000'.Try to give it as,
CALL SCREEN 1000. "Do not give it within quotesHope this helps.
Regards,
Deepthi.
‎2009 Feb 03 9:09 AM
Hi Divya,
R u using a different screen for Table control?
If yes then your approach should be as below:
1)First create a screen 1000.
2)At PAI of 1000 you should call screen 1001 for Table control view.
3)Make sure that all component should be activated.
Note: you can't call screen 1000 from Report Program(Executable Program).By default it's 1000.
-Rick
‎2009 Feb 03 9:12 AM
Hi,
your code looks ok there is nothing any problem.
But change the screen number from 1000 to other number.
As per my research this number is reserved by the standard.
actually when we create selection screen then by default screen number '1000' get create.
So change the screen number and run your program.......
Hope it will help you.
Thanks
Arun Kayal.
Edited by: Arun Kayal on Feb 3, 2009 10:13 AM
‎2009 Feb 03 9:40 AM
Hi,
I can suggest you few points please follow these and see....
!) Put the Different screen number other than 1000.
2) No need of using quotes while calling screen...
3) while declaring the table control
For ex : Controls TC1 type tableview using screen '1001'.
But the screen u have devleoped is 1000.Please check.
4) No need of using Cursor stmt i guess....if u are using normal table control...
Loop at itab into wa with control TC1.
endloop.
Hope this will help.Please revert in case of any queries.
Regards,
Rohan.