answers.sap.com Open in urlscan Pro
18.159.89.203  Public Scan

URL: https://answers.sap.com/questions/5901465/call-program-from-another-program-using-varient.html
Submission: On May 22 via manual from DE — Scanned from DE

Form analysis 1 forms found in the DOM

https://community.sap.com/search/

<form action="https://community.sap.com/search/" class="ds-question-detail__search">
  <div class="ds-search"><label class="ds-input__box"><input type="hidden" name="ct" value="qa"><input class="ds-input__control" name="q" type="search" autocomplete="off" value=""><span class="ds-input__placeholder">Search Questions and
        Answers</span><button class="ds-search__button ds-search__button-submit" type="submit" title="Search"><i class="ds-icon-encoded--search"></i></button></label></div>
</form>

Text Content

Diese Website verwendet Cookies und verwandte Technologien, wie in
unserer Datenschutzrichtlinie beschrieben, für Zwecke, die den Betrieb der
Website, Analysen, eine verbesserte Benutzererfahrung oder Werbung umfassen
können. Sie können sich dafür entscheiden, unserer Verwendung dieser
Technologien zuzustimmen oder Ihre eigenen Einstellungen vornehmen.
Einstellungen verwalten Alle akzeptieren Alle verweigern Cookie-Erklärung

Skip to Content

SAP Community Log-in Update
In a few months, SAP Community will switch to SAP Universal ID as the only
option to login. Don’t wait, create your SAP Universal ID now! If you have
multiple accounts, use the Consolidation Tool to merge your content.
Get started with SAP Universal ID
 * Home
 * Community
 * Questions

 * Ask a Question
 * Write a Blog Post
 * Login / Sign-up
 * * Send a Message
   * Manage My Blog Posts
   * Quick Start Guide


Search Questions and Answers

Vote up0Vote down
Former Member
04 05 2009 um 10:32


CALL PROGRAM FROM ANOTHER PROGRAM USING VARIENT

2503 Views
Follow
RSS Feed

Answers

Include Comments
Get RSS Feed

Hi...



How to call program from program with varient....?



i have used submit but how to pass varient dynamically.



Regards,

Chintan



 * Add a Comment
   
   HELP TO IMPROVE THIS QUESTION BY ADDING A COMMENT. IF YOU HAVE AN ANSWER FOR
   THIS QUESTION, THEN PLEASE USE THE YOUR ANSWER FORM AT THE BOTTOM OF THE PAGE
   INSTEAD.

 * Alert Moderator
   
   REPORT AS OFFENSIVE (I.E. CONTAINING SPAM, ADVERTISING, MALICIOUS TEXT, ETC.)


ASSIGNED TAGS

 * ABAP Development

Similar Questions
 * Call Program from another Program using varient via Selection Screen
   Former MemberMay 03, 2011
 * FM to pass one variant to another called program from a calling program
   Former MemberOct 10, 2007

3 Answers
Sort by:
Stimmen
Erstellt
Oldest
Best Answer
Vote up3Vote down
Former Member

May 04, 2009 at 10:34 AM

Hi,



Use the FM SUBMIT_REPORT



OR





SUBMIT <Program Name> VIA SELECTION-SCREEN
                                  USING SELECTION-SET <VARIANT>
                                  AND RETURN.



 * Add a Comment
   
   HELP TO IMPROVE THIS ANSWER BY ADDING A COMMENT. IF YOU HAVE A DIFFERENT
   ANSWER FOR THIS QUESTION, THEN PLEASE USE THE YOUR ANSWER FORM AT THE BOTTOM
   OF THE PAGE INSTEAD.

 * Alert Moderator
   
   REPORT AS OFFENSIVE (I.E. CONTAINING SPAM, ADVERTISING, MALICIOUS TEXT, ETC.)

 * Share

2 comments
Former Member

May 04, 2009 at 10:57 AM

HI,



Use this Code..



SUBMIT <Report Name USING SELECTION-SET <VARIANT>
                                  AND RETURN.
" Don't specify the  VIA SELECTION-SCREEN statement



If you are using FM SUBMIT_REPORT pass 'X' to SKIP_SELSCREEN parameter

 * Like 1
 * Share
 * Alert Moderator
   
   REPORT AS OFFENSIVE (I.E. CONTAINING SPAM, ADVERTISING, MALICIOUS TEXT, ETC.)

Add a Comment
Show all
Vote up1Vote down
Kalyan Chakravarthi

May 04, 2009 at 10:36 AM

u can pass all the values that you intend to pass to the program in the SUBMIT
statement.

submit report2 with p_test eq 's_text '

and return

-> p_test is a selection scr parameter in report2 passing the selection screen
parameter of report 1 to this.

 * Add a Comment
   
   HELP TO IMPROVE THIS ANSWER BY ADDING A COMMENT. IF YOU HAVE A DIFFERENT
   ANSWER FOR THIS QUESTION, THEN PLEASE USE THE YOUR ANSWER FORM AT THE BOTTOM
   OF THE PAGE INSTEAD.

 * Alert Moderator
   
   REPORT AS OFFENSIVE (I.E. CONTAINING SPAM, ADVERTISING, MALICIOUS TEXT, ETC.)

 * Share

Vote up0Vote down
Former Member

May 04, 2009 at 10:54 AM

REPORT ZPROGRAM1.



SUBMIT Zprogram USING SELECTION-SETS OF PROGRAM 'ZPROGRAM1'

WITH PYPERNR = PYPERNR " parameter1

WITH P_PAYDT = P_PAYDT " parameter2

WITH P_CHK = P_CHK " parameter2

WITH MODE = MODE " Mode 'X' for background Mode ' ' for forground

 * Add a Comment
   
   HELP TO IMPROVE THIS ANSWER BY ADDING A COMMENT. IF YOU HAVE A DIFFERENT
   ANSWER FOR THIS QUESTION, THEN PLEASE USE THE YOUR ANSWER FORM AT THE BOTTOM
   OF THE PAGE INSTEAD.

 * Alert Moderator
   
   REPORT AS OFFENSIVE (I.E. CONTAINING SPAM, ADVERTISING, MALICIOUS TEXT, ETC.)

 * Share


Know someone who can answer? Share a link to this
question.


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
your answer complies with our Rules of Engagement.

 * Rules of Engagement


YOU MUST BE LOGGED IN TO SUBMIT AN ANSWER.

 * 
 * 
 * 
 * 
 * 
   Link einfügenLink entfernen
 * 
 * 
 * 
 * 

Please provide a distinct answer and use the comment option for clarifying
purposes.

10 characters required.
Submit your Answer

FIND US ON

 * 
 * 
 * 
 * 
 * 
 * 
 * 

 * Privacy
 * Terms of Use
 * Legal Disclosure
 * Copyright
 * Trademark
 * Cookie-Präferenzen
 * Newsletter
 * Support