Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Checkbox issue

sudhakar196
Participant
0 Likes
1,240

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

15 REPLIES 15
Read only

Former Member
0 Likes
1,220

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************

Read only

Former Member
0 Likes
1,220

hi,

the field u r getting is the checkbox which u have declare before vbeln select-option.

regards,

Navneeth K.

Read only

Former Member
0 Likes
1,220

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

Read only

Former Member
0 Likes
1,220

Hi,

Remove this code,

PARAMETERS : p_c1 AS CHECKBOX USER-COMMAND cmd

Thanks.

Reward If Helpful.

Read only

Former Member
0 Likes
1,220

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.

Read only

sudhakar196
Participant
0 Likes
1,220

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

Read only

0 Likes
1,220

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

Read only

0 Likes
1,220

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.

Read only

0 Likes
1,220

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

Read only

0 Likes
1,220

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

Read only

Former Member
0 Likes
1,220

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

Read only

0 Likes
1,220

Yes finally you got my problem, i don't want to display this small field before vbeln range.

any suggestions?

Read only

0 Likes
1,220

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

Read only

0 Likes
1,220

Hi

please observe carefully, when you click checkbox , you will see another small blank field before vbeln-low.

-


VBELN-LOW

-


you got my point?

Read only

0 Likes
1,220

Hello friend,

It is so in SAP. You check <b>so_date</b> in the the code which i pasted above.

Regards,

Rakesh.