2013 Mar 02 9:23 AM
hi all
i'm now working with the selection screes... and when i'm executing my program i'm getting this error "Error when generating the selection screen "1000" of report "ZRFKOPR00".. i'm not able to figure out where the problem in the selection screen. pls help me with this.
Thanks & regards.
2013 Mar 02 9:44 AM
Check the generated screen via SE51, maybe there are some fields overlapping or such errors.
If you don't find, post the code of the selection-screen, especially lines not basic like simple parameters or select-options, but the lines where you could have coded some begin of line / end of line or that kind of code.
Regards,
Raymond
2013 Mar 02 9:44 AM
Check the generated screen via SE51, maybe there are some fields overlapping or such errors.
If you don't find, post the code of the selection-screen, especially lines not basic like simple parameters or select-options, but the lines where you could have coded some begin of line / end of line or that kind of code.
Regards,
Raymond
2013 Mar 02 9:51 AM
hi,
i've checked it in se51 but i didn't find any fields overlapping there. here is the code and pls find a solution for it
begin_of_block 2.
PARAMETERS:
sortart LIKE rfpdo1-koprsoar DEFAULT '1', "Doku
verdicht LIKE rfpdo1-koprverd DEFAULT '2', "Doku
rastverd LIKE rfpdo1-koprrast DEFAULT '0', "Doku
konzvers LIKE rfpdo-dopokonz, "Konzernversion
xbukrdat LIKE rfpdo3-allgbukd DEFAULT 0, "Bukr.daten
kausgabe LIKE rfpdo3-allgkaor NO-DISPLAY.
* SELECTION-SCREEN BEGIN OF LINE.
* SELECTION-SCREEN COMMENT 01(30) TEXT-030.
PARAMETERS: rart-net LIKE rfpdo-doprrnet NO-DISPLAY . " DEFAULT 'X'.
* SELECTION-SCREEN COMMENT 33(01) TEXT-028.
PARAMETERS: rart-skt LIKE rfpdo-doprrskt NO-DISPLAY. "DEFAULT 'X'.
* SELECTION-SCREEN COMMENT 35(01) TEXT-028.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: rart-alt LIKE rfpdo1-koprralt DEFAULT 'X'.
*SELECTION-SCREEN COMMENT 03(28) text-031. "N740800
SELECTION-SCREEN COMMENT 03(28) text-031 FOR FIELD rart-alt. "N740800
SELECTION-SCREEN POSITION POS_HIGH.
PARAMETERS rbldat LIKE rfpdo2-kord10bd DEFAULT 'X'.
*SELECTION-SCREEN COMMENT 61(12) text-032. "N740800
SELECTION-SCREEN COMMENT 61(12) text-032 FOR FIELD rbldat . "N740800
SELECTION-SCREEN END OF LINE.
* SELECTION-SCREEN COMMENT 37(01) TEXT-028.
PARAMETERS: rart-ueb LIKE rfpdo-doprrueb NO-DISPLAY. " DEFAULT 'X'.
* SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 01(31) text-026. "N740800
SELECTION-SCREEN COMMENT 01(31) text-026 FOR FIELD rastbis1. "N740800
PARAMETERS: rastbis1 LIKE rfpdo1-allgrogr DEFAULT '000'.
SELECTION-SCREEN COMMENT 35(02) TEXT-027.
PARAMETERS: rastbis2 LIKE rfpdo1-allgrogr DEFAULT '020'.
SELECTION-SCREEN COMMENT 41(02) TEXT-027.
PARAMETERS: rastbis3 LIKE rfpdo1-allgrogr DEFAULT '040'.
SELECTION-SCREEN COMMENT 47(02) TEXT-027.
PARAMETERS: rastbis4 LIKE rfpdo1-allgrogr DEFAULT '080'.
SELECTION-SCREEN COMMENT 53(02) TEXT-027.
PARAMETERS: rastbis5 LIKE rfpdo1-allgrogr DEFAULT '100'.
SELECTION-SCREEN COMMENT 01(31) text-026. "N740800
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
*SELECTION-SCREEN COMMENT 01(31) text-029. "N740800
SELECTION-SCREEN COMMENT 01(31) text-029 FOR FIELD faktor. "N740800
PARAMETERS: faktor LIKE rfpdo-doprfakt DEFAULT '0'.
*SELECTION-SCREEN COMMENT 35(1) text-028. "N740800
SELECTION-SCREEN COMMENT 35(1) text-028 FOR FIELD stellen. "N740800
PARAMETERS: stellen LIKE rfpdo-doprfakt DEFAULT '0'.
SELECTION-SCREEN END OF LINE.
PARAMETERS: pzuor LIKE rfpdo2-doprzuor.
PARAMETERS: umsatzkz LIKE rfpdo1-doprshbo. "DEFAULT 'WSABIMVD'.
PARAMETERS:
title LIKE rfpdo1-allgline,
listsep LIKE rfpdo-allglsep,
mikfiche LIKE rfpdo-allgmikf.
PARAMETERS:
p_lvar LIKE gs_variant-variant DEFAULT space MODIF ID 508.
end_of_block 2.
*********************************************
2013 Mar 02 10:31 AM
HI ENOCH ,
This portion of your code is the root cause of error.
SELECTION-SCREEN COMMENT 01(31) text-026. "N740800
SELECTION-SCREEN COMMENT 01(31) text-026 FOR FIELD rastbis1. "N740800
PARAMETERS: rastbis1 LIKE rfpdo1-allgrogr DEFAULT '000'.
SELECTION-SCREEN COMMENT 35(02) TEXT-027.
PARAMETERS: rastbis2 LIKE rfpdo1-allgrogr DEFAULT '020'.
SELECTION-SCREEN COMMENT 41(02) TEXT-027.
PARAMETERS: rastbis3 LIKE rfpdo1-allgrogr DEFAULT '040'.
SELECTION-SCREEN COMMENT 47(02) TEXT-027.
PARAMETERS: rastbis4 LIKE rfpdo1-allgrogr DEFAULT '080'.
SELECTION-SCREEN COMMENT 53(02) TEXT-027.
PARAMETERS: rastbis5 LIKE rfpdo1-allgrogr DEFAULT '100'.
SELECTION-SCREEN COMMENT 01(31) text-026. "N740800
SELECTION-SCREEN END OF LINE.
Especially the declaration of Field RASTBIS1 is causing the problem.
You can check this by commenting this codes.
I am puzzled why this code is creating this problem.
2013 Mar 02 10:38 AM
HI,
The problem is in below statements.
this is part of code based on mentioned below.
I have commented some lines and this works now.
Some comment alignments has issues.
Please check.
SELECTION-SCREEN BEGIN OF LINE.
*SELECTION-SCREEN COMMENT 01(31) text-026. "N740800
*SELECTION-SCREEN COMMENT 01(31) text-026 FOR FIELD rastbis1. "N740800
PARAMETERS: rastbis1 type ALLGROGR DEFAULT '100'.
* SELECTION-SCREEN COMMENT 35(02) TEXT-027.
PARAMETERS: rastbis2 type ALLGROGR DEFAULT '220'.
* SELECTION-SCREEN COMMENT 41(02) TEXT-027.
PARAMETERS: rastbis3 type ALLGROGR DEFAULT '340'.
SELECTION-SCREEN COMMENT 47(02) TEXT-027.
PARAMETERS: rastbis4 type ALLGROGR DEFAULT '480'.
* SELECTION-SCREEN COMMENT 53(02) TEXT-027.
PARAMETERS: rastbis5 type ALLGROGR DEFAULT '100'.
*SELECTION-SCREEN COMMENT 01(31) text-026. "N740800
SELECTION-SCREEN END OF LINE.
2013 Mar 02 10:41 AM
Sijin Sij is right
SELECTION-SCREEN COMMENT 01(31) text-026 FOR FIELD rastbis1. "N740800
31 characters from column 01 to 31 + one separator at 32
PARAMETERS: rastbis1 LIKE rfpdo1-allgrogr DEFAULT '000'.
3 characters from 33 to 35 + one separator at 36
SELECTION-SCREEN COMMENT 35(02) TEXT-027.
Ooops back to 35 !
Regards,
Raymond
2013 Mar 02 10:46 AM
2013 Mar 02 10:48 AM
2013 Mar 02 9:52 AM
2013 Mar 02 9:59 AM
begin_of_block 2.
PARAMETERS:
sortart LIKE rfpdo1-koprsoar DEFAULT '1', "Doku
verdicht LIKE rfpdo1-koprverd DEFAULT '2', "Doku
rastverd LIKE rfpdo1-koprrast DEFAULT '0', "Doku
konzvers LIKE rfpdo-dopokonz, "Konzernversion
xbukrdat LIKE rfpdo3-allgbukd DEFAULT 0, "Bukr.daten
kausgabe LIKE rfpdo3-allgkaor NO-DISPLAY.
* SELECTION-SCREEN BEGIN OF LINE.
* SELECTION-SCREEN COMMENT 01(30) TEXT-030.
PARAMETERS: rart-net LIKE rfpdo-doprrnet NO-DISPLAY . " DEFAULT 'X'.
* SELECTION-SCREEN COMMENT 33(01) TEXT-028.
PARAMETERS: rart-skt LIKE rfpdo-doprrskt NO-DISPLAY. "DEFAULT 'X'.
* SELECTION-SCREEN COMMENT 35(01) TEXT-028.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: rart-alt LIKE rfpdo1-koprralt DEFAULT 'X'.
*SELECTION-SCREEN COMMENT 03(28) text-031. "N740800
SELECTION-SCREEN COMMENT 03(28) text-031 FOR FIELD rart-alt. "N740800
SELECTION-SCREEN POSITION POS_HIGH.
PARAMETERS rbldat LIKE rfpdo2-kord10bd DEFAULT 'X'.
*SELECTION-SCREEN COMMENT 61(12) text-032. "N740800
SELECTION-SCREEN COMMENT 61(12) text-032 FOR FIELD rbldat . "N740800
SELECTION-SCREEN END OF LINE.
* SELECTION-SCREEN COMMENT 37(01) TEXT-028.
PARAMETERS: rart-ueb LIKE rfpdo-doprrueb NO-DISPLAY. " DEFAULT 'X'.
* SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 01(31) text-026. "N740800
SELECTION-SCREEN COMMENT 01(31) text-026 FOR FIELD rastbis1. "N740800
PARAMETERS: rastbis1 LIKE rfpdo1-allgrogr DEFAULT '000'.
SELECTION-SCREEN COMMENT 35(02) TEXT-027.
PARAMETERS: rastbis2 LIKE rfpdo1-allgrogr DEFAULT '020'.
SELECTION-SCREEN COMMENT 41(02) TEXT-027.
PARAMETERS: rastbis3 LIKE rfpdo1-allgrogr DEFAULT '040'.
SELECTION-SCREEN COMMENT 47(02) TEXT-027.
PARAMETERS: rastbis4 LIKE rfpdo1-allgrogr DEFAULT '080'.
SELECTION-SCREEN COMMENT 53(02) TEXT-027.
PARAMETERS: rastbis5 LIKE rfpdo1-allgrogr DEFAULT '100'.
SELECTION-SCREEN COMMENT 01(31) text-026. "N740800
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
*SELECTION-SCREEN COMMENT 01(31) text-029. "N740800
SELECTION-SCREEN COMMENT 01(31) text-029 FOR FIELD faktor. "N740800
PARAMETERS: faktor LIKE rfpdo-doprfakt DEFAULT '0'.
*SELECTION-SCREEN COMMENT 35(1) text-028. "N740800
SELECTION-SCREEN COMMENT 35(1) text-028 FOR FIELD stellen. "N740800
PARAMETERS: stellen LIKE rfpdo-doprfakt DEFAULT '0'.
SELECTION-SCREEN END OF LINE.
PARAMETERS: pzuor LIKE rfpdo2-doprzuor.
PARAMETERS: umsatzkz LIKE rfpdo1-doprshbo. "DEFAULT 'WSABIMVD'.
PARAMETERS:
title LIKE rfpdo1-allgline,
listsep LIKE rfpdo-allglsep,
mikfiche LIKE rfpdo-allgmikf.
PARAMETERS:
p_lvar LIKE gs_variant-variant DEFAULT space MODIF ID 508.
end_of_block 2.
2013 Mar 02 10:13 AM
First compare your source with the SAP original, use SE39. (Insure to compare with latest version as of Note 1703359 - RFKOPR00/RFKOPR10: Internal adjustments)
Regards,
Raymond
2013 Mar 03 5:41 AM
Hi Enoch,
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 01(31) text-026. "N740800
SELECTION-SCREEN COMMENT 01(31) text-026 FOR FIELD rastbis1. "N740800
**********This is the first line in this set,so default it will take position 0.
SELECTION-SCREEN COMMENT 35(02) TEXT-027.
PARAMETERS: rastbis2 LIKE rfpdo1-allgrogr DEFAULT '020'.
**********This is the second line in this set,we have to mention the position where it has to be displayed in the line.
As the position is not mentioned the screen fields overlaps in the same position,so it is generating error while generation screen.
Regards,
Anand raj.S