I am trying to set up a flow which will read all the files name (only the last 5 digit) present in folder and open SAP and write it in a particular T-code and after that, particular file needs to be attached in SAP and then send an email as confirmation.
File type will be of mail (.msg)
Name of the file will be like:
tyre12345
mrf98765
st45287
Here I need only the last 5 digit (only numbers basically and the I need to go in one Tcode in SAP and give that 5 digit and upload the file.
example: I have got 12345 – get in sap Tocde given the number 12345 (enter) and in that I have to attach the file which belongs to this number so in this cae I have to attach tyre12345
I thought to do substring first and have all the number in an excel sheet and the use regex to attache the file, I mean lets say:
identity12345 >> first I thought to extract all the digit of the file existing in the folder and the one by one it will go in SAP, I used some t-code and entered 12345>> and the file which is available in the folder with this number (now in case it is identity12345) should get attached, not any other file, so here I believe we need to have regex.
not sure if this will work, and it will really be great if you can share your thoughts or workflow (if you can)
I thought to do substring first and have all the number in an excel sheet and the use regex to attache the file, I mean lets say:
identity12345 >> first I thought to extract all the digit of the file existing in the folder and the one by one it will go in SAP, I used some t-code and entered 12345>> and the file which is available in the folder with this number (now in case it is identity12345) should get attached, not any other file, so here I believe we need to have regex.
not sure if this will work, and it will really be great if you can share your thoughts or workflow (if you can)