cancel
Showing results for 
Search instead for 
Did you mean: 

LSMW for batch adding # before batch number

raghavan_iyengar3
Active Participant
0 Kudos
455

Hi Experts,

I have created a LSMW for updating batch characteristic using MSC2 and have done all the steps. The problem is with the batch input session. It adds a # before batch number and ignores last digit of the batch number and errors out that batch #XXX does not exist.

Error message Batch #HF0017683 does not exist for material 16888

Any help here? am i missing anything here?

Accepted Solutions (1)

Accepted Solutions (1)

former_member233510
Active Contributor
0 Kudos

Please check that you have this special character in the template.

Answers (2)

Answers (2)

ThangaPrakash
Active Contributor
0 Kudos

Hi,

Please attach the file which you are trying to process, it seems to be a problem in file.

Try to format the file or write a conversion code in the LSMW to remove # character.

JL23
Active Contributor
0 Kudos

it is probably a hidden character in your source file that gets converted into the hash sign in SAP, or even the last character from the field on the left caused by a shift which is based on a line break character within a Excel cell

I would start checking the  Display read data file in detail to see how the source file appears in SAP before it gets converted. The batch input itself does only use the values that it gets from earlier steps.