3 Steps in Leave Approval screen

Hi,
In EP7/ECC6/webdynpro based ESS, when the approver has to approve the leave, it shows a wizard.
He has to press the approve button, enter comments, press review, then press Approve.
Is there any possibility to reduce the 3 steps to only 1 step, with comments in the same screen.
Also can we change the size of comments box?
Thank you.
Regards,
Boobalan

Hi Boobalan,
If I understand you right, you are using Webdynpro(GP interface) CO for the approver action. It is possible to perform the action in one step, i.e in the action of the button "Approve" call the complete method from the component controller.
In order to bring the comment in the same step, add the required UI element(Text Edit) to the approver View.
I hope this will help in solving your problem.
Let me know the result.
Regards
Sivaprasath

Similar Messages

  • Modify generated leave approval screen

    I need to add a checkbox to the leave approval screen so that the manager can indicate if supporting documention has been sighted.
    Task TS20000193 usea BO FORM-HTMLPROCESS to call program SAPMWS2000081H with transaction code WS20000081.
    I tried copying the program and includes but there are more includes that are generated from I don't know where.
    What is the correct/best way to modify screen 150 in this program?
    Is there another way of going about it?

    Hi Neil,
    I probably shouldn't say this but... here's one exception to the rule about modifying SAP standard. Just change it. Make sure you have a backup available.
    a) It's hellishly complex to copy as there are a lot of little objects that interact & it's quite nasty code with individual tasks hardcoded. seen. Some OSS notes even recommend changing bits of code when you change the WF tasks.
    b) Any difficulties you may experience due to modding the standard will be less than the difficulties due to copying.
    c) That incarnation of leave request has reached the end of it's life. The ECC6 version has been completely rewritten form scratch and shares no common elements with it whatsoever, so upgrade problems are also not a factor.
    d) Because it's been around for some time I don't imagine there will be too many patches, which aren't that difficult to resolve anyway.
    Cheers,
    Mike

  • Team Calendar in Read-Only Mode in Leave Request Approver Screen

    Hi,
      After lots of interaction and inputs in my previous thread,
      Customization Done for 2 level approval of leave in ESS but Facing Problems
           Our Team had decided to make the Team Calendar in Leave Request Approval Screen in Read-Only Mode (more precisely modus=TeamView)
           My question is, is it possible to achieve the same, because instead of adding custom validations using Custom RFC, If it is possible to make the Team Calendar as Read-Only than it will help us to achieve our goals. Please do let us know that is it possible? and, if Yes, How to achieve it?
          On leave request approval screen, we want Approver to take any action via "Show Worklist" and No User Action allowed on Team Calendar (Disabled but not InVisible).
      Thanks,
    Regards,
    Tushar Shinde.

    This is the note 1484853 but as i said you cant see it unless you raise a Message for SAP , We have to add yout company to the note.
    these are the steps
    Symptom
    In LeaveRequestApprover application, a higher level manager can
    approve/reject a leave though he/she is not the owner of the approval
    workitem (TS12300097). It happens when a higher level manager clicks on
    the leave in the TeamCalendar launched from the LeaveRequestApprover
    application.
    Other terms
    LeaveRequestApprover, TS12300097, prepare_select, WorkList,
    LPT_ARQ_REQUEST_UIAF07
    Reason and Prerequisites
    Reason:- This is caused because the approve/reject button were not
    restricted based on the logged in user.
    Prerequisites:- IT105 entries for the backend PERNRs should be correctly
    maintained.
    You can check here
    Object REPS LPT_ARQ_REQUEST_UIAF07
    Object Header FUGR PT_ARQ_REQUEST_UIA
    FORM PREPARE_SELECT
    the note is meant for few customers only

  • Problem in changing label in leave request approval screen

    Hi All,
    I have followed the SAP note 1234273 to change labels in our Leave request iViewin ESS and could do it successfullybut I could not able to know how to change the labels in Leave request approval screen because I have created a custom role and assigned Universal work list to it and assigned it to manager to view the leave requests applied. I navigated to Leave request approval screen via that role but ctrl + right click is not working on that page. Please suggest me

    Check your uwl config, normally it is configured to directly call concerned(leave req approval) application hence your iview may not be getting called. You can try changing the uwl config to call PCD page instead of direct wdp application call.
    ~cheers
    avadh

  • What is the diffrence of 'call screen 100' and 'leave to screen 100'

    Thank u

    hi,
    You can insert a screen sequence. This adds another layer to a stack.
    You insert a screen sequence using the CALL SCREEN <nnnn> statement.
    Note: Layers created in this way must be removed afterwards. You can do this by setting the next screen
    statically or dynamically to the initial value (0) an the end of the inserted screen sequence.
    To interrupt processing of the current screen and branch to a new screen (or sequence of screens), use
    the CALL SCREEN <nnnn> statement. The screen <nnnn> must belong to the same program.
    In the program, the system constructs a stack. The stack has to be destroyed before the end of the
    program.
    To return to the statement following the CALL SCREEN statement, you can use either SET SCREEN 0.
    LEAVE SCREEN. or LEAVE TO SCREEN 0. The screen that called the other screen is then processed
    further.
    If you use the above statements outside a call chain, the program terminates, and control returns to the
    point from which it was called. You can also terminate a program using the ABAP statement LEAVE
    PROGRAM.
    To interrupt processing of the current screen and branch to a new screen (or sequence of screens), use
    the CALL SCREEN <nnnn> statement. The screen <nnnn> must belong to the same program.
    In the program, the system constructs a stack. The stack has to be destroyed before the end of the program.
    To return to the statement following the CALL SCREEN statement, you can use either SET SCREEN 0.
    LEAVE SCREEN. or LEAVE TO SCREEN 0. The screen that called the other screen is then processed
    further.
    To specify the next screen and leave the current screen in a single step, use the LEAVE TO SCREEN <nnnn> statement.
    Hope this helps, DO reward.
    Edited by: Runal Singh on Apr 3, 2008 3:11 PM

  • Error while opening the leave approval

    Dears,
    We are getting an error as "Attribute HR_NTF_EMBEDDED_REGION with value JSP:/OA_HTML/OA.jsp?OAFunc=-&HR_EMBEDDED_REGION-&NtfId=-&#NID- refers invalid framework URL" while a user is opening the approval screen for a leave of his sub ordinate. It seems that no one has the issue apart from this person though. Any advice please? It was working fine so far...Version 12.1.3....11g DB....

    Hi,
    I have asked the approver to reject the transaction and informed teh sub ordinate to try again. I will keep you guys posted of how it goes.

  • Multiple Leave Approval problem in workflow  WS21500001 -webdynpro

    hi,
    We are using standard webdyppro leave approval workflow WS21500001, but inhere does not provide multiple approval level.  Our requirement is we need two approval levels for this. So I copy the stranded workflow and create the second approval leave.  In here Iu2019m unable to send second approval document into the mailbox, I was write rule to get the second approver, its working fine but once the 1st approval  finished mail doesnu2019t go to the second approver inbox. Can you help me to do this?
    Regard,
    nawa

    Hello,
    Do you mean mail or workitem? I think you mean workitem.
    Use tx SWI1 to look at the workflow log and you'll see what the workflow is doing and why it's skipping the second approval step.
    regards
    Rick Bakker
    hanbi technology

  • PO Approval Date in SSP Approval screen

    Hi,
    We are using ECS with SRM4.0.
    All the Purchase Orders in Awaiting Approval status shows the pending Approval Date as today's date. But the PO Approval WorkItem is lying with Approver for the past 10 days.
    Pls advise so that the correct approval information is displayed in the Approval screen of SSP.
    Rgds.

    Lets start with the obvious question, is there anything that's saying having workflow created versioning is a bad thing? If you've got document checking and versioning turned on, you're clearly in an environment where auditing it needed.
    SPD has steps for checking in and checking out.  If you use these, than you can also use the "log item to history" or something similar to log the history.
    Other than that, try using calculated columns to look up both the Approver and the Approver Date.  Return these as single lines of text and they should work fine with Quick Parts.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Leave Approval in MSS Displays Only Header

    Hi all,
    I have a problem with leave approval in MSS using the MSS Add-On.  I checked all the backend configurations and they seem OK.  I modified the UWL config file following the SAP note (which by the way said the config file should have been updated when installing MSS Add-On - but that didn't happen!).
    When I click on the leave request in UWL, a new screen opened and after a few seconds a blank header appears in the screen and nothing else.  When I previewed the leave approval in portal content, it works.
    I've searched for notes on this but nothing.  Can anyone help?
    Thanks in advance.

    Hi Krishan
    solution is simple.
    1. Raise an oss message and SAP would ask you to apply patch update from note 1720040.
    I am not too sure if this would solve the problem.
    Second option is
    1. go to your uwl xml and in your default xml paste following code for task 21500003.
    <ItemType name="uwl.task.webflow.TS21500003.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="defaultAction" executionMode="default">
    <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType=" TS21500003" connector="WebFlowConnector"/>
    <CustomAttributes>
    <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalObjectId" objectType="WebflowContainer" cacheValidity="final">
    <Attribute name="REQUESTID" type="string" displayName="Request ID"/>
    </CustomAttributeSource>
    </CustomAttributes>
    <Actions>
    <Action name="defaultAction" groupAction="" handler="ObjectNavigationLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes">
    <Properties>
    <Property name="ObjectValue" value="LRF_REQUEST_ID=${item.REQUESTID}"/>
    <Property name="Operation" value="approveleaverequest"/>
    <Property name="ObjectName" value="employee"/>
    <Property name="openInNewWindow" value="true"/>
    <Property name="System" value="SAP_ERP_HumanResources"/>
    <Property name="DynamicParameter" value="LRF_REQUEST_ID=${item.REQUESTID}"/>
    </Properties>
    <Descriptions default="defaultAction"/>
    </Action>
    </Actions>
    </ItemType>
    After applying above if you still face same issue then download your mss addon 1.0 zip file from uwl admin page.
    extract com.sap.pct.erp.mss.addon.xml from com.sap.pct.erp.mss.addon.zip.
    paste above xml code for task 21500003 (please assure there is only one action for this task).
    and UPLOAD THE com.sap.pct.erp.mss.addon.xml
    Please make sure you upload the xml and not the zip. Please don't upload zip as that causes issues.
    Please don't rename the zip to xml etc. upload the changed com.sap.pct.erp.mss.addon.xml.
    After above it will work. in case there are issues please respond on this message.

  • HR Leave Approval issues

    hi everyone,
    I have modified the standard HR Leave approval Workflow WS002000077. In that workflow user decision, Unlock step type, loop steps are available. I am getting user decision workitem in inbox. When i click approve option, i has to go to unlock step type. But it is not going for unlock step.
    The same scenario is working good without loop, i can able to unlock it.
    So, in this scenario with loop, I am getting following errors;
    1. variables of the work item cannot be generated.
    2. Error in the evaluation of expression '&EMPLOYEET<???>.NAME&' for item '10'
    3. Error when determining attribute 'NAME' of object instance '[BO.EMPLOYEET.]'
    4. Agent determination for step '0000000038' failed
    5. Source (expression '&EMPLOYEET.ADMINISTRATOR.ADMINISTRATOR&') of binding assignment is not available
    6. Source (expression '&EMPLOYEET.ADMINISTRATOR.ADMINISTRATORGROUP&') of binding assignment is not avaible
    7. Error in the evaluation of expression '&EMPLOYEET<???>.ADMINISTRATOR.ADMINISTRATORGROUP&' for ite
    8. Error in the evaluation of expression '&EMPLOYEET<???>.ADMINISTRATOR.ADMINISTRATOR&' for item '10
    here item '10' refers to loop step. I am using custom rule. It is working fine without loop condition.
    Thanks in advance!!

    hi,
      That one previous workflow and it solved. But now the same one with loop for Re-submission of Leave Request after change.
      Actually the values from Employeet is not flowing in the Unlock step for agent determination. Because of that the agent determination is not possible for me. But it works well without loop scenario. Employeet is not instantiated.
    Here i am using loop condition for re-submission of leave request.
    Thanks,
    Balaji.V
    Edited by: Balajisap on Sep 19, 2011 3:56 PM
    Edited by: Balajisap on Sep 19, 2011 6:22 PM

  • Launch Leave Approver Application without using UWL

    Hi
    Feedback from initial UAT has been that the users find the UWL awkward to use and the leave approval process has too many steps.  They would be happier if they could get to their list of leave applications requiring approval directly ie avoiding the UWL.
    Is this possible?  In portal content it is possible to open the Leave Approver iview directly and previewing the iview appears to be OK.  However when I add this link into the Navigation in our custom MSS role and access through MSS the same iview appears to be blank.
    Is it possible to access this application directly?
    Regards

    Just as an update we have managed to do this avoinding the UWL and it appears to work fine.  Just created a new page with the leaver request approver iview on it.  My initial problems with the link from the portal were down to my home page configuration and nothing to do with the fact that you need to use the UWL.
    We do intend to use the UWL in the future when more functionality is incorporated, it just seemed overkill for one wrkflow application.

  • Leave approval through Position Hierarchy

    Hi All,
    I have requirement regarding Leave approval which I want to perform through position hierarchy despite of immediate supervisor, can any body tell me the step where I can perform this through AME?
    Regards,

    You don't have to use the supervisor hierarchy. By using an AME rule, you can return the approver list using a wide range of logic. You can make use of the position hieracrhy, or you could choose to have an approver group based on some other logic. You will need to make sure that your transaction type (self service HR) has access to the appropriate action type (e.g. position hierarchy) to do this.
    Regards
    Tim

  • Approval Screen Refreshes

    Hello SRM Experts,
    I appreciate all the information that this forum has provided . It has been a great help.
    We have an issue with which we need some help .We have approvers who have to approve multiple shopping carts. So they logon to SRM and open the Approval screen. Now they might be on that screen for a few minutes and they have to leave the SRM screen and look at some other stuff like email or some meetings.. They are bought back to the SRM approval screen every few minutes.In certain cases we have had approvers who are in the middle of writing emails or doing some important stuff and all of sudden they are taken to the SRM approval screen. It seems that the SRM approval screen refreshes every few minutes and the system takes them from the screen that they are working on to the SRM approval screen . Is it possible to change this? Let me know if you need any other information from me.
    regards,
    Yoginder Kaura.

    Hi
    Which SRM version are you using ?
    As Pierre told, This is standard  functionality. MEanwhile, you can try out the following SAP OSS Notes, which will help ->
    Note 969828 - BBPSC01: Continual Refresh on Change of Cost Assignment
    Note 636910 - Shopping cart in approval although already authorized
    When this refresh takes place ?
    Also Try increasing the refersh counter values for Internet service BBPSTART, BBPAPPROVAL, BBPSC01 etc using SICF Transaction ...
    Do let me know.
    Regards
    - Atul

  • Substitute - Leave Approval in POWL

    Hi
    How can i activate "Substitute" button in POWL screen for Leave Approval query ?
    Thanks

    check here further http://scn.sap.com/thread/3535795 http://scn.sap.com/community/erp/hcm/employee-self-service/blog/2013/02/07/all-that-is-needed-for-configuring-substitution-in-mss

  • Kludge to make less, vim et al. leave the screen uncluttered enjoy!

    I have written a script which leaves the screen uncluttered when finishing less.
    This script is written for bash in the "good old terminal", but works well with
    iTerm too. I wrote this script because less is opposite of more as less is so
    much more as more is so much less.
    I hope you will use this script and reap the rewards of using less while reading
    textfiles, gaining from less's features, avoiding the cluttering which may have
    made you disliking using less. You can make a copy of the script and modify and wrap
    the script around any other characterbased program which clutters your terminal screen.
    The script works by beeing placed in your ~/bin which I assume is before
    /usr/bin in your $PATH where the binary less resides. You must modify the paths
    in the script if they are different from that. (both the binary less, the script,
    and the kludge.scr)
    The script installs an interrupthandler which are triggered by changing the
    windowsize. The interupthandler figures out what it must do to preserve
    your screen when you exit less, and just does so, except for four characters
    to the extreme left on one line. (wich may well be part of your prompt).
    The interrupthandler gets its work done, by calling a kludge which are
    relatively referenced in the script from your homefolder, -presumes ~/bin
    - YOU MUST EDIT THE SCRIPT OTHERWISE. The configuration is like it is because
    that is what it takes to make the correct things happen in bash.
    I think this could have been accomplished much easier using another shell,
    but most people uses bash, especially newcomers, and they deserve to have
    it as easy as possible, while reaping the productivity gains laying dormant
    in the Unix core, so I hope you will share the script with you liberally,
    if you think it is worth the time and the work it takes to "install" it.
    I hope you will give this script a try, as to make less work comfortably for you,
    I have included an environment variable with all settings I like in less, which
    you may modify.
    Less was the first program I had that made me think "wow" back in 1986, beeing used
    to the "more" command, - which was, and is so much less than less. You can for instance
    invoke BBedit with a file you are viewing in less by pressing "v" if you have BBedit
    specified in the $EDITOR variable. You can pipe some text to the clipboard.
    Or you can pipe some lines out of a document you are viewing in less and into
    a file while viewing, you can load it with multiple files, and search them all,
    a programemer can make less work with tagfiles; you can have less create a logfile
    of what you read and, you can even scroll backwards. All in all less is a very handy
    tool which I think everybody would gain from using,in opposite to more.
    Especially when it leaves the screen uncluttered.
    Great care have been taken in order to make this kludge work properly.
    Still I MAKE ABSOLUTELY NO WARRANTIES ABOUT WHATSOEVER AND ANYTHING.
    -USE IT AT YOUR OWN RISK.
    You may do whatever you wish to do with it, aside from selling it alone, but you
    are free to do whatever that you please with it, aside from distributing
    malfunctioning copies or incomplete copies or tinker with the Copyright notice
    in the scripts.
    -------------------------------------------------- here comes the kludge for less - sends with you a tar as well. 8859 - encoded I think.
    #! /bin/bash
    # Less - lets us keep our screen nice even after resize, having used less or any other
    # character based program - like vim, which may leave an unorderly screen.
    # The fact that programs do clutter up the screen is because they probably didn't figure
    # that we one day would be able to resize our terminals when they specified the standards at
    # Ansi back in the 60's.
    # Installing : put it together with "kludge.bash" in your $HOME/bin folder ( ~/bin ).
    # its intended to work with the bash shell under MacOsX, the binary less is supposed
    # to reside in /usr/bin, if it isnt; ("which less" reveals where), adjust the path.
    # less - to be placed in the ~/bin folder is the wrap around less to make it behave
    # Copyright 2008 Tommy Bollman Public Domain. -No WARRANTIES ABOUT WHAT SO EVER-
    # Please do modify it for other programs which need helps with its cleanup as well.
    # ~ is an expansion for your home directory aka /Users/John\ Doe
    # Please document your version properly if you are posting it, relieving others.
    export LESS=" -I -r -f -J -S -g -M -x 4"
    # -I ignore case when searching
    # -r "raw" do not preparate ctrl-chars,
    # -f force open special files (may be binary) BEWARE OF ANSISEQUENCES.
    # -J show status column
    # -S chop long lines.
    # -g highlight on last hit in the search.
    # -M Most Verbose status column...
    # -x 4 tabspacing = 4
    # -------------------------------------- the screen handling starts here.................
    ORIGLINES=$LINES
    ESC=`printf "\e"`
    ScreenRedraw_off=`echo -n "$ESC""[8m"`
    ScreenRedraw_on=`echo -n "$ESC""[0m"`
    function OkayScreen()
    export PS1="" # Turns off the prompt to avoid cluttering..
    echo -n ${ScreenRedraw_off}
    CURLINES=`bash -i < ~/bin/kludge.bash `
    # ^^^^^^^^^^^ NB! the path where kludge.bash should be placed.
    if [ $CURLINES -gt $ORIGLINES ] ; then
    TO_SKIP="$(expr "$CURLINES" '-' "$ORIGLINES")"
    if [ $TO_SKIP -lt 3 ] ; then
    TO_SKIP="$(expr "$TO_SKIP" '-' '2')"
    else
    TO_SKIP="$(expr "$TO_SKIP" '-' '1')"
    fi
    tput cuu 1 #cursor up one line
    echo -n ${ScreenRedraw_on}
    echo -n "\$####" #restores an erased '$' making only 3 chars disappear.
    # ^ $ = prompt - $PS1. .(I have just a dollar here but if yours is longer,
    # you can add the first four if it's static, and you'll loose nothing!!)
    echo -n ${ScreenRedraw_off}
    tput cud $TO_SKIP # move cursor to where it should be.
    echo -n ${ScreenRedraw_on}
    echo # activate the cli at correct position.
    else
    tput cuu 2
    echo ${ScreenRedraw_on}
    fi
    trap OkayScreen SIGWINCH
    /usr/bin/less $@
    # ^^^^^^^^ NB! The path where the BINARY less is installed.
    trap '' SIGWINCH
    -------------------------------------------------------------------------------- and here is the kludge wich makes it all work!
    #! /bin/bash
    # kludge.scr - to be placed in the ~/bin folder is the inner workings of the bash script named less
    # Copyright 2008 Tommy Bollman
    PS1=""
    shopt -s checkwinsize
    echo $LINES
    ----><---------------------- EOF.

    I have written a script which leaves the screen uncluttered when finishing less.
    This script is written for bash in the "good old terminal", but works well with
    iTerm too. I wrote this script because less is opposite of more as less is so
    much more as more is so much less.
    I hope you will use this script and reap the rewards of using less while reading
    textfiles, gaining from less's features, avoiding the cluttering which may have
    made you disliking using less. You can make a copy of the script and modify and wrap
    the script around any other characterbased program which clutters your terminal screen.
    The script works by beeing placed in your ~/bin which I assume is before
    /usr/bin in your $PATH where the binary less resides. You must modify the paths
    in the script if they are different from that. (both the binary less, the script,
    and the kludge.scr)
    The script installs an interrupthandler which are triggered by changing the
    windowsize. The interupthandler figures out what it must do to preserve
    your screen when you exit less, and just does so, except for four characters
    to the extreme left on one line. (wich may well be part of your prompt).
    The interrupthandler gets its work done, by calling a kludge which are
    relatively referenced in the script from your homefolder, -presumes ~/bin
    - YOU MUST EDIT THE SCRIPT OTHERWISE. The configuration is like it is because
    that is what it takes to make the correct things happen in bash.
    I think this could have been accomplished much easier using another shell,
    but most people uses bash, especially newcomers, and they deserve to have
    it as easy as possible, while reaping the productivity gains laying dormant
    in the Unix core, so I hope you will share the script with you liberally,
    if you think it is worth the time and the work it takes to "install" it.
    I hope you will give this script a try, as to make less work comfortably for you,
    I have included an environment variable with all settings I like in less, which
    you may modify.
    Less was the first program I had that made me think "wow" back in 1986, beeing used
    to the "more" command, - which was, and is so much less than less. You can for instance
    invoke BBedit with a file you are viewing in less by pressing "v" if you have BBedit
    specified in the $EDITOR variable. You can pipe some text to the clipboard.
    Or you can pipe some lines out of a document you are viewing in less and into
    a file while viewing, you can load it with multiple files, and search them all,
    a programemer can make less work with tagfiles; you can have less create a logfile
    of what you read and, you can even scroll backwards. All in all less is a very handy
    tool which I think everybody would gain from using,in opposite to more.
    Especially when it leaves the screen uncluttered.
    Great care have been taken in order to make this kludge work properly.
    Still I MAKE ABSOLUTELY NO WARRANTIES ABOUT WHATSOEVER AND ANYTHING.
    -USE IT AT YOUR OWN RISK.
    You may do whatever you wish to do with it, aside from selling it alone, but you
    are free to do whatever that you please with it, aside from distributing
    malfunctioning copies or incomplete copies or tinker with the Copyright notice
    in the scripts.
    -------------------------------------------------- here comes the kludge for less - sends with you a tar as well. 8859 - encoded I think.
    #! /bin/bash
    # Less - lets us keep our screen nice even after resize, having used less or any other
    # character based program - like vim, which may leave an unorderly screen.
    # The fact that programs do clutter up the screen is because they probably didn't figure
    # that we one day would be able to resize our terminals when they specified the standards at
    # Ansi back in the 60's.
    # Installing : put it together with "kludge.bash" in your $HOME/bin folder ( ~/bin ).
    # its intended to work with the bash shell under MacOsX, the binary less is supposed
    # to reside in /usr/bin, if it isnt; ("which less" reveals where), adjust the path.
    # less - to be placed in the ~/bin folder is the wrap around less to make it behave
    # Copyright 2008 Tommy Bollman Public Domain. -No WARRANTIES ABOUT WHAT SO EVER-
    # Please do modify it for other programs which need helps with its cleanup as well.
    # ~ is an expansion for your home directory aka /Users/John\ Doe
    # Please document your version properly if you are posting it, relieving others.
    export LESS=" -I -r -f -J -S -g -M -x 4"
    # -I ignore case when searching
    # -r "raw" do not preparate ctrl-chars,
    # -f force open special files (may be binary) BEWARE OF ANSISEQUENCES.
    # -J show status column
    # -S chop long lines.
    # -g highlight on last hit in the search.
    # -M Most Verbose status column...
    # -x 4 tabspacing = 4
    # -------------------------------------- the screen handling starts here.................
    ORIGLINES=$LINES
    ESC=`printf "\e"`
    ScreenRedraw_off=`echo -n "$ESC""[8m"`
    ScreenRedraw_on=`echo -n "$ESC""[0m"`
    function OkayScreen()
    export PS1="" # Turns off the prompt to avoid cluttering..
    echo -n ${ScreenRedraw_off}
    CURLINES=`bash -i < ~/bin/kludge.bash `
    # ^^^^^^^^^^^ NB! the path where kludge.bash should be placed.
    if [ $CURLINES -gt $ORIGLINES ] ; then
    TO_SKIP="$(expr "$CURLINES" '-' "$ORIGLINES")"
    if [ $TO_SKIP -lt 3 ] ; then
    TO_SKIP="$(expr "$TO_SKIP" '-' '2')"
    else
    TO_SKIP="$(expr "$TO_SKIP" '-' '1')"
    fi
    tput cuu 1 #cursor up one line
    echo -n ${ScreenRedraw_on}
    echo -n "\$####" #restores an erased '$' making only 3 chars disappear.
    # ^ $ = prompt - $PS1. .(I have just a dollar here but if yours is longer,
    # you can add the first four if it's static, and you'll loose nothing!!)
    echo -n ${ScreenRedraw_off}
    tput cud $TO_SKIP # move cursor to where it should be.
    echo -n ${ScreenRedraw_on}
    echo # activate the cli at correct position.
    else
    tput cuu 2
    echo ${ScreenRedraw_on}
    fi
    trap OkayScreen SIGWINCH
    /usr/bin/less $@
    # ^^^^^^^^ NB! The path where the BINARY less is installed.
    trap '' SIGWINCH
    -------------------------------------------------------------------------------- and here is the kludge wich makes it all work!
    #! /bin/bash
    # kludge.scr - to be placed in the ~/bin folder is the inner workings of the bash script named less
    # Copyright 2008 Tommy Bollman
    PS1=""
    shopt -s checkwinsize
    echo $LINES
    ----><---------------------- EOF.

Maybe you are looking for

  • Condition type is not coming automatically

    Hi, There is a condition type JECS (A/R Education Cess) and access sequence is MWST, in normal order it is coming automatically but in other order type (Subsequence delivery free of charge - SD) I have to put it manually that means it is not coming a

  • Shared Services - HTTP 403 error when trying to access from user's PC

    We recently upgraded to Shared Services 9.3.1. We can get into the User Mgt Console when remoted into the Shared Services server; however, when I try to access the URL from my PC, I get an HTTP 403 error. I have confirmed in my Internet Options/Secur

  • Struggling to update my credit card information

    [Topic title updated by moderator to be more descriptive. Original topic title was: "credit card update."] I'm finding impossible to update my credit card information. I've been given a new credit card due to the increasing number of hackings that ar

  • BB Curve/Mac OS 10.4.11 User - Need help!

    Hi I have many questions. First - Pocket Mac What do I need to DL and install from the BB site?  I have the Blackberry Curve but due to lack of know how I am underutilizing it's abilities.. I need help with this!  There are a lot of choices and I thi

  • Question on ALE/IDOC

    Hi to all, I have some doubts regarding ALE/IDOC can any one tell me answers to those question. 1. what is a process code? what is the purpose of process code? 2. what is a stand alone program? 3.How to handle to errors in ale/idoc? 4. ALE processes