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 while saving a Sales Order

Former Member
0 Likes
849

Hi All,

When i am saving a Sales Order, the system is throwing a Runtime Error.

The ABAP Code in the Runtime Error screen as follows.

select * from (t681-kotab) appending table <cond_tab>

up to 1 rows

where kappl = se_kappl

and kschl = se_kschl

and datbi >= se_date

and datab <= se_date

and (coding_tab).

Till these days, there was no such error while saving a Sales Order.

How to resolve this issue?

Regards

Pavan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
726

Hi,

The below piece of code is trying to get the contents of the table mentioned in T681-KOTAB.


select * from (t681-kotab) appending table <cond_tab>
up to 1 rows
where kappl = se_kappl
and kschl = se_kschl
and datbi >= se_date
and datab <= se_date
and (coding_tab).

The reason could be is someone has screwed up the entries in T681 table. Check that out.

Try to put a break point on this SELECT query and see what the value of T681-KOTAB holds before the SELECT query. Check whether such a table entry exists in DB.

Let me know if you are still stuck up.

If you can send me the ST22 dump of the run time error, i might be able to help you more on this.

Hope this helps.

Thanks,

Balaji

4 REPLIES 4
Read only

former_member188827
Active Contributor
0 Likes
726

select * from t681 appending table <cond_tab>

up to 1 rows

where kappl = se_kappl

and kschl = se_kschl

and datbi >= se_date

and datab <= se_date

and (coding_tab).

if condition_tab has same strucutre as t681, the above code will work..

otherwise, instead of select *, explicitly list field names

Read only

0 Likes
726

I haven't written any ABAP code for VA01 Transaction.

While saving a Sales Order, Runtime error is getting displayed with the ABAP code which is a standard SAP code.

Read only

Former Member
0 Likes
726

Hi,

Follow these steps.

Put the Break point in the select query.

Normally in the field (t681-kotab) there will be A tables or S Tables. For Example A020,A907,S706,S724

u need to give the contents of where conditions to the (t681-kotab) field .. that is data to the A tables.

Something is something or some data is not there .

thats why it is going for Dump.

.

Try & let us knw,

Rewad Points if it is Useful.

Thanks,

Manjunath MS

Read only

Former Member
0 Likes
727

Hi,

The below piece of code is trying to get the contents of the table mentioned in T681-KOTAB.


select * from (t681-kotab) appending table <cond_tab>
up to 1 rows
where kappl = se_kappl
and kschl = se_kschl
and datbi >= se_date
and datab <= se_date
and (coding_tab).

The reason could be is someone has screwed up the entries in T681 table. Check that out.

Try to put a break point on this SELECT query and see what the value of T681-KOTAB holds before the SELECT query. Check whether such a table entry exists in DB.

Let me know if you are still stuck up.

If you can send me the ST22 dump of the run time error, i might be able to help you more on this.

Hope this helps.

Thanks,

Balaji