Skip to Content
0
Former Member
Jan 23, 2009 at 05:43 PM

change parameters variant report

233 Views

Hi abappers,

I want save the data that I obtain with the and pass the values with the FM 'RS_VARIANT_CONTENTS'

CALL FUNCTION 'RS_VARIANT_CONTENTS'                     
         EXPORTING                                             
              REPORT               = 'ZPRU'          
              VARIANT              = p_varint                  
         TABLES                                                
              VALUTAB              = c_varint         
              OBJECTS              = I_OBJECTS      
         EXCEPTIONS                                            
              VARIANT_NON_EXISTENT = 1                         
              VARIANT_OBSOLETE     = 2                         
              OTHERS               = 3.

then with the FM RS_CHANGE_CREATED_VARIANT I want modify the variant, but it no refresh

VARID-report  = '/1BCDWB/DBBKPF'.                           
VARID-variant = p_varint.                                   
VARID-ename   = sy-uname.                                   
VARID-edat    = sy-datum.                                   
VARID-etime   = sy-uzeit.

CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT'             
         EXPORTING                                          
              CURR_REPORT               = 'ZPRU'  
              CURR_VARIANT              = p_varint          
              VARI_DESC                 = VARID             
         TABLES                                             
              VARI_CONTENTS             = c_varint          
              OBJECTS                   = I_OBJECTS         
         EXCEPTIONS                                         
              ILLEGAL_REPORT_OR_VARIANT = 1                 
              ILLEGAL_VARIANTNAME       = 2                 
              NOT_AUTHORIZED            = 3                 
              NOT_EXECUTED              = 4                 
              REPORT_NOT_EXISTENT       = 5                 
              REPORT_NOT_SUPPLIED       = 6                 
              VARIANT_DOESNT_EXIST      = 7                 
              VARIANT_LOCKED            = 8                 
              SELECTIONS_NO_MATCH       = 9                 
              OTHERS                    = 10.

I view that the tcode SE16 use the form:

perform export_variant_static(rsdbspvd) tables   l_dyns_fields 
                                         using    l_vari[]      
                                                  varivdat[]    
                                                  l_varidyn     
                                                  l_vdatdyn     
                                                  l_texpr imex  
                                                  $rkey         
                                                  exp_subrc.    
 perform %_export_vari_clnt in program  (rsvar-report)          
                 using $rkey l_mandt                            
              changing exp_subrc if found.

but I dont understand the process for save the variant of reprot ZPRU,

I want modify the parameter obligatory that it contain on the table internal I_OBJECT

Can you help me, please?

Cordial greetings.