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

select options for multiple entries

Former Member
0 Likes
880

hi,

in selection screen i have 2 select-options as below

SELECT-OPTIONS: s_belnr FOR bkpf-belnr ,

s_bukrs FOR bkpf-bukrs.

the problem is if BELNR or BUKRS are not given the error message should be displayed as enter the required fields.

if i keep the OBLIGATORY i will get the message but if i keep OBLIGATORY first they need to enter one belnr or bukrs in selection screen then it allows for multiple option but the bussiness want to directly goto multiple option and upload data.

please help

5 REPLIES 5
Read only

Former Member
0 Likes
737

Hi neethu,

Try in this way,

SELECT-OPTIONS: s_belnr FOR vbrk-fkdat OBLIGATORY.

SELECT-OPTIONS: s_bukrsFOR vbrk-fkart OBLIGATORY.

and also i did not get your requirement clearly,

can you be more clear at next time?

Thanks and regards

Anup

Read only

Former Member
0 Likes
737

you can do it there:

START-OF-SELECTION.

if s_bukrs IS INITIAL OR s_belnr IS INITIAL.

  • write error msg

ENDIF.

regards jacko

Read only

Former Member
0 Likes
737

Hi,

SELECT-OPTIONS: S_BELNR FOR BKPF-BELNR ,
S_BUKRS FOR BKPF-BUKRS.

"  Find the UCOMM of the extension in debugg mode
AT SELECTION-SCREEN ON S_BELNR.
  IF S_BELNR[] IS INITIAL AND SY-UCOMM NE <FCODE>. "-->function code of S_BELNR Extension button
    MESSAGE E016(PN) WITH 'ERROR MESSAGE'.
  ENDIF.

Read only

faisalatsap
Active Contributor
0 Likes
737

Note Replace P with % Sign in IF Condition it not allow me to Put % there

TABLES: bkpf.
SELECT-OPTIONS: s_belnr FOR bkpf-belnr,
                s_bukrs FOR bkpf-bukrs.

AT SELECTION-SCREEN.
  IF s_belnr[] IS INITIAL AND s_bukrs[] IS INITIAL AND sy-ucomm NE 'P000' AND sy-ucomm NE 'P001'.
    IF s_belnr[] IS INITIAL OR s_bukrs IS INITIAL.
      MESSAGE: 'Please Enter Value in Bothe Fields' TYPE 'E'.
    ENDIF.
  ENDIF.

Read only

Former Member
0 Likes
737

Hi

SELECT-OPTIONS: s_belnr FOR bkpf-belnr ,

s_bukrs FOR bkpf-bukrs.

at selection-screen.

if s_bukrs[] is initial and s_belnr is initial.

message.

endif.

Kiran