Action buttons to display orders per specific period - Agentry

Hi;
I am working on SAP Work Manager 6.0 customizing using Agentry 6.1.3. I have these two toolbar buttons that I have created, that is, "Previous Week" and "Next Week". I would like to say, when the use clicks on "Previous week", only Orders for the previous week should be displayed and when they click on "Next Week", only orders of next week should be displayed. By default the current week should be displayed on the device. Would I have to do 3 different fetches to implement this, that is, by default, fetch the current week orders, when the user clicks the "Previous Week" button, do another fetch for that previous week and when they click "Next Week", do the fetch of the orders for next week?!
Please kindly advise as to how best I could implement this?!
Much appreciated!!;
Sizo Ndlovu

Hi Stephen, Jason;
Thanks for all the help! Currently the date field that I have coming from the back-end is only a DATE field with no time, would it work to compare this date to the Agentry Epoch time or would I need to bring in a timestamp? Please kindly see my Include rule below:
Note that the WeekEnd and WeekStart properties are of "DATE and TIME" property and the DATE property is of property type "DATE".
I have created 3 transactions, 1 that stamps the date and time to both WeekStart and WeekEnd, another one that adds 604800 to each property, that is, WeekStart and WeekEnd and finally another one that subtracts 604800 from both properties as well. The Initial Value rule I uses is as follows:
The first transaction that stamps the weekstart and weekend properties, with the javascript:
Is my Javascript rule in order?
The 2nd transaction for Adding one week :
I made use of an edit transaction, is this appropriate or I would need an add transaction?
The 3rd transaction that subtracts one week:
And then finally, on the actions sitting on the "Previous Week" and "Next Week" buttons, I put the 1st action step as the transaction for determining the current weekstart and weekend, followed by an applystep and then the 4th step is the transaction that subtracts/adds, followed by an apply.
Currently, when I click on these buttons, the tile list is cleared, I'm thinking it possibly could be my javascript rule or the comparison between the DATE and epoch time.
Please advise?!
Much appreciated!
Sizo Ndlovu

Similar Messages

  • Dynamically the buttons should display as per input no's.

    Hi friends,
    I have BSP with 1 page .
    Input is Enter No
    If i enter 3 as input my layout should display 3 buttons with name BUTTON1 BUTTON2  BUTTON3
    If i enter 1 as input my layout should display 1 buttons with name BUTTON1
    Means dynamically the buttons should display as per input no's.
    Suggestion pls.
    I am displaying my button like below
    <input type=submit name="onInputProcessing(B1)" value=" BUTTON1">
    Suggestion pls.
    Moosa

    Hi,
    I have given the entire code here as mentioned the procedure by abinav
    Layout
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content>
      <htmlb:page>
        <htmlb:form>
          <htmlb:inputField id            = "t1"
                            value         = "<%= value1  %>"
                            submitOnEnter = "X" />
          <%
            if value1 is not initial.
            data: text type string,
                  no type n value '1'.
             do value1 times.
             concatenate 'BUTTON' no into text.
          %>
          <htmlb:button id     = "<%= sy-tabix   %>"
                        text   = "<%= text  %>"
                        design = "small" />
          <%
            no = no + 1.
            enddo.
            endif.
          %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    OninputProcessing
    DATA: event TYPE REF TO cl_htmlb_event,
          input TYPE REF TO cl_htmlb_inputfield.
    event = cl_htmlb_manager=>get_event( runtime->server->request ).
    input ?= cl_htmlb_manager=>get_data( request = runtime->server->request
                                             id = 't1'
                                             name = 'inputfield' ).
    IF input IS NOT INITIAL.
      value1 = input->value.
    ENDIF.
    and define page attribute value1 type n.
    I hope it helps you...

  • New GL - Financial Statement for Specific Periods

    We are using the new GL. I am looking for a report similar to F.01. Instead of displaying reporting period, comparison period, absolute difference, and rel diff, we would like to display amounts for specific periods.
    For example, we would like to see totals for period 11 2009, period 10 2010, and period 11 2010 all in one report with columns like below.
    Ccode     Acct          11.2009          10.2010          11.2010
    ABCD     101000          7.221,53     6.482,51     5.418,92
    ABCD     102000          2.447,34     2.361,81     3.144,62
    Is there such a report? I have looked, but it appears that all the reports can only be displayed for a range of periods.
    Thanks for your help.
    Brenda

    Hi,
    define such a report using T-code FGI0.
    Best regards, Christian

  • How to display action buttons on iPad app?

    Hi all,
    I'm trying to display "action buttons" in my custom BO's TI in advanced list panes. For each of these table I created LayoutStackPanel where inside I have icon with defined event handler. In web UI version everything works fine. "Action button" appears and event handler is triggered on click.
    When I open same TI on iPad, first of all Table is displayed as grid, not table, but I assume that is how iPad player generates that. But my created icon is not visible in specific row (I haven't allowed hover option as I thought iPad can't handle hover event), and even switching TI into edit mode it's not appearing and event handler isn't triggered.
    I wonder if there is around some detailed guide, best practice doc which covers how we can design our screens for iPads.
    Thanks,
    Uldis

    Hello Uldis,
    Please try to follow these steps to create it from scratch. It guides you on how to create a Delete button, so you can use is as a reference for futher action buttons:
    1. Drag and Drop ‘LayoutStackPanel’ from ToolBox to List Column.
    2. Right Click on the column and Select Model ‘LayoutStackPanel’. Add an icon over there.
    3. Set the property ‘Visible on Hover’ of Layout Control to True.
    4. Create an action on your BO node called Delete<NodeName>. Generate the script file and add this snippet:
    this.Delete();
    5. Set the property ‘On Click’ in UI Designer.
    Create EventHandler calling the BO action. The EventHandler and "Misc" name must contain "Remove" or "Delete" as prefix to identify as a deletion column. As sample you can check the "Account Team" facet of account Thing Inspector:
    /BYD_COD/SalesOnDemand/Account/UI/COD_Account_TI.TI.uicomponent
    Click on the "Items" collection as following figure shows:
    Then set the Icon ‘OnClick' event to your delete event previously defined.
    Let me know if that worked for you.
    Best Regards,
    Fernando Giroleti
    Cloud Service Center AMEA

  • Create a Crystal report to display the sum of G/L account code within a specific period

    Hi,
    Just wonder is it possible to create a crystal report to display the total of a G/L account code within a specific period?
    How to write the query to get the sum within a specific period?
    For example:
    Period: 2014-06-01-2014-06-10
    Account code A: USD "TOTAL"
    Account code B: USD "TOTAL"
    Thanks

    Hi Olga,
    Please check below Query.
    SELECT T1.[Account], T1.[ShortName], SUM (T1.[Debit]) as Debit, SUM (T1.[Credit]) As Credit, SUM (T1.[FCDebit]) As FCDebit, SUM (T1.[FCCredit]) As FCCredit, SUM (T1.[SYSDeb]) As SysDebit , SUM (T1.[SYSCred]) As SysCredit  FROM OJDT T0  INNER JOIN JDT1 T1 ON T0.[TransId] = T1.[TransId] WHERE T1.[RefDate] >=[%3]  AND   T1.[RefDate] <=[%4]
    Hope this Help
    Regards::::
    Atul Chakraborty

  • Adobe 7.X DNG converter won't display "action buttons" at botton

    Hello,
    I have a new camera and upgraded to Adobe Digital negative converter ver. 7.3 to support it.  Oddest thing.  It cuts off the bottom.  The "action buttons" [about DNG converter] [extract] [convert] or [exit] buttons at the bottom soI cant execute the program.  (see below) I've also tried Ver 7.2.  Same issue.  Ver 6.2 works fine.
    Has anyone had this issue.  Any known fix?
    I'm on Win7 w/ 1080p displays.   I've tried different display settings.
    Please help if you can.
    Thanks and regards,
    Guy

    Have you tried setting your monitor display to native resolution?

  • SNP heuristic error maximum number of orders per period reached

    Hello All,
    I am getting one strange error "APO SNP heuristic error maximum number of orders per period reached (000000040)"
    Product XXX/ Location XXX: Maximum number of orders per period reached (000000040)
    For the problem : PPDS heuristic is working fine, while running the SNP heuristic I am getting this problem.
    Please let me know asap.
    Thanks in Advance,
    Kind Regards,
    Santosh

    There is a section in the IMG where you can change this behaviour.
    in SPRO - SAP SCM - IMG
    -> Advanced Planning and Optimisation
      -> Supply Chain Planning
        -> Supply Network Planning (SNP)
           -> Basic Settings
              -> Maintain Global SNP Settings
    You will see the field "Heu.: Orders per Bkt" which should have the value of 40 in there, e.g. the limit to the number of orders SNP can raise in any planning bucket.
    If you raise this number (to say 100) then hopefully your message will no longer be issued by the system.
    Alternatively, you can check the cause of why the system is rasing so many orders. For example, check the lot size that the Product has for that location (lot-for-lot will create an order for every demand for example).
    Hopr that helps
    Regards
    Ian

  • Action Buttons are not getting displayed in UWL

    Hi Experts,
    I am facing some issues in UWL action buttons and I need your help in resolving this.
    When a request is generated in ECC systems, a notification is generated in ECC as well as portal.
    In ECC, we can see two buttons in the notification, "Complete" and "Cancel work item in Inbox".
    But in portal, these two buttons are not visible in the notifications.
    Please let me know how to bring these action buttons in UWL portal.
    Thanks a lot,

    First of all, please see SAP Note 1133821 - UWL Destination Service Configuration and create the RFC destination as explained in the note.
    The procedure is also explained in the wiki:
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=102793389
    Thanks,
    Shanti

  • Basic Webdynpro question - Action button

    Hi Gurus
    I am newbie and trying to get a grip of WebDynpro-Java. I am trying out some basic examples and I am stuck with an issue. I create a action button and its action fire an outbound plug, but for whatever reason this action does not gets fired when I click the button. It does that only if I make this View a default View. But as soon as I am out of the default view, buttons stops working. I get the "In Progress" icon and it stays there for ever. I put some traces in the onAction methods and understood that it is not going there. When I make this view a default view (Properties -> default as true), this button works. Any idea what I am missing here? This happens for other UI controls like DateSelection too, the buttons on these control just hangs with the InProgress icon displayed. Highly appreciate any help. Thanks so much !!

    Hi Anand,
    As per your blog which ever view you keet as a default view  it would get displayed once you deploy your application.
    here the thing is once you  go out of the current view your button wont gets work because it wont reach to its original state once you back to the same view.
    And one more thing is on clink of the button it is taking you to another view right.so give the out bound plug with Back action from second view to first view.
    Even if it wont works you have to keep some code for the same in order to resolve the isssue..
    regards
    Ratnam

  • Dimension values display order and record details

    Hi All,
    I have explicitly ordered my dimension values to be in a logical order instead of alphabetical. Ex: Small, Medium, Large. This works great in the navigation tree but when I view a specific record and it  has those 3 dimvals they are listed in alphabetical order.
    Is there a when doing a record query to ask Endeca to respect the same display order as in the nav query?
    Thanks,
    Luc

    We are used to add two dummy records in each dimension.
    We add the following data:
    We use '-1' (surr-key) for Invalids and '-2' for Unknown.
    Easy way to populate these dimensions is to add a script together with all objects when you release new functionality. Beware you use the same descriptions.
    Even better is to think of a more general solution (more easy to maintain) and store these values in a support table. In such a table you will be able to add more columns to get more details per row. Use this reference table when you load youre dimension. Also you will find the opportunity to add more error handling cases. Especially when you add the dimension in this support table.
    Regards
    Moscowic

  • XFCE4 panel Action buttons don't work

    Hello,
    I'm having multiple problems with Action buttons from XFCE4 panel. I use slim (1.3.3-5) and Xfce (4.10).
    1. Suspend and switch user option is greyed out.
    2. The 'main button' (which displays user name) appears about 2 minutes after log in. When I try to click on it, it's unresponsive for about another 2 minutes.
    3. When I finally get to click on 'Shut Down' it only logs me out to slim.
    When I restart dbus (/etc/rc.d/dbus restart) while logged in to XFCE the button appears instantly, and is responsive. Shut down doesn't work though.
    [skyer@sig ~]$ cat .xinitrc
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
    done
    unset f
    fi
    # exec gnome-session
    # exec startkde
    exec startxfce4
    # ...or the Window Manager of your choice
    Both dbus daemon and dbus-launch are present all the time.
    [skyer@sig ~]$ ps aux|grep dbus
    skyer 854 0.0 0.0 17952 536 tty1 S+ 17:05 0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session
    skyer 855 0.0 0.0 17644 1336 ? Ss 17:05 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
    dbus 969 0.0 0.0 17260 1116 ? Ss 17:05 0:00 dbus-daemon --system
    skyer 1061 0.0 0.0 8656 1020 pts/2 S+ 17:12 0:00 grep dbus
    One session is started, user 1000 is me.
    [skyer@sig ~]$ ck-list-sessions
    Session1:
    unix-user = '1000'
    realname = '(null)'
    seat = 'Seat1'
    session-type = 'x11'
    active = TRUE
    x11-display = ':0.0'
    x11-display-device = '/dev/tty7'
    display-device = ''
    remote-host-name = ''
    is-local = TRUE
    on-since = '2012-06-28T15:17:28.439726Z'
    login-session-id = '1'
    I did not change slim.conf - its just as it was when freshly installed.
    Thanks for help.
    Last edited by skyer (2012-06-28 15:19:37)

    It could be an issue with your session environment not being set correctly. I use the following script to start my session (using lightdm, not slim, but this should be ok for your xinitrc)
    #!/bin/sh
    # Load profile
    for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do
    if [ -f "$file" ]; then
    echo "Loading profile from $file";
    . "$file"
    fi
    done
    # Load resources
    for file in "/etc/X11/Xresources" "$HOME/.Xresources"; do
    if [ -f "$file" ]; then
    echo "Loading resource: $file"
    xrdb -nocpp -merge "$file"
    fi,,,,,,,
    done
    # Load keymaps
    for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do
    if [ -f "$file" ]; then
    echo "Loading keymap: $file"
    setxkbmap `cat "$file"`
    XKB_IN_USE=yes
    fi
    done
    # Load xmodmap if not using XKB
    if [ -z "$XKB_IN_USE" ]; then
    for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do
    if [ -f "$file" ]; then
    echo "Loading modmap: $file"
    xmodmap "$file"
    fi
    done
    fi
    unset XKB_IN_USE
    # Run all system xinitrc shell scripts.
    xinitdir="/etc/X11/xinit/xinitrc.d"
    if [ -d "$xinitdir" ]; then
    for script in $xinitdir/*; do
    echo "Loading xinit script $script"
    if [ -x "$script" -a ! -d "$script" ]; then
    . "$script"
    fi
    done
    fi
    # Load Xsession scripts
    xsessionddir="/etc/X11/Xsession.d"
    if [ -d "$xsessionddir" ]; then
    for i in `ls $xsessionddir`; do
    script="$xsessionddir/$i"
    echo "Loading X session script $script"
    if [ -r "$script" -a -f "$script" ] && expr "$i" : '^[[:alnum:]_-]\+$' > /dev/null; then
    . "$script"
    fi
    done
    fi
    echo "X session wrapper complete, running session $@"
    exec $@
    Also, you may need to wrap consolekit around your session as per the wiki: https://wiki.archlinux.org/index.php/Xfce
    Cheers.

  • What are the limitations around action buttons?

    I have been trying to publish a presenter file with 5
    different action buttons going to different custom shows from the
    same slide - but when i publish, only the first action button on
    the page is working.
    Can anyone suggest where i might be going wrong, or tell me
    if there are limitations in this area?
    thank you.

    Someone else was asking about this a while back. Presenter
    doesn't capture information about custom shows and show and return.
    It works on a linear process. For example if your custom show was
    displaying slides 5,6 and 7, when you click an action button to
    show the custom show it will jump to slide 5, but then doesn't know
    what else to show.
    You can use action buttons to move forward, backwards, go to
    a specific slide and also show hidden slides. Last viewed slide
    doesn't work.
    Probably not the answer you wanted to hear but I hope it
    helps clarify what I have found out.

  • How to change action button text in UWL?

    Hi All,
    I want to change the text of Action buttons like Resubmit, Forward, Assign To Me in UWL.
    Is it possible to change thru custom configuration file for a specific workitem?
    Thanks
    Sundar

    Hi Sundar,
    For the forward button , you are getting this message because you are using the handler dummy, ie no handler . For forward, write like this:
            <Action name="forward" handler="ProviderActionHandler">
              <Properties>
               <Property name="userIdList" value="${users}"/>
            <Property name="display_order_priority" value="3"/>
              </Properties>
              <Descriptions default="My Forward"/>
            </Action>
    If you provide this handler and these properties, then you must have the forward functionality screen, as defined by SAP.
    In case you want anything else to launch, like any web dynpro application, you need to have webdynprolauncher...and so the properties will be different.
    Let me know if your forward functionality is happening well or not?
    Regarding Assign to Me, do not put any extra action tag for that.
    Go to portal content and select 'Yes' for the Display UWL support Information. Log into portal and click on the task which you want to check. Below UWL  you will see a lot of information. In the section 'Supported Actions for this Item'(last section), Find the action Id for the 'Assign to Me' Display Text. I guess that action will be there in the uwl.standard file. Copy that action section and paste in your file. Just add one extra line: 
    <Descriptions default="My Forward"/> at the end of the </Properties> tag. Bo not create any new name, just add this default text. In this way functionality will remain same, only text will change.
    Log off and login to the portal. Hope you will see what you want.
    Thanks,
    Sonali.

  • Equipment action log and display changes nnot updating

    Hello Guys,
    it is little strange but for some of the equipments action log and display changes are not being updated.
    The records are there only till 2007 but since 2008 whatever changes we make now they are not being recorded in action log or changes.
    But strange thing here is usage list is being updated as it is supposed to be.
    i have checked most of the config. but really not helpful.
    i am clueless here.
    Can anyone help?
    Thanks & Regards,
    vaibhav

    Hi,
    Please see attached code for your review:
    Appreciate your valuable comments.
      INCLUDE ZXEQMU02
    *By: Ralph McKnight/AC  Date: Mar061998.
    *Description: Additional fields to be saved on append structures
                during equipment add/change - This development was
                Undertaken as a core modification - The exporting
                function parameters were changes to pass back the
                structures with the new user values.
    *Sir4726 - Disable equipment popup box for equipment type 'E'
    *Sartd42467-Add kokrs & kostl to auto maint
    *By Ralph McKnight Apr161998.
    *SARTD 75148 - 4.6C Upgrade, CH4K902173, Import/Export parameters can no
                 longer have the same names, added a Changing parameter to
                 return the changed values of EQUI and EQUZ to save the
                 append structure fields ZAEQUI and ZAEQUZ for Job
                 Resource Scheduling.
               - Also set the flags to update EQUI and EQUZ.
                 by: HBAY342
    *SARTD 92504 - Save new maintenance plant into ABAP memory. Needed for
                 9/26/02 E.Krenz
    *SARTD 109167 - AMI Foreign Trade REquirement. - Validations against
                - AMI Foreign Trade Synchronization tables(ZAESYNCDIV &
                  (ZAESYNCMAT)         before save
                  of the equipment.
    SARTD 111318 - CHLK9A0I4A Check Equipment Acquisition Date, Value and
                     currency to avoid dump by SAP Standard system
    SARTD 113133 AMI project: Added function call to prevent users from
                 manually changing equipments when it is on a AMI transfer
                 form.
    KR 140649    AMI: Added parameter to FM call
                 for Z_AMI_CHCK_IE02_UPDATE_ALLOWED.  E.Krenz 12/23/03
    03/02/2004  HBB8705   CHLK9A0WYR   EQUZ Append field rename
    Modification Log
    Date        User    Transport   KR     Description
    06/29/2005  HBAK946 CHLK9A1N05  169999 RA Equipment Lockdown
                                           If equip is RA, check authority
                                           If no auth., then issue a mess
    06/30/2005  HBAK946 CHLK9A1N29  169999 RA Equipment Lockdown
                                           Only process RA check if in
                                           t-code IE01, IE02 will be
                                           handled in user-exit
    Begin of CH4K902173 - 4.6C upgrade - Changed import/export/changing
    parameters
    Old way follows:
    *This is how the call to this routine should look with our mods.
    *Note: the changes to the std are labeled with "DS Part 6 - RGM1
    call customer-function '001'
         exporting
              data_equi           = equi
              data_eqkt           = eqkt
              data_equz           = equz
              data_iloa           = iloa
         importing
              own_msg             = own_msg
              data_equi           = equi "DS Part 6 - RGM1
              data_eqkt           = eqkt "DS Part 6 - RGM1
              data_equz           = equz "DS Part 6 - RGM1
              data_iloa           = iloa "DS Part 6 - RGM1
         exceptions
              posting_not_allowed = 1
              others              = 2.
    New way follows:
    CALL CUSTOMER-FUNCTION '001'
          EXPORTING
               ACTIVITY_TYPE           = ACTIVITY_TYPE
               DATA_EQUI               = EQUI
               DATA_EQKT               = EQKT
               DATA_EQUZ               = EQUZ
               DATA_ILOA               = ILOA
               MAIN_CLASS              = RM63E-KLASSE
               DATA_RM63E              = RM63E
          IMPORTING
               UPDATE_DATA_EQ          = UPDATE_DATA_EQ
               UPDATE_FLAGS_EQ         = UPDATE_FLAGS_EQ
               UPDATE_DATA_EZ          = UPDATE_DATA_EZ
               UPDATE_FLAGS_EZ         = UPDATE_FLAGS_EZ
          CHANGING
               CHGD_EQUI               = EQUI
               CHGD_EQUZ               = EQUZ
          EXCEPTIONS
               POSTING_NOT_ALLOWED     = 1
               POSTING_NOT_ALLOWED_EXT = 2
               OTHERS                  = 3.
    End of CH4K902173 - 4.6C upgrade - Changed import/export/changing
    Changes for SARTD 111318 to check Acquisition Date, Value and currency
    Commented By Nikhil. Function Module looks to be specific for US.
    *data: v_retval like sy-subrc.
                                                                "CHLK9A0I4A
    *call function 'Z_VERIFY_ACQUISITION_DATA'
                                                                "CHLK9A0I4A
    exporting
                                                                "CHLK9A0I4A
       p_equi        = data_equi
                                                                "CHLK9A0I4A
    importing
                                                                "CHLK9A0I4A
      retval        = v_retval.
                                                                "CHLK9A0I4A
    *if v_retval ne 0.
                                                                "CHLK9A0I4A
    raise posting_not_allowed.
                                                                "CHLK9A0I4A
    *endif.
                                                                "CHLK9A0I4A
    End of changes for SARTD 111318
    *======================================================================
    Begin of AMI
    *======================================================================
    Begin of insert SARTD 113133
    read calling AMI program
    DATA: z_ami_program(30) TYPE c.
    CALL FUNCTION 'Z_AMI_CHECK_AMI_PRG_ACTIVE'
      IMPORTING
        p_ami_program = z_ami_program.
    AMI validations if Equipment Update is allowed
    For checking Equipment Check permission.
    CALL FUNCTION 'Z_AMI_CHCK_IE02_UPDATE_ALLOWED'
      EXPORTING
        active_ami_program = z_ami_program
        data_equz          = data_equz
        data_equi          = data_equi
        data_iloa          = data_iloa
        main_class         = main_class
        data_rm63e         = data_rm63e
      EXCEPTIONS
        update_not_allowed = 8.
    IF sy-subrc NE 0.
      RAISE posting_not_allowed.
    ENDIF.
    Commented By Nikhil. Function Module looks to be specific for US.
    checks for equipment ring fencing (only for manual IE02)
    *if z_ami_program is initial.
    call function 'Z_AMI_IE02_EXIT_RING_FENCING'
          exporting
               data_equz          = data_equz
               data_rm63e         = data_rm63e
          exceptions
               update_not_allowed = 8.
    if sy-subrc ne 0.
       raise posting_not_allowed.
    endif.
    *endif.
    End of INSERT SARTD 113133
    *======================================================================
    End of AMI
    *======================================================================
    *======================================================================
    Begin of RA Equipment Lockdown >> CHLK9A1N05
    *======================================================================
    check if equipment is Radio Active
    DATA: i_matnr_tab LIKE zhazind OCCURS 0 WITH HEADER LINE.
    DATA: v_land1(3) TYPE c.
    DATA: v_ra_flag(1) TYPE c.
    *Begin of code insertion by pavan on 02 June, 2008.
    DATA: zeqpnr_eccn-zeccn TYPE zeqpnr_eccn-zeccn,
          wa_zeqpnr_eccn TYPE zeqpnr_eccn.
    break pkumar.
    IF sy-ucomm = 'BU'.
      IMPORT zeqpnr_eccn-zeccn FROM MEMORY ID 'ZECCNUM'.
      MOVE: data_equi-equnr TO wa_zeqpnr_eccn-zeqnr,
            zeqpnr_eccn-zeccn TO wa_zeqpnr_eccn-zeccn.
      MODIFY zeqpnr_eccn FROM wa_zeqpnr_eccn.
      CLEAR wa_zeqpnr_eccn.
    ENDIF.
    *End of code insertion by pavan on 02 June, 2008.
    IF sy-tcode = 'IE01'.
      IF NOT data_equi-matnr IS INITIAL AND
         NOT data_equz-zzswerk IS INITIAL.
        SELECT SINGLE land1 FROM t001w
               INTO v_land1
               WHERE werks = data_equz-zzswerk.
        CLEAR: i_matnr_tab.
        REFRESH: i_matnr_tab.
        i_matnr_tab-matnr = data_equi-matnr.
        APPEND i_matnr_tab TO i_matnr_tab.
        CALL FUNCTION 'Z_MATERIAL_HAZARD'
          EXPORTING
            pland1    = v_land1
          TABLES
            matnr_tab = i_matnr_tab.
    check if radio active
        READ TABLE i_matnr_tab INDEX 1.
        IF sy-subrc = 0.
          IF i_matnr_tab-ramat = 'X'.
    check if user has Radio Active access
            AUTHORITY-CHECK OBJECT 'S_TCODE'
                        ID 'TCD' FIELD 'ZIE02_RA'.
            IF sy-subrc NE 0.
              MESSAGE w000(z5) WITH 'No access to create RA equipment'.
              RAISE posting_not_allowed.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDIF.
    *======================================================================
    End of RA Equipment Lockdown << CHLK9A1N05
    *======================================================================
    *CHECK NOT data_equi-eqtyp = 'E'.
    *CHECK NOT data_equi-eqtyp = 'F'.
    DATA: v_stor_ucomm LIKE sy-ucomm.
    DATA: v_equnr LIKE data_equz-equnr.
    *Save the system user command field
    v_stor_ucomm = sy-ucomm.
    v_equnr = data_equz-equnr.
    *Get the additional information
    CALL FUNCTION 'Z_GET_MORE_EQUIPMENT_INFO'
      CHANGING
        s_equi    = data_equi
        s_equz    = data_equz
        s_rm63e   = data_rm63e
      EXCEPTIONS
        cancelled = 1.
    *Begin of changes for SARTD 113691
    IF sy-subrc NE 0.                                           "CHLK9A0KY9
      RAISE posting_not_allowed.                                "CHLK9A0KY9
    ENDIF.                                                      "CHLK9A0KY9
    End of changes for SARTD 113691
    *Restore the equip number
    data_equz-equnr = v_equnr.
    data_equz-zzkokrs = data_iloa-kokrs.                        "CHLK9A0WYR
    data_equz-zzkostl = data_iloa-kostl.                        "CHLK9A0WYR
    data_equz-zzswerk = data_iloa-swerk.                        "CHLK9A0WYR
    *****SARTD 109167
    *vALIDATE VALUES PER ami fOREIGN TRADE SYNCHRONIZATION RULES
    *set screen 0101.
    CALL FUNCTION 'Z_AMIFT_VALIDATE_EQUIP_MATNR'
    TABLES
      P_MESSAGES       =
      CHANGING
        p_equi           = data_equi
        p_equz           = data_equz.
    *****SARTD 109167
    CH4K902173 - Should update EQUI and EQUZ, set flag to TRUE.
    chgd_equi = data_equi.                                      "CH4K902173
    chgd_equz = data_equz.                                      "CH4K902173
    *Begin of Changes - CHLK980219 data not retained when creating record
    *UPDATE_FLAGS_EQ = 'X'.                       "CH4K902173
    *UPDATE_FLAGS_EZ = 'X'.                       "CH4K902173
    *End of Changes
    *If cancel was hit then back out of save
    IF sy-subrc NE 0.
      RAISE posting_not_allowed.
    ENDIF.
    *Restore the system user command field
    sy-ucomm = v_stor_ucomm.
    Begin of insert        SARTD 92504, AMI 9/26/02, E.Krenz
    Store new maintenance plant in memory to be used by ZAEQASBR for
    immediate ransfer of maintenance items.
    EXPORT data_equz TO MEMORY ID 'ZAEQASBR'.
    End of insert
    >> CHLK9A1N29
    clear transaction varient before going to IE02 or IE01 main screen
    CALL FUNCTION 'RS_HDSYS_SET_TC_VARIANT'
      EXPORTING
        variant                 = ' '
        flag_client_independent = 'X'
        overwrite_variant       = 'X'.
    << CHLK9A1N29
    Regards,
    vaibhav.

  • Error while saving a smartform in pdf with action profile in service order

    Hi experts,
    I have a problem in saving a smartform which is converted in pdf.
    WHat i m doing is.
    The action profile is configured with new Z class and Z method. CL_DOC_PROCESSING_CRM_ORDER and CRM_SRVORDER_EXEC_SMART_FORM.
    But when i click the button in the Order, i m able to save the pdf in local drive, but an error is coming in the Order page(at the bottom) "Action could not be executed successfully".
    The action has been setup with "Printonly" and "Smartforms print" in customization.
    I have a dount whether, this action Printonly is only to print the smartform ??? Or can we use just to save the smartform in pdf.
    But when i remove the pdf conversion and save dialog and try to print it directly, Its printing the smartform. No errors are coming.
    But guys, please help me on this. I have tried all the tricks i know.
    I just want to save a smartform in pdf with action profile configured.
    Thanks in advance.
    <REMOVED BY MODERATOR>
    KK
    Edited by: Alvaro Tejada Galindo on Mar 19, 2008 4:26 PM

    Hi;
    Did you checked
    Queries Error With FRM-92101 In Many NLS Forms [ID 443922.1] << seems similar error like yours
    Forms FRM-92050, FRM-92100, FRM-92101, FRM-92102 Reference Guide [ID 444690.1]
    If its not help please enable trace
    How To Perform System Tracing For All Forms Runtime Processes? [ID 400144.1]
    Regard
    Helios

Maybe you are looking for

  • NOKIA N97 and BH-507

    Ho da poco comprato l'auricolare Nokia BH-607. Sono molto deluso. L'auricolare non è compatibile con il Nokia BH-607. Alla prima connessione tutto ok, infatti viene riconosciuto dal software ACA. Poi, una volta spento il telefono, o interrotta la con

  • Chapter Marker Problem - Similar to post but not solved

    This is my first export since upgrading; in the past all I've ever done was create chapter markers, export to QT and import into DVSPro and poof done. Life is good. Now there are no markers in DVSP. I read a thread about this same problem and it was

  • Sych BPM scenario (RFC to SOAP)

    Hello I am using the RFC2SOAP scenario using the process shown below to get alerts. Receive  - Open S/A bridge ( Sync receive) Transform - Request_Asyn ( Mapping from RFC request to SOAP request) Sync Send - Call SOAP Transform - Response Asyn ( Mapp

  • Reference Translation in BW-Bex Report

    Hi, I am looking for reference translation functionality in BW as it happens in SAP R/3. I have transfered Exchange Rates from R/3 and also made setting in exchange rate type for Refernce currency. Can you please tell me the settings that I need in B

  • Switching to Oracle in Portal4.0 Exception

    I switched to Oracle and I get the following exception when I try to access wlcs application. I have created the tables and sample data. Any ideas? If I switch back to cloudscape the application works again. <Feb 26, 2002 9:53:25 AM EST> <Warning> <W