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

how to pass internal table values to parameter

hi,

how to pass internal table values to parameter in selection screen.if is it possible means please sent codeings.

thanks.

stalin.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Sep 07, 2007 at 12:46 PM

    Hi stalin.

    Parameter field accepts a single value.

    Where as internal table can have many records.

    So which record you want to pass.

    in the INITIALIZATION event YOU can pass the required record to the PARAMETER.

    <b><REMOVED BY MODERATOR></b>

    Message was edited by:

    Alvaro Tejada Galindo

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 07, 2007 at 12:52 PM
    • VENDOR NUMBER TO BE SENT INDIVIDUALLY

    wa_seltab-selname = 'KD_LIFNR'.

    wa_seltab-sign = 'I'.

    wa_seltab-option = 'EQ'.

    wa_seltab-low = wa_vendors-lifnr.

    wa_seltab-kind = c_p.

    APPEND wa_seltab TO i_seltab.

    SUBMIT (c_fbl1n)

    • VIA SELECTION-SCREEN

    TO SAP-SPOOL

    VIA

    JOB w_jobname " JOBNAME

    NUMBER w_jobcount " UNIQUE ID OF JOB

    DESTINATION c_print

    IMMEDIATELY ' '

    KEEP IN SPOOL c_prt_kspool

    LAYOUT c_layout

    WITHOUT SPOOL DYNPRO "SKIP PRINT DIALOG SCREEN

    <b> WITH SELECTION-TABLE i_seltab " USER INPUT</b>

    AND RETURN.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2007 at 12:53 PM

    hi,

    tables : mara.

    data : begin of itab_mara occurs 0,

    matnr like mara-matnr,

    ernam like mara-ernam,

    end of itab_mara.

    selection-screen : begin of block blk1 with frame title text-001.

    parameters : p_matnr like mara-matnr.

    selection-screen : end of block blk1.

    select matnr ernam from mara into corresponding fields of itab_mara

    where matnr = p_matnr.

    loop at itab_mara.

    write :/ itab_mara-matnr,

    itab_mara-ernam.

    endloop.

    <b><REMOVED BY MODERATOR></b>

    Message was edited by:

    Alvaro Tejada Galindo

    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.