‎2009 May 12 2:48 PM
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
‎2009 May 12 2:53 PM
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
‎2009 May 12 2:55 PM
you can do it there:
START-OF-SELECTION.
if s_bukrs IS INITIAL OR s_belnr IS INITIAL.
write error msg
ENDIF.
regards jacko
‎2009 May 12 3:42 PM
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.
‎2009 May 12 3:48 PM
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.
‎2009 May 12 3:54 PM
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