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

SELECT OPTIONS IN SMARTFORMS

GLOBAL DEFINITIONS-INITIALIZATION:

.

SELECT DISTINCT A~PERNR B~ENAME A~BEGDA C~ORGTX INTO TABLE
ITABLE FROM PA0000 AS A INNER JOIN PA0001 AS B ON A~PERNR = B~PERNR
INNER JOIN T527X AS C ON B~ORGEH = C~ORGEH
WHERE A~PERNR IN P_PERNR AND A~MASSN = '02' AND C~SPRSL = 'E'.

WHERE SHOULD I DECLARE P_PERNR AND HOW?

I TRIED 'P_PERNR LIKE PERNR' IN FORM INTERFACE BUT THE ERROR IS

NODE:GLOBAL DEFINITIONS

ERROR:'THE IN OPERATOR WITH "P_PERNR" IS FOLLOWED NEITHER BY AN INTERNAL TABLE NOR BY A VALUE LIST

ANY IDEAS?

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Dec 05, 2007 at 04:54 AM

    Hi,

    Check this link.I am explaining here how to use select-options in smartforms.You need to pass the select-options from program to smartforms.

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287

    Message was edited by:

    Jayanthi Jayaraman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 04:00 AM

    Hi,

    In smartforms in General settings , in Import tab define a variabe as p_pernr1 type persno and p_pernr2 type persno.

    and while calling the smartform pass the value as

    call function .....

    exporting

    ..

    p_pernr1 = p_pernr-low

    p_pernr2 = p_pernr-high

    and in the select cluase use between statment for retreving the data.

    regards,

    Santosh Thorat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 04:39 AM

    Hi,

    The inputs used in smartforms are declared in form interface. Also declare internal table which has PERNR as a field in it. While using in coding use with the internal table name. That's why it is showing error.

    Hope this helps u.

    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.