Customer Exit - APOSC002 in APO not working as desired

Hi Experts,
Customer Exit - APOSC002 (function module EXIT_/SAPAPO/SAPLVCRM_002)
Development logic is set in such a way that for a specific route (Maintained in transaction ZSC01), the departure calendar and Duration calendar is being filled to the fields CT_DURAS- TSTRID_DEP and CT_DURAS- TSTRID respectively.
However the departure calendar is not taken into account when the departure date is calculated in the APO availability check.
I have checked the exit and the values are filling correctly. But still the issue remains.
If any of you has worked in this exit before, let me know how to resolve this?
Thanks,
Dinesh.

Hi there,
As far as I Know, yes they exist. The only difference here, is that you build a query with a selection screen, and  you execute the query with some selection parameters, and therefore all customer exit variables, offsets, etc, will be read and changed at the runtime execution of the query, and you can rearrange your query visualization drilling down free char., making filters, etc. and storing that visualization in a view.
If you save your view and execute it afterwards, you'll get the same selection parameters to input, the same offsets, etc, that you have with the query, but with a visualization stored by you.
So that should have been working.
Diogo.

Similar Messages

  • Customer Exit variable of Query not working in View

    Hi,
    I have a customer exit variable in my query to calculate the last 6 month period on Calendar month. I have used 0CMONTH for the same and then using offset of 6 on its value range to get it.
    Now, I have many views based on this query, which should ideally be having the same filter condition for the calendar month, but it is not happening. Although, it is working fine for the query! The views do not seem to be catching the selection correct.

    Hi there,
    As far as I Know, yes they exist. The only difference here, is that you build a query with a selection screen, and  you execute the query with some selection parameters, and therefore all customer exit variables, offsets, etc, will be read and changed at the runtime execution of the query, and you can rearrange your query visualization drilling down free char., making filters, etc. and storing that visualization in a view.
    If you save your view and execute it afterwards, you'll get the same selection parameters to input, the same offsets, etc, that you have with the query, but with a visualization stored by you.
    So that should have been working.
    Diogo.

  • Customer Exit  ---  Select statement is not working

    Hi All,
             I am working on Master Data Text Datasource customer exit. Reading only restricted records using select statement if it is valid then those records move into I_T_DATA. If not they are not going to read.
           I have written the following code .
    Data : ls_rotextstr2 TYPE ROTEXTSTR2. '' Extrct Struct Name
    *&Assigning  values language and chart of accounts to variables
    Data : lc_zspras     TYPE SKAT-SPRAS VALUE 'E',
           lc_Zktopl     TYPE SKAT-KTOPL VALUE 'GCOA',
           lc_zsaknr     TYPE SKAT-SAKNR.
    LOOP AT I_T_DATA INTO ls_rotextstr2.
    gi_tabix = SY-TABIX.
    SELECT SINGLE SPRAS KTOPL SAKNR FROM SKAT INTO
    (lc_zspras, lc_Zktopl, lc_zsaknr)
    WHERE SPRAS = lc_zspras
    AND   KTOPL = lc_Zktopl.
    IF SY-SUBRC EQ 0.
    MODIFY I_T_DATA FROM ls_rotextstr2.
    ENDIF.
    ENDLOOP.
    Here select statement reading all records like other than 'EN" and 'GCOA' and  going to Subrc condition.
    Please some one take a look at the programme and tell me where I am making mistake. I just want the records that are language = 'EN' and Chart of Accounts = 'GCOA'.
    Your suggestions are very help full to me,
    Thanks
    Ganesh.

    Hi,
    Apply the following changes :
    Data : ls_rotextstr2 TYPE ROTEXTSTR2. '' Extrct Struct Name
    Data : lc_zspras TYPE SKAT-SPRAS VALUE 'E',
    lc_Zktopl TYPE SKAT-KTOPL VALUE 'GCOA',
    lc_zsaknr TYPE SKAT-SAKNR.
    LOOP AT I_T_DATA INTO ls_rotextstr2.
    gi_tabix = SY-TABIX.
    SELECT SINGLE SPRAS KTOPL SAKNR FROM SKAT INTO
    (lc_zspras, lc_Zktopl, lc_zsaknr)
    WHERE SPRAS = lc_zspras
    AND KTOPL = lc_Zktopl.
    IF SY-SUBRC NE 0.
    DELETE I_T_DATA INDEX gi_tabix.
    CONTINUE.
    ENDIF.
    ENDLOOP.
    hope it works...
    regards,
    Raju

  • Customer exit for calweek is not working

    Hi,
    I have written a customer exit to derive calweek from a calday. But its not displaying the correct value.
    Can u please let me know if there is any error in the code.  The return value for calweek is a single value.
    CASE I_VNAM.
    WHEN 'zfclweek'.
    DATA : zday like sy-datum.
    IF I_STEP = 2.
          LOOP AT I_T_VAR_RANGE INTO L_S_VAR
          WHERE VNAM = 'ZFCLDAY'. ((ZFCLDAY  is also a customer exit to derive date and its working fine )
    ENDLOOP.
            zday = L_S_VAR-LOW .
            zday = zday + 1.  ( i need week of the next day of ZFCLDAY )
    CALL FUNCTION 'DATE_GET_WEEK'
            EXPORTING
              DATE               = zday
           IMPORTING
              WEEK               = xweek
          EXCEPTIONS
           DATE_INVALID       = 1
    OTHERS             = 2
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          l_s_range-low  = xweek.
          l_s_range-sign = 'I'.
          l_s_range-opt  = 'EQ'.
          append l_s_range to e_t_range.
    exit.
        endif.
        clear l_s_range.
        clear zday.
        clear xweek.
    endcase.

    Hi,
      I have changed my code as follows. But when i run the report its showing, "variable contains invalid values :
    please do me the needful.
    CASE I_VNAM.
    WHEN 'zfcweek'.   " it is a customer exit variable on calweek
    IF I_STEP = 2.
    LOOP AT I_T_VAR_RANGE INTO L_S_VAR
    WHERE VNAM = '0fper'.    " curent fiscal period
    endloop.
    YEAR = L_S_VAR-LOW+0(4) .
            PER = L_S_VAR-LOW+4(3).
            IF per = 01.
                 per = 12.
                 year = year - 1.
             else.
            PER = PER - 1.
            endif.
            CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'   " need to calculate first day of last fiscal period
              EXPORTING
                I_GJAHR              =  YEAR
                I_PERIV              = 'Z1'
                I_POPER              = PER
      I_MONMIT             = 00
             IMPORTING
               E_DATE               =   FDAY.
    EXCEPTIONS
      INPUT_FALSE          = 1
      T009_NOTFOUND        = 2
      T009B_NOTFOUND       = 3
      OTHERS               = 4
            IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
            CALL FUNCTION 'DATE_GET_WEEK'                  " to calculate the calweek of the first day of last fiscal period
            EXPORTING
              DATE               = FDAY
           IMPORTING
              WEEK               = xweek
           EXCEPTIONS
             DATE_INVALID       = 1
    OTHERS             = 2
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          l_s_range-low  = xweek .
          l_s_range-sign = 'I'.
          l_s_range-opt  = 'EQ'.
          append l_s_range to e_t_range.
        endif.
        clear l_s_range.
        clear year.
        clear fday.
        clear per.
    endcase.

  • Customized strings in iPad viewer not working?

    Hello,
    per request of client i've tried to change one string in viewer for iPad. So i've created template in DSP App Builder, modified this template on my computer, choose this file in App Builder and prepared another build (V28). Unfortunately, i still see old original string (i've double tested that i'm downloading new version of app). When i now check DPS App Builder, it just says "Asset stored on server", so i asume, that everything goes smoothly on this side.
    Any similar experience with customized strings?
    Thanks
    Martin

    Everything was done from scratch with V28.
    1. 10. 2013 v 16:14, Bob Bringhurst <[email protected]>:
    Re: Customized strings in iPad viewer not working?
    created by Bob Bringhurst in Digital Publishing Suite - View the full discussion
    That's odd. It worked for me when I tested it. Perhaps you should try moving the current xml file to a different folder, downloading a new version, copying and pasting, and rebuilding.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5728130#5728130
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5728130#5728130
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5728130#5728130. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Digital Publishing Suite at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • SAP EXIT Variable 0FYEAR is not working for Fiscal Year(OFISCYEAR)

    Dear SDN,
    I have created Simple Query.
    ROWS
    Company code(0COMP_CODE)
    Fiscal Year(0FISCYEAR)
    Columns
    Total Debit postings(0DEBIT)
    Total Credit posting(0CREDIT)
    Filters
    Companycode(Variable Selection option)
    Fiscal year(Varialbe SAPEXIT 0FYEAR)
    Fiscal Year Variant(K4)
    After executing the query in the variable screen only company code is displayed.
    SAP EXIT FISCAL YEAR VARIALBE(0FYEAR) IS NOT WORKING.....
    Is there any setting or activation is required to use SAP EXITS?
    Waiting for Solution......
    Thanks & Regards,
    Praveen.K

    Hi
    In this case you will have to use a Customer Exit (which is Ready for Input) Variable which gets Current Fiscal Year as a Default Value.
    In order to do that - you will need to create a Customer Exit Variable which is Ready for Input. The Variable will have to be assigned with Current Fiscal Year under I_STEP 1 (this refers to the coding of the Customer Exit in T-code: CMOD)
    If you need any help with the coding - don't hesitate to ask.
    Yaniv

  • Web Viewer embedded (custom domain) and button url not work!!! (Urgent!!!)

    Many sorry for this question - we have a Web Viewer embedded (custom domain) that have all url (button with open in browser) that not work!
    On tablet (Apple + Android) the button work great but on web viewer they do not work!
    Any ideas to solve?
    I see it: Where to place add externalLinksOpen : 'window' to FrameService?
    web viewer URL links

    Any ideas to solve?

  • Custom Logi task flow is not working

    I created a custom task flow for webcenter spaces login and deployed it using extending webcenter spaces, added it to one of my custom resource catalogue and then added it to the spaces login page. The login process works fine but the problem is that i am Evaluating an EL to check if the user falls under a particular group and if true then redirect him to a particular space. When i try login for the first time it authenticates but even though the user belongs to the desired group, the EL is still evaluated to "false", which in turn returns truw if i try login for the second time. i think the WCSecurityContext is not working for the first time. Any guesses why? or is there a different problem in the implementation. The EL is "#{WCSecurityContext.userInGroup['XYZ']}" where XYZ is one of the groups in OID.
    Urgent Help required..............
    Thanks in advance

    try
    securityContext.userInRole instead of WCSecurityContext

  • Custom built page bookmark is not working

    Hi,
    We have used Captive 2 to built course & publishing it
    for SCORM 1.2 for eLearning output.
    Some of the custom built interactivities page with more than
    one step in it, bookmarking is not working. It skips the bookmark
    for those interactive pages.
    Is there are solution to avoid this ?
    Thanks.
    Regards
    Chetan

    Hi,
    Thanks for the feedback. It is like that until we turn on
    report for particular slide nothing get reported to LMS (including
    bookmark).
    If this is the case then i have course which has some
    interactive pages along with assessment. I want to just report the
    scores for assessment pages and not the other interactive practice
    pages. If i turns on reporting for other pages for bookmarking
    purpose my score get updated which is not required.
    Is there any way I can bookmark each interactive page &
    normal page without updating the score ?(excluding assessment)
    Thanks.
    Chetan

  • Customer JSF Component Value Expression not work

    why my customer tag not work,
    in my jsp
    <q:my formatString="yyyy/mm/dd" current="#{LoginBean.date}"></q:my>the isLiteralText() always return true, and I can't get the correct value, #{LoginBean.date} is returned.
    bellow is my tag source.
    can anyone help me.
    package jsf;
    import javax.el.ValueExpression;
    import javax.faces.component.UIComponent;
    import javax.faces.webapp.UIComponentELTag;
    public class MyCustomerTag extends UIComponentELTag {
        private String formatString;
        @Override
        public String getComponentType() {
            return "COMPONENT_TYPE";
        @Override
        public String getRendererType() {
            return "COMPONENT_TYPE";
        @Override
        public void release() {
            super.release();
            setFormatString(null);
        @Override
        protected void setProperties(UIComponent component)  {
            if (!(component instanceof UIDatePicker))
                throw new IllegalArgumentException("Component "+
                    component.getClass().getName() +" is no UIDatePicker");
            component.setValueExpression("current", current);
            System.out.println(current.getExpressionString());
            System.out.println(current.isLiteralText());
            System.out.println((String) component.getAttributes().get("current"));
         * @return the formatString
        public String getFormatString() {
            return formatString;
         * @param formatString the formatString to set
        public void setFormatString(String formatString) {
            this.formatString = formatString;
        private ValueExpression current;
         * @return the value
        public ValueExpression getCurrent() {
            return current;
         * @param value the value to set
        public void setCurrent(ValueExpression current) {
            this.current = current;
    }

    I do not know what your native is, but there's quite a huge difference between "custom" and "customer". Look it up in your dictionary.

  • Cp8 pc, action 'exit' (for close app), not work for iphone app

    i found bug,
    when you use the action 'exit' on pc( it work well).
    but on iphone, it not work

    action "cpCmdExit" , it not work for iphone.

  • EXIT playback buttons do not work

    Well I cna't figure it out!!!! I When my movies are played
    (published full screen, .swf or HTML) on some PC's at work the X
    (exit button) from the playback controls provided by captivate do
    not work. This means the user can not exit other than alt+f4 or end
    through task manager.
    Thsi only happens on some of the PC's and not all,
    unfortunately I have tested this on various types of builds and not
    able to establish the roots.
    Also another thing that also happens (or not, in this
    case!!!!) is if I have set a button to continue after a pause, to
    end the movie it dont end!!! again only way out is alt+f4 or task
    manager route.
    Can anyone help? My movies have been released on our network;
    I would like to resolve the issue before users start
    barking.....

    I would imagine, off the cuff, that the playback bar's Exit
    button uses
    javascript. So if javascript is not enabled in the user's
    browser, that
    won't work. However, I can't imagine why the browser's X
    button (top
    right corner) wouldn't work... That would seem to be more a
    PC
    security/lock-down issue....or something...
    Erik
    Captiv8r wrote:
    > Hi again
    >
    > I suppose here is how I would approach it if I were in
    your shoes.
    >
    > 1. Select two PCs. One where the button works fine and
    one where it fails.
    > 2. Open the web browser on each and note the browser
    type. (IE, Firefox, etc)
    > If the types are different, that is likely the cause.
    but I think you already
    > said they are all the same.
    > 3. Inside the browser, click Help > About and note
    the version number of each.
    > Are they different? If so, there's your first clue. If
    they are identical,
    > proceed.
    > 4. Here, I'm talking about Internet Explorer. Click
    Tools > Internet Options >
    > Security tab. Compare the zone settings. Possibilities
    there.
    > 5. Assuming this reveals no discoveries, click the
    Advanced tab and compare
    > the settings. Maybe something will be revealed there.
    >
    > Beyond that, I'm a bit stumped.
    >
    > Cheers and good luck! Rick
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware

  • Exit icon on playbar not working in LMS

    Hello,
    I was wondering why the close icon X on the playbar of a CP6 project does not work when publishing and placing in an LMS?  Any ideas?
    Thanks kindly
    alison

    This might help.
    http://forums.adobe.com/thread/874798?tstart=540

  • Exchange 2010 - Archiving not working in desired situation

    Hi guys!
    Recently we had enabled online archiving on Exchange, the problem is that one thing is not working as we have wanted.
    We wanted that user picks up manually thru Outlook 2013 client which folder he does not wishes to be moved to archive, but this is not working with our current settings.
    These are the settings on server side
    bostjanc

    ah sorry, its retentionaction not retentiontag so here is the correct parameter
    Get-RetentionPolicyTag "Don't Move this*" | Set-RetentionPolicyTag -RetentionAction
    "MoveToArchive"
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • Custom report definition file (.rdf) not working in release 12

    I have created a custom report XXX_VENDORS.rdf and uploaded to the server. While executing the concurrent program, it asks for XXX_VENDORS.rep file. How can I execute an .rdf file in Release 12?

    While executing the concurrent program, it asks for XXX_VENDORS.rep file.rdf files should work with R12. The CM would ask for the .rep if it could not find the .rdf file. Please make sure you have uploaded the file to <PROD>_TOP/reports/<lang> directory.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Safari keeps crashing missing address

    Hi people im having problems with my safari, i updated my itunes then it restarted and found the address bar and safari window not openning. If i right click the tool bar icon the windows is there but not on the screen, I click on it and it comes up

  • Apply locale dynamically

    Hello, I want to display numbers as "123,646,912.75" or "123.646.912,75" depending on a field value ("EN" or "DE") contained in XML data. I do not want the locale setting of the bipublisher server to be used. I found the documentation for the XSLT st

  • Files changing names?

    I saved a word document and when I went to open it from my Documents folder the name was different. Why did it do this?

  • Ajust laptop brightness

    Hello everyone, i have this strange issue: i can't ajust my laptop brightness. The display indicates it is reducing/increasing but nothing happens ...

  • Help - IWEB

    I am new to iweb and am on creating a website. Can you install google analytics. I also need to add some code to verify my site for google webtools. How can I access the html code to add this additional code? Thanks for any help