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

How to execute one abap program from another one , on clicking value from ALV output?

Hi Friends,

can you suggest me something for the below scenarion.

I have a report for printing smartforms based on the value entered on selection screen.

I have crated a new report which will display ALV report. Now I want by clicking any value on the ALV output. It should pass the respective value to the old program and generates the smart form.

regards,

Aman


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 01, 2014 at 04:04 AM

    Hi,

    Process is :

    1) Make the column the need to be clicked by user as a hotspot(an event).

    2) Now you can handle the hotspot event and use the read statement to read the value the user has clicked and pass that value to the smartform.

    Hope this helps.

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 31, 2013 at 01:52 PM

    Just use a SUBMIT statement with one of the USING/WITH options to pass parameters required. Don't use VIA SELECTION-SCREEN if you don't want to see this screen. and use AND RETURN to return to the ALV after execution.


    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 31, 2013 at 01:31 PM

    Hi Aman,

    You can use SUBMIT report concept here.

    * Fill the seltab as per the selection screen parameters of your smartform report.

    seltab_wa-low = lv_value.
    append seltab_wa to seltab.


    * Call the program
    SUBMIT zreport with selection-table seltab
    via selection-screen.


    * For double clink on alv refer below linkh

    https://forums.sdn.sap.com/click.jspa?searchID=15182255&messageID=5863329

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 31, 2013 at 01:39 PM

    Dear Aman,

    Yes you can use SUBMIT to call the other program as Fasiullah said. You can try this way also

    1. In your old program wrap the code to call the smart form and other logic in a sub routine.

    2. Call this subroutine in your new program by syntax

    CALL sub_routine in PROGRAM your_1st_program

    USING p1 p2

    CHANGING c1 c2

    IF FOUND.

    Thanks,

    Naga

    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.