Reg ie01 BADI, i'll give u points:)

Hi all big abapers,
Have anyone implemented BADI for ie01 screen.
if yes, pleas share with me.
Regards,
[email protected]

Hi,
Business Add-in
EQUI_SERLV_CHECK External Inspections for MARA_SERLV
EQUI_SCR_CC Implementable Subscreen for Equipment for CCM
EQUI_SCR_06 Implementable Subscreen for Equipment No. 06
EQUI_SCR_05 Implementable Subscreen for Equipment No. 05
EQUI_SCR_04 Implementable Subscreen for Equipment No. 04
EQUI_SCR_03 Implementable Subscreen for Equipment No.
EQUI_SCR_02 Implementable Subscreen for Equipment No. 02
EQUI_SCR_01 Implementable Subscreen for Equipment No. 01
<b>Reward points</b>
Regards

Similar Messages

  • 2nd week running, I received an e-mail saying a new episode of Breaking Bad is available.  When I go to download its the "Inside Breaking Bad" short (which gives away spoilers - thanks Apple!) but not the episode itself.  What gives?

    2nd week running, I received an e-mail saying a new episode of Breaking Bad is available.  When I go to download its the "Inside Breaking Bad" short (which gives away spoilers - thanks Apple!) but not the episode itself.  What gives?
    I've tried this on multiple products so I believe its specific to iTunes not a particular device.

    Same thing here- Get the email but nothing but the Inside featurette. It's really annoying. In fact I can't even download it normally using the check for available downloads feature! Every time I do that iTunes tries to download doubles of three Walking Dead episodes I've already downloaded. I don't want what I already have, I just want the new episode.

  • How to give the points??

    hi all
    pls let me tell how to give the point to our friends??

    please check the rules engagement found in the begining of the questions page. Out of that the 4 th step is the following.
    Step 4: Thank Others by Giving Points
    SDN/BPX has a Contributor Recognition Program. Which in short text means that for each question you have 10 points, which can be given to the person that answers your question. 6 & 2 points should also be given for helpful answers. For every question you later award points for, you in turn receive 1 point for.
    you would find three radio buttons on the left hand side of your query with marked with 3 colors. Choose the suitable one based on the merit of the answer.
    regards
    sadhu kishore

  • Where to give the points

    Good morning guys,
    I dont know at where to give the points for the answers.
    pl help me.
    Thanks in advance.
    HAVE A NICE DAY

    Hi
    you can only give point if you have posted a question.
    then at the left side of every answer there are radio button  by selecting appropriate button you can give points.
    Regards,
    Vijay

  • WHO CAN HELP MEE!! I BOUGTH MONEY IN A BINGO LIVE AND DONT GIVE MY POINTS! MY BOUGHT WAS OF THE 100 DLLS O $1200.00 MX PESOS, WHO CAN HELP MEE!! I BOUGTH MONEY IN A BINGO LIVE AND DONT GIVE MY POINTS! MY BOUGHT WAS OF THE 100 DLLS O $1200.00 MX PESOS

    WHO CAN HELP MEE!! I BOUGTH MONEY IN A BINGO LIVE AND DONT GIVE MY POINTS! MY BOUGHT WAS OF THE 100 DLLS O $1200.00 MX PESOS, WHO CAN HELP MEE!! I BOUGTH MONEY IN A BINGO LIVE AND DONT GIVE MY POINTS! MY BOUGHT WAS OF THE 100 DLLS O $1200.00 MX PESOS

    If you did not receive an in-app purchase, you should contact the developer of the App in question. Support for Bingo LIVE! by PlayPhone can be found here:
    http://playphone.com/support

  • Alternate of 'IEQM0003' :) i'll give u points

    Hi,
    Recently i used enhancement 'IEQM0003' for equipment master screen(ie01).
    I want to do the same with the help of BADI, could u pleas let me know the BADI name or method name.
    <b>Note:- Pleas don't do copy n paste.
    I ensure u to give points</b>
    Regards,
    [email protected]
    <b></b>

    Hi Pradeep,
    These are the badi's u can check with those :
    EQUI_SERLV_CHECK           External Inspections for MARA_SERLV
    EQUI_SCR_CC                  Implementable Subscreen for Equipment for CCM
    EQUI_SCR_06                             Implementable Subscreen for Equipment No. 06
    EQUI_SCR_05                             Implementable Subscreen for Equipment No. 05
    EQUI_SCR_04                             Implementable Subscreen for Equipment No. 04
    EQUI_SCR_03                             Implementable Subscreen for Equipment No.
    EQUI_SCR_02                             Implementable Subscreen for Equipment No. 02
    EQUI_SCR_01                             Implementable Subscreen for Equipment No. 01
    <b>If u want to find user exit or badi for any t.code
    kindly run this prg and check it :</b>
    REPORT  ZBADIFINDPGM.
    TABLES: TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA: FIELD1(30).
    DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS: P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA: WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    * Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    * Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    * For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.
    <i>I know u will reward pts :)</i>
    Regards
    Sathish

  • Reg. BADI for MIGO

    Hi Experts,
            Could you please clarify my Doubts , I am trying use the BADI MB_MIGO_BADI and trying to enchance\implement the POST_DOCUMENT method.
             In which I need to change the movement type if some condition met . I am able to access the values of the Parameter . But i need to change it. So is there any way to change those value.
    Thanks in Advance,
    Sen

    hi,
        under the method post_document take the parameter IT_MSEG under This you double click on Line size MSEG here you find the field  Movement type <b>BWART</b>.
    <b>*Reward points</b>
    Regards

  • I wanna change the tab name in tcode ie02  :)  i'll give u points !!!

    Hi abapers,
    In screen ie01 i want to change the tab name, like instead of general, i want to put some other.
    If it is possible, do help me.
    <b>I ensure u for giving ur share of point.</b>
    Regards,
    [email protected]

    Hi Pradeep
    I am giving here the names of the exits for this transaction ie01
    You will have to customize one of the exits according to your req.
    Exit Name           Description
    IEQM0001            Add. checks for equip. installation at functional locations
    IEQM0002            Additional checks for definition of equipment hierarchies
    IEQM0003            Additional checks before equipment update
    IEQM0004            Object is allowed for contract partner (Order->MaintCont.)
    IEQM0005            Object allowed for SD contract (MaintContract->MaintCont.)
    IEQM0006            Object allowed for SD contract (Maintain maintenance cont.)
    IEQM0007            Check/change manufacturer field in equipment master
    Thanks & regards
    Ravish Garg
    <b>REMEBER REWARD POINTS IS THE BEST WAY TO SAY THANK YOU</b>

  • "Read Historical Trend(s)" gives one point too early.

    I'm using LV6.0.2/LVDSC 6.0.2. It's my first time using LVDSC.
    I'm finding that "Read Historical Trend" and "Read Historical Trend(s)" vis always return a data array with the first point being earlier than the 'start timestamp' input to the vi.
    Is this:
    1) normal behavior for the vi.
    OR
    2) due to the fact that my installation of the 6.0.2 updates did not go smoothly (I sometimes get a "secondary dll cannot be found" error msg when I start LV by opening a vi with "Read Historical Trend(s)" in its hierarchy ... no error when the vi is opened when LV is already running.)
    NI Support has recommended that I do a complete unintall/reinstall which I'm about to do. I'm just curious as to w
    hether the extra early point is due to my poor interpretation of what 'start timestamp' means or my bad installation.
    TIA. Donald
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

    This behavior is by design in the Citadel database's query interface.
    The reason is if you drew a graph of the data returned by your query, and had the axis limits set to the start and stop time of the query. If we returned only the first point with a timestamp >= start time, <= stop time, then the graph would imply that there is NO data, or that logging was off, or that the data was bad before or after the end points. That is not true in those cases.
    In terms of graphical displays, this is not a problem. You need to set the start and end time of the X-axis, and do NOT choose "loose fit", and do NOT choose autoscaling. The behavior of the graph is easy to configure to get the proper visual look, which will then also include an accurate reflection of the data in the
    system.
    If you want to eliminate that first value, use the Array Subset function to get the remaining values.

  • Mouse not active on top 1/4 of page. Won't give a pointing finger there. Can't log out or use any of the tabs at the top of a page. Internet Explorer does not do this, but we like your browser better. We just downloaded an update and the problem persists.

    On this page we cannot log out or use the search box or pick desktop or mobile. Once we get down to the "firefox help/forum" level the pointing finger comes up and we can activate a mouse click there. Above that nothing.

    The Yahoo! Toolbar extension and the Babylon extension have been reported to cause this issue. Disable or uninstall those add-ons.
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Select Many choice list gives null pointer exception in the value listener method

    I have a Select Many Choice component in my page and  I have a method assigned as a value change listener. When ever I select a single value or multiple values I am getting a null pointer exception.
    <MessageFactory> <getMessage>
    java.lang.NullPointerException
        at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.findIndexFromObject(FacesCtrlListBinding.java:390)
        at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.setInputValue(FacesCtrlListBinding.java:449)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.put(JUCtrlValueBinding.java:2546)
        at oracle.jbo.uicli.binding.JUCtrlListBinding.put(JUCtrlListBinding.java:3437)
        at javax.el.MapELResolver.setValue(MapELResolver.java:229)
        at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:255)
        at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:281)
        at com.sun.el.parser.AstValue.setValue(Unknown Source)
        at com.sun.el.ValueExpressionImpl.setValue(Unknown Source)
        at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:131)
        at org.apache.myfaces.trinidad.component.UIXEditableValue.updateModel(UIXEditableValue.java:361)
        at org.apache.myfaces.trinidad.component.UIXEditableValue.processUpdates(UIXEditableValue.java:311)
        at Reportview.backing.Report_v1.onRegionSelect(Report_v1.java:328)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.el.parser.AstValue.invoke(Unknown Source)
        at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
        at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
        at javax.faces.event.MethodExpressionValueChangeListener.processValueChange(MethodExpressionValueChangeListener.java:144)
        at javax.faces.event.ValueChangeEvent.processListener(ValueChangeEvent.java:134)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:824)
        at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:243)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1137)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:405)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Can someone tell me why this error occurs.My method is like this -
    public void onSelect(ValueChangeEvent event) {
    event.getComponent().processUpdates(FacesContext.getCurrentInstance());
    String[] s = (String[])event.getNewValue();
    System.out.println("Value changed value change ==>> "+s.length+"===>>"+Arrays.toString(s));

    Do you get the same results if you try queuing the event to happen after the model update?
    // Requeue the event so that it happens after the model update
        if (!PhaseId.INVOKE_APPLICATION.equals(valueChangeEvent.getPhaseId())) {
    valueChangeEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
    valueChangeEvent.queue();
        } else {     
         String[] s = (String[])event.getNewValue();
        System.out.println("Value changed value change ==>> "+s.length+"===>>"+Arrays.toString(s));

  • Very Urgent!!!Calling custom OAF vent reg page from JTT page gives error.

    1. We have a need to customize Oracle Marketing Online Event registration page (Oracle standard JTT page: amsEventRegistrantsEntryMain.jsp - available via function AMS_EVENT_REG_ENTRY) .
    2. We have created a new custom OAF page for the event registration and modified the function definition Web HTML property from "amsEventRegistrantsEntryMain.jsp" to "jtfcrmchrome.jsp?
    page=/oracle/apps/xxamw/xxams/event/webui/XXAmsEventRegScheduleCrePG&akRegionApplicationId=540&jttoijappn=OKL" (tried also with OA.jsp call)
    3. Now when we click on the Register link from the base (This Oracle standard Register link calls AMS_EVENT_REG_ENTRY and since AMS_EVENT_REG_ENTRY is modified we expect OAF page to render) page it throws "You have insufficient privileges for the current operation. Please contact your System Administrator." error. The function is not accessible.
    4. Navigation: Oracle Marketing Super User -> Marketing Online -> Event -> Registration Stb menu -> Search for a "Event Schedule Name" -> Click Go -> Click on Register link (We expect our custom OAF page when register link is
    clicked)
    Please note this design was tested successfully in an instance but when we migrated this to a new instance it fails. We cannot compare two instances since the previous instance no longer exists. Seems some issue with JTT menu straucture since we are using Oracle standard JTT function. This is a very urgent issue and any quick help or pointer will be great.
    Thanks/ Santanu

    Hi,
    R u still facing the issue?
    If So can you please tell me:
    Have u added your called function to the current user? That means by navigating to the responsibility you can access the same page directly, with out doing any transaction? If so then create your custom function with your required URL and attach to a menu ; then check if you are able to view that page from the menu navigation?If these thing is not working then I think you need to create a custom page that will extend the std region , that time hopefully it will work.
    Please post your result/thought!!
    Regards
    Apurba K Saha

  • [solved] my C code gives floating point errors.

    I've tried to create a simple function to determine if a number is prime or not.. whenever I compile and try to run I get a floating point exception and can't quite figure out why, I'm very new to C and compiling manually using gcc so any help is appreciated.
    here's my code: http://pastebin.com/m2f19dbac
    Last edited by zandaa (2008-10-01 06:36:35)

    I'm quite useless at programming:
    for (i=0; i <= x; i++) {
    if (x%i == 0 && i != 1) {
    result = 0;
    //break;
    if (i == x) {
    result = 1;
    //printf("%d\n", x);
    break;
    This loop always ends with result=1 because the last loop has i=x and therefore it changes the result value to 1.
    There are also many checks you could avoid with a "smart" for cycle:
    for (i=2; i <= x; i++) {
    if (x%i == 0) {
    return 0;
    return 1
    I was able to remove the "i != 1" part by having the for loop starting from 2.
    I removed all the if (i == x) clause because that only happens at the end of the for cycle.
    Also you could be smart and eliminate some values from the loop: for example you could avoid checking all the numbers higher than n/2 or than sqrt(n), but that's more related to the mathematics behind than to the programming
    Hope this helps
    edit: beaten
    Last edited by carlocci (2008-09-25 21:36:04)

  • Error in SE19 !!! i 'll surely give u point.s

    HI all,
    In SE18 i made a defination of BADI named 'ZBADI_ZPHOGAT'  with interface 'ZIF_EX_BADI_ZPHOGAT' having method 'ADD'.
    NOw in SE19 i made an implementation with name 'ZPRADEEP', I got a default class 'ZCL_IM_PRADEEP'.
    Here when i click on 'ADD' method. i got an <b>error  'INTERFACE IMPLEMENTATION ZIF_EX_BADI_ZPHOGAT does not exit</b>
    Suggest wht i need to do yaar.
    Regards,
    [email protected]

    Hi
    See this and do accordingly
    DEFINING THE BADI
    1) execute Tcode SE18.
    2) Specify a definition Name : ZBADI_SPFLI
    3) Press create
    4) Choose the attribute tab. Specify short desc for badi.. and specify the type :
    multiple use.
    5) Choose the interface tab
    6) Specify interface name: ZIF_EX_BADI_SPFLI and save.
    7) Dbl clk on interface name to start class builder . specify a method name (name,
    level, desc).
    Method level desc
    Linese;ection instance methos some desc
    8) place the cursor on the method name desc its parameters to define the interface.
    Parameter type refe field desc
    I_carrid import spfli-carrid some
    I_connid import spefi-connid some
    9) save , check and activate…adapter class proposed by system is
    ZCL_IM_IM_LINESEL is genereated.
    IMPLEMENTATION OF BADI DEFINITION
    1) EXECUTE tcode se18.choose menuitem create from the implementation menubar.
    2) Specify aname for implementation ZIM_LINESEL
    3) Specify short desc.
    4) Choose interface tab. System proposes a name fo the implementation class.
    ZCL_IM_IMLINESEL which is already generarted.
    5) Specify short desc for method
    6) Dbl clk on method to insert code..(check the code in “AAA”).
    7) Save , check and activate the code.
    Some useful URL
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
    http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
    Now write a sample program to use this badi method..
    Look for “BBB” sample program.
    “AAA”
    data : wa_flights type sflight,
    it_flights type table of sflight.
    format color col_heading.
    write:/ 'Flight info of:', i_carrid, i_connid.
    format color col_normal.
    select * from sflight
    into corresponding fields of table it_flights
    where carrid = i_carrid
    and connid = i_connid.
    loop at it_flights into wa_flights.
    write:/ wa_flights-fldate,
    wa_flights-planetype,
    wa_flights-price currency wa_flights-currency,
    wa_flights-seatsmax,
    wa_flights-seatsocc.
    endloop.
    “BBB”
    *& Report ZBADI_TEST *
    REPORT ZBADI_TEST .
    tables: spfli.
    data: wa_spfli type spfli,
    it_spfli type table of spfli with key carrid connid.
    *Initialise the object of the interface.
    data: exit_ref type ref to ZCL_IM_IM_LINESEL,
    exit_ref1 type ref to ZIF_EX_BADISPFLI1.
    selection-screen begin of block b1.
    select-options: s_carr for spfli-carrid.
    selection-screen end of block b1.
    start-of-selection.
    select * from spfli into corresponding fields of table it_spfli
    where carrid in s_carr.
    end-of-selection.
    loop at it_spfli into wa_spfli.
    write:/ wa_spfli-carrid,
    wa_spfli-connid,
    wa_spfli-cityfrom,
    wa_spfli-deptime,
    wa_spfli-arrtime.
    hide: wa_spfli-carrid, wa_spfli-connid.
    endloop.
    at line-selection.
    check not wa_spfli-carrid is initial.
    create object exit_ref.
    exit_ref1 = exit_ref.
    call method exit_ref1->lineselection
    EXPORTING
    i_carrid = wa_spfli-carrid
    i_connid = wa_spfli-connid.
    clear wa_spfli.
    Regards
    Anji

  • Reg: CRM Badi

    Hi Experts,
         I have one requirement to change the field properties like now it is in gray out now i have to change that fiels into changes mode. Please tell me how to do this requirement. here that screen is standrad one.
    please provide me solution ASAP.

    Hi,
    What i understood from you is that you need to find a Screen BADI
    Please check this regarding SCREEN BADI
    Re: how to find *screen badi*
    Hope this would help you.
    Good luck
    Narin

Maybe you are looking for

  • SQL*Loader and "Variable length field was truncated"

    Hi, I'm experiencing this problem using SQL*Loader: Release 8.1.7.0.0 Here is my control file (it's actually split into separate control and data files, but the result is the same) LOAD DATA INFILE * APPEND INTO TABLE test FIELDS TERMINATED BY ',' OP

  • Wont boot from restore dvd's or new copy of Leopard!!

    Well I am witts end I have an isight that I installed a new hard drive on and will not boot from the restore dvd's, or a new leopard disc(now i am out 130). It will how ever boot from drive genuis(new drive is fine) or restore dvd's from a new iMac a

  • Infotype 41

    Hello, I am trying to update infotype 41 with HR_INFOTYPE_OPERATION module. The requirement is to append dar and date values to the existing record in infotype 41 with dates delimiting. Could someone suggest how to do this or any other way ? Thanks R

  • Nested application module use own connection

    Hi everyone, I'm trying to figure out how to let a nested application module use it's own connection instead of it's parent. Any suggestions? We're using Jdeveloper 10.1.3.3.0. Regards

  • Acrobat 8 Professional cannot be launched at this time...

    I have Acrobat 8 (8.2.4) CS3. I get this dialog 10 seconds after I launch the program: Adobe Acrobat 8 Professional cannot be launched at this time. You must launch at least one other suite component (such as Adobe Photoshop) before launching Acrobat