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

Calling one program from another program

Hi,

I need to call RVKUSTA1 program into Function module & that FM to used in BDT. So I think I shouldn't use Select-options. So any of u could u please send me the sample code.

Thanks ,

Rani

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2006 at 03:27 PM

    Hi Rani,

    While calling another program which having selection-screen, you can supress that selection screen in the SUBMIT program by using variaants and range fields to pass corresponding fields in the selection screen

    regards,

    ram

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2006 at 03:29 PM

    You can use

    SUBMIT <Program> ... WITH SELECTION-TABLE seltab

    <b>Effect</b>

    seltab is an internal table with the structure RSPARAMS.

    This variant allows you to set the names and contents of the parameters and selection options dynamically at runtime.

    You can use the function module <b>RS_REFRESH_FROM_SELECTOPTIONS</b> to read the contents of the parameters and selection options of the current program into an internal table seltab with the structure <b>RSPARAMS</b>. By using <b>SUBMIT ... WITH SELECTION-TABLE seltab</b>, you can then pass these values on directly.

    Regds

    Manohar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 13, 2006 at 03:32 PM

    Hi Rani,

    Refer the following.

          SUBMIT Program_Name
            WITH p1  EQ value1
            WITH p2  EQ value2
            WIth p3  EQ vlaue3
          AND RETURN.

    Here, p1, p2, p3 are the parameters and value1, value2, value3 are corresponding values of the selection screen parameter.

    <b>Reward points if it helps.</b>

    Message was edited by: Amit Mishra

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2006 at 03:47 PM

    hi

    SUBMIT REPORT_name

    VIA SELECTION-SCREEN

    USING SELECTION-SET 'VARIANT1'

    USING SELECTION-SETS OF PROGRAM 'REPORT'

    AND RETURN.

    It uses variants of the program REPORT when executing the program REPORT_name.

    The programs REPORT_name and REPORT must have the same SELECT-OPTIONS and PARAMETERs.

    Regards,

    Richa

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2006 at 04:03 PM

    Hi Rani,

    Please look into the FM: CRM_CCKPT_EXPORTSUMMARY.

    This FM is similar to what you are doing. It is internally calling the report RVKUSTA1.

    And also, look into these includes (Std. SAP) where this same report is being called via SUBMIT functionality:

    - MV45AF0F_FCODE_KUST

    - MV43AF0F_FCODE_KUST

    Hope this helps.

    Regards,

    Sumant.

    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.