Application Development and Automation 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: 
Read only

Runtime Error during table variant run as batch job.

Former Member
0 Likes
1,157

Hi,

I have created a variant of a table using program /1BCDWB/DB****.  Here, '****' is any standard table name.

Now, After that if any one changes the field selection of the table.

Batch job fails with runtime error as "CONNE_IMPORT_WRONG_COMP_LENG". and also while viewing the variant gives error message as

"Variant TEST of program /1BCDWB/DB**** is not the current version"

Now, After that if i am resetting the table fields again, So, Variant can be viewed and batch job can be processed.

But i need permanent solution, As I can not stop users to change the selection parameters of Table.

Thanks And Regards,

Akber Husain

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,022

Thanks to all for your valuable inputs !!!

To create a query rather than table variant run in the batch job seems as a good option and we are planing to go with it.

Closed!!!

Thanks Again.

Akber Husain

5 REPLIES 5
Read only

former_member212005
Active Contributor
0 Likes
1,022

Allowing users to run via SE16 or running the batch job via table variant is not a good approach.

Simply create a SQ01 query for the database table you want e.g. VBAK and then give authorization to users in running this query.

This should be a good solution.

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,022

The program name /1BCDWB/* is generated at runtime based on dynamic selections. Better use the table name and for  your batch job you can create a wrapper program.

Read only

Former Member
0 Likes
1,022

This message was moderated.

Read only

Former Member
0 Likes
1,022

Hi,

The below link may be useful to you.

http://www.stechno.net/sap-notes.html?view=sapnote&id=481183

Regards

Raja

Read only

Former Member
0 Likes
1,023

Thanks to all for your valuable inputs !!!

To create a query rather than table variant run in the batch job seems as a good option and we are planing to go with it.

Closed!!!

Thanks Again.

Akber Husain