i have 2 fields on selection screen of a Report along with
a check box.My requirement is initially that first field
sud be mandatory but when we click on the check box the
first field which was mandatory sud now be optional and the
second field now sud be mandatory.Please provide the
solution asap. thank u.

Answer Posted / harsh bansal

you shud code in AT Selectin
screen event

At selection screen.
If p_checkbox is initial.
If first_field is initial.
Message e000(zmsgclass).
Endif.
Elseif p_checkbox eq 'X'.
If second_field is initial.
Message e001(zmsgclass).
Endif.
Endif.

This vl b enuf..

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the function module and a normal abap/4 subroutine?

638


What is a data dictionary? : sap abap data dictionary

557


Explain the Inportance of pa40? : abap hr

582


what next in SAP-ABAP/4 is it going to be change?

1657


What are the tcodes for performance tuning?

911






Why do we use logical blocks in abap program?

1453


I am trying to automate a manual processing of iDOCs in BD87. I used the following code to pass idoc-id to global variable 'DCN' and then skip the first screen of BD87 to go to processing directly. After running this code SET PARAMETER ID 'DCN' FIELD itabhdr-idoc_id. CALL TRANSACTION 'BD87' AND SKIP FIRST SCREEN. it takes me to the first screen because it cannot recognize my idoc-id. How I can pass idoc-id to global? I have used the above code to goto VA02 with VBELN and it worked perfectly.

1768


What are the attributes of the data in data dictionary? : abap data dictionary

608


What is an authorization in sap?

615


What are the functional areas?

617


How will you link form with the event driven in sap scripts?

535


Can you show multiple alvs on a single screen?

602


What are the major steps will you use for tuning?

595


How you attach search help to data element? : sap abap data dictionary

663


What is the purpose of at first and at last?

598