Bex Customer Exit: I_STEP 2,3 are not getting called up?

Hi All,
I need a small help in BEX variable customer exit. I am trying to give an error message on what user had entered on the selection screen. I kept several breakpoints. But I understand that this particular code is calling up only when 'I_STEP = 1'. For I_STEP 2 and 3, the follwong code is not being called? I have seen so many validations happening on user entered values with error messages.. But I am not sure where I am missing?
Here is my sample code.. can any one extend the help?
The original requirement is to 'modify' what user had entered. But I understand that SAP is not allowing to modify what user had input.. So thought of giving a small error message.. and not able to do that also.. so I am in this Forum..
thanks,
Hari
When 'ZCATID2'.
*data : l_year1(4) type n,
      l_year2(4) type n,
      l_text(12).
data: l_cat(10).
*IF I_STEP <> 2.
*RAISE no_processing.
*ENDIF.
IF I_STEP EQ 3.
  break-point.
  READ TABLE I_T_VAR_RANGE WITH KEY VNAM    =  'ZCATID2'
  INTO  LOC_VAR_RANGE .
  if LOC_VAR_RANGE-LOW CP '*'.
  message i999(zz) with 'Test'.
  endif.
  break-point.

Thanks Roberto for this good document to clear my fundamentals. I think I understand the mistake on my code.
Thanks verymuch for your timely help.
Best Regards,
Hari
( I looked to give more points to you but it allwoed me only 10 points to give you.). Have a nice day!!

Similar Messages

  • ActionEventListeners are not getting called for buttons within facets

    Hi,
    I see some wiered issue with ADF Facet Switcher. I have the following code in a JSF page fragment (.jsff) and it has got a mixture of some client side HTML elements like p, div , h2 etc for styling ..along with these ADF components.
    <af:switcher facetName="#{backingBeanScope.NavigationBean.navigationNodeType}" id="facettype" rendered="true" defaultFacet="orphan">
    <f:facet name="node">
    <af:panelGroupLayout layout="vertical" id="pgnode" visible="true">
    <af:forEach items="#{backingBeanScope.NavigationBean.currentNode.children}"
    var="childNode">
    <af:commandLink text="#{childNode.title}"
    inlineStyle="font-weight:#{backingBeanScope.NavigationBean.currentNode.title eq childNode.title ? 'bold' : 'normal'};"
    action="pprnav"
    actionListener="#{backingBeanScope.NavigationBean.handleNavigation}"
    partialSubmit="true"
    visible="true"
    id="cmdlinknode">
    <af:setActionListener from="#{childNode}"
    to="#{backingBeanScope.NavigationBean.currentNode}"/>
    <f:attribute name="node"
    value="#{backingBeanScope.NavigationBean.currentNode}"/>
    </af:commandLink>
    </af:forEach>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="leaf">
    <af:panelGroupLayout layout="vertical" id="pgleaf" visible="true">
    <af:forEach items="#{backingBeanScope.NavigationBean.parentNode.children}"
    var="childNode">
    <af:commandLink text="#{childNode.title}"
    inlineStyle="font-weight:#{backingBeanScope.NavigationBean.currentNode.title eq childNode.title ? 'bold' : 'normal'};"
    action="pprnav"
    actionListener="#{backingBeanScope.NavigationBean.handleNavigation}"
    id="cmdlinkleaf" visible="true"
    partialSubmit="true">
    <af:setActionListener from="#{childNode}"
    to="#{backingBeanScope.NavigationBean.currentNode}"/>
    <f:attribute name="node"
    value="#{backingBeanScope.NavigationBean.currentNode}"/>
    </af:commandLink>
    </af:forEach>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="orphan">
    <af:panelGroupLayout layout="vertical" id="pgorphan" visible="true">
    <af:goLink destination="" text="Back to previous page" id="orphanlink"></af:goLink>
    </af:panelGroupLayout>
    </f:facet>
    </af:switcher>
    But interstingly the command link or button inside these switcher or facets doesnot invoke any actionlisteners or action ....Tried many things and wasted much time to actually figure out the issue is only for the command links or buttons placed in the switcher...If i place something after the switcher...
    <af:commandLink text="#{'clickme'}"
    inlineStyle="bold"
    action="pprnav"
    actionListener="#{backingBeanScope.NavigationBean.handleNavigation}"
    id="cmdlinktest" visible="true"
    partialSubmit="true">
    <f:attribute name="node"
    value="#{backingBeanScope.NavigationBean.currentNode}"/>
    </af:commandLink>
    Then the action listeners or actions are getting invoked properly....Can you please tell what is wrong with the above snippet? I am using Jdeveloper 11.1.1.4 tech stack.
    Regards
    Prasath.C
    Edited by: Prasath C on 05-Aug-2011 03:08
    Edited by: Prasath C on 05-Aug-2011 03:09
    Edited by: Prasath C on 05-Aug-2011 03:12

    perhaps the XML parser doesn't like the format of your output. Is it formatted XML? I would output unformatted XML (without newlines, tabs and spaces between elements, etc.) and try again.
    Perhaps the character encoding used isn't liked by the XML parser. Are you providing any character encoding to begin with? (UTF-8 for example)
    It is hard to tell what could be wrong from such an ambiguous error message. The best thing you can do is try a flash forum, or poke around with the stuff until something works. You could also try putting some logging in the servlet to at least know that it is being called by the flash application.

  • Getter & Setter Method not getting called for a field enhanced through AET

    Hello,
    I am new to SAP CRM 7.0 and working on a requirement.
    A Z-field was added by our functional guy in CRM 7.0 WebGui through AET in the 'Create Opportunity' transaction (Header data).
    Now the requirement is, as soon as the opportunity is created through the WebGui, I should post a document in R/3 and paste that document number back to the enhanced Z-field in opportunity.
    Work done by me:
    I pressed F2 on the enhanced Z-field in the WebGui screen and took the details of view, component name etc. After this I went to normal SAP CRM system and open tcode "BSP_WD_CMPWB", located the corresponding view "BT111H_OPPT/Details" and right clicked & enhanced the same.
    Then I opened the structure of this view, expanded context node, located context "BTOPPORTH" and inside this, located my Z-attribute. Now right clicked on the Z-attribute & selected the option "Generate SETTER & GETTER Methods" and these were generated successfully.
    Problem:
    The problem is even after putting external break points in these methods, these methods are not getting called while creating, modifying & displaying the Opportunity in WebGui.
    I hope that for the requirements that I have, I have to do the coding in "Getter & Setter" methods. But since these are not getting called, I am unable to proceed.
    Please help/suggest how to achieve this.
    Thanks in anticipation.
    Best Regards,
    Rahul Malani

    Hi,
    If you can see the field in UI and still get_ method is not being triggered then try to regenerate these methods. If it still doesn't work then please look for SAP notes or raise an OSS.
    There should be some note for the issue you faced.
    please refer:
    Help Needed immediately - AET getter setter methods not getting triggered
    Regards,
    BJ

  • CommandButton actions not getting called when "disabled" element present

    MyObjectForm.jsp contains commandButtons for "add", "update" and "delete" that are enabled/disabled according to the value of the bound id field.
    MyObjectForm.jsp
    <html>
    <body>
    <f:view>
    <h:form id="create">
    <h:inputHidden id="id" value="#{myObjectBean.id}" />
    <h:panelGrid columns="3" border="0">
    Name: <h:inputText id="name"
    requiredMessage="*"
    value="#{myObjectBean.name}"
    required="true"/>
    <h:message for="name"/>
    // other fields
    <h:commandButton id="add"
    value="Add" disabled="#{myObjectBean.id!=0}"
    action="#{myObjectBean.add}"/>
    <h:commandButton id="update"
    value="Update" disabled="#{myObjectBean.id==0}"
    action="#{myObjectBean.update}"/>
    <h:commandButton id="delete"
    value="Delete" disabled="#{myObjectBean.id==0}"
    action="#{myObjectBean.delete}"/>
    <h:commandButton id="delete2"
    value="Delete (no disabled element)"
    action="#{myObjectBean.delete}"/>
    </h:form>
    </f:view>
    </body>
    </html>In its managed bean, MyObjectBean, if an id parameter is found in the request, the record is read from the database and the form is populated accordingly in an annotated @PostConstruct method:-
    MyObjectBean.java
    public class MyObjectBean {
    private int id;
    /** other properties removed for brevity **/
    public MyObjectBean() {
    LOG.debug("creating object!");
    @PostConstruct
    public void init() {
    String paramId = FacesUtils.getRequestParameter("id");
    if(paramId!=null && !paramId.equals("")){
    getById(Integer.parseInt(paramId));
    LOG.debug("init id:"+id);
    }else{
    public String delete(){
    LOG.debug("delete:"+id);
    MyObjectVO myObjectVO = new MyObjectVO();
    ModelUtils.copyProperties(this, myObjectVO);
    myObjectService.removeMyObjectVO(myObjectVO);
    return "";
    public String add(){
    LOG.debug("add");
    MyObjectVO myObjectVO = new MyObjectVO();
    ModelUtils.copyProperties(this, myObjectVO);
    myObjectService.insertMyObjectVO(myObjectVO);
    return "";
    public String update(){
    LOG.debug("update:"+id);
    MyObjectVO myObjectVO = new MyObjectVO();
    ModelUtils.copyProperties(this, myObjectVO);
    myObjectService.updateMyObjectVO(myObjectVO);
    return "";
    public void getById(int id){
    MyObjectVO myObjectVO= myObjectService.findMyObjectById(id);
    ModelUtils.copyProperties(myObjectVO, this);
    /** property accessors removed for brevity **/
    }When no parameter is passed, id is zero, MyObjectForm.jsp fields are empty with the "add" button enabled and the "update" and "delete" buttons disabled.
    Completing the form and clicking the "add" button calls the add() method in MyObjectBean.java which inserts a record in the database. A navigation rule takes us to ViewAllMyObjects.jsp to view a list of all objects. Selecting an item from the ViewAllMyObjects.jsp list, adds the selected id to the request as a paramter and a navigation rule returns us to MyObjectForm.jsp, populated as expected. The "add" button is now disabled and the "update" and "delete" buttons are enabled (id is no longer equal to zero).
    Action methods not getting called
    This is the problem I come to the forum with: the action methods of commandButtons "update" and "delete" are not getting called.
    I added an extra commandButton "delete2" to the form with no "disabled" element set and onclick its action method is called as expected:-
    commandButton "delete2" (no disabled element) - works
    <h:commandButton id="delete2"
    value="Delete (no disabled element)"
    action="#{myObjectBean.delete}"/>Why would "delete2" work but "delete", not?
    commandButton "delete" (disabled when id is zero) - doesn't work
    <h:commandButton id="delete"
    value="Delete" disabled="#{myObjectBean.id==0}"
    action="#{myObjectBean.delete}"/>The obvious difference is the "disabled" element present in one but not the other but neither render a disabled element in the generated html.
    Am I missing something in my understanding of the JSF lifecycle? I really want to understand why this doesn't work.
    Thanks in advance.
    Edited by: petecknight on Jan 2, 2009 1:18 AM

    Ah, I see (I think). Is the request-scoped MyObjectBean instantiated in the Update Models phase? If so then the id property will not be populated at the Apply Request Values phase which happens before this, making the commandButton's disabled attribute evaluate to true.
    Confusingly for me, during the Render Response phase, the id property is+ set, so the expression is false (not disabled) giving the impression that the "enabled" buttons would work.
    So, is this an flaw in my parameter passing and processing code or do you see a work around?

  • Default value of BeX customer Exit variable not Displayed in WeBI??

    Hello Experts,
    We are stuck with a problem where WeBI report is created on top of BeX query and we are not able to see the default value of Bex Customer exit variable in WeBI run. Here is the complete scenario:
    1. One restricted KF is created in BeX, restricted with Customer exit variable on net Due date. And this variable is mandatory, ready for input, and Default value in calculated is user exit as current Week's Monday.
    2. So, by default KF data should be restricted to Monday of current week, if user does not change this value.
    3. Now, WeBI report is created on top of this Bex query, and all is working fine, i.e. we are getting variable as Prompt in WeBI, but Default value is not shown while Running the Webi Report.
    So, need your inputs on the same, if default values from BeX in WeBI is supported or not? If yes, why this is happening, and how to resolve it?
    Please notice, the restrcition is in KF only, it is not a separate restrcition on Net Due date in Filter area or in Defualt area of BeX
    and we are on SAP BW 7.1 and BOXI 3.1 SP4.
    Regards,
    Vipul
    Edited by: VIPUL GOYAL on Nov 23, 2011 9:44 PM

    Hi,
    See 1285993 - Support of Customer Exit Variables from BEx query into WebIntelligence via OLAP universe
    WebI will prompt when executed, but the default values calculated by the user exit  - do not appear.
    Note: If the BEx variable has property 'ready for input' set / enabled, then its WebI prompt shows ok, but no default value appears.
    Cause
    This behaviour expected 'by design' (in the context of the product's current limitations) as explained in the online guide below:
    Please refer to Chapter 7, page 44, document link here: http://help.sap.com/businessobject/product_guides/boexir3/en/xi3_sap_olap_universes_en.pdf
    Characteristic variable > processing type > Customer Exit  is "Supported, without user entry"                                                                               
    -->  This should be understood as meaning "User will not be shown a prompt"
    regards,
    H

  • Customer Exit (i_step = 1) - Retrieve Variable Value

    Hello,
    I have BW web report and created customer exit (i_step = 1). The BW Web Report is being called from BSP application and I'm passing variable value on URL.
    For example:
    /sap/bw/BEx?cmd=ldoc&template_id=Z_JEFF_CLAIM_TEST&VAR_NAME_1=ZAGGET&VAR_VALUE_EXT_1=10310
    What I need to do now is retrieve the variable value passed on URL in the custom exit i_step = 1. 
    Does anyone know how to do this?
    Thanks,
    Gary

    hi Gary,
    can try in variable user exit ZXRSRU01 ?
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
      IF I_STEP = 1.
        LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'ZAGGET'.
        .... = LOC_VAR_RANGE-LOW.
        ENDLOOP. 
      ENDIF.
    hope this helps.

  • How to get the offset value in the Bex customer exit?

    Hello Friends,
    I have defined an offset on a variable in the query definition.
    I wish to capture this offset value  in the Bex variable customer exit .
    Does anyone how to get this??
    Thanks,
    Gautam

    I dont think you can capture the offset applied value in a exit as the value is dependent on the variable itself and nothing to capture the result after the offset has been applied.
    why dont you capture the variable value itself and apply the logic to do an offset in the customer exit?

  • Sales orders from CRM are not getting blocked with credit check

    Hi All
    I have configured ECC in such a way that , if cutomer does not have enough creditlimt, then those sales order will get blocked. Our orders will come from CRM, and some times some orders are not getting blocked with credit check even though the customer does not have credit limit. And at the same time some orders are blocked with credit check...what are all the things that should be checked to diagnose the problem.
    Thanks in advance for looking into this

    Please check if you have any custom code/user exit in ECC which uses transaction code (VA01 , VA02 or VA05 etc) prior to invoking credit checks. 
    Orders created via CRM will not have transaction code set (SY-TCODE).

  • Buss.Area not getting transferred to invoice list

    Hi Gurus,
    hope u all r doin good outhere, i have an issue with bussiness area not getting populated or transferrred for Invoice list that are released to accounting .
    the scenario here is: in the accounting overview under the Billing Invoice(VF03) we are able to see the buss area against the customer acct line item and the GL acctline item, but when we go into the Accounting overview under Invoice List (VF23), the Buss area is not getting populated against the Customer lineitem..., we are not able to figure out what is missing...is it in the configuration...,
    we are on 4.6 , and we have an OSS note 69499 (given below) on this issue which says
    Summary
    Symptom
    Business areas are not transferred for invoice lists that are released to financial accounting.
    Additional key words
    GSBER TVTA VF21 SAPMV62S factoring discount
    Cause and prerequisites
    This was not programmed
    Solution
    A solution is only available in the standard system as of Release 3.0D.
    You can make the attached advance correction that uses a user exit.
    In this solution, the business area is copied from the sales area table (TVTA) for the sales area of the invoice list header. A business area determination on plant/division level (T134G) is not possible because the item information of the individual billing documents is no longer available in the invoice list.
    Source code corrections
    and we have contacted SAP , some one from SAP side told that the program is existing in that userexit already with our 4.6c,
    someone has suggested that in OB65 the check box is not activated against the comp code i use, but i have found that to be the check mark for the financial statements at the buss area level..will that make any diff to my issue... is it something with the FI part or SD part which do you think is incorrect ....any kind of suggestions pertaining to this issue .here would be helpful.
    some body please throw some light on it, i would be very much grateful.
    Thanks in advance
    Jay

    Hi Laxmipathi sir,
    as you said i went in the bussiness area account assignment and checked it and foound that the Sales area, distributin channel and division are assiogned to rule called 003 -Buss Area Det.from sales org/dist.channel item div.
    but there are other two.which were not assigned.
    001-buss area det.from plant/dividion(T134G)
    002-buss area det.from Sales area (TVTA).
    so do you think this is the reason it is not picking it up in the invoice list,
    i have discussed with one of the SD person here he said even though you don't assign them it shoudn't bother because the buss area is getting picked in invoice
    so could you please tell me what should i ask that person or what i have to tell them about this.
    thanks
    Jay

  • Portal Forms are not getting displayed in the new oracle environment.

    Hi All,
    The Forms in our Portal applications are not getting displayed after we have done the upgradation of Database in Unix from 8i to 9i. The reports are working fine.The forms that were added as portlets are not getting displayed and other forms that are called thorough links returns error when it is run. The Newly created forms are also not running but returns error. The Portal Version is 3.0.9.8.3. Pls help.
    Regards,
    Tom

    Hi ,
    Based on the requirement , check whether the customer contact has been done carried out for the invoice  , then possibility it must have gone out of the worklist , chekc whether the Invoice posted in the AR has been transferred to FSCM collection .

  • Potential & Development Forms are not getting displayed

    Hi Gurus,
    Here goes another problem which I am facing regarding Forms, I created Potential & Developemt forms in Talent Assessment in DEV-100(golden client) & copied it to DEV-300,via SCC1 (another client to which portal is linked), but still the forms are not updated in 300, though 1node & table V_T77TMC_P_V got updated in 300 after i copied the req.
    The complete customization is done in the TR , including the manual transport of the Forms,still they are not getting displayed in 300, kindly help!!!!!!!! its urgent
    Regards
    Bharti Sood

    Hi Bharti Sood,
    It appears that all elements were not transported. Did you go through these customizing tasks in IMG > Talent Management and Talent Development > Talent Assessment:
    - Transport Forms
    - Transport Process Form Assignments
    - Transport Scales
    These elements do not get transported automatically.
    Best regards,
    Luke

  • Values are not getting updated in sales report

    I have configured sales information system, and i have been trying to run sales report but values are not getting updated in sales report, System will through message that no data exists.
    regards,
    thooyavan

    Hi,
    Please check with the Customer and Material Statistics group in the Customer and material master respectively.
    Further check with the LIS settings (Sales Area combination with the Update group).
    Reward points if this helps you.
    Regards,
    Harsh

  • CJ20N-fields are not getting updated in table PROJ

    Hi all,
    I have a requirement where I need to transfer the WBS element data created in one system to another using IDOC.
    The idoc has generated sucessfully and was also sent/processed successfully in the recieving system but fields STSPD and STSPR are not getting poulated in table PROJ.
    In the confic I have assigned FM:IDOC_INPUT_PROJECT to the process code.
    Thanks,
    Gaurav

    Hi,
    Please check with the Customer and Material Statistics group in the Customer and material master respectively.
    Further check with the LIS settings (Sales Area combination with the Update group).
    Reward points if this helps you.
    Regards,
    Harsh

  • MIRO - Business Area not getting updated in Vendor Line item

    Hello friends,
    I am posting Vendor invoice in MIRO transaction.
    After Posting if i see the financial document generated,
    Business area has not got updated in Vendor Line item.
    What could be the problem ?
    Please help me out.
    Hari Prasath

    Hi Kale,
    Make sure the field Business area is not supressed in tx. OB14. for the GL account in line item 001.
    On the other hand, have a look to the note and kba below:
    41294 - Business area in customer/vendor item
    Kba 1727802 - Business area not getting populated in sales/ purchase tax

  • After Db upgrade to 11.1.0.6  invailds are not getting complied

    After Db upgrade to 11.1.0.6 from 10.2.0.4 the invailds are not getting complied
    Platfrom:-OEL4
    Invalid:-100

    Hi,
    1. First try to compile invalid objects using adadmin.
    2. If the objects are still invalid, then compile them manually.
    You can use the custom script from the following link
    http://www.oracle-base.com/articles/misc/RecompilingInvalidSchemaObjects.php
    3. If invalids still exists please post few objects here which are invalid.
    Thanks

Maybe you are looking for

  • How to pass parameter values to a report befor schedule it?

    I tried to use Business Objects web service to schedule a report. But I failed to pass in any parameter values. The report was able to run successfully. But check all history from Infoview, all parameter are with NULL value. Does anybody encounter th

  • Photomerge in Photoshop CS6

    I'm trying to photomerge a landscape panorama of portrait-oriented shots. CS6 lines them up vertically! I have merged these same photos successfully in CS5 so I know the overlap is adequate. What am I missing?

  • Issue with IE images after FP Update

    Good afternoon and thanks for reading. I have a few machines (so far) which are having issues displaying some images through Internet Explorer following the FP update.  The images show up as a white box with a red "X". If the user account(s) have Adm

  • Macbook pro not booting up??

    My early 2011 MBpro 13" turns on, does the start-up chime, and the dvd rom drive makes its noises, then it comes up to the grey apple screen and a few short seconds later a pinwheel starts to spin, and a few seconds after that a progress bar shows up

  • Nokia N97 Not booting Up...

    So I was having issues with getting my usb cable to charge with my phone, and also my phone kept turning on and off, but then netquin antivirus says it has detected multiple startups and has disabled all startup programs, and now my phone will not bo