2007 Jan 15 12:09 PM
HI ALL,
IN THE CLASSICAL REPORT , WHILE EXECUTING THE REPORT, THE SELECTION SCREEN SHOULD HAVE SELECTION OPTIONS, DELETE SELECTION CRITERIA, SELECTION SCREEN HELP, AND THE NUMBER OF ENTRIES APART FROM THE EXECUTE BUTTON, AS IT SIMILAR TO DATA DICTIONARY SCREEN WHILE WE VIEWING THE CONTENTS OF THE TABLE.
PLEASE HELP ME WITH THE CODE.
2007 Jan 16 2:42 AM
Have a look at the SAP code.
Pick a table.
Select only a few fields for selection.
Use the menu System->status
double-click on the program
look at the code.
Things to note:
in the initialization, function RS_EXTERNAL_SELSCREEN_STATUS sets the pf-status
The commonds from the menu are processed in the AT SELECTION-SCREEN event. You need to code them all yourself.
Regards
Michael
2007 Jan 15 12:15 PM
check this code which is for select-options on screen.
SELECTION-SCREEN PUSHBUTTON /2(20) PUSHTEXT USER-COMMAND CLER.
SELECTION-SCREEN BEGIN OF BLOCK B5 WITH FRAME TITLE TEXT-005.
SELECT-OPTIONS: P_VKORG FOR ZSRCCUST-VKORG OBLIGATORY. "D11K922741
SELECTION-SCREEN END OF BLOCK B5.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
select-options: s_cpname for zsrccust-cpname1 no intervals
NO-EXTENSION,
s_cport0 for zsrccust-cport01 no intervals
NO-EXTENSION,
s_cptel for zsrccust-cptelf1 no intervals
NO-EXTENSION.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-003.
PARAMETERS: P_SERNR LIKE V_EQUI-SERNR,
P_TYPBZ LIKE V_EQUI-TYPBZ,
P_MATNR LIKE MARA-MATNR.
SELECTION-SCREEN END OF BLOCK B2.
SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-002.
select-options: s_name1 for zsrccust-name1 no intervals
NO-EXTENSION,
s_kunnr for zsrccust-cpkunnr no intervals
NO-EXTENSION
MATCHCODE OBJECT DEBI,
s_ort01 for zsrccust-ort01 no intervals
NO-EXTENSION,
s_regio for zsrccust-regio no intervals
NO-EXTENSION,
s_pstlz for zsrccust-pstlz no intervals
NO-EXTENSION.
SELECTION-SCREEN END OF BLOCK B3.
----
INITIALIZATION.
----
MOVE 'Clear Selection' TO PUSHTEXT.
----
AT SELECTION-SCREEN.
----
IF SSCRFIELDS-UCOMM = 'CLER'.
CLEAR: S_CPNAME-LOW,
S_CPORT0-LOW,
S_CPTEL-LOW,
S_CPTEL-LOW,
S_NAME1-LOW,
S_KUNNR-LOW,
S_ORT01-LOW,
S_REGIO-LOW,
S_PSTLZ-LOW,
P_MATNR, P_TYPBZ, P_SERNR.
REFRESH: S_CPNAME,
S_CPORT0,
S_CPTEL,
S_CPTEL,
S_NAME1,
S_KUNNR,
S_ORT01,
S_REGIO,
S_PSTLZ.
MESSAGE E038.
ENDIF.
<b>AWARD POINTS...........</b>
2007 Jan 15 12:38 PM
Hi thanks for your response.
But i need menu bar as we see the in the SE11. While displaying table contents , we got one menu right..i need that menu in my report..while i executing .
2007 Jan 15 12:43 PM
Hi go to sell-->give one table name--->display (F7-key)
Now i want to design the menu bar in my report.
Can u help with code.
Assured points.
2007 Jan 16 2:42 AM
Have a look at the SAP code.
Pick a table.
Select only a few fields for selection.
Use the menu System->status
double-click on the program
look at the code.
Things to note:
in the initialization, function RS_EXTERNAL_SELSCREEN_STATUS sets the pf-status
The commonds from the menu are processed in the AT SELECTION-SCREEN event. You need to code them all yourself.
Regards
Michael
2007 Jan 16 7:35 AM
Hi Michael,
thank you very much for your solution. It solved my problem.
Regards
Ashok