-I have a bunch of pdf files in a folder.
-I would like to upload each of those pdf files to sap (attaching them to an invoice number)
-I need always the number at the beginning of the pdf name (always 6 digits at the beginning of the file name) to search this invoice in sap. (I also need to add 4 fixed digits infront of the 6 digits).
Any suggestion how to start here?
I would start with sth. like “for each” item in the folder, but I dont really know how to get the 6 digits at the beginning of the filename and add the 4 fixed digits to search and add the pdf file in SAP.
Thanks @prasath17, I will try that. With the 4 digits I meant that I have to add infront of each invoice number from the files 4 fixed digits in order to find the invoice in SAP, so for example:
5555201872
5555210867
555520873
Any idea how I can add those “5555” infront of each invoice number from the file names?
@Markus3003 - You have used incorrect activity…Instead of using “For Each” , you have used “For Each Row” which should have used for Datatable/datarow etc…
I would suggest you to take RPA Developer Foundation academy course, especially variable , Data Types and Control Flows which will put in a very good spot in understanding of the variables.
My last problem now is, that I would like to attach the pdfs from the folder in SAP.
But to attach them I have to put the directory and the whole file name into the type into activity. In my arrFiles variable I only have the first 6 digits.