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

send a values to called program using sumbit

hi ,

I got one problem that i should send a values from the current program to one select-options to the called program ie(other transcation or program) using submit and at the same time the called program should internally takes the values and i should display the output.

ie from submit tcode or program

and i should send a values to tcode or program

thank u

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2007 at 02:29 PM

    Hi Santu,

    Please check the help doc.

    DATA: RANGE_LANGU TYPE RANGE OF SY-LANGU,

    RANGE_LANGU_WA LIKE lINE OF RANGE_LANGU.

    PARAMETERS: MSG_FR LIKE T100-MSGNR,

    MSG_TO LIKE T100-MSGNR.

    MOVE: 'I' TO RANGE_LANGU_WA-SIGN,

    'BT' TO RANGE_LANGU_WA-OPTION,

    'D' TO RANGE_LANGU_WA-LOW,

    'I' TO RANGE_LANGU_WA-HIGH.

    APPEND RANGE_LANGU_WA TO RANGE_LANGU.

    MOVE: 'EQ' TO RANGE_LANGU_WA-OPTION,

    'E' TO RANGE_LANGU_WA-LOW.

    APPEND RANGE_LANGU_WA TO RANGE_LANGU.

    SUBMIT REPORT00

    USING SELECTION-SET 'VARIANT1'

    WITH MSG BETWEEN MSG_FR AND MSG_TO

    WITH LANGU IN RANGE_LANGU.

    'VARIANT1' can be used if you have a variant (VARIANT1) in the report screen.

    Regards,

    George

    • reward points to helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2007 at 02:27 PM

    Hi

    Populate the Select-options range into range paramter R_VBELn and R_WADAT and other paramters into varaiables and use

    SUBMIT ZREPORT <TO SAP-SPOOL Optional>

    WITH s_vbeln IN r_vbeln

    with s_date in r_wadat

    Reward points for useful Answers

    Regards

    Anji

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2007 at 02:29 PM

    Hi santu,

    For getting value back into the calling program you need to use IMPORT in calling program and EXPORT in called program.

    regards,

    Atish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2007 at 02:33 PM

    USE :

    SUBMIT PROGRAM NAME VIA SELECTION-SCREEN

    WITH SELECTION-TABLE t_param

    AND RETURN.

    ELSE ABAP MEMORY :

    REPORT ZTEST_AMEM1.

    tables : lfa1.

    data : begin of i_lfa1 occurs 0 ,

    lifnr like lfa1-lifnr,

    name1 like lfa1-name1,

    land1 like lfa1-land1,

    end of i_lfa1.

    start-of-selection.

    select lifnr

    name1

    land1 from lfa1

    into table i_lfa1 up to 100 rows.

    • Export

    export i_lfa1 to memory id 'SAP'.

    submit ztest_amem2 and return.

    write:/ 'hello'.

    &----


    *& Report ZTEST_AMEM2

    *&

    &----


    *&

    *&

    &----


    REPORT ZTEST_AMEM2.

    data : begin of j_lfa1 occurs 0,

    lifnr like lfa1-lifnr,

    name1 like lfa1-name1,

    land1 like lfa1-land1,

    end of j_lfa1.

    start-of-selection.

    import i_lfa1 to j_lfa1 from memory id 'SAP'.

    loop at j_lfa1.

    write:/ j_lfa1-lifnr,j_lfa1-name1,j_lfa1-land1.

    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2007 at 02:42 PM

    Hi Santu,

    You can do this using the following syntax:

    SUBMIT sunit_report_name
        with parameter_name_1 = parameter_value_1
        with parameter_name_2 = parameter_value_2
        and return.

    You can extend the above with any number of parameters. However, please ensure that the data types of the parameter values being passed and the data types of the parameters in the called report match with each other.

    Let me know in case you face issues. And, ofcourse, award points if you find this useful.!

    Regards,

    Ram

    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.