<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Call program using submit with variant that changing value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-program-using-submit-with-variant-that-changing-value/m-p/7984359#M1605031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to call a report with variant and abstract the data back to my current program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so far,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use following method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT RFITEMAR USING SELECTION-SET 'XXX'
       EXPORTING LIST TO MEMORY
       AND RETURN.
 
DATA list_tab TYPE TABLE OF abaplist.
 
CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject = list_tab
  EXCEPTIONS
    not_found  = 1
    OTHERS     = 2.
 
  DATA: L_ABAPLIST LIKE ABAPLIST OCCURS 0.
  
  DATA: BEGIN OF L_ASCITAB OCCURS 0,  
            LINE(2048),
          END OF L_ASCITAB.
 
 
  CALL FUNCTION 'LIST_TO_ASCI'
       EXPORTING
            LIST_INDEX         = -1
       TABLES
            LISTASCI           = L_ASCITAB
            LISTOBJECT         = list_tab
       EXCEPTIONS
            EMPTY_LIST         = 1
            LIST_INDEX_INVALID = 2
            OTHERS             = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the problem is that i need to get some value from variant 'XXX' and keep changing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have try function module "RS_VARIANT_VALUES_TECH_DATA" to get the variant details.&lt;/P&gt;&lt;P&gt;But, it just doesn't get me back all the details of the variants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any way i could read the variants in detail? i even try to read LRAW data from table vari. but there are no function module to convert the LRAW to either char or STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: simplekx on Jun 20, 2011 4:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2011 14:42:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-20T14:42:55Z</dc:date>
    <item>
      <title>Call program using submit with variant that changing value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-program-using-submit-with-variant-that-changing-value/m-p/7984359#M1605031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to call a report with variant and abstract the data back to my current program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so far,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use following method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT RFITEMAR USING SELECTION-SET 'XXX'
       EXPORTING LIST TO MEMORY
       AND RETURN.
 
DATA list_tab TYPE TABLE OF abaplist.
 
CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject = list_tab
  EXCEPTIONS
    not_found  = 1
    OTHERS     = 2.
 
  DATA: L_ABAPLIST LIKE ABAPLIST OCCURS 0.
  
  DATA: BEGIN OF L_ASCITAB OCCURS 0,  
            LINE(2048),
          END OF L_ASCITAB.
 
 
  CALL FUNCTION 'LIST_TO_ASCI'
       EXPORTING
            LIST_INDEX         = -1
       TABLES
            LISTASCI           = L_ASCITAB
            LISTOBJECT         = list_tab
       EXCEPTIONS
            EMPTY_LIST         = 1
            LIST_INDEX_INVALID = 2
            OTHERS             = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the problem is that i need to get some value from variant 'XXX' and keep changing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have try function module "RS_VARIANT_VALUES_TECH_DATA" to get the variant details.&lt;/P&gt;&lt;P&gt;But, it just doesn't get me back all the details of the variants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any way i could read the variants in detail? i even try to read LRAW data from table vari. but there are no function module to convert the LRAW to either char or STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: simplekx on Jun 20, 2011 4:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 14:42:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-program-using-submit-with-variant-that-changing-value/m-p/7984359#M1605031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-20T14:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Call program using submit with variant that changing value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-program-using-submit-with-variant-that-changing-value/m-p/7984360#M1605032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try function "RS_VARIANT_CONTENTS", it returns all details and parameters from the variants.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 19:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-program-using-submit-with-variant-that-changing-value/m-p/7984360#M1605032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-20T19:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Call program using submit with variant that changing value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-program-using-submit-with-variant-that-changing-value/m-p/7984361#M1605033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the FM "RS_CHANGE_CREATED_VARIANT" to change the variant values for already created variant and the FM "RS_VARIANT_CONTENTS" to get the variant values. Instead of changing the variant values and then passing to the Submit, you can directly pass the values to the Submit through..WITH SELECTION-TABLE seltab or ... WITH p IN sel variant of the Submit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 19:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-program-using-submit-with-variant-that-changing-value/m-p/7984361#M1605033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-20T19:08:25Z</dc:date>
    </item>
  </channel>
</rss>

