Skip to Content
0
Former Member
Nov 28, 2005 at 05:58 PM

need help to choose the right type of program ??

118 Views

Hi,

I am trying to enhance the screen FB12. User must be able to enter a range of values for a few fields like Company code, document number, posting date etc.

So I am trying to write a custom program say ZFB12 and want these fields to be displayed for user selection. After the user select the values, correspondence should be generated just like FB12 functionality.

It so happened that I copied the program responsible for FB12 and tried to add Selection screen fields like

SELECT-OPTIONS: so_cc FOR BKPF-BURKS,

so_doctype FOR BKPF-BLART,

so-entrydate FOR BKPF-CPUDT,

so_postingdate FOR BKPF-budat,

so_docnum FOR BKPF-BELNR,

so_fiscalyear FOR BKPF-GJAHR.

START-OF-SELECTION.

But I am getting a syntax error, which says

"SELECT-OPTIONS is only allowed between BEGIN/END OF SCREEN for programs with type other than 1"

What does it mean and what am I supposed to do ??

thanks