Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Transaction 00000001: transaction code not defined in Table T160 Message no. ME528

0 Kudos

Dear Expert,

I am copy paste abap source code from below source.

Create and mass update of purchase info records from an input excel file.

But, when i run it there is an error:

"Transaction 00000001: transaction code not defined in Table T160 Message no. ME528"

Any idea why the transaction code is 00000001?

Best regards.

9 REPLIES 9

JL23
Active Contributor
0 Kudos

Can you show the field list of the failed transaction from SM35?

0 Kudos

Hi Jurgen,

Thanks for quick reply.

Here the result of transaction in SM35.

Best regards.

0 Kudos

This is the log - I asked for the transaction detail in the session.

Also the log says that there is no transaction and no error, when and where did you see the error about which you talked in your question

0 Kudos

Hi Jurgen,

Is it like this?

The error comes up when i executed the Abap program after a session was created.

Best regards.

JL23
Active Contributor
0 Kudos

you have no transaction in the session. And no transaction means you have no fields, and without fields you have no value, just blanks, in any field.

And there is no blank entry in table T160, hence you get the error.

But forget about this specific error with table T160, care about your recording in general, as it looks as if you have no fields in your recording or at least you did not fill them with values in your program.

0 Kudos

Hi Jurgen,

Constant parameter already defined for the tcode (ME11).

But, the these tcode does not adopted by the program.

Best regards.

JL23
Active Contributor
0 Kudos

You copied a program from a 2011 wiki: https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=243630173

If you are not a programmer then you should not really copy code into your system without understanding it, and if you are a programmer then you should be able to debug the code to know which statements are processed and where it leaves without writing a record.

There could be countless reasons. Of course will the highlighted constant go to the field, but if the system was not able to read qualified data from your source file then it may exit the coding without writing a transaction.

2011 is almost 6 years ago, many things changed since then, e.g. the file format and extension of MS Excel.

Are you certain that your data file was properly read in form UPLOAD_EXCEL_IT ? That the internal table t_file has valid records?

0 Kudos

Hi Jurgen,

Yes, our data file was properly read.

Here the result in t_file (internal table)

But, somehow tcode ME11 not adopted into PERFORM create_inforec

Best regards.

JL23
Active Contributor
0 Kudos

now debug further to see what it does in the form create_inforec.

In this form it actually starts reading your source file. see if that works out or if it fails,

see if open_dataset has then some success or if it fails because of missing authorization.

see if there are values transferred in the statement MOVE-CORRESPONDING <fs_wa> TO x_eine.

It is not just a missing ME11, it is missing the complete set of data in your batch input, your batch input session is empty.