IT_CV values in BADI

Folks,
I have a question.  I am planning to execute a package as a Push button in my Input Schedule. I cannot put in default as it needs to be executed only on adhoc basis. But I don't want to specify any prompts for the users. It shud execute with the current view selection on the Input Schedule. Is this feasible?
Lets say I have a package linked to a push button to run Depreciation. I am working on Entity: 100.  How do I pass this to my BADI/Script to run it without prompting it for the user?
Any ideas?

Main rule in BPC for Script Logic is restricting by Dimension values if you run a DM Package and  by CV if you run DEFAULT script. The only exception now is BADI, that has CV values in IT_CV.
So, in your case IT_CV will hold that ENTITY = 100 in IT_CV.
Hope this helps,
Gersh

Similar Messages

  • Performance Management EhP4 -- Value determination BAdi

    What does the value determination BAdi do? How do you make it available in the appraisal document? I created a Z of the delivered value determination BAdi (hrhap00_value_det) and I also created in the enhancement areas (using oohap_basic). In the appraisal template I do not see them and I am not able to configure it

    Steps that you need to take care when you create the Z of this BADI.
    1.  Create the Z- BADI.
    2. Include this BADI in your enhancement area in OOHAP_BASIC.  It might be for the appraisal template, criteria group or criteria itself.
    3. Once included in the enhancement area you should go to PHAP_CATALOG_PA and include this BADI in the Category and Category group of the template in question.
    4.  After including this in category, you should go to the template in question and whichever COLUMN you need this BADI to calculate, just do an F4 on that column value determination field. You should be able to find it in the list. Use it.
    Hope this helps.
    Best Regards.
    Karan.

  • OSA - Value Determination BAdi

    Hi All,
    How to use the Value Determination Badi to read the rating from external source? for example, read from excel file.
    Any sample code can share?
    Thanks in Advance!
    Best Regards,
    Vince

    Hi Amin
    Very simple steps to follow.
    U have to populate codes in each of the methods of the BADi by copy paste from standard BADi.
    Or U can do one thing.Go to the standard BADi.Write down the name of the class.Then go to SE24.Create a sustom class by coping the standard Class and attach the custom class to Ur custom BADi.
    for Example lets say I want to use std BADi HRHAP00_VAL_DET_002.Then I'll create a class called ZCL_IM_HRHAP00_VAL_DET_002 by coping the class CL_IM_HRHAP00_VAL_DET_002 in SE24 and Attach the custom class to my custom BADi.
    Then just activate the BADi and done...
    This will definitely solve Ur prb as I was also facing the same prb and solved it in this way.
    Award points accordingly.

  • How to get value in BADI

    The internal table have values,but I can't read it.How to I get value from internal table in BADI?

    Hi
    Call the related method .
    that method returns some internal table with values.
    use it as usual like how we use in coding. by reading it.
    see the sample code:
    BAdI Name: ZCHECK_PO_LINE_ITEM (Implementation name) PO Account assignment
    Definition Name: ME_PROCESS_PO_CUST
    Interface Name : IF_EX_ME_PROCESS_PO_CUST
    Implementing Class: ZCL_IM_BADIN_ACCOUNT_ASSGN
    Method :            PROCESS_HEADER
    METHOD if_ex_me_process_po_cust~process_header .
      DATA : re_data TYPE mepoheader.
    *get the item data
      CALL METHOD im_header->get_data
        RECEIVING
          re_data = re_data.
      re_header = re_data.
      IF ( re_data-bsart NE 'ZOC' AND re_data-bsart NE 'ZPC' ).
        IF ( re_data-bsart <> 'ZIC' AND re_data-bsart <> 'UB' ).
          IF re_data-bukrs NE '1001'.
            MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'Use only Sipchem Company'
                                            'Code for External Procurement'.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDMETHOD.
    Method :            PROCESS_ITEM
    METHOD if_ex_me_process_po_cust~process_item .
      DATA: v_menge TYPE bamng,   " PR Quantity
            v_statu.              " PR Status
      DATA : re_data TYPE  mepoitem,
           re_data1 TYPE mepoaccounting,
    re_accountings TYPE purchase_order_accountings ,
    header TYPE purchase_order_accounting.
    *get the item data
      CALL METHOD im_item->get_data
        RECEIVING
          re_data = re_data.
      IF ( re_header-bsart NE 'ZOC' AND re_header-bsart NE 'ZPC' ).
        IF re_header-bsart EQ 'ZRL'.
          IF re_data-konnr EQ space.
            MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You cant create a Release order'
                                                         'without a reference to Outline Agreeement'.
          ENDIF.
        ENDIF.
    IF ( re_header-bsart NE 'ZOC' AND re_header-bsart NE 'ZPC' ).
        IF ( re_data-banfn EQ space AND re_data-anfnr EQ space ).
          MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You can create a Purchase order'
                                                         'only with reference to a PR or RFQ'.
        ENDIF.
    ENDIF.
    call method IM_ITEM->GET_ACCOUNTINGS
       RECEIVING
         RE_ACCOUNTINGS = RE_ACCOUNTINGS.
    **get the accounting reference variable,this reference is needed to get
    **the GL account *number and Asset number
    *loop at RE_ACCOUNTINGS into header.
    **get the accounting info.
    call method header-ACCOUNTING->GET_DATA
       RECEIVING
         re_data = re_data1.
    **if the account assignment is K then check for GL account
    **if its A then check for Asset number
    if re_data-KNTTP eq 'K'.
       if re_data1-SAKTO IS INITIAL.
         MESSAGE ID 'ZM_MSG'
           TYPE 'E' NUMBER '000' WITH 'Enter G/L account'.
       ENDIF.
    ELSEIF re_data-KNTTP eq 'A'.
       if re_data1-ANLN1 IS INITIAL.
       MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'Enter Asset Number'.
       ENDIF.
    ENDIF.
    *endloop.
        IF re_data-knttp NE 'K' AND re_data-pstyp NE '9' .
          IF syst-cprog EQ 'RM_MEPO_GUI'.
            IF re_data-uebto IS NOT INITIAL OR
               re_data-uebtk IS NOT INITIAL OR
               re_data-untto IS NOT INITIAL.
              MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You cant change delivery settings'.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    Checking  PO quantity with PR Quantity
    select single statu menge into (v_statu, v_menge) from eban
       where banfn = re_data-banfn and
             bnfpo = re_data-bnfpo.
    if v_statu <> 'B'.
       if re_data-menge gt v_menge.
        message e000(zm_msg) with 'You cant create PO exceeding' 'the PR Quantity'.
       endif.
    else.
      MESSAGE e000(ZM_MSG) WITH 'You cant create a PO with reference' 'to Completed PR'.
    endif.
    ENDMETHOD.
    Reward points if useful
    Regards
    Anji

  • Passing Values to BADI in LUW

    We have a process in SRM where incoming IDOCS are coming in from an external source. In our Z function module the BBP_DOC_CHANGE_BADI is called and we need to pass a value to DOC_CHANGE_BADI to make sure we process only code for this process.
    Options:
    1) EXPORT/IMPORT To Memory ID - Did not work
    2) EXPORT/IMPORT TO INDX - Did not work, we processed 10 idocs at once and memory got lost during 1 update.
    3) Write to Z table in Z FM, and then read table in BADI. Current solution.
    4) Tried to use field symbols  (FM(field1) didnt work.
    Any other ideas?

    Hi Divya,
    Based on the current description, I understand that there is no issue if you pass two values from main report to subreport, while the issue occurs when passing one value to subreport.
    To narrow down the issue, I want to confirm whether the subreport can run if there is only [0] or [1] in the subreport. If so, it indicates the query statements exist error in the subreport. If it’s not the case, this shows the issue occurs during passing
    values from main report to subreport. To make further analysis, please post the details of query statements of the subreport to the forum.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Extended rebate - change payment values with Badi RBT_ENH_BADI_SETTLE

    Dear all
    I am trying to change payment values for an extended rebate agreement credit memo.
    According to the documentation it can be done using BADI
    RBT_ENH_BADI_SETTLE .
    I am using  method BONUS_VALUES_MODIFY , but no values
    has been changed in the credit memo.
    Does anyone have experience using the BADI ? Or any other idea how to change the payment values (not manually )?
    Thanks ,
    Miriam Harel

    Hello Miriam,
    I've got the same needs. Did you use finally this Badi ?
    If yes could you kindly tell me how did you use it?
    BR.
    Frédéric TURILLON.

  • Variable Value for BADI

    Hello Forum
    We have an issue with BADI implementation.
    We have a key figures in query are restricted to a user exit variable for calendar month (as current month and previous month) and fetches results.
    Now due to some requirement we need to check if the "Cal Month" determined is current month or the previous month and return a value.
    We have implemented a BADI for the same reason to determine this however can anyone please let us know how can we use the value of a user exit variable in the query can be used in BADI ?
    Thanks & Regards
    Ashish

    Hello Shani Bashkin 
    You don't need EXIT_SAPLRSBBS_001, you need EXIT_SAPLRSBBS_002
    Here goes:
    You go to se18 select SMOD_RSR00004 then you go to Implementation->Create
               then you create a BADI implementation with the name Z*something_something. The system then brings you to the SE19 definition of BADI implementaition you there see both of the RSBBS exit, in methode form EXIT_SAPLRSBBS_001
    EXIT_SAPLRSBBS_002
    You select the second one EXIT_SAPLRSBBS_002 double click on it, it brings u to abap code Method .....End method U then insert this code and adapt it to your usage. Activate everything, go to smod find the exit RSR00004 activate everything there with the magic WAND, got o rsrt generate and debug, u then should pass in that code and then use some imagination, thats all folks!!!!
    DATA: I_THX_MAPPING_WA TYPE LINE OF RSBBS_THX_MAPPING,
          E_THX_MAPPING_WA TYPE LINE OF RSBBS_THX_MAP_BY_EXIT,
          I_RANGE TYPE RRRANGESID,
          I_DATE LIKE SY-DATUM,
          E_TT(2).
    DATA: l_s_thx_mapping type rsbbs_sx_map_by_exit,
          l_s_range       type RRRANGESID.
    FIELD-SYMBOLS:
          <l_sx_mapping>  TYPE rsbbs_sx_mapping.
    IF I_S_RECEIVER-RONAM = 'IW29'.
    read table i_thx_mapping ....
    PS: You need to Have ITS installed and configured and your web server maintained for BW to R/3 connect

  • Variable Values in BADI's

    Hello All
    We have a requirement where we need to pass the value of a characteristic variable entered by the user to a cutomer exit variable and based on that need to perform a validation and return back the same value if it is correct else to return the blank/null value.
    Can anyone plz advice how can I achieve it ?
    Regards
    Ashish

    Hi Ashish,
    Please go through the following BAdi PDF:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f05700a6-23e2-2910-b48a-c58392764dda
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/409fa539-30e2-2910-7a8e-80279d09893e
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0456c54-0901-0010-f0b3-cd765fb99702
    BADi Enhancement:
    [Enhancement in BW]: How to use BaDI : RSU5_SAPI_BADI
    Implementing BADIs:
    http://help.sap.com/saphelp_nw04s/helpdata/en/eb/3e7cf4940e11d295df0000e82de14a/content.htm
    goto Tcode se19, give the implementation name and write a code as per yr field enhancement , save it then it will be serving as a badi which u can use

  • Filter Value for BADI

    Hi,
    Kindly Let me know the Filter Defined for Implementaing
    BADI.
    Hoping for your Response...!!!

    Hi,
    BADI may be implemented depending on a specific filter value( example COUNTRY-SPECIFIC VERSIONS: distinct implementations of the BADI can be created for the COUNTRY).
    a filter type must be entered when defining your enhancement ( a country or industry, for example).
    all methods created in the enhancement's interface have filter value 'FLT_VAL' as their import parameter.
    the method then selects the active implemetation based on the data provided in the filter value.
    for seting the filter value, you must enable the option FILTER DEPEND and provide FILTER TYPE in the ATTRIBUTES of the BADI defination.
    SE18 is the transaction code for creating BADI.
    Filter dependence for BADI definitions means that each interface method automatically has an importing parameter FLT_VAL assigned ot it. This parameter must be filled with a filter value as current parameter when it is called.
    A BADI definition should be marked as filter-dependent whenever the characteristic of the BADI implementation should match the characteristics of the filter type - that is, whenever the implementation of different filter values should be different or should only exist at all for certain filter values.
    Typical filter types are line of industry or country.
    The BADI is filter dependent. In the first tab of your BADI implementation (SE19), the lower half will contain filter details.
    STEPS FOR SETTING UP A FILTER
    just go to se18 and give ur BADI name..
    then Select 'Attributes' Tab ,there u will find option Filter-Dependent in window named "type"..
    check tht filter dependent checkbox and give ur data element/field in the Filter type field say u can give 'MOLGA' ..save and come back..
    now go to se19 and implement this BADi and there u can give filter values for filed MOLGA..
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • How to change value in BADI

    I want to change value of field afnam based on the following code below in BADI ME_PROCESS_REQ_CUST.
    But this code give me endless loop.  Is there anything missing in my coding?Please correct me, Thank you.
      data : obj_pr type MEREQ_ITEM,
             wa_eine type eine.
    CALL METHOD IM_ITEM->get_data
    RECEIVING
    re_data = obj_pr.
      if obj_pr-infnr <> space.
        select single * into wa_eine from eine
        where infnr = obj_pr-infnr.
        if sy-subrc = 0.
          obj_pr-afnam = wa_eine-effpr.
        endif.
      endif.
    CALL METHOD IM_ITEM->set_data
    EXPORTING
    im_data = obj_pr.

    Hi Jessie,
    As per my understanding, the thing is that, in BADI  "ME_PROCESS_REQ_CUST", there is a method called "CLOSE".
    you have to implement this method to close the processing....
    work on triggering the method first and if it triggers, then implement the coding and see how it is working....
    thanks,
    Vishnu.

  • How to change PRCTR filed value thru (Badi) INVOICE_UPDATE

    Hi Friends,
    While posting MIRO, the price diff amount going to defualt profit center instead of the PO or actual profit center and the field is an inactive mode (not able to change it). I've tried in available 3 method functions of INVOICE_UPDATE but its not shwoing the records.
    In INOVICE_UPDATE badi, no available parameters(structures) showing the accounting line items of the invoice. (in MIRO, When go for simulate it shows one table window where it has line items of the a/c assignment transaction).Its showing only the invoice update details in TI_MRMRSEG as single item.
    Pls help me how to add or change the value of the filed 'PRCTR'.
    Thanks &regards
    Sankar.
    Edited by: sankar babu on Aug 20, 2008 1:55 PM

    hi,
    use this exit.
    LMR1M001                                User exits in Logistics Invoice Verification
    EXIT_SAPLMR1M_002
    VALUE(I_DRSEG) TYPE  MMCR_DRSEG.

  • Pass values from badi to a  z report

    hi  expets,
    i am using badi  'ME_REQ_POSTED  ' for some requirement but i need to capture the doc no posted in this badi  and store it in a variable and use it for further processing in  a bdc , can anybody help me out for this , i am new to abap objects .
    thanks
    reagrds

    This is used in same way as in classic approach. You can export/import entire table as well.
    "in BADI
    EXPORT mem_tab = "pass your table here
                   TO MEMORY ID 'ZMY_MEM_ID'.
    "in other program
    data: itab type table of ....
    IMPORT mem_tab = itab
                 FROM MEMORY ID 'ZMY_MEM_ID'.
    "here you have your ITAB with data inside
    Regards
    Marcin

  • Need to transfer value from BADI to program/smartform

    Hi Guys,
    I have to add 3 fields from Infotype/table PA0041 to the smartform generated by this Program "Employer Statement (RPLERCC0)". I have implemented a BADI and written my code in the method get_output_strucuture. But how will I transfer my data to the program/smartform. If anyone has worked in the same then please provide your suggestions.
    Thanks in Advance.
    Manoj

    Hi,
    Do an export/import.
    * In the Badi
    EXPORT ZQTY
                  ZMATNR
         to memory id 'ZTEST'.
    * in the report program
    IMPORT ZQTY
                 ZMATNR
      from memory id 'ZTEST'.
    FREE MEMORY ID 'ZTEST'.
    Best regards,
    Prashant

  • Default Values for Creation of STO's.

    Hello Experts:
    When I create STO's, I don't see any source of default values, like Delivery Tolerance, Confirmation control key, etc, that for a PO usually come from the Vendor or The Info Record.
    We have managed to add these values via BADI, but for STo's created from APO via Transportation load Builder, this Badi is no taking effect. (The Badi I used is and works fine when doing it online, in ME21N or via a BAPI.
    Do you have any experience on where (user exit, etc) to add logic for putting these default values in the STO's created by TLB.
    Thanks in advance

    Sorry the BADI used is ME_PROCESS_PO_CUST

  • BADI/User Exit for Checking Conditions in TRM Transactions

    Hi  All,
    I have to check some conditions before saving the transaction FTR_CREATE. So that based on that condition it will be known that whether that transaction will save or not.  I found some BADIs, but those are particularly working for Money market and derivatives. For my Req, I need a BADI which will check conditions for both Money market and Securities.
    Exact req is, Based on Portfolio and PaymentAmount i have to restrict the transaction. Those will found in 2 tables VTBFHA and VTBFHAPO. But many BADIs doesnt contain VTBFHAPO.
    If any one working on TRM can u help me out ?

    >
    priya tavanam wrote:
    > Hi Frds,
    >
    > I am using the FTR_TR_GENERIC Badi.  In that one method is : EVT_TRANSACTION_SAVE_CHECK. In that one parameter is PI_PROXY_TRANSACTION. I want to get the attributes of Method A_TAB_CASHFLOW . That is  : A_TAB_CASHFLOW~BZBETR.
    -->whats ur code to read those values , it should be
    lt_cashflow[] = PI_PROXY_TRANSACTION->a_A_TAB_CASHFLOW [ ] ' .
    But i am unable to access this value in BADI. how access this. Can any one help me on this.

Maybe you are looking for

  • Use transaction FILE to store data from a cube into a file with Open Hub

    Hi people: I'm using BI 7.0 .Mi requirement is to make a flat file using the information of a virtual cube. The file name must have the number of the month and the year. I know that this is possible through FILE transaction. Can anybody give me a clu

  • How do i find out if i have a ivy bridge in my mid 2012 13" macbook pro

    how do i find out if i have a ivy bridge in my mid 2012 13" macbook pro?

  • My Mac Pro 1,1 keeps freezing and crashing

    This happens regularly. Everytime I start up a game or try to watch a video I am forced to restart. This is the error report upon restarting: Interval Since Last Panic Report:  41183 sec Panics Since Last Report:          2 Anonymous UUID:           

  • Keep receiving empty messages

    Since upgrading my 3g iphone to 4.0.2 I receive empty emails from unknown sender with date 1-1-70. I cannot delete these messages. I do not get them on my laptop (via mobile me) so must be an iphone problem. Please help - how do I get rid of this unk

  • Unable to set as ringtone file is unprotected N73

    I can transfer my mp3 to my N73 V 3.0716.1.5.1 without any problem PC suite. They get converted either to m4a or aac format and I can listen to them. However, when I want to set them as Ringtone I get the following error: Unable to set as ringtone fi