Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • 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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • 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 comment
    10|10000 characters needed characters exceeded

  • 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 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.