2

Find First Occurrence ']'

 1 year ago
source link: https://answers.sap.com/questions/13666074/find-first-occurrence.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
9 hours ago

Find First Occurrence ']'

30 Views

Hello Experts!

Kinda new to SAP. Please help me how to find the first occurrence. The goal here is to separate two values when it detects ']' then display the first value. For example with a data 123456]0879. Only the 123456 should be displayed. I was supposed to use SPLIT but it won't work if SPLIT sscc1 INTO s_sscc1 since it requires 2 or more fields to be specified.

Current code(still not sure about this one):

DATA: s_sscc1 TYPE string.

IF sscc1 CA ']'.
*find first occurrence code*
ENDIF.
sscc1 = s_sscc1.




About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK