Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9164

Re: Variant

$
0
0

Hi Enrique,

 

This resembles the situation I have worked i several of my codes. I did not user the fm 'RSAQ_QUERY_CALL'  for this purpose. I always used submit syntax. I'll try to give you the code. You can draw clues to your situation.

 

With RSPARAMS


DATA: GIT_RSPARAMS TYPE TABLE OF RSPARAMS.


...........


CALL FUNCTION 'FASU_V_GET_SELECTOPTIONS'
     EXPORTING
       CURR_REPORT     = 'ZHRPE_TES2'
     TABLES
       SELECTION_TABLE = GIT_RSPARAMS.
   IF SY-SUBRC <> 0.
   ENDIF.


...........

" Here you are calling your query using report name AQ....

SUBMIT  AQICZPMKJR======ZPMDLY========      

" Here you are passing the selection values of current program
WITH SELECTION-TABLE GIT_RSPARAMS   

" Default is your Query Variant name
  VIA SELECTION-SCREEN USING SELECTION-SET 'DEFAULT'  
AND RETURN.

Other

     SUBMIT AQICZPMKJR======ZIW28=========

     USING SELECTION-SET 'DEFAULT'
     WITH SP$00014 IN SO_INGRP   
     WITH SP$00018 IN SO_EQUNR
     WITH SP$00007 IN SO_AUSVN

     WITH %LAYOUT = '/LAYOUT'    "Optional line (giving layout value)
     AND RETURN.


"SP$00014 etc are the select-options from the selection-screen of your Query.(get it through F1 help)

"SO_INGRP etc are the select-options from your present code

 

Hope this helps

 

 

Jogeswara Rao K


Viewing all articles
Browse latest Browse all 9164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>