16.12.10

SAP Note 13827 - Problems with your own reference screens for selection scree

Symptom:

The following error can occur when using your own reference screens for the selection screen of a report:

1.) Comments and underscores, which were defined with SELECTION-SCREEN COMMENT or SELECTION-SCREEN ULINE and were left on the reference screen, do not appear on the selection screen.
2.) The database program SAPDBldb has several selection screens; i.e., there are more objects defined in DBldbSEL than fit on a screen. All these objects, as well as pushbuttons to scroll between the screens appear without the use of your own reference screens. However, when you use your own selection screens, only those objects which are exactly on the that screen and the scroll buttons are missing if additional screen are not created via report-specific select options or parameters.

Additional key words

() ABAPNOTE SELECTION SCREEN LDB

Cause and prerequisites

Re: 1
The names of the corresponding fields on the selection screen are structured as follows:

- %_xxxnnn for SELECTION-SCREEN COMMENT TEXT-xxx ... FOR TABLE tab
- %_Unnn%% for SELECTION-SCREEN ULINE ... FOR TABLE tab

In this case, 'xxx' is the number of the comment and 'nnn' is a consecutive number that was used in the report generation to number the SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statements.
When generating a selection screen based on a reference screen, the system searched for the corresponding object in the currently generated version of the report to decide whether a reference screen is to be copied or ignored.
The error occurred if, after creating the reference screen in the database INCLUDE DBxyzSEL (xyz = name of the logical database), a SELECT-OPTIONS, PARAMETERS or SELECTION-SCREEN statement was included or removed from it before the SELECTION-SCREEN statement. Because of the resulting shift in the consecutive number, the fields were not found in the current load and as a result they were not copied to the selection screen.
Re: 2
Only this is supported. When using your own reference screens only the onjects found in the screen are taken into consideration.

Solution
Re: 1
In such a case, generate Dynpro 1000 of the databank program SAPDBxyz (SE38, Prgram --> Generate). Then copy the filed names from this dynpro, which contains correct consecutive numbers) onto the reference screen.
Afterward, the selection screen of the report must also be regenerated.

Re: 2
When using your own selection screen, the database-specific portion is limited to a maximum of one page. In any case, objects in a selection screen can appear which are split across several dynpros in the "normal case."

From 3.0:
There are no longer any reference screens; they have been replaced by the defining selection screen versions SELECTION-SCREEN BEGIN/ END OF VERSION.

Keyword: Reference screens

No comments:

Post a Comment