cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

LSMW - Error BDC_INSERT, Transaction code .. is invalid XD01

Former Member
0 Likes
4,540

Dear all.

I have done the following Steps:

1 - Maintain Object Attributes. Chose the Object type Batch Recording, then created a Record using the name (CLI_PMR). And created the Batch record and then assign the fields name.

2 - Maintain Source Structures – Created the Struture (CLI_PMR1)

3 - Maintain Source Fields – Assign the fields name and length that I used in my program. (CLI_PMR1).

4 - Maintain Structure Relations – Assign the Struture (CLI_PMR1 to CLI_PMR)

5 - Maintain Field Mapping and Conversion Rules – The normal thing in this point.

6 - Specify Files - Specified the Legacy Data, path for the file.

7 - Generate Read Program – Generated the Program.

8 – Read Data – Executed this Step and every thing is correct

9 - Generate Conversion Program – Generated the program

10 - Convert Data – Convert data

11 - Display Converted Data – Every thing is fine, with no errors

12 - Create Batch Input Session- At this the error message appears Error BDC_INSERT, Transaction code .. is invalid time.

At the time we have created other LSMW programs for this T-Code and every thing is OK.

I'm using the T-CODE=XD01

Best Regards

Pedro Miguel Rodrigues

Accepted Solutions (0)

Answers (8)

Answers (8)

mahmoud-darwish
Newcomer
0 Likes

this error becous excel sheet containt line break, so remove first line breake and load agin.

Former Member
0 Likes

This error has nothing to do with the program. The program written is correct, but your load file has a problem.  When you do "display converted data"  you can see where the error is in the file. It is the formatting error. Correct it and load again. This works!

Former Member
0 Likes

Hi!

Check your file. Cells should not contain transfers to a new line. Change the field type to text should help you.

Former Member
0 Likes

Since this post is over ten years old, if it helps him, he has more problems than just fixing this program.

Rob

Former Member
0 Likes

Rob, it's written for future generations.

Former Member
0 Likes

Hi ,

I am fsacing exactly same problem during create BDC session step in LSMW. i HAVE ODNE RECORDING FOR TCODE PA30.

Please let me know how you solved your problem.

Kind Regards,

vtest

Former Member
0 Likes

Hi, I had the same problem in LSMW when generating a batch input for trx IE01. The cause was that there were tab/newline-characters in my text file (some descriptions contained tab-characters). Since I used a tab delimited file, these tabs/newlines in the fields messed up my file.

The excel file contained multiple lines per cell in some description fields. When this was exported to tab delimited text, it contained additional tabs. After checking the contents and removing the tabs/newlines from Excel and performed a new export to txt-file, it was solved.

Best regards,

Jan-Peter Molenaar

SAP EAM Consultant

Former Member
0 Likes

Hi Rob.

The error message that appears is Error BDC_INSERT, Transaction code...

Best Regards

Thanks in advanced

Pedro Miguel Rodrigues

Former Member
0 Likes

I meant - exactly what transaction is in the error message? Please cut and paste it.

Rob

RichHeilman
Developer Advocate
Developer Advocate
0 Likes

Just a guess here. When setting the tcode, are you sure that you are using a 0(zero) and not an O. The tcode is XD(ZERO)1, not XD(O)1. Please check this to make sure.

Regards,

Rich Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Likes

So how did you solved it?

Regards,

Rich Heilman

Former Member
0 Likes

In the initial screen of LSMW where you see all the options(radiobuttons), click on the menu button 'Personal Menu'. In the popup, check the box for 'Display conversion program' and enter.

Now double click on the new radiobutton 'Display Conversion program' that appears. Once you go into the program, look at the code and see if it gives any clue. You can put a breakpoint there and step through it.

Former Member
0 Likes

Hi Max.

Like i said in my Post i have created others LSMW with this transaction and i don't have any problem. Those any one know way this error message appears?

Best regards

Thanks in advanced

Pedro Miguel Rodrigues

Former Member
0 Likes

Whag exactly is the error message? (Cut and paste.)

Rob

Former Member
0 Likes

Hi

I think your batch input is not correctly defined, try to use the program std RFBIDE00 instead of to create a batch program.

Max