If statement to call a badi in logic

Hi all,
I have a badi to calculate amount(which is the multiplication of price and quantity) and want to call this badi behind the default logic.
I also have a dimension called key_figures and a member as unit_price.
What I want is to call the badi only if the user inputs value to unit_price. Otherwise default logic will work in some irrelevant screens which is not desired.For example if someone inputs due date , then calculate amount badi will be called ,too which is absurd.

Hi Vadim,
Thanks for your reply.
the badi code can decide what to do checking records in ct_data
How do I decide to calculate nothing in badi if the badi is called from irrelevant input forms.(for example in due date input form). I delete the irrelevant  data in the beginning of badi but if the user inputs due date then the badi will  delete irrelevant records but still be called and try to calculate amount which is not good for the performance.Am I correct?

Similar Messages

  • Example of how to call a BadI from an Abap and use the NEW OO ALV Grid

    Very easy to do.
    <b>REPORT  Z_BADI_TEST.
    test call Badi from standard abap.
    *Only from rel 6.40
    do the following
    1) define the Badi  (SE18).
    For Abap call test uncheck multiple use
    and filter boxes
    2) Implement the badi (SE19).
    Add any methods here in the implementation
    3) activate
    4)  define the standard class exithandler to the
    Abap. This class is the "Badi caller
    5)  define an exit variable referring to your Badi
    Implementation interface
    this interface  will normally be
    called something like 
    ZIF_EX***************
      You will see the actual name in SE18/SE19.
    6)  Instantiate your instance of the badi
    via  method call get_instance
    7)  Now call any method(s) in the Badi.
    *****************start of abap code **************
    Define the Badi calling class (standard sap class)
      class cl_exithandler definition load.   "Declaration
    *Interface reference  
      data exit type ref to zif_ex__jimbotest.    
         data yes type c.
    Used in Fmod call in Badi methods
        data: v_knvv type knvv.
        start-of-selection.
        yes = ' '.
      selection-screen  begin of block b1.
      parameters: r1  radiobutton  group rad1,
                  r2  radiobutton group rad1,
                  r3  radiobutton group rad1.
      selection-screen end of block b1.
        parameters: p_kunnr type knvv-kunnr.
        select  single * into v_knvv
        from knvv
         where kunnr eq p_kunnr.
         export v_knvv to memory id 'CUST6A'.
    *Save customer data for the function module call
    call method cl_exithandler=>get_instance 
           exporting 
           exit_name    = 'Z_JIMBOTEST' "Your Badi Name
           null_instance_accepted = yes
              changing instance = exit.
       if not exit is initial.
           if r1 = 'X'.
         call method exit->dispord .  "Badi call
          endif.
    if r2 = 'X'.
    call method exit->dispfakt.     "Badi Call
    endif.
    if r3 = 'X'.
    call method exit->dispmat.      "Badi call
    endif.
    end of calling abap******** </b>
    In the badi   methods code as shown
    1)
    method ZIF_EX__JIMBOTEST~DISPORD.
    CALL FUNCTION 'Z_DISPLAY_CUST'.
    endmethod.
    2)
    method ZIF_EX__JIMBOTEST~DISPFAKT.
    CALL FUNCTION 'Z_DISPLAY_FAKT'.
    endmethod
    3)
    method ZIF_EX__JIMBOTEST~DISPMAT.
    CALL FUNCTION 'Z_DISPLAY_CUST'.
    endmethod.
    Copy via SE 41 the status SALV_STANDARD from  standard SAP program SALV_DEMO_METADATA into the main program where you've created the 3 function modules below (SAP______TOP)
    Global Data for the three function modules I'm calling
    FUNCTION-POOL Z_BADI_KNVV.                  "MESSAGE-ID ..
    include <color>.
    include <icon>.
    include <symbol>.
    tables: zknvv.
    data: v_zzkvgr6  TYPE KNVV-ZZKVGR6.
    data: choice1  type c.
    data: choice2 type c.
    data: choice3 type c.
    data: choice4 Type c.
    data: ok-code(5) type c.
    data: answer type string.
    data: value1 type SPOP-VARVALUE1.
    data: answer1  type string.
    tables:  vbak, vbap,  vakpa, vbrk, vrkpa.
    data: lr_functions type ref to cl_salv_functions_list.
    constants: gc_true  type sap_bool value 'X',
               gc_false type sap_bool value space.
    add for colour displays
       data: ls_color type lvc_s_colo.
       DATA : LV_SALV_COLUMNS_TABLE TYPE REF TO CL_SALV_COLUMNS_TABLE.
      data: lr_columns type ref to cl_salv_columns_table,
            lr_column  type ref to cl_salv_column_table.
    Data:
            gr_table TYPE REF TO cl_salv_table.
    data: z_datum type sy-datum.
    data: v_knvv type knvv.
    data : begin of s_vbak,
              vkorg   type vakpa-vkorg,
              vkgrp   type vakpa-vkgrp,
              vtweg   type vakpa-vtweg,
              spart   type vakpa-spart,
              auart   type vakpa-auart,
              vbeln   type vakpa-vbeln,
              bstnk   type vakpa-bstnk,
              audat   type vakpa-audat,
              netwr   type vbak-netwr,
           end of s_vbak.
    data : begin of s_vbrk,
              vbeln   type vrkpa-vbeln,
              vkorg   type vrkpa-vkorg,
              fkart   type vrkpa-fkart,
              fkdat   type vrkpa-fkdat,
              netwr   type vbrk-netwr,
           end of s_vbrk.
      data: begin of s_vbap,
             matnr   type vbap-matnr,
             arktx   type vbap-arktx,
             netwr   type vbap-netwr,
             kwmeng  type vbap-kwmeng,
          end of s_vbap.
    data: t_vbap like table of s_vbap.
    data:   t_vbak
            like table of s_vbak.
      data:   t_vbrk
            like table of s_vbrk.
    data:   s_name  type tabname.
    data: gr_selections type ref to cl_salv_selections.
    data: gr_events type ref to cl_salv_events_table.
    Source code of the function modules.
    Function modules themselves
    FUNCTION Z_DISPLAY_CUST.
    s_name = 'S_VBAK'.
    orders in last 6 months
    z_datum = sy-datum - 180.
    import v_knvv from memory id 'CUST6A'.
    get data
       select avkorg aaudat avkgrp avtweg aspart aauart abstnk avbeln b~netwr
          into corresponding fields of  table t_vbak
          up to 100 rows
             from (  vakpa as a
              inner join vbak as b
               on avbeln eq bvbeln )
            where a~kunde eq v_knvv-kunnr
            and a~parvw eq 'AG'
           and a~vkorg eq 'EN01'
            and a~trvog eq '0'
            and a~audat gt z_datum.
    sort t_vbak by audat descending.
    *data: gt_hyperlink type standard table of g_type_s_hyperlink.
    Instead of if_salv_c_bool_sap=>false, you can pass the
    value if_salv_c_bool_sap=>true to this method to
    see your ALV as a list.
    display data in Grid / List
      TRY.
          CALL METHOD cl_salv_table=>factory
            EXPORTING
              list_display   = if_salv_c_bool_sap=>false
            IMPORTING
              r_salv_table   = gr_table
            CHANGING
              t_table    = t_vbak.
        CATCH cx_salv_msg.
      ENDTRY.
    try.
    LV_SALV_COLUMNS_TABLE = gr_table->get_columns( ).
    lr_column ?= LV_SALV_COLUMNS_TABLE->get_column( 'NETWR' ).
          ls_color-col = col_negative.
          ls_color-int = 0.
          ls_color-inv = 0.
          lr_column->set_color( ls_color ).
      catch cx_salv_not_found.
    endtry.
    try.
    lr_column ?= LV_SALV_COLUMNS_TABLE->get_column( 'VBELN' ).
    ls_color-col = col_negative.
          ls_color-int = 1.
          ls_color-inv = 1.
          lr_column->set_color( ls_color ).
    catch cx_salv_not_found.
    endtry.
    try.
    *LV_SALV_COLUMNS_TABLE = gr_table->get_columns( ).
    lr_column ?= LV_SALV_COLUMNS_TABLE->get_column( 'NETWR' ).
    lr_column->set_short_text( 'Short' ).
    lr_column->set_medium_text( 'Medium' ).
    lr_column->set_long_text( 'Net Value' ).
    *lr_column ?= LV_SALV_COLUMNS_TABLE->get_column( 'URL' ).
    catch cx_salv_not_found.
    endtry.
    gr_table->set_screen_status( pfstatus = 'SALV_STANDARD'
    report = sy-repid
    set_functions = gr_table->c_functions_all ).
    this statement actually does the display.
      gr_table->display( ).
    ENDFUNCTION.
    FUNCTION Z_DISPLAY_FAKT.
    s_name = 'S_VBRK'.
    invoices in last 6 months
    z_datum = sy-datum - 180.
    import v_knvv from memory id 'CUST6A'.
    get data
       select avbeln afkart avkorg afkdat
         b~netwr
          into corresponding fields of  table t_vbrk
          up to 100 rows
             from (  vrkpa as a
              inner join vbrk as b
               on avbeln eq bvbeln )
            where a~kunde eq v_knvv-kunnr
            and a~parvw eq 'RG'
           and a~vkorg eq 'EN01'
            and a~vbtyp eq 'M'
            and a~fkdat gt z_datum.
    sort t_vbrk by fkdat descending.
    *data: gt_hyperlink type standard table of g_type_s_hyperlink.
    Instead of if_salv_c_bool_sap=>false, you can pass the
    value if_salv_c_bool_sap=>true to this method to
    see your ALV as a list.
    display data in Grid / List
      TRY.
          CALL METHOD cl_salv_table=>factory
            EXPORTING
              list_display   = if_salv_c_bool_sap=>false
            IMPORTING
              r_salv_table   = gr_table
            CHANGING
              t_table    = t_vbrk.
        CATCH cx_salv_msg.
      ENDTRY.
    try.
    LV_SALV_COLUMNS_TABLE = gr_table->get_columns( ).
    lr_column ?= LV_SALV_COLUMNS_TABLE->get_column( 'NETWR' ).
          ls_color-col = col_negative.
          ls_color-int = 0.
          ls_color-inv = 0.
          lr_column->set_color( ls_color ).
          catch cx_salv_not_found.
    endtry.
    try.
    lr_column ?= LV_SALV_COLUMNS_TABLE->get_column( 'VBELN' ).
    ls_color-col = col_negative.
          ls_color-int = 1.
          ls_color-inv = 1.
          lr_column->set_color( ls_color ).
    catch cx_salv_not_found.
    endtry.
    try.
    *LV_SALV_COLUMNS_TABLE = gr_table->get_columns( ).
    lr_column ?= LV_SALV_COLUMNS_TABLE->get_column( 'NETWR' ).
    lr_column->set_short_text( 'Short' ).
    lr_column->set_medium_text( 'Medium' ).
    lr_column->set_long_text( 'Net Value' ).
    *lr_column ?= LV_SALV_COLUMNS_TABLE->get_column( 'URL' ).
    catch cx_salv_not_found.
    endtry.
    gr_table->set_screen_status( pfstatus = 'SALV_STANDARD'
    report = sy-repid
    set_functions = gr_table->c_functions_all ).
    this statement actually does the display.
      gr_table->display( ).
    ENDFUNCTION.
    FUNCTION Z_DISPLAY_MATERIAL.
    s_name = 'S_VBAP'.
    invoicesrs in last 6 months
    z_datum = sy-datum - 180.
    import v_knvv from memory id 'CUST6A'.
    get data
    select avbeln bmatnr barktx bnetwr b~kwmeng
    into corresponding fields of  table t_vbap
          up to 100 rows
    from (  vakpa as a
              inner join vbap as b
               on avbeln eq bvbeln )
            where a~kunde eq v_knvv-kunnr
            and a~parvw eq 'AG'
           and a~vkorg eq 'EN01'
            and a~trvog eq '0'
            and a~audat gt z_datum.
    TRY.
          CALL METHOD cl_salv_table=>factory
            EXPORTING
              list_display   = if_salv_c_bool_sap=>false
            IMPORTING
              r_salv_table   = gr_table
            CHANGING
              t_table    = t_vbap.
        CATCH cx_salv_msg.
      ENDTRY.
    try.
    LV_SALV_COLUMNS_TABLE = gr_table->get_columns( ).
    lr_column ?= LV_SALV_COLUMNS_TABLE->get_column( 'NETWR' ).
          ls_color-col = col_negative.
          ls_color-int = 0.
          ls_color-inv = 0.
          lr_column->set_color( ls_color ).
      catch cx_salv_not_found.
    endtry.
    try.
    lr_column ?= LV_SALV_COLUMNS_TABLE->get_column( 'ARKTX' ).
    ls_color-col = col_negative.
          ls_color-int = 1.
          ls_color-inv = 1.
          lr_column->set_color( ls_color ).
    catch cx_salv_not_found.
    endtry.
    try.
    *LV_SALV_COLUMNS_TABLE = gr_table->get_columns( ).
    lr_column ?= LV_SALV_COLUMNS_TABLE->get_column( 'NETWR' ).
    lr_column->set_short_text( 'Short' ).
    lr_column->set_medium_text( 'Medium' ).
    lr_column->set_long_text( 'Net Value' ).
    *lr_column ?= LV_SALV_COLUMNS_TABLE->get_column( 'URL' ).
    catch cx_salv_not_found.
    endtry.
    gr_table->set_screen_status( pfstatus = 'SALV_STANDARD'
    report = sy-repid
    set_functions = gr_table->c_functions_all ).
    this statement actually does the display.
      gr_table->display( ).
    ENDFUNCTION.
    You can extend this as far as you like -- it's really easy and MUCH MUCH easier than the old way with fieldcatalogs etc etc.

    If the pagecontainer_mc holds another movieclip that contains the button you are trying to target, then you need to include that loaded movieclip in the targeting.  And if contacts is that movieclip, then you should be able to target it directly using...
    var contacts:contatti = new contatti;
    contacts.contacts_btn.addEventListener(MouseEvent.CLICK,showContacts);

  • Exec.State shows VI is "BAD", but VI is "GOOD"

    Any reasons why EXEC.STATE would indicate a "BAD" VI, but when opening the VI manually, it runs without a problem? I'm simply opening an App reference then the VI reference (both without error), then using the EXEC.STATE property. It SHOULD show "IDLE" when first loaded (until I use the RUN VI method). (This was something that used to work, but has suddenly changed in it's behaviour).
    BillM
    “A child of five could understand this. Send someone to fetch a child of five.”
    ― Groucho Marx

    I just had another thought. I bet that you have a duplicated VI filename. One version of the VI has a connector pane that is linked to the dynamic VI. A second version has the same name, but a different connector pane, and is used in the VI that calls the dynamic VI. As long as you open the dynamic VI by itself it links to the correct one. Open it dynamically and the dynamic VI finds the version that is already loaded into memory by the caller VI, which breaks the dynamic VI.
    Mike...
    Message Edited by mikeporter on 07-01-2007 06:30 PM
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Method call of BADI

    Hi All,
    What is the difference in calling a method of babi and implementing BAdi.
    Regards,
    Jeetu

    Hi,
    Are u working in Ecc 6.0. If yes, then once the BADI is implemented, u can call the method u want by using the syntax CALL BADI. This  concept is included in the enhancement framework topic.
    Syntax
    CALL BADI badi->meth    [EXPORTING  p1 = a1 p2 = a2 ...]
                         { {[IMPORTING  p1 = a1 p2 = a2 ...]
                            [CHANGING   p1 = a1 p2 = a2 ...]}
                         |  [RECEIVING   r = a  ] }
                            [EXCEPTIONS [exc1 = n1 exc2 = n2 ...]
                                        [OTHERS = n_others]].
    Effect
    : Calls a BAdI method. For badi, a BAdI reference variable must be specified. For meth, a BAdI method of the corresponding BAdI must be entered directly. The additions assign actual parameters to the formal parameters of the BAdI method, or handle non-class-based exceptions as described in CALL METHOD.
    The effect of the statement CALL BADI is that the specified method is called in all object plug-ins to which the BAdI object referenced by the badi refers.
    If the BAdI is defined for single use, then badi must contain a valid BAdI reference. If badi is initial, a treatable exception occurs in this case.
    If the BAdI is defined for multiple use, then badi must contain a valid BAdI reference or can be initial. If the referenced BAdI object refers to several object plug-ins ,then the calling sequence is the same with every CALL BAdI statement. The exact calling sequence can be determined in the definition of the corresponding BAdI implementations, if the predefined BAdI BADI_SORTER of the enhancement spot of the same name was implemented for the current BAdI. If the referenced BAdI object does not reference object plug-ins, or the badi is initial, then the statement is without effect.
    System fields
    As for a normal CALL METHOD, the system field sy-subrc is either set to 0 or, when treating non-class-based exceptions, it is set to the value specified after EXCEPTIONS.
    Hope this helps u.
    reward points if found useful.

  • How to call a badi implementaion from report program

    Hi ABAP Guru,
    I have ZBADI_FALLBACK_DEF new badi created by me and there two implementation ZBADI_FALLBACK_IMP and ZBADI_FALLBACK_IMP1
    Now I am calling this badi from report program
    DATA:
       W_HANDLE TYPE REF TO ZBADI_FALLBACK_DEF.
    * GET BADI - for getting objects..................
    GET BADI W_HANDLE.
    * CALL BADI - for calling interface methods.
    CALL BADI W_HANDLE->ADD.
    This is fine,,,
    But I want to call only one implementaion ZBADI_FALLBACK_IMP.But here two implementaion is called.Please help....

    Hi Palash,
    Then you create filter BADI  and  use filter in implementation.
    While getting BADI reference use filter
    GET BADI W_HANDLE FILTERS
    Thanks & Regards,
    Arun

  • Has anyone had a problem with TapMedia File Manage on iPhone 5. I reported a WIFI functionality problem to the developer and asked for support. Instead they have been very unprofessional by name calling me instead of logically evaluate and troubleshoot th

    Has anyone had a problem with TapMedia File Manage installed on iPhone 5? I reported a WIFI functionality problem to the developer and asked for support. Instead the company has been very unprofessional by name calling me instead of logically evaluate and troubleshoot the problem

    Hi AKE1919,
    Welcome to the Support Communities!
    The following information should help you with this:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/HT1933?viewlocale=en_US
    Cheers,
    Judy

  • I updated my Iphone4S this week to the newest IOS 7.1 and now everyone who calls me says the calls are not clear, muffled.  Is there something I can do to clear this?  4 people in 4 different states that called me all said the same thing.

    I updated my Iphone4S this week to the newest IOS 7.1 and now everyone who calls me says the calls are not clear, muffled.  Is there something I can do to clear this?  4 people in 4 different states that called me all said the same thing.

    Settings > General > Reset > Reset Network Settings
    Contact the carrier to troubleshoot.

  • Is it possible to record parts of a phone call on Skype into Logic, then play back the audio while still on the Skype call?  I'm a voice teacher coaching students in other cities, and Skype is not helpful with this idea.

    Is it possible to record parts of a phone call on Skype into Logic, then play back the audio while still on the Skype call?  I'm a voice teacher coaching students in other cities, and Skype can't offer any suggestions.

    Hi
    What I'm saying is:
    Make a new MONO audio track (use the + button). Assign it to input 1
    Make a second new MONO track, assign it to input 2
    Name both tracks, record-enable both tracks, and record.
    You could, of course, make both tracks in one go via the new track dialog box, and hav ethem automatically assigned to ascending inputs.
    CCT

  • CAD Real Time Stats show NA for agent state and call log

    Hello
    For our lab uccx, the agent/users CAD display shows NA for the agent state and call log.  I have
    Not Ready and Log out codes set and have the testers do those actions to generate data.
    I have rebooted the server and have also checked the services page and confirmed
    all the services are running.
    I went through the admin guide to see if I missed any configuration but does not appear so.
    I tried launching the real time stats tool from the UCCX Admin and it launches OK
    but I noticed that it shows not connected.
    Note this is over a VPN to the UCCX.
    So not sure if this is related.  I checked the relase notes and this is the base install
    of UCCX 8.5.  I am going to install the service updates but wanted to see if I can
    get this running before I schedule a maint window to do the upgrades.
    Thanks
    Mike Kana

    Hi
    you might be facing an issue where " uccxcaduser password" gets corrupted , which leads to the issue you are facing right now
    you have to contact TAC to reset that password for you and your issue will be fixed ,100%
    Note : Only TAC can reset this password

  • FM Call in BADI during replication of BP from R/3 to CRM causes problem

    Hello all;
    I am trying to change the BPKIND of the partner in CRM which is created in R/3 with the PARTNER_UPDATE BADI. But the FM called in the BADI causes the BP hang in SMW01 with intermediate state. May you please advice me somthing about this?
    METHOD if_ex_partner_update~change_before_update.
      DATA:  lt_but000_old           TYPE STANDARD TABLE OF but000,
             lt_but000_new           TYPE STANDARD TABLE OF but000,
             ls_but000_new           TYPE LINE OF  bup_but000_t,
             lv_objnr                TYPE crmt_object_guid.
      CHECK sy-uname = 'ERP_RFC'.
      CALL FUNCTION 'BUPA_GENERAL_CALLBACK'
        TABLES
          et_but000_old = lt_but000_old
          et_but000_new = lt_but000_new
        EXCEPTIONS
          OTHERS        = 0.
      READ TABLE lt_but000_new INTO ls_but000_new INDEX 1.
      ls_but000_new-bpkind = '0001'.
      REFRESH lt_but000_new.
      APPEND ls_but000_new TO lt_but000_new.
      INSERT but000 FROM TABLE lt_but000_new.
    *  CALL FUNCTION 'ZBBP_BUP_UPDATE'
    **    TABLES
    **      t_but000 = partner_attrib.
    ENDMETHOD.

    Kindly check the partner function whether that partner function of customer in ECC, is defined in CRM. If it is not defined then it will not copy to IBase while data transfer.
    Reward points if helpful.

  • How to close statement when calling in chain sequence

    Hi all,
    just have a look on below code:
    java.sql.connection con =null;
    //here getting connection
    ResultSet rs= con.createStatement().executeQuery("sql");
    its similer to chaining pattern. here I am having question,
    with the line:
    con.createStatement()
    I am creating the statement and later using this object (which is implicit object as i m not having any futher reference of it, is it correct word which i used) i am executing query and getting result set object.
    here statement object is implicit object.
    is I need to close this object? As per me its too required and i can retrived statement object with the help of resultset object and can use close method.
    but what does the java best pratice say? how they handle objects which are created in chain calling.
    for example
    //this.getPatternCode().getProperty().getName()
    thanks,
    Pax

    In short : stop doing this, it's a bad idea.
    You must always close all your resultsets, statements and connections._ Anyone who tells you anything different is wrong. End of story. Failure to properly close JDBC resources can lead to any number of problems including having your program crash and/or having the database crash.
    So stop doing that.
    There is only one correct practice and it is what is below.
    Create the connection and keep a reference to it.
    Create the statement (this can be a PreparedStatement or CallableStatement as well) using the connection and keep a reference to it (the statement).
    Create the result set using the statement.
    Process as needed.
    Close the resultset in a finally block.
    Close the statement in a finally block
    Close the connection in a finally block.

  • Incoming call 400 Bad request

    Hello,
    I have setup a test deployment of Lync server 2013 with collocated mediation server, which is working fine now. I am now trying to test with different SIP trunk providers. Two of them are working fine now, after some finetuning at the provider. The third
    and the most interesting provider for me, is not working properly:
    They are providing two trunk hostnames: sw1.sip.domain.com and sw2.sip.domain.com. I have filled both in at the topology. The result is that outgoing calls are working fine but incoming calls result in a 400 Bad Request. Lync Logger states
    "The host portion of the from header, sip.domain.com, arriving at MS listening port (5060) did not match any next hop peers' FQDN or IP Address".
    I have examined the INVITES with wireshark for all three providers and have found the following difference with the working providers:
    The CONTACT header does not match the same hostname/IP as the hostname in the FROM header (incoming call)
    Is it mandatory to be the same as the hostname in the FROM header? What else could be the cause of the error?

    Hi,
    1.  You must use a Microsoft certified service provider to ensure that your ITSP supports all of the functionality that traverses the SIP trunk
    Check if the issued ITSP is certified by Microsoft:
    http://technet.microsoft.com/en-us/office/dn788947
    2.  Please double check the settings on Lync Topology and make sure all Mediation configuration match Topology.
    3.  Check if CMS replicate status to be latest.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Calling standard program with logical database

    Hi all,
    I am trying to call a standard report (RPTBAL00) from a custom program without displaying the selection screen.  I want to fill some of the select-options programmatically. 
    My code is somethig like this
          submit RPTBAL00
            with pernr-pernr = 'XXX'
            with pernr-pnpbegda = '20020101'
            with pernr-pnpenddaa = '99991231'
                          and return.
    but the report gets called with defaults.
    Does anyone know what I am doing wrong?

    Hi
    I seem your code is right, but I don't understand which elements are filled with default values.
    Anyway this is a little code to submit a report with logical database:
    Co.Ge.
      loop at so_umskz.
        move-corresponding so_umskz to selopt.
        append selopt  to frange-selopt_t.
      endloop.
      if sy-subrc = 0.
        frange-fieldname = 'UMSKZ'.
        append frange to range-frange_t.
      endif.
      refresh frange-selopt_t.
      loop at so_zlsch.
        move-corresponding so_zlsch to selopt.
        append selopt  to frange-selopt_t.
      endloop.
      if sy-subrc = 0.
        frange-fieldname = 'ZLSCH'.
        append frange to range-frange_t.
      endif.
      if not range-frange_t[] is initial.
        range-tablename = 'BSIK'.
        append range to trange.
        call function 'FREE_SELECTIONS_RANGE_2_EX'
          exporting
            field_ranges = trange
          importing
            expressions  = texpr.
      endif.
      submit rfitemap
              with ................
              with free selections texpr and return.
    Max

  • Jib statement cash calls - multiple ventures netted on summary stmt

    I am wondering if the jib statement when using cash calls can be configured to not show a net summary when having multiple ventures. We would rather have a netted value for each individual venture shown on the summary statement so a venture without a cash call would show a balance and a venture with a cash call would show a credit amount if applicable.
    Thanks,
    Jon
    "SAP Newbie"

    Ok, I changed the parameters from &Page_Item. to :Page_Item and it works....
    Now for the beer
    Sam

  • Calling a Page(flow logic ) from a controller

    Hi Guru's ,
        I have a senario in which I have a controller and also Page flow logic .. I want to call a page of type page flow logic from the controller ..
    I tried the below methods .. but it didnt work ..
    *navigation->goto_page('test.htm').
    DATA: r_view TYPE REF TO if_bsp_page.
    DISPATCH_INPUT( ).
    r_view = create_view( view_name = 'test.htm' ).
    call_view( r_view ).
    this works only if its is a view but not flow logic ..
    Please give ur suggesions ..
    Thanks
    Sivaraj

    hi sivaraj ,
    first refer whether u could call a page using pages with flow logic by the controller which is used in mvc design.
    may be u canot call it . u have to create a page using view according to mvc . try it once.

Maybe you are looking for

  • My iMac no longer can display to a secondary monitor

    I had my iMac connected to a Samsung TV via the following: iMac --> displayport cable to DVI --> DVI to HDMI adaptor --> Samsung TV After doing some updates on OSX Mavericks this no longer works. The TV detects that there is something because the inp

  • Replacing Oracle Toplink with TopLink Essentials

    Is it possible to force OC4J to use TopLink Essentials by default instead of Oracle TopLink?

  • SPA2002 in SIP server environment

    Hello, I am using the SPA2002 that registers remotely to a SIP server. The phones register correctly and can reach any other user agent (not SPA2002). the problem is that other user agents cannot call the SPA2002 until the SPA2002 calls first then th

  • Can SOA Suite acts as a FTP server?

    Hi, From documents, I known SOA Suite has inbound FTP adapter. Does that mean I can use it as a FTP server? Thanks,

  • (CS3) Lag issue on Vista

    Hi, I've just installed a fresh copy of Windows Vista Business last night. After installing Photoshop CS3 however, I noticed a very serious lag issue. I looked into the problem a bit on google and this forum but did not reach a solution. In general,