Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SUBMIT a program from a different system

Former Member
0 Kudos

Hi,

I have a program in dev and qty system with selection screen with ALV output.

In Dev i run a program with some values in the selection screen then the program internally should call the same program in qty system through SUBMIT statement or any other means with the same selection screen values which im passing in Dev system and get me the output in internal table from qty system to Dev system.

Someone please share some logic or piece of code.

Regards

PR

<modified subject line>

Edited by: Suhas Saha on Feb 3, 2012 10:19 AM

2 REPLIES 2

madhu_vadlamani
Active Contributor
0 Kudos

Hi Pr,

In Dev i run a program with some values in the selection screen then the program internally should call the same program in qty system through SUBMIT statement or any other means with the same selection screen values which im passing in Dev system and get me the output in internal table from qty system to Dev system

.

Go through the documentation of submit statement.In ALV report what code you placed.

Regards,

Madhu.

Former Member
0 Kudos

Hi prashanth,

This is one approach. (Assuming the Z program is aready there in DEV and QA)

1. Create one Z Function module (RFC enabled) in DEV (and transport to QA also later.)

2. Inside the Z FM, it should call the Z program and get the output of ALV internal table. (For this you may have to slightly enhance/change the Z program for communicating the data of ALV to the FM using some export / import concept).

3. In the Z FM, the import parameters have to be defined in such a way that you can call the FM passing the input screen values.

Also in the Z FM , there has to be tables parameter in which you will get the results of the itab.

4. Then from DEV, you can call this Z FM (RFC enabled) using DESTINATION syntax. It has to be called synchronously (by default)

Hope this helps.

Regards,

Amit Mittal.