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

Start of selection

0 Kudos
1,316

Hello all,

I attend some courses for Abap development and I encounterd the following issue:

I made a program that gather flight info and I need to set a checkbox in the start of selection for a parameter that should return only the canceled flights.

I defined it in the start of selectiin but I don t know how to make it do what I need.

Can someone help me?

Thank you

7 REPLIES 7
Read only

lenastodal
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,182

Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with: https://community.sap.com/resources/questions-and-answers, as it provides tips for preparing questions that draw responses from our members.

For example, you can:
- outline what steps you took to find answers (and why they weren't helpful)
- share screenshots of what you've seen/done
- make sure you've applied the appropriate tags
- use a more descriptive subject line

The more details you provide, the more likely it is that members will be able to respond. Feel free to also take our Q&A tutorial at: https://developers.sap.com/tutorials/community-qa.html

Should you wish, you can revise your question by selecting Actions, then Edit.

By adding a picture to your profile you encourage readers to respond: https://www.youtube.com/watch?v=46bt1juWUUM


Join or subscribe to SAP Community Groups to stay up-to-date, including SAP TechEd Group.
Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Kudos
1,182

Hello madalinacorina.floca

If you need to define a default value for your checkbox parameter, then the easies way is to use DEFAULT key word - see SAP Help Defining Checkboxes

Best regards

Dominik Tylczynski

Read only

former_member9115
Participant
0 Kudos
1,182

Hi,

Declare check box and give condition as per your requirement.

Simple Example:

*******declaration**********
PARAMETERS       P_CANCL   AS  CHECKBOX. 	        "check box 

**********selection*********
select * from tableA into internalTableA                " Your select statement 

 IF  P_CANCL IS  NOT INITIAL.                         "if check box is checked then 
      DELETE   internaltableA  WHERE STATUS NE  'C'.   "delete data which are not cancel
 ENDIF.
Read only

0 Kudos
1,182

Well said.

Read only

Sandra_Rossi
Active Contributor
0 Kudos
1,182

What is your question except "can someone help"?

Read only

0 Kudos
1,182

hello,

thank for your answers.

sandra.rossi , my questions is " how do I do a checkbox to return all canceled flights"?

for example: this is my cl_salv report

and in the selection-screen I wrote this:

SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS: p_var TYPE disvariant-variant,
p_cb_res AS CHECKBOX,
p_cb_can AS CHECKBOX.
SELECTION-SCREEN: END OF BLOCK b2.
now I dont't know what to do to make that p_cb_can to bring only the canceled flights.

thank you,

Read only

Sandra_Rossi
Active Contributor
0 Kudos
1,182

Something like that?

SELECT * FROM sbook INTO TABLE list_of_bookings WHERE cancelled = p_cb_can.

Next time, please add relevant code to help answering. Here I'm assuming that you read the table SBOOK.