Customer Exit Text Does Not Get Executed

Dear all,
I have a text variable to display the last date of a month, named ZT_LASTDATE.
Subsequently, I write an ABAP code in CMOD as follows:
CASE I_VNAM.
  WHEN 'ZT_LASTDATE'.
*    IF I_STEP = 2.
* Assign 0P_PER3 (Posting Period) value to v_month.
      CLEAR loc_var_range.
      READ TABLE i_t_var_range INTO loc_var_range WITH KEY VNAM = '0P_PER3'.
* Logic to convert Period 13, 14, 15 & 16 to Period 12.
      IF loc_var_range-low GT '012'.
        v_month ='12'.
* For normal periods (Period 01 - Period 12).
      ELSE.
        v_month = loc_var_range-low+1(2).
      ENDIF.
* Assign 0P_FYEAR (Fiscal Year) value to v_year.
      CLEAR loc_var_range.
      READ TABLE i_t_var_range INTO loc_var_range WITH KEY VNAM = '0P_FYEAR'.
      v_year = loc_var_range-low.
* Assign first date of the month i.e. 01 to v_date.
      v_date = '01'.
* Concatenate Year, Month & Date into ZW_DT1 as input
* for SLS_MISC_GET_LAST_DAY_OF_MONTH function module.
      CONCATENATE v_year v_month v_date INTO ZW_DT1.
* Call function module to get last date of the month.
* Input  : ZW_DT1 e.g. 20111201
* Output : ZW_DT2 e.g. 20111231
      CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
        EXPORTING
          day_in            = ZW_DT1
        IMPORTING
          last_day_of_month = ZW_DT2.
* Prepare last date of the month in DD.MM.YYYY format.
* ZW_DT2 date format        = 20111231
* l_s_range-low date format = 31.12.2011
      CLEAR l_s_range.
      l_s_range-low+0(2) = ZW_DT2+6(2).
      l_s_range-low+2(1) = '.'.
      l_s_range-low+3(2) = ZW_DT2+4(2).
      l_s_range-low+5(1) ='.'.
      l_s_range-low+6(4) = ZW_DT2+0(4).
      l_s_range-sign     = 'I'.
      l_s_range-opt      = 'EQ'.
* Send last date of the month output to ZT_LASTDATE variable.
      APPEND l_s_range TO e_t_range.
*    ENDIF.
ENDCASE.
However, when I execute my query, the variable text is displayed as &ZT_LASTDATE& and not as expected e.g. 31.12.2010.
I tried to debug it and found out that after the program stop at  
WHEN 'ZT_LASTDATE'.
it went straight to ENDFUNCTION of INCLUDE ZXRSRU01.
May I know what went wrong here?
Thanks!

Hi,
Uncomment the line I_STEP = 2 and then try debugging your code, put external break point on read table statement and keep on debugging. Don't put session breakpoint, for debugging you will have to use external break point. 
Regards,
Durgesh.

Similar Messages

  • CommandButton code does not get executed with partialSubmit=false

    Following code in Jdev11g
    <input type="text" value="#{myBacking.text}"/>
    <af:commandButton text="Click" action="#{myBacking.doSomething}"/>
    <af:commandButton text="Click" actionListener="#{myBacking.doSomethingElse}"/>
    public void setText(String value)
       System.out.println("Setting value");
    public String doSomething()
       System.out.println("Clicked");
        return "";
    public String doSomethingElse(ActionEvent e)
       System.out.println("Clicked with event");
    } I always get following output:
    Setting valueI never see the output from my commandButton. It seems that my button does not executes it's code but just notifies the components to call their setters.
    I notice that when i set the partialSubmit to true, de code do get executed.
    Why is that and what is causing this behaviour? How can i use my own code in the buttons without setting the partialSubmit to true? I do need a complete refresh of the page and can not use the partialSubmit but when it's set to false, it ignores my code...

    They are inside an af:form
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <af:document id="doc1">
          <af:messages id="m1"/>
          <af:form id="frm1">
               //MY buttons are here
          </af:form>

  • JdoPostLoad() does not get executed!!!

    Kodo 2.4.3
    Sequence
    1. Create PC (docket)
    2. Persist it
    3. evict it
    4. read one of its fields of PC type - jdoPostLoad() isn't triggered OR
    read one of its simple fields which are part of default fetch group -
    jdoPostLoad() gets triggered
    After evictAll() I am reading
    pmi.currentTransaction().begin();
    nd = createDocket();
    touchDocketMilestones(nd);
    pmi.currentTransaction().commit();
    pmi.evictAll();
    pmi.currentTransaction().begin();
    nd.getGoal(); //PC field so it is not in default fetch group: DO NOT
    triggers jdoPostLoad()
    nd.getDescription(); //String field from default fetch group: Triggers
    jdoPostLoad()

    I agree that specs are rather wague about it. My point is that jdoPreClear()
    and jdoPostLoad() logically should go in pairs - if jdoPreClear() invoked on
    evict jdoPostLoad() should be invoked on first field access (it means that
    default fetch group fields will have to be alwaysloaded first)
    If jdoPostLoad() is not invoked on transition from hollow to p.clean we will
    have no way to reinitialize transient fields the same way we do when an
    object read first time
    "Patrick Linskey" <[email protected]> wrote in message
    news:[email protected]...
    Alex,
    It is not clear to me that jdoPostLoad() should be triggered in that
    situation.
    Evicting the object makes it transition to Hollow, meaning that all
    fields in the object are marked as not loaded.
    Subsequently, you access a field that is not in the default-fetch-group.
    After this call completes, the default-fetch-group is still unloaded. So,
    it is not clear to me that the jdoPostLoad() callback should have been
    invoked.
    Section 10.1 of the spec states that InstanceCallbacks.jdoPostLoad() is
    invoked after the dfg is loaded. So, to invoke jdoPostLoad() after
    loading a non-dfg field in a hollow object would be in violation of the
    spec -- unless we first loaded the dfg, we'd be executing jdoPostLoad()
    before loading the dfg.
    I don't believe that the spec states that the dfg must be loaded when a
    non-dfg field is loaded. Given this assumption on my part, I believe that
    our behavior is correct.
    -Patrick
    On Fri, 11 Apr 2003 16:44:49 -0400, Alex Roytman wrote:
    Kodo 2.4.3
    Sequence
    1. Create PC (docket)
    2. Persist it
    3. evict it
    4. read one of its fields of PC type - jdoPostLoad() isn't triggered OR
    read one of its simple fields which are part of default fetch group -
    jdoPostLoad() gets triggered
    After evictAll() I am reading
    pmi.currentTransaction().begin();
    nd = createDocket();
    touchDocketMilestones(nd);
    pmi.currentTransaction().commit();
    pmi.evictAll();
    pmi.currentTransaction().begin();
    nd.getGoal(); //PC field so it is not in default fetch group: DO
    NOT
    triggers jdoPostLoad()
    nd.getDescription(); //String field from default fetch group:
    Triggers
    jdoPostLoad()--
    Patrick Linskey
    SolarMetric Inc.

  • Rc.local does not get executed

    Hi all Archers,
    today I put some commands into my rc.local to enable features recommended by powertop.
    The problem is they aren't applied with a restart.
    #!/bin/bash
    # /etc/rc.local: Local multi-user startup script.
    # Power aware CPU scheduler
    echo 1 > /sys/devices/system/cpu/sched_mc_power_savings
    # Audio codec power management
    echo 1 > /sys/module/snd_hda_intel/parameters/power_save
    # SATA link power management
    echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
    # VM writeback timeout
    echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
    # Turn off NMI watchdog
    echo 0 > /proc/sys/kernel/nmi_watchdog
    echo "Script has finished"
    Permissions:
    # ls -l /etc/rc.local
    -rwxr-xr-x 1 root root 568 24. Mai 23:31 /etc/rc.local
    Because of this I added the last command and it gets printed while booting.
    But all other commands do nothing…
    That's really odd and I don't know how to solve it.
    By the way, I'm not using systemd.
    What could be the reason for this?
    Thanks for help.
    Radioactiveman

    ice9 wrote:Are you running X ?
    Yes, I am (also with XFCE). And the behaviour is exactly as you described.
    Without startx the settings are applied.
    Did you manage to solve that? Or do you know a workaround?
    Last edited by Radioactiveman (2012-05-28 18:12:45)

  • .login does not get executed

    Hi,
    I have a problem with my .login file. As of the Intel-Compiler documentation I should place the line
    source /opt/intel/cc/9.1.032/bin/iccvars.sh
    into my ".login" file. I've done this, but neither when I start a Terminal, nor when I try to compile something, the appropriate vars are set. If I execute the file by hand, everything works as expected.
    Any ideas ?
    Thanks

    This is another marginally helpful response...
    It sounds as if perhaps you need those variables set without opening up a unix shell, i.e., without starting up Terminal or X11. If that is the case, there is yet another file in which you do it.
    The problem is, I don't remember its name. Something like "environment.plist", maybe. And the file has to be in the right directory, of course, which might be ~/Library instead of your home directory. But again, I don't remember.
    Hopefully, someone who knows will read this and answer, or perhaps you can dig it up with some web-searching.

  • Xsql:dml update... does not get executed?

    I was testing a simple one field update in <xsql:dml> block and getting the following statement:
    <xsql-status action="xsql:dml" rows="0"/>
    What might be the problem?

    The issue is that JDBC returns a row count only for simple DML statements.
    Whenever you use a BEGIN...END block, JDBC doesn't know how many rows your statement has affected.
    If you try the latest XSQL 9.0.2B release, and use:
    <xsql:dml>
    update emp set ename='FORD2' where empno=7844
    </xsql:dml>
    You'll see that it shows one row was affected.

  • AOP JoinPoint not getting executed

    The spring configuration that I have is
    <beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
      xsi:schemaLocation="http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
      http://www.springframework.org/schema/aop
      http://www.springframework.org/schema/aop/spring-aop-3.1.xsd ">
      <aop:aspectj-autoproxy />
      <bean id="addCarrierService" class="com.service.AddCarrierService" />
      <!-- Aspect -->
      <bean id="authorizeBeforeAspect" class="com.custom.AuthorizeBeforeAspect" />
      <aop:config>
      <aop:aspect id="aspectLoggging" ref="authorizeBeforeAspect">
      <!-- @Before -->
      <aop:pointcut id="pointCutBefore" expression="execution(* com.service.*.*(..))" />
      <aop:before method="secureBefore" pointcut-ref="pointCutBefore" />
      </aop:aspect>
      </aop:config>
    </beans>
    And the join point class is
    package com.custom;
    import org.aspectj.lang.JoinPoint;
    import org.aspectj.lang.annotation.Aspect;
    import org.springframework.security.core.context.SecurityContextHolder;
    import org.springframework.stereotype.Component;
    @Component
    @Aspect
    public class AuthorizeBeforeAspect {
      public void secureBefore(JoinPoint joinPoint) {
      System.out.println("Inside AuthorizeBeforeAspect.secureBefore() method");
      if (SecurityContextHolder.getContext().getAuthentication().getPrincipal() != null)
      DEPUser user = (DEPUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    AuthorizeBeforeAspect .java class does not get executed at all. Not sure where am I going wrong?

    Hi,
    Was the chain created and activated properly, try activating the chain once again, if there is an issue with any of the variants the process chian will not get activated and throw and error.
    If this is not the case and if you are able to activate the process chain successfully, open the start variant and change the settings.
    Right click on the start variant -> Select direct scheduling option.-> press Change selection button
    Select immediate button and press enter. Now come back save the start variant and activate the chain once again.
    Schedule the chain and it should run right away. Monitor the logs.
    Regards,
    Sudheer

  • Deadline branch not getting executed

    Hi
    In my BPM i have an infinite loop and also the deadline branch with inerval as 1 minute (for testing purpose) but when i send the message my deadline branch does not get executed after 1 minute and it keeps on waiting.
    in the bpm monitoring it shows wait step created.
    i have verified my design with the standard pattern available, and it is almost similar.
    i am not able to find out the reason behind this strange behavior.
    Regards
    Dheeraj

    Hi Saravana
    i did exactly the same, i have my deadline branch, in it i have my control step which trows exception, which is catched by my exception branch and does nothing, so ideally it should continue the processing after that.
    but the problem is the exception is never thrown.
    my deadline has been configured as
    Reference Date/Time: Creating the step
    Duration: 1
    Unit: Minutes
    control step in deadline branch
    Action: Throw Exception
    Exception: Time_out
    Exception branch
    Exception Handler: Time_Out
    and outside this block i have transformation and other steps... which shoul get excuted after 1 minute deadline.
    Regards
    Dheeraj

  • Scheduled job not getting executed on a logical standby

    Hello,
    We have created a job(through dbms_scheduler API). The job is enabled and shows up in the SCHEDULERJOBS view also.
    However the job does not get executed. I looked into the following tables there was no relevant entry found for the aforesaid job:
    select * from all_scheduler_job_log
    select * from dba_scheduler_running_jobs
    select * from DBA_SCHEDULER_JOB_RUN_DETAILS order by log_date desc
    Is there any limitation that we cannot execute scheduled jobs on a logical standby database. If i execute the relevant program (that is configured to be run as job in this scenario) as an individual procedure from SQL plus, it gets executed successfully implying there is no errors/problem in the subprogram that the job is going to invoke.
    Appreciate your thoughts in this regard.
    Thanks.

    Hi Justin,
    Thanks for your response.
    As per the app design, the job invokes a stored program(that maps to a stored procedure present in standby db itself) that reads the data from standby and populates the relevant tables/entities in another database(third db, not primary or standby) which acts as a repository. No write operations are to be performed on standby.
    So, i have two doubts:
    -- Can scheduled jobs execute on logical standby db[Oracle release 10g(R2)]
    I was going through few of the oracle docs and it is mentioned that this is a known limitation in 10g
    R2 release and has been corrected in 11g. Now we have something called database_role
    attribute that needs to be set to 'LOGICAL STANDBY' if you need to execute a job on
    standby. However it is available in 11g onwards.
    -- If there is no workaround for the above mentioned problem in 10g-R2 release.
    Then we may have to schedule a job from third db instance that shall invoke the program(residing on the standby db). Can we have a scheduled job which executes a program that maps to a remote stored procedure instead of local stored procedure?
    Appreciate your thoughts.
    Thanks

  • "Language-dependent text does not exist" when executing template on portal

    Hi,
    We are using BI 7 on SP 8. When trying to execute a web template in the portal we are getting a series of errors such as:
    Language-dependent text does not exist: TYPE=REP KEY1=SAPLRRSV KEY2=705 LANG=
    Has anyone experienced this problem and know of a fix?
    Thanks,
    Lee

    Yes we have. The problem is due to the support stacks for ABAP and for Java being out of sync i.e. they have to be on the same patch level. If you run program RSPOR_SETUP (via SE38) and enter the relevant details for checking the portal setup, this will detail all the errors.
    Lee

  • When I send a text message to my husbands iPhone he does not get it

    When I send a text to my husbands iPhone he does not get it.  It worked before the new update.

    Either one of you needs to uncheck the other's phone number under settings&lt;messages&lt;send &amp; receive or one of you needs to sign out of the apple ID in iMessage settings altogether by pressing the apple id on the page and choosing 'sign out'

  • I get unexpectedly logged out from my mail box and and recieve the following message: "The custom error module does not recognize this error."

    I am repeatedly and unexpectedly logged-out from my mail box when working on a document. It frequently happens when I choose Send or Save, but it could happen any time. The file that I worked on disappears completely. Before, the file could be found in the draft box or some other place categorized as Auto Recovery. Now, instead, I get the following message: "The custom error module does not recognize this error." I am working at home, connected to a university server. The same problem appears with both of my computers, which are connected by a router. I have a MacBook Pro and am working with Firefox 6.0.2. I have a wireless broadband connection with Internet. AirPort is connected to Lindstrom and has IP address 192.168.0.198. Router: D-Link Model DIR-635. Modem: ZyXEL Model No. 660H D Triple Play Modem.
    Best wishes,
    Lars Lindström, Professor
    <[email protected]>

    Hi Phil,
    Generally, when a user sends an incoming request to an Exchange 2010 Client Access server using Outlook Web App and the user’s mailbox is on an Exchange 2010 mailbox in a different Active Directory site,
    Exchange 2010 determines whether the Client Access server has the
    ExternalURL property set in that Active Directory site. If it is and the cross-site silent redirection has been enabled, the user will be automatically redirected to the specified URL.
    Thus, please make sure the External URL property is set properly in your environment. And also
    disable the WindowsAuthentication for OWA VD to have a try. If the issue persists, please try the following KB to reset the Outlook Web Access-related virtual directories:
    http://support.microsoft.com/kb/941201
    Thanks,
    Winnie Liang
    TechNet Community Support
    Sorry for the late reply.  Yes, the ExternalURL is set; otherwise, it wouldn't work at all.  98% of the time everything is fine.
    My issue described a problem that appears only during session timeouts.  I've pretty much verified that this is the case; Exchange 2010 does not appropriately handle the timeouts sometimes when using cross-site redirection.

  • How to ensure for material POs, TDS does not get deducted.

    Dear Seniors,
    Single vendor is supplying material and doing some service also.  How do we ensure that for material POs, TDS does not get deducted.
    Regards
    KVKR

    Hi kkvr,
    As i see your requirement is to execute MRRL alongwith the performing a proper TDS deduction and also using single vendor.
    There is no Standard SAP solution for this, as a workaround you will have two options for doing the same
    Option 1 : Create a different vendor code then you can run mrrl for the vendor code one for service and another for material
    The demerits of this solution is duplication of vendor code, which results in not having proper information for the SCM personnel for the purpose of vendor evaluation and vendor reconcilation
    Option2:
    you need to enahce the Purchase order at line item level with the a custom fields for the WHT tax code to be selected at the time of PO creation. For this you need to do a screen enahcement in PO and also at the time of providing the popup for selection it should only dipslay the wht codes available in the vendor master so that proper control on the tax code selection will happen.
    The practical issues here is the po creation person should have the knowledge of the tds code which you need to see whether it is possible or not or you can also suggest that finance controller should be part of po release startegy to check these po's to ensure the correct tds code populated.
    Further to this you need to also perform additional enahcement changes for the selected tds codes in the po it should be replaced at the time of mrrl transaction making other tds tax codes base as 0 or removal of tds codes not applicable in the exit.
    This exit with the help of the abaper you will be able to find hte standard enhacements available for mrrl and code the same over there so that at the time of posting this will happen.
    Further, to this while writing the logic you can also further stream line it as for material po's the tds not to be deducted at all so that user input for the material po's can be avoided and it is required only for service po's this disticntion you can do with the item category.
    With this you can perform the enahncement with a minimal changement to achieve your purpose.
    Do let me know if you have any quereies,
    Regards,
    Bharathi

  • Javascript not working with 'Display as Text (does not saves state)'

    Hi,
    We have these following items in P3 of our application,
    P3_EDIT_ACCOUNT Display as Text (saves state)
    P3_USEFUL_LINKS Display as Text (saves state)
    P3_LAST_APPROVED Display as Text (saves state)
    P3_ARCHIVES Display as Text (saves state)
    And we are initializing these items in a pl/sql process under 'Page Rendering'
    For example,
    :P3_ARCHIVES := '<font face="Arial, Helvetica, sans-serif" size="-1">Archives</font></a><td> ';
    When our environment was upgraded from HTMLDB1.5 to HTMLDB2.0,
    instead of displaying the proper value of :P3_ARCHIVES,
    it was displaying the tags,
    i.e. instead of displaying 'Archives', it was displaying the whole
    '<font face="Arial, Helvetica, sans-serif" size="-1">Archives</font></a><td> '
    So, when we changed all items to 'Display as Text (does not saves state)' and it was working.
    But then we have another problem,
    We render the rest of the same page with another pl/sql block,
    Here is a portion from that pl/sql for your reference,
    htp.p('
    <script>
    //Script to check the status change.
    //The script source is rendered through PL/SQL.
    function checkStatus()
    var promptStr = someString;
    if(ans.toUpperCase() == "AMBER" || ans.toUpperCase() == "RED")
              var cnfm = confirm(promptStr);
              if(cnfm)
              do something....
    </script>
    htp.print('
    <td width="5%" bgcolor="#ebebc5" height="19" align="middle" >
    <input TYPE="radio" name="'||l_g_fnumber||'" value="GREEN"');
    IF l_allow_update THEN
         htp.print(' onClick="checkStatus()"');
    ELSE
    htp.print(' disabled onmousedown="return false;"');
                        do something....
    Now the issue is , when we changed all items to 'Display as Text (does not saves state)', the checkStatus() function is not getting called in the onClick
    event of the radio button and hence the confirm window for the call to
    confirm(promptStr) is not coming up.
    But if we revert back the items to 'Display as Text (saves state)',
    the checkStatus() javascript function is getting called properly but html tags are displayed against the items instead of the proper value (as mentioned in ********)
    Please do let us know a possible solution to this issue.
    Thanks & Regards-
    Rupak

    Thanks Varad for your response.
    This is the error i am getting.
    1 error has occurred
    PLSQL anonymous block source type can be used ONLY with Display Text (based on PLSQL) item type.
    yes i am using in the source..
    I also tried with the PL/SQL Expression of FUNCTION in this case it is executing the query but once i run the page ora- 06550 error occured.
    Thanks
    AT
    Edited by: ranu on Jan 8, 2009 2:51 PM

  • DISPLAY AS TEXT (DOES NOT SAVE STATE)

    can i use the pl/sql anonymous block or pl/sql function body for item which is DISPLAY AS TEXT (DOES NOT SAVE STATE). I am using this query and getting an error in case of pl/sql anonymous block can be used only for save state item. my apex version is 2.2.1.00.04.
    my query is
    declare
    vCNT number;
    v_exception_detail varchar2(200);
    BEGIN
    SELECT COUNT(*)
    INTO vCNT
    FROM table a
    WHERE a.col1 IN
    (SELECT DISTINCT x.col1
    FROM table1 x)
    AND a.col2 = TRIM(:P21_col2);
    IF vCNT > 1 THEN
    IF NVL(&P21_col2, -1) <> -1 THEN
    SELECT DISTINCT SR.col3
    INTO v_exception_detail
    FROM table1 SR
    WHERE SR.col1 IN
    (SELECT col1
    FROM table
    WHERE col2 = TRIM(:P21_col2)
    AND col4 = :P21_col4);
    ELSE
    v_exception_detail := NULL;
    END IF;
    ELSE
    SELECT DISTINCT SR.col3
    INTO v_exception_detail
    FROM table1 SR
    WHERE SR.col1 IN
    (SELECT col1
    FROM table
    WHERE col2 = TRIM(:P21_col2));
    END IF;
    --DBMS_OUTPUT.PUT_LINE(v_exception_detail);
    RETURN v_exception_detail;
    END;
    Could any one suggest how i can execute this code in case of item of DISPLAY AS TEXT (DOES NOT SAVE STATE).
    Thanks,
    AT

    Thanks Varad for your response.
    This is the error i am getting.
    1 error has occurred
    PLSQL anonymous block source type can be used ONLY with Display Text (based on PLSQL) item type.
    yes i am using in the source..
    I also tried with the PL/SQL Expression of FUNCTION in this case it is executing the query but once i run the page ora- 06550 error occured.
    Thanks
    AT
    Edited by: ranu on Jan 8, 2009 2:51 PM

Maybe you are looking for