Skip to Content

What does this correction in note 2371726

Hello Experts!

Would help me understand with below correction of note 2371726.

I think it is pretty simple but i have few querries and im new to abap codes.

Does the below correction mean that

directory names that include [A-Z a-z 0-9] and [ _ ] will be allowed to create.

For example, below directories are ok.

1. Example_directory , example_directory123,

Below directory names will not be alowed to create.

1. Example123! 2. exampledir!%

Plus my question is will below directories allowed to create?

1. Exampledirectory 2. Exampledir_ 3. _exampledir

(directory names that does not include "_" or the "_" is in the front or last.

*$*$----------------------------------------------------------------$*$* 
*$ KORREKTURANLEITUNG       0020751259 0000106752                     $*
*$ Vorausgesetzte Korr.Anl. 0120061532 0001436435 Hinweis 0001673713  $*
*$--------------------------------------------------------------------$*
*$ GÜLTIG FÜR      :                                                  $*
*$ Softwarekomponente   SAP_BASIS  SAP Basis component                $*
*$  Release 700          SAPKB70004 - SAPKB70033                      $*
*$  Release 710          Bis SAPKB71021                               $*
*$  Release 711          SAPKB71101 - SAPKB71116                      $*
*$  Release 701          Bis SAPKB70118                               $*
*$  Release 702          SAPKB70201 - SAPKB70218                      $*
*$  Release 730          SAPKB73001 - SAPKB73016                      $*
*$  Release 731          SAPKB73101 - SAPKB73119                      $*
*$  Release 740          Bis SAPKB74016                               $*
*$  Release 750          Bis SAPK-75005INSAPBASIS                     $*
*$  Release 751          Ohne Support Packages                        $*
*$*$----------------------------------------------------------------$*$*
*&--------------------------------------------------------------------*
*& Objekt          FUNC BRAN_DIR_CREATE
*& Objekt Header   FUGR SBRN
*&--------------------------------------------------------------------*
*& FUNCTION BRAN_DIR_CREATE
*&--------------------------------------------------------------------*
...
  ENDIF.

  COMMAND1(9)    = 'mkdir -p '.
*>>>> START OF DELETION <<<<<
* Begin note 1673713
  FIND REGEX '[^A-Z a-z 0-9 _ \, \^ % $ # @ ! \~ \{ \} \[ \] \; \( \) \- \`]' IN DIRNAME MATCH COUNT mcnt.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
* Begin note 2371726
* Begin note 1673713
*  FIND REGEX '[^A-Z a-z 0-9 _ \, \^ % $ # @ ! \~ \{ \} \[ \] \; \( \) \- \`]' IN DIRNAME MATCH COUNT mcnt.
  FIND REGEX '[^A-Z a-z 0-9 \w]' IN DIRNAME MATCH COUNT mcnt.
* End note 2371726
*>>>> END OF INSERTION <<<<<<
...
*&--------------------------------------------------------------------*

Thank you for your reply!!

Sincerely Zaya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 15, 2017 at 09:11 AM

    You can use online tool for testing regex:

    https://www.regexpal.com/

    Add comment
    10|10000 characters needed characters exceeded