Skip to Content
author's profile photo Former Member
Former Member

Abap screen - Tab as input

Hi folks.

I am working on a screen application for which I need to handle Tab as input. I have learned that tab is not an input in Abap, but there go to be a work around for the same.

We have to Simulate a web-based SAP application :

- We have a Z-Screen. User provides Barcode input via a scanner.

- The input is accompanied by a tab - there is no option of enter or any other input. We have to simulate this input.

- We need to trigger PAI at this point.

Is it possible to achieve this?

Many thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Dec 05, 2017 at 08:54 AM

    1. Ask your scanner manufacturer how to change the tab to a cr/lf. Unless you're using 1980s technology this should be possible.If not, consider changing suppliers.

    or

    2. Don't use SAPGui as your front end.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2017 at 11:24 AM

    Hi there,

    I'm not sure what you talking about. Why don't you put a input field above the tabstrip? This is the way SAP deal with, like REBDRO t-code

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2017 at 07:31 AM

    Ok, so you want the user to be able to enter a "tab" character in your application. Yes, well, pressing that key moves between fields in the SAP GUI so I see the issue here.

    What would be the reason behind this requirement? Is it for formatting (like for instance in a long text area) or is the user to select a delimiter for an input or output file (i.e choose from space, tab, semicolon, etc).

    Or do you really really need the user to place a tab character inside one line of free text?

    Add a comment
    10|10000 characters needed characters exceeded

    • Too bad you could not change the behavior of the scanner... I have not encountered this issue and it was a long time since I did screen programming, so I don't really know unfortunately.

      You also asked about Fiori. There I know for sure are more options. For many components there is an onChange event which will trigger after something is entered into a field and the field is left, for instance with a tab key.

  • Posted on Dec 05, 2017 at 08:54 AM

    1. Ask your scanner manufacturer how to change the tab to a cr/lf. Unless you're using 1980s technology this should be possible.If not, consider changing suppliers.

    or

    2. Don't use SAPGui as your front end.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.