Skip to Content
0
Former Member
May 30, 2008 at 05:23 AM

Help on Selection-Option

152 Views

Hi guys, pardon the question but I'm still new to ABAP programming.

Can't really explain it well so I'll just post the code.

TABLE: BSID

DATA: Ccode(4) TYPE C,

Fiscal(4) TYPE C.

SELECT-OPTIONS ComCode FOR Ccode No Intervals No-Extension OBLIGATORY.

SELECT-OPTIONS FYear FOR Fiscal No Intervals No-Extension OBLIGATORY.

SELECT * FROM BSID.

WRITE: BSID-BUKRS, BSID-GJAHR.

WRITE FYear.

ENDSELECT.

My problem is this, I get the parameter of FYear from the selection option in order to compare it to a field in the table. But everytime I get this. IEQ***. I can't compare it with the IEQ in the way, and If I try to make the Fyear an integer it writes. IEQ***00000. Is there any way to fix this. I'm new to this, just answering an exercise requiring me to use select-option statement as parameters. Any help would be great