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

module pool programming

hi to all,

if we keep i/o field on our screen,

and we want to select data in our program by taking the value from i/o field ,which is placed on the screen.

what is the procedure,

ex : i/o field name iotext

value entered is 1000

in se38 zscreen_program,

we declared screen field with similar name and lnth,

we want to select data according to field value entered on screen i.e 1000,

select * from datadasetable into corresponding fields of table it_table where field = ?.

' ? " what we have to keep.

kindly send me the code .

thanx in advance.

kumar.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 22, 2008 at 07:30 AM

    Hi kumar ,

    u can directly use the IO field to in the select query as below

    select * from datadasetable into corresponding fields of table it_table where field = iotext

    kumar.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 22, 2008 at 07:33 AM

    data:

    p_data type i.

    start-of-selection.

    select *

    from table1

    into table itab

    where table1-num = p_data.

    other wise

    data

    num type i,

    s_data for num.

    start-of-selection.

    select *

    from table1

    into table itab

    where table-num in s_data.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 22, 2008 at 07:40 AM

    hai Sravan,

    The Concept Behind Passing values From Screen to Program Is IF there is any field With Similar Name it will automatically pass values from screen to program and vice versa.

    tables : spfli.

    parameters: P_carrid type spfli-carrid.

    select carrid

    connid

    fldate

    from sflight

    into table itab where carrid = p_carrid.

    Hope It will clears your problem.

    If Found Helpfull Do Reward.

    Regards.

    Eshwar.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 22, 2008 at 07:56 AM

    Hi,

    In the PAI event all the screen data will be transferred to the program.

    We can write the select statement in PAI module of the screen.

    PAI.

    module select.

    In SE38 program.

    module select input.

    select * from datadasetable into corresponding fields of table it_table where field = iotext.

    endmodule.

    The i/o field name in the program must be same in both screen and program. Otherwise we have to equal them in the PBO module.

    PBO.

    module assign.

    In SE38.

    module assign output.

    program_ field_name = screen_field_name.

    endmodule.

    In the PBO event the data is transfered from the program to screen where as in PAI the data is transfered from the screen to program.

    Reward.

    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.