I’m trying to automate the creation of transactions in SAP and faced some issues. Here is some background and the issue faced:
An Excel spreadsheet is used as the data source.
Users will typically maintained certain fields in the spreadsheet for SAP import in numeric form, e.g. “1001” for, say, a certain customer grouping type, without the full description, say, “Local Customers”
While doing the automation in SAP, some fields cannot be Typed Into, and instead the entry must be selected via a drop-down (using F4).
A drop-down list would typically show the concatenation of the code (e.g., “1001”) and the description (“Local Customers”) so the scrapped text from a drop-down box may look like this after scrapping:
You can try with Regex:
First Scrap the data from the drop down
ex:
1001 Local Customers
1002 Overseas Customers
1003 One-Time Customers
1004 VIP Customers
Save it a variable say fulloutput
then use if condition to check fulloutput.contains(“yourexcelword”)
if contains
then you Match activity and use reqex function to get the whole word
else throw the Bussiness exception
Then use the Type into actiivty