cancel
Showing results for 
Search instead for 
Did you mean: 

Rejected Orders

Former Member
0 Kudos

Dear Friends,

We have rejected some orders using the rejection indicator thru VA02

This is done at header level or at individual item level.

Please tell me is there any standard Tcode to view such a list of rejected orders.

Regards.

Dhananjay

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Generally if u want to reject one item from a sales order which contains multiple line item then you have to do it in Line item wise. But if you want to reject whole order at once then you can reject at header.

You can see the list by either of VBAK or VBAP table, Check for values in Field ABGRU ( reason for rejection)

Thanks,

Raja

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks

Former Member
0 Kudos

Hi,

In our project,we are using a dedicated T.Code for this.Of course it is a custom T.Code.

I think in standard no other transaction is available except VA05/VA05N.

We are using an ABAP Query for this.

When I check for the Program in SE93 for the T.Code ZREJECT which is we are using currently,it displays as "AQZZZOTC========REJECTEDSALES=".

I asked my ABAPer.He told that this is an ABAP Query.

Why not you use this?if it is suitable to you.Contact your ABAPer.

I checked this program in SE38.The code is as follows:

("report AQZZZOTC========REJECTEDSALES=.

include /1BCDWB/IQG000000000053DAT.

data %dtab type standard table of /1BCDWB/IQG000000000053 with header line.

data %subrc type sy-subrc.

include /1BCDWB/IQG000000000053SSCR.

include /1BCDWB/IQG000000000053SSCRAT.

start-of-selection.

if %runmode-extr_on <> space.

call function '/1BCDWB/IQG000000000053EXTR'

tables %selopt = %seloptions

%dtab = %dtab

changing %rtmode = %runmode

exceptions no_data = 1

others = 2.

%subrc = sy-subrc.

call function 'RSAQRT_CHECK_EXTR'

exporting extr_subrc = %subrc

tables dtab = %dtab

changing rtmode = %runmode.

endif.

end-of-selection.

if %runmode-show_on <> space.

call function '/1BCDWB/IQG000000000053SHOW'

tables %dtab = %dtab

changing %rtmode = %runmode.

endif.

*----


  • special code for old API and BW extractor calls

*----


form %set_data changing p_lines type i.

import ldata to %dtab from memory id 'AQLISTDATA'.

describe table %dtab lines p_lines.

free memory id 'AQLISTDATA'.

endform.

form %get_data tables p_dtab structure %dtab

using p_first type i

p_last type i.

append lines of %dtab from p_first to p_last to p_dtab.

endform.

form %get_ref_to_table using p_lid type aql_lid

p_ref type ref to data

p_subrc type i.

if p_lid = %iqid-lid.

create data p_ref like %dtab[].

p_subrc = 0.

else.

p_subrc = 4.

endif.

endform.")

Regards,

Krishna.

Lakshmipathi
Active Contributor
0 Kudos

In VA05 itself, you can see "Reason for Rejection".

thanks

G. Lakshmipathi

Former Member
0 Kudos

Dear Lakshmipati,

Thanks..

But do we have a dedicated transaction other than VA05 to find out rejected orders.

(Like we have VA14L to find out orders with delivery block)

Kindly revert.

Regards,

Dhananjay

Former Member
0 Kudos

Dhananjay,

I dont think there is any special t-code for this. anyways as i suggested in my previous post you can get that by table.

Thanks,

Raja