Skip to Content
author's profile photo Former Member
Former Member

GET and CHECK select-options.

hi,

i have a report where it has lines like

GET ekko FIELDS bstyp ebeln ekorg ekgrp bedat ernam lifnr.

CHECK select-options.

i tried to check for SAP help, but it said, its become obsolete.

can you please tell me how does this syntax work and if i want to change it what is the alternative to it?

thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 10:34 AM

    hi.

    GET and CHECK are used only in case of logical databases.

    GET is used for fetching the required data from databse tables and CHECK is required for checking the data gin in select options.

    they are used only in case of reports used for logical databases,it is not used in the usual report programs.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi all, thanx a lot for replying.

      so, i guess this GET + CHECK can be replaced by SELECT+WHERE...

      but when does this get statement end? like if i replace it with select, then i would have to put ENDSELECT somewhere.. i guess there is no ENDGET in the report..

      the code is like as follows...

      START-OF-SELECTION.

      GET ekko FIELDS bstyp ebeln ekorg ekgrp bedat ernam lifnr.

      CHECK select-options.

      CHECK ekko-bstyp = 'F'.

      PERFORM some_subroutine

      IF sy-subrc EQ 0.

      "LOTS OF CODE PROCESSING"

      ENDIF.

      TOP-OF-PAGE.

      "some code"

      END-OF-SELECTION.

      so, how do i replace it with the select query?

      does the GET statement is executed for entire START-OF-SELECTION event?

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 09:57 AM

    Hi Chinmay,

    This is the way in which coding is done while using logical database.

    CHECK select-options.

    is just like adding select-options values in the where clause of select query.

    GET ekko FIELDS bstyp ebeln ekorg ekgrp bedat ernam lifnr.

    This statement will loop at entries in EKKO.

    In CHECK select-options, it will check if the entrie are valid as per select-option criteria

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 10:01 AM

    Hi,

    In logical database, GET means fetch data from the specified table for the given fields.

    And check select-options, is for to filter the fetched records like where clause.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 08:41 PM

    created a seperate question post for the same

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.