dead3ye
(Rajdeep)
October 8, 2024, 4:29am
1
i have to enter string data into SAP. but in SAP the data has to entered in this form: “Short”" ““Ship”” "“Product”
i am getting the entire word from excel as string but i need to enter in this format.
how can i enter the string in the format above, provided the word counts may vary for each case
Hi @dead3ye
Can you please share the string value that you are getting from excel.
Hi @dead3ye
Can you share the screenshot of it.
Hi @dead3ye
Try this way
inputstring = “Short Ship Product”
Output = String.Join(" “, InputString.Split(” “c).Select(Function(s) $”“”{s}“”"))
Regards,
Gowtham K
dead3ye
(Rajdeep)
October 10, 2024, 2:55am
5
“Short Ship Product” this is how i am fetching from excel
dead3ye
(Rajdeep)
October 10, 2024, 2:56am
6
will this work for any other string where the name does not contain s. if we have string from excel like “Price Distribution”, anything which does may start from a different string name ?
@dead3ye it will work other string also, based on space we are splitting the input string word
dead3ye
(Rajdeep)
October 10, 2024, 3:45am
8
@Gowtham_K115 do you have an idea why im getting this error while running
Assign: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled.
@dead3ye try below threads
Guys do know why this error happened? Assign: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled. When i try to assign this error appear.
Hi @GK_Teach-Nepal ,
Is it possible for you to share your project (.xaml) so we can take a look at the activities?
Thank you,
Kind regards,
Robert Lansbergen
@dead3ye
Below error appear right
You just change the Double quotes
Regards,
Gowtham K
dead3ye
(Rajdeep)
October 15, 2024, 4:42am
11
is there any other method to extract text. i keep getting compilation error
@Gowtham_K115
@dead3ye where you want to extract the data?
dead3ye
(Rajdeep)
October 15, 2024, 7:09am
13
extract the data to a string after that we are invoking a workflow to enter the data to sap.