Change parameters variant report

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.

Hi,
this report makes P_CARRID obligatory in the report of the above answer (ZZXXX):
REPORT  ZZYYY.
* interne Tabellen
DATA: BEGIN OF rsparams_tab OCCURS 10.
        INCLUDE STRUCTURE rsparams.
DATA: END   OF rsparams_tab.
DATA: BEGIN OF varit_tab OCCURS 10.
        INCLUDE STRUCTURE varit.
DATA: END   OF varit_tab.
DATA: BEGIN OF varit_obj OCCURS 10.
        INCLUDE STRUCTURE vanz.
DATA: END   OF varit_obj.
DATA: BEGIN OF varid_tab OCCURS 10.                         "#EC *
        INCLUDE STRUCTURE varid.                            "#EC *
DATA: END   OF varid_tab.                                   "#EC *
DATA: report_name  LIKE rsvar-report  VALUE 'RSMCBTCH',
      variant_name LIKE rsvar-variant,
      rc LIKE sy-subrc,
      variant_txt  LIKE varit-vtext.
report_name = 'ZZXXX'.
variant_name = 'VARIANT1'.
CALL FUNCTION 'RS_VARIANT_EXISTS'
  EXPORTING
    report              = report_name
    variant             = variant_name
  IMPORTING
    r_c                 = rc
  EXCEPTIONS
    not_authorized      = 01
    no_report           = 02
    report_not_existent = 03
    report_not_supplied = 04.
IF sy-subrc <> 0.
* Rückkehrcode setzen
*  RC = 8.
  WRITE: / 'ERROR, VARIANT DOES NOT EXIST'.
ENDIF.
* Variante generieren
REFRESH varit_tab.
REFRESH rsparams_tab.
CLEAR   varit_tab.
CLEAR   rsparams_tab.
CLEAR   varid_tab.
varid_tab-mandt        = sy-mandt.
varid_tab-report       = report_name.
varid_tab-variant      = variant_name.
varid_tab-flag1        = space.
varid_tab-flag2        = space.
varid_tab-transport    = space.
varid_tab-environmnt   = 'A'.       "Variante gilt für Batch und Dialog
varid_tab-protected    = space.
varid_tab-secu         = space.
varid_tab-version      = '1'.
varid_tab-ename        = sy-uname.
varid_tab-edat         = sy-datum.
varid_tab-etime        = sy-uzeit.
varid_tab-aename       = space.
varid_tab-aedat        = space.
varid_tab-aetime       = space.
varid_tab-mlangu       = sy-langu.
varit_tab-mandt      = sy-mandt.
varit_tab-langu      = sy-langu.
varit_tab-report     = report_name.
varit_tab-variant    = variant_name.
varit_tab-vtext      = variant_txt.
rsparams_tab-kind    = 'P'.
rsparams_tab-selname = 'P_CARRID'.
rsparams_tab-low     = 'IB'.
APPEND rsparams_tab.
rsparams_tab-selname = 'P_CONNID'.
rsparams_tab-low     = '9998'.
APPEND rsparams_tab.
varit_obj-name = 'P_CARRID'.
varit_obj-kind = 'P'.
*VARIT_OBJ-OLEN
*VARIT_OBJ-FROM
*VARIT_OBJ-TO
*VARIT_OBJ-PROTECTED
*VARIT_OBJ-APPENDAGE
varit_obj-vname = 'P_CARRID'.
varit_obj-vtype = 'P'.
*VARIT_OBJ-TEXT
*VARIT_OBJ-INVISIBLE = 'X'.
*VARIT_OBJ-SCREENNR
*VARIT_OBJ-NO_IMPORT
*VARIT_OBJ-SPAGPA
varit_obj-obli = 'X'.
*VARIT_OBJ-NOINT
APPEND varit_obj.
IF rc = 0.
  CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT'
    EXPORTING
      curr_report               = report_name
      curr_variant              = variant_name
      vari_desc                 = varid_tab
    TABLES
      vari_contents             = rsparams_tab
      vari_text                 = varit_tab
      OBJECTS                   = varit_obj
    EXCEPTIONS
      illegal_report_or_variant = 01
      illegal_variantname       = 02
      not_authorized            = 03
      not_executed              = 04
      report_not_existent       = 05
      report_not_supplied       = 06
      variant_doesnt_exist      = 07
      variant_locked            = 08
      selections_no_match       = 09.
ENDIF.
the key here is varit_obj
Best regards.

Similar Messages

  • How to view changes to expense reports

    I am trying to find a way of viewing changes to an Expense Report.
    In PR05 there is a history but it does not provide details about the change. I have also looked at PRTE and cluster AEND but again this does not provide the details that our business users require.
    Does anyone know if there is any other way of viewing the detail of changes to an Expense Report?
    On a related issue we have found that in PR05 the approver name is showing as the workflow user rather than the user ID of the person who approved the trip in the Portal. Can this be changed to the actual approver ?
    Thanks for any help with this
    Stephanie

    Hi,
    I think T-code PRTE provides only screen level changes (i.e who , when creates, save or updates by whome)
    For detail level changes in expense reports you need to activate Define History and Archiving of Forms
    V_T702N_R26_R27
    Please note that this is ONLY available with EHP5 BC 605 FIN_TRAVEL_3
    Following is help available
    _________________________________________________________________________Use
    In this step, you can activate the following functions:
    History
    If you activate logging of history, the system logs the changes to travel requests and expense reports. Users can display the history in the following user interfaces:
    Personal object worklists (POWL) for travelers, assistents, and approving managers on the Web Dynpro ABAP-based user interface of Travel Management
    Transactions of the travel expense report in SAP GUI; for example, in the Travel Expense Manager (transaction PR05) or in the Travel Calendar (transaction PR02)
    If you do not activate logging of history, the system automatically logs the changes made to expense reports (as in earlier releases). Users can display the change history only in the transactions of the travel expense report in SAP GUI.
    Storage of Travel and Expense Forms in the Archive
    If you have activated logging of history, you also can define that the travel request forms and expense report forms are to be automatically archived when certain events occur. You can determine which of the following events triggers the archiving of a form:
    When processing of a changed travel request or expense report is handed over from the user who makes the change to another user
    When the status of the travel request or expense report changes
    When a user saves the travel request or expense report
    You can archive the Adobe PDF forms or HTML forms for travel requests and expense reports, but not the forms for travel plans. If you use an ABAP list form, the system first converts this form to an HTML form and then archives the HTML form.
    In the following activities you define which kinds of forms the system uses:
    For travel requests, see Define Enterprise-Wide Control Parameters and attribute HTMLFORM_R_P.
    For expense reports, see Travel Expenses Control (Expert View), Other Settlement, field 24.
    Requirements
    The following prerequisites must be met:
    You have activated the updating of statistical data when trips are saved; see Define Structure of Trip Statistics.
    You have made the basic settings for ArchiveLink; see Basic Customizing for ArchiveLink.
    Note:
    If you want to archive Adobe PDF forms, the document type PDF under Edit Document Classes must contain an entry with MIME type application/pdf.
    If you want to archive HTML forms, the document type HTML under Edit Document Classes must contain an entry with MIME type text/html.
    Standard settings
    By default, history logging is not activated.
    or http://help.sap.com/erp2005_ehp_05/helpdata/en/1e/9467498ee0444f9d06070d3e267364/frameset.htm

  • What is the button to change the variant in alv?

    Hi guys,
              can u tell me  is there any button to change the variant in alv?. what is tanscation varient in report , hw it will used.

    Hi
    The ALV Grid Control is a tool with which you can output non-hierarchical lists in a
    standardized format. The list data is displayed as a table on the screen.
    The ALV Grid Control offers a range of interactive standard list functions that users need
    frequently (find, sort, filter, calculate totals and subtotals, print, print preview, send list,
    export list (in different formats), and so on. These functions are implemented in the
    proxy object class. You as the programmer have the possibility to turn off functions not
    needed. In most cases the implementations of the standard functions provided by the
    control are sufficient. However, if required, you can adjust these implementations to
    meet application-specific needs.
    You can add self-defined functions to the toolbar, if necessary.
    The ALV Grid Control allows users to adjust the layout of lists to meet their individual
    requirements (for example, they can swap columns, hide columns, set filters for the
    data to be displayed, calculate totals, and so on). The settings (list customizing) made
    by a specific user are called a display variant. Display variants can be saved on a userspecific
    or on a global basis. If such display variants exist for a list, they can be offered
    to the user for selection. If a display variant is set as the default variant, the associated
    list is always displayed based on the settings of this variant.
    <b>2. REUSE_ALV_LIST_DISPLAY
    REUSE_ALV_GRID_DISPLAY
    REUSE_ALV_FIELDCATALOG_MERGE
    REUSE_ALV_COMMENTARY_WRITE</b>
    3. Use of Field Catalog is to determines the technical properties & add formating information of the column.
    6. all the definition of internal table, structure, constants are declared in a type-pool called SLIS.
    7.fieldcat-fieldname
    fieldcat-ref_fieldname
    fieldcat-tabname
    fieldcat-seltext_m
    5. Form user_command using r_ucomm like sy-ucomm rs_selfield type slis_selfield.
    Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.
    In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.
    The report output can contain up to 90 columns in the display with the wide array of display options.
    The commonly used ALV functions used for this purpose are;
    <b>1. REUSE_ALV_VARIANT_DEFAULT_GET
    2. REUSE_ALV_VARIANT_F4
    3. REUSE_ALV_VARIANT_EXISTENCE
    4. REUSE_ALV_EVENTS_GET
    5. REUSE_ALV_COMMENTARY_WRITE
    6. REUSE_ALV_FIELDCATALOG_MERGE
    7. REUSE_ALV_LIST_DISPLAY
    8. REUSE_ALV_GRID_DISPLAY
    9. REUSE_ALV_POPUP_TO_SELECT</b>
    Purpose of the above Functions are differ not all the functions are required in all the ALV Report.
    But either no.7 or No.8 is there in the Program.
    How you call this function in your report?
    After completion of all the data fetching from the database and append this data into an Internal Table. say I_ITAB.
    Then use follwing function module.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = 'Prog.name'
    I_STRUCTURE_NAME = 'I_ITAB'
    I_DEFAULT = 'X'
    I_SAVE = 'A'
    TABLES
    T_OUTTAB = I_ITAB.
    IF SY-SUBRC <> 0.
    WRITE: 'SY-SUBRC: ', SY-SUBRC .
    ENDIF.
    ENDFORM. " GET_FINAL_DATA
    The object F_IT_ALV has a field, the activity ACTVT, which can
    contain four permitted values: 01, 02, 03 and 70. Each of the
    activities 01, 02 and 70 controls the availability of particular
    functions (in the menu and the toolbar) of the ALV line item list:
    a) 01: "Settings -> Display variant -> Save..."
    b) 02: "Settings -> Display variant -> Current..." and
    "Settings -> Display variant -> Current header rows "
    c) 70: "Settings -> Display variant -> Administration..."
    Activity 03 corresponds to the minimum authorization, which is the
    most restricted one: The user can only select layouts which have
    been configured already. In particular, all of the other functions
    named above are inactive with activity 03.
    Now if you want to permit a user to change the column selection and
    the headers as well as to save the layout thus created, for example,
    but if you do not want to permit the user to administrate the
    layouts, you grant him or her the authorization for activities 01
    and 02.
    Check this link it will be mosty usefull for u
    http://www.sap-img.com/fu017.htm
    Reward all helpfull answers
    Regards
    Pavan

  • Doing changes to the report dynamically

    hi
    i am working on a report whichaccepts a report in selection screen and  finds 'upload' function module available in it and replaces this with 'gui_upload' function module.
    i have written code for commenting the existing function module and creating new function module i.e. 'gui_upload'.
    can anyone let me know how can i implement these changes in to the report that i pass in the selection screen.
    i.e. how ca i write these changes to the report.
    thanks in advance.

    Hi,
    Use the following logic.
    PARAMETERS : p_prog  TYPE reposrc-progname. " Report Name
    *Check for Program Name in TADIR
    SELECT obj_name object
                INTO TABLE tb_tadir FROM tadir
                WHERE pgmid = 'R3TR'
                  AND object = 'PROG'
                  AND obj_name LIKE  p_prog.
    Read the Program and Get all the Update/Modify or Insert Statement
    *through which  Z Tables are Getting Updated Directly
          PERFORM read_program USING wa_tadir-obj_name.
    FORM read_program  USING  wa_tadir-obj_name.
      REFRESH tb_text.
    Read the Report/Program
      READ REPORT wa_tadir-obj_name INTO  tb_text.
      DESCRIBE TABLE  tb_text LINES w_lines.
      DO w_lines TIMES.
        w_index = sy-index.
    Read the table and search for MODIFY , UPDATE and INSERT
        READ TABLE tb_text INTO wa_text INDEX sy-index.
        IF sy-subrc EQ 0.
          SHIFT wa_text-text LEFT DELETING LEADING space.
          SEARCH wa_text-text+0(6)  FOR 'UPLOAD'.
          IF sy-subrc EQ 0.
    Here write a routine to Replace UPLoad with GUI_UPLOAD.       
          ENDIF.
        CLEAR wa_text.
      ENDDO.
    ENDFORM.
    Thanks,
    Shrikanth

  • Regarding changing parameters

    hi experts,
                     cud u plz send me your own  small coding which let me about the functionality of changing parameters.....thnx in advance....
    plz dnt copy and paste it from net.......

    Hi,
    CHANGING parameters are input and output parameters. When the function module is called, a suitable actual parameter must be specified for every non-optional input or output parameter. When the function module is called, the content of the actual parameter is passed to the input/output parameter, and when the function module is completed, the content of the input/output parameter is passed to the actual parameter. TABLES parameters are table parameters. Table parameters are obsolete CHANGING parameters that are typed as standard tables with a header line. If an internal table without a header line or a table body is passed as an actual parameter to a formal parameter of this type, an empty local header line is generated in the function module. If an internal table with a header line is used as an actual parameter, both the table body and the header line are passed to the function module. Pass by value is not possible in formal parameters defined using TABLES. Formal parameters defined with TABLES can be replaced by formal parameters defined with CHANGING. A local work area can be created for the internal table in the function module by using the addition LIKE LINE OF itab of the DATA statement.
    Exceptions
    The exception of a function module are defined on the Exceptions tab page in the Function Builder. Here you can select exception classes to define whether class-based exceptions are declared or non-class-based exception are defined. Class-based exceptions are represented in the above syntax by RAISING, and non-class-based exceptions are represented by EXCEPTIONS.
    The addition RAISING is used to declare class-based exceptions that can be propagated from the function module to the caller. Exceptions in the categories CX_STATIC_CHECK and CX_DYNAMIC_CHECK must be explicitly declared, otherwise a propagation can lead to an interface violation. A violation of the interface leads to the treatable exception CX_SY_NO_HANDLER. Exceptions of the category CX_NO_CHECK are implicitly always declared. The declaration of exceptions of the category CX_STATIC_CHECK is statically checked in the syntax check. For exceptions of the category CX_DYNAMIC_CHECK, the check is not performed until runtime. In a function module in which class-based exceptions are declared with the RAISING addition, the statement CATCH SYSTEM-EXCEPTIONS cannot be used. Instead, the relevant treatable exceptions should be handled in a TRY control structure.
    The addition EXCEPTIONS is used to define a list of non-class-based exceptions that can be triggered in the function module using the statements RAISE or MESSAGE RAISING. Exceptions defined in this way - as with formal parameters - are bound to the function module and cannot be propagated. If an exception of this type is triggered in a function module, and no return value has been assigned to it with the homonymous addition EXCEPTIONS of the CALL FUNCTION statement when the call was made, this leads to a runtime error.
    Note
    For new developments after release 6.10, SAP recommends that you work with class-based exceptions that are independent of the function module.
    RFC is a technology which is used to access a functions (Modules) from
    the remote systems.
    If a function module is set as remote enabled which can be access from
    the remote system via RFC.Eg: U can access the Remote enabled function modules in ur VB,Webdynpro,Java,Visual composer program.
    A function module can be set as remote enabled by SE37->Go to ur FM->click the option Button "remote enabled".
    But Normal function modules can not accessd from the remote system.
    Good Example for RFC enabled function module is : BAPI(Business Application Programming Interface)
    Note: All BAPIs are Remote enabled but not all remote enabled function modules are BAPI.
    CALLING A FUNCTION MODULE:
    1)In U ABAP Editor --> Click "Patter" ---> Selection Option Button "Call Function"
    --> Write the Corresponding FM name --> Hit Enter
    2)The appropriate import ,export Parameters will be displayed in ur editor
    3)Pass the Values Here.
    Also check these links.
    http://www.geocities.com/victorav15/sapr3/abapfun.html
    Check this link:
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
    Check this link:
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
    See the following links:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
    REPORT demo_mod_tech_example_2 .
    DATA: num TYPE i VALUE 5,
    fac TYPE i VALUE 0.
    PERFORM fact USING num CHANGING fac.
    WRITE: / 'Factorial of', num, 'is', fac. "#EC NOTEXT
    FORM fact
    USING value(f_num) TYPE i
    CHANGING f_fact TYPE i.
    f_fact = 1.
    WHILE f_num GE 1.
    f_fact = f_fact * f_num.
    f_num = f_num - 1.
    ENDWHILE.
    ENDFORM.
    Regards,
    Priyanka.

  • Parameters and report on the same page

    I am new to HTML_DB. I would appreciate your help with the following:
    I have html page with items(parameters) and report on the same screen.
    Items are:
    Customer: Select list with Submit
    Invoice No.: Select list - Populated invoices numbers for the selected customer
    Department: Select List
    Prod Month: Date Picker
    Button: Report View.
    Users can select any of the above parameter to create a report. The problem is when I don't select any customer and just select the department or prod month and click on a Report View button, I get SQL error in the Invoice Number item.
    It seems when the page refreshes to create a report Invoice Number items sql query is executing but when it does not find the customer name, it’s giving the error.
    If I select a customer name, the page gets refreshed and the report is generated. I don’t want to create a report when they select a customer. I want them to select the parameters and click on the Report View button to create the report on the same page.
    Thank you.
    Regards,
    Rek

    Sounds like you are building the query string and submitting that and the fact that they leave something out messes up that string...<br><br>If that's the case, you can add validations to the page to make sure they enter in all the appropriate information.<br><br>
    chet

  • How to schedule the webi report based on data changes in the report data

    Hello,
    I want  to schedule a webi report based on data change in a column in the report.
    The scenario is something like below:
    1. If a data of a particular column changes from 2 to 3 than I would like to schedule this report and sent it to users mail box.
    I know how to apply alerts or schedule a report or data tracking for capturing changes in the report but I dont know how to schedule the report only for data changes.
    Anybody done this before.
    Thanks
    Gaurav

    Hi,
    May be these links can help you:
    http://devnet.magicsoftware.com/en/library?book=en/iBOLT/&page=SAP_R_3_Master_Data_Distribution_Defining_Change_Pointers.htm
    SEM-BCS: Load from data stream schedule
    Attribute Change Run

  • How to change protected variants created by users that no longer exist

    There are several older variants for which background jobs are scheduled for daily prcessing.  These variants were created and protected by uses that no longer exist in SAP.
    How to  unprotect and change these variants to reflect new requirements.

    Hi Anam
    1. Execute tcode VARCH and enter the program and variant name and make the changes, if the system allows you to do so.
    2. Check with the basis/security team if they can extend the validity and reset the password for the old ids.
    3. If the above doesnt work, you will need to copy the variants manually
    Moving forward, when you create/change jobs, request the basis/security team to create common ids like OTCADM, P2PADM, etc. Ensure that all the variants and jobs are created/changed using this common id. Basis/Security team can controll by opening and closing the ADM account on request from project team and the usage can be recorded for tracking.
    To check the jobs that use a known variant, use tables TBTCP, TBTCO.
    Best Regards
    Sathees Gopalan

  • Pricing Condition is Duplicating on Changing the Variants in Quotation !

    Hi,
    I have a requirement, where the Pricing Condition (Custom Pricing Condition Specific to the Variant Pricing) is duplicating on changing the Variants in Quotation to be stopped or deleted.  I suppose, the variant pricing condition should not be newly added to the pricing table each time, there is a change in the material variants as chosen by the business/user with the Quotation.  Instead, I assume, the existing cost for the variant pricing condition should update each time, when the variant material is changed by the user. I am not sure, whether this issue can be controlled in the configuration? or Can I control the occurrence of the duplicate pricing condition inside any user exit by deleting the duplicate condition, but retaining the newly added ( Recently  added pricing table entry for that condition)? I am not sure, what are the possibilities to fix this issue? Appreciate if you could provide me with a suitable solution.
    Thanks for your time.
    Thanks,
    Kannan

    Hello Kannan.
    I have the Same Problem. do you have a solution for the same?
    i have written a pricing condition at the characteristic level using pricing Factors. however when i change the characteristic. it is duplicating the condition instead of refreshing it.

  • Need of Changing Parameters in Function Module

    Hi All,
    Why we need sepearte Import and Export parameters in Function Module if the Changing Parameters
    acts as both import and export parameters.
    What is the use of using Changing Parametrs in Function Module.
    Thanks in advance.
    Sundaresan

    Hi,
    EXPORT PARAMETERS: When u r passing some value to the function, and the parameter will not be changed in the function, we use export parameter. Example: u pass parameter (a : 10) to a function, even after the function has been executed, value of a will be 10 only.
    IMPORT PARAMETER: When u require some value back from the function. u do not provide any initial value to the function. Example : u pass a parameter (b: <blank>) to the function, function returns the same import parameter as (b : 20).
    CHANGING PARAMETER: When u pass some value to the function and that function may change that value inside function, then changing parameters are used. Example: u pass parameter ( c: 30) to the function as changing parameter and function modifies this variable and return ( c: 50).
    Reward points if helpful.
    Thanks & Regards
    - Rishika Bawa

  • Reg: how to change layout in report writer

    HI all,
    how to change layout in report painter?
    regards
    JK Rao

    Hi everybody,
    I have a report painter using transaction ke30 and I want to change the header layout.
    Now it looks like that
    |_________|_________|
    But i want to add another header row above this row, so it will look like:
    |_________________________|
    |___________|_____________|
    Does anyone know the answer?
    Thanks a lot for your response
    Edited by: Vo Duy Pho on May 24, 2010 10:29 AM
    Edited by: Vo Duy Pho on May 24, 2010 10:37 AM

  • Table parameters in report

    Hi experts,
    can i pass table as parameters in report ( something similar as in function module ) ?
    I would like to use "my" structure for table as parameters.
    Thanks in advance
    Martin

    If both reports are Z reports you can use EXPORT & IMPORT statements.
    In first report.
    EXPORT gt_item FROM gt_item to memory id 'ITEM'.
    SUBMIT zreport2 AND RETURN.
    and in second report.
    IMPORT gt_item TO gt_item from MEMORY id 'ITEM'.
    Regards
    Sathar

  • How to track personal details changes in the report without using triggers on the database tables

    Hi There,
    I'm having a requirement to track the oracle HRMS Personal details changes in the report not using the triggers.
    ex: if some changes the address of the person, then that changed values should be populated in the report.
    Please find below query:
    If any of the following columns data is updated, the new value should be populated in the report.
    SELECT PAPF.PERSON_ID                                                       PAPF_PERSON_ID
    ,      PAPF.EMPLOYEE_NUMBER                                               EMPLOYEE_NUMBER        
    ,      PAPF.FIRST_NAME                                                            FIRST_NAME   
    ,      PAPF.LAST_NAME                                                            LAST_NAME
    ,      TO_CHAR(PAPF.DATE_OF_BIRTH ,'DD-MON-YYYY')     DATE_OF_BIRTH
    ,      ADDR.ADDRESS_LINE1                                                   ADDRESS_1
    ,      ADDR.ADDRESS_LINE2                                                   ADDRESS_2
    ,      ADDR.ADDRESS_LINE3                                                   ADDRESS_3
    ,      ADDR.TOWN_OR_CITY                                                    TOWN
    ,      ADDR.REGION_1                                                              COUNTY
    ,      ADDR.POSTAL_CODE                                                     POST_CODE
    ,      ADDR.COUNTRY                                                              COUNTRY
    ,      PAY.PAYROLL_NAME                                                     PAYROLL_NAME
    ,      PLN_TYP.NAME                                                              PLAN_TYP
    ,      PLN.NAME                                                                     PRODUCT_NAME
    ,      BOF.NAME                                                                     COVERAGE
    FROM   PER_ALL_PEOPLE_F                                                PAPF
    ,      PER_ALL_ASSIGNMENTS_F                                          PAF
    ,      PER_ADDRESSES                                                        ADDR
    ,      PAY_PAYROLLS_F                                                       PAY
    ,      BEN_PRTT_ENRT_RSLT_F                                                 PEN
    ,      BEN_PL_TYP_F                                                         PLN_TYP
    ,      BEN_PL_F                                                             PLN
    ,      BEN_OIPL_F                                                           BOIPF
    ,      BEN_OPT_F                                                            BOF
    WHERE 1                                     = 1
    AND PAPF.PERSON_ID                          = PAF.PERSON_ID
    AND TRUNC(SYSDATE)                          BETWEEN PAPF.EFFECTIVE_START_DATE AND PAPF.EFFECTIVE_END_DATE
    AND TRUNC(SYSDATE)                          BETWEEN PAF.EFFECTIVE_START_DATE AND PAF.EFFECTIVE_END_DATE
    AND PAPF.PERSON_ID                          = ADDR.PERSON_ID
    AND ADDR.PRIMARY_FLAG                       = 'Y'
    AND ADDR.DATE_TO                            IS NULL
    AND PAF.PAYROLL_ID                          = PAY.PAYROLL_ID(+)
    AND PEN.PERSON_ID                           = PAPF.PERSON_ID
    AND PEN.BUSINESS_GROUP_ID                   = PAPF.BUSINESS_GROUP_ID
    AND TRUNC(SYSDATE)                          BETWEEN TRUNC(PEN.EFFECTIVE_START_DATE) AND TRUNC(PEN.EFFECTIVE_END_DATE)
    AND PEN.PRTT_ENRT_RSLT_STAT_CD              IS NULL
    AND PEN.SSPNDD_FLAG                         = 'N'
    AND ( PEN.ENRT_CVG_THRU_DT                  >= TRUNC(SYSDATE)
    OR    PEN.ENRT_OVRIDN_FLAG                  = 'Y')
    AND EXISTS(SELECT PIL.PER_IN_LER_ID
               FROM   BEN_PER_IN_LER PIL
               WHERE  PIL.PER_IN_LER_ID         = PEN.PER_IN_LER_ID
               AND    PIL.BUSINESS_GROUP_ID     = PEN.BUSINESS_GROUP_ID
               AND    PIL.PER_IN_LER_STAT_CD    NOT IN ('VOIDD','BCKDT'))
    AND PEN.PL_TYP_ID                           = PLN_TYP.PL_TYP_ID  
    AND TRUNC(SYSDATE)                          BETWEEN PLN_TYP.EFFECTIVE_START_DATE AND PLN_TYP.EFFECTIVE_END_DATE  
    AND PLN_TYP.PL_TYP_ID                       = PLN.PL_TYP_ID 
    AND TRUNC(SYSDATE)                          BETWEEN PLN.EFFECTIVE_START_DATE AND PLN.EFFECTIVE_END_DATE
    AND PLN.PL_ID                               = PEN.PL_ID
    AND PEN.OIPL_ID                             = BOIPF.OIPL_ID(+)
    AND TRUNC(SYSDATE)                          BETWEEN NVL(BOIPF.EFFECTIVE_START_DATE,HR_GENERAL.START_OF_TIME) AND NVL(BOIPF.EFFECTIVE_END_DATE,HR_GENERAL.END_OF_TIME)
    AND BOIPF.OPT_ID                            = BOF.OPT_ID(+)
    AND TRUNC(SYSDATE)                          BETWEEN NVL(BOF.EFFECTIVE_START_DATE,HR_GENERAL.START_OF_TIME) AND NVL(BOF.EFFECTIVE_END_DATE,HR_GENERAL.END_OF_TIME)
    AND (:P_SYSDATE)                            BETWEEN TRUNC(PEN.ENRT_CVG_STRT_DT) AND TRUNC(PEN.ENRT_CVG_THRU_DT)
    AND (CASE WHEN :P_PAYROLL_ID IS NULL THEN 'Y' ELSE NVL((SELECT 'Y' FROM DUAL WHERE PAY.PAYROLL_ID  = :P_PAYROLL_ID), 'N') END) = 'Y'
    AND PAPF.LAST_UPDATE_DATE                   = (:P_SYSDATE) ;
    --AND PAPF.LAST_UPDATE_DATE                   BETWEEN to_date(:P_SYSDATE) and (to_date(:p_sysdate) + INTERVAL '31' Day);
    --AND (:P_SYSDATE)                           = PAPF.LAST_UPDATE_DATE ;
    Thanks

    check this -
    Re: Best Event-Based notifications for Sox Complience?

  • Changing a custom report to be time sensitive

    Hi
    I posted this in FI too thought the MM people might have some inputs as to how to correct the Zvenclass if we use the standard SAP field on the accounting view table LFB1 MINDK minority indicator
    We need to change the custom report zvenclass, it is a report that tells us the amount spent for each vendor in a specific class. I have the date/time sensistive information for the amount spent but not the change in vendor class from the vendor master. I need this to be date driven too. As in if a vendor is a small business in 2005 and you change the vendor to be a large vendor in 2011. Then I want the report for dates and values in 2008 to show small business and the dates and values in 2011 to show large business.
    The assignment is not time dependent, it has to be manually changed.
    I did see through the CDHDR and CDPOS tables, but could not pinpoint to the changes in the valuation classes.
    Is there any other way if I can find whether I can find the changes?
    Now I did review the values from the custom tables, here I find that there is a difference in the sum totals of the postings when I add up the individual years compared to the consolidated report (for ex: 200720082009 is not equal to 2007 to 2009) so am I right in assuming that the system does account for the changes. Any other help in this regard would be appreciated.
    Any inputs on this will be appreciated.
    Thanks

    We are trying to solve this by altering the code for the report.
    Will update if it works though.

  • Sending parameters to reports by using Run_Report_Object

    Hi All,
    How do I send parameters to report while using Run_Report_Object built-in ?
    Thanks in advance.
    Regards,
    Sanjay Kanakath

    hello,
    there is a builtin for setting the parameters :
    from the forms builder online help :
    DECLARE
         repid REPORT_OBJECT;
         report_prop VARCHAR2(20);
    BEGIN
         repid := find_report_object('report4');
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, FILE);
    END;
    you can use      
    SET_REPORT_OBJECT_PROPERTY(repid,
    REPORT_OTHER,
    'deptno=10');
    to set the Other Parameters property of the report object.
    regards,
    philipp

Maybe you are looking for