‎2007 Jul 16 6:56 AM
TABLES : VBAK.
CONSTANTS: c_x TYPE c VALUE 'X'.
SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
PARAMETERS : p_c1 AS CHECKBOX USER-COMMAND cmd.
SELECT-OPTIONS: s_list FOR VBAK-VBELN MODIF ID sc1.
SELECTION-SCREEN END OF BLOCK blk2 .
AT SELECTION-SCREEN OUTPUT.
CASE p_c1.
WHEN ' '.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
WHEN c_x.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-input = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDCASE.
this code is working fine, but i am getting a small field before VBELN, how can i remove this field. Why this field is coming to screen.
Any suggestions will be great.
regards
Sudhakar
‎2007 Jul 16 6:57 AM
Hi,
you are getting the check box (p_c1) which you have declared in your program.
for more information on your check box please check out the link below it will help you
http://help.sap.com/saphelp_nw04s/helpdata/en/97/ad884118aa1709e10000000a155106/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/6d/4a9e41a00bd960e10000000a1550b0/content.htm
http://www.erpgenie.com/sapgenie/docs/implementing%20checkboxes.doc
regarding selection screen.
http://help.sap.com/saphelp_nw04/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm
**********please reward points if the information is helpful to you************
‎2007 Jul 16 7:00 AM
hi,
the field u r getting is the checkbox which u have declare before vbeln select-option.
regards,
Navneeth K.
‎2007 Jul 16 7:01 AM
Hi,
I just copy pasted the code given below and my layout is perfect and no field is there before the VBELN field.
There is just a checkbox and the select-options for VBELN field.
Regards,
Himanshu
‎2007 Jul 16 7:01 AM
Hi,
Remove this code,
PARAMETERS : p_c1 AS CHECKBOX USER-COMMAND cmd
Thanks.
Reward If Helpful.
‎2007 Jul 16 7:02 AM
Hello friend,
Below given is your code modified by me. Hope this will help you.
Reward if found helpfull.
Regards.
Rakesh.
TABLES : VBAK.
CONSTANTS: c_x TYPE c VALUE 'X'.
SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
*PARAMETERS : p_c1 AS CHECKBOX USER-COMMAND cmd.
SELECT-OPTIONS: s_list FOR VBAK-VBELN MODIF ID sc1.
SELECTION-SCREEN END OF BLOCK blk2 .
AT SELECTION-SCREEN OUTPUT.
*CASE p_c1.
*WHEN ' '.
*LOOP AT SCREEN.
*IF screen-group1 = 'SC1'.
*screen-input = 0.
*ENDIF.
*MODIFY SCREEN.
*ENDLOOP.
*WHEN c_x.
*LOOP AT SCREEN.
*IF screen-group1 = 'SC1'.
*screen-input = 1.
*ENDIF.
*MODIFY SCREEN.
*ENDLOOP.
*ENDCASE.
‎2007 Jul 16 7:10 AM
Friends
The scenario is when i click the check box, then only it show the VBELN field, that is working fine, but when click checkbox, it is displaying the vbeln and another small field before vbeln which is not required. i want to remove this, why this field is came into picture.
please run program and find the problem once.
need your suggestions
‎2007 Jul 16 7:16 AM
Are u talking about the small button which is coming after the select-option. If yes, then that is Multiple selection button. Using this u can enter multiple values or ranges for ur field.
If u want to renove that button, then just define Select-Options as follows :
<b>SELECT-OPTIONS: s_list FOR vbak-vbeln NO-EXTENSION MODIF ID sc1</b>.
Regards,
Himanshu
‎2007 Jul 16 7:22 AM
Hello friend,
I execute your code, and thought this is your requirement.
Please try this code.
Reward if found helpfull.
Regards,
Rakesh.
TABLES : vbak.
CONSTANTS: c_x TYPE c VALUE 'X'.
SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
PARAMETERS : p_c1 AS CHECKBOX USER-COMMAND cmd.
SELECT-OPTIONS: s_list FOR vbak-vbeln MODIF ID sc1.
SELECTION-SCREEN END OF BLOCK blk2 .
AT SELECTION-SCREEN OUTPUT.
CASE p_c1.
WHEN ' '.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
WHEN c_x.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-input = 1.
ENDIF.
IF screen-name = 'P_C1'.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDCASE.
‎2007 Jul 16 7:25 AM
Hi please observe the feild VBELN, you will see another small feild.
X p_c1
-
s_list | | low | high |
-
i dont want first feild, low and high are ok, no problem with them, why i am getting small blank field before low and high feild
‎2007 Jul 16 7:30 AM
Hi Sudhakara,
I dont see any problem in the layout. If u r taling about the blank in between S_LIST and the Low field, then it is the standard. Whwnever, u create any select-option or even a parameter, u get such a gap between the field and the text.
Regards,
Himanshu
‎2007 Jul 16 7:27 AM
hi..
its because u have declared
<b>PARAMETERS : p_c1 AS CHECKBOX USER-COMMAND cmd</b>
u just remove this.. its working fine..
that is why this field is coming there in the screen..
<b>Reward poits if useful</b>
Regards
Ashu
‎2007 Jul 16 7:31 AM
Yes finally you got my problem, i don't want to display this small field before vbeln range.
any suggestions?
‎2007 Jul 16 7:35 AM
Hi sudhakara,
It is an SAP standard. You cannot change that.
As an example, try this code also.
TABLES: likp,lips.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS:so_date FOR likp-lfdat, "Delivery date
so_shppt FOR likp-vstel, "Shipping point
so_matnr FOR lips-matnr. "Material number
SELECTION-SCREEN END OF BLOCK b1.
Reward all usefull answers.
Regards,
Rakesh.
Message was edited by:
RAKESH S R
‎2007 Jul 16 7:44 AM
Hi
please observe carefully, when you click checkbox , you will see another small blank field before vbeln-low.
-
VBELN-LOW |
-
you got my point?
‎2007 Jul 16 7:49 AM
Hello friend,
It is so in SAP. You check <b>so_date</b> in the the code which i pasted above.
Regards,
Rakesh.