SAP Single Value copy problem

How can copy material to Single Value from Excel DataTable with UiPath?

Hi @mnmohajeri

Pleas check below thread,

Or

Happy Automation

@mnmohajeri

can you please elaborate a little

cheers

@mnmohajeri,

I think it’s related to your previous question to copy excel range to SAP. Am I correct? if yes, have you tried the approach suggested on previous question and what was the outcome?

I faced with attached error after carry out the solutions.
Please let me the other way
Thanks

Dear Anil

I faced with attached error.

Hi @mnmohajeri

Could you please do the following:

  1. before you are copying the value to sap, can you please use log message activity to print that value. Please check if its the right value you are intending to copy to SAP.
  2. Have you tried entering that value manually in the SAP and check? Is the error still same? if yes, you would need to check with the business on the data/file that needs to be copied to SAP. If you are able to do it manually but not via UiPath, then there is a problem in your UiPath workflow.

Regards
Sonali

1 Like

@mnmohajeri

how are you trying to set the value?

better to assign the value to clipboard and then use keyboard shortcuts/send hotkeys to send ctrl+v to paste the data and dont send it to single cell but use the full window to send hotkeys

also while reading how are you reading the data?

cheers

1 Like

@mnmohajeri,

Check if there is any trailing or leading spaces

1 Like

Let try this,



image

You can use

  1. Use Assign Activity ,
    Material =
    String.Join(Environment.NewLine & Environment.NewLine, DataTableName.AsEnumerable().Select(Function(row) row(“Material”).ToString()))

  2. Set to Clipboad Activity, Input = Material

  3. Click Activity ( Upload from clipboad )

1 Like

I can copy data from Excel manually but can’t do this with UiPath

@mnmohajeri

use read range and then join the values with envionment.newline and assign to clipboard and send ctrl+v

cheers

I solved my problem by First or Last column activity.

Thanks all

1 Like