Skip to Content
0

Need BAPI to reject sales order at header level

Jul 05, 2017 at 01:04 PM

116

avatar image
Former Member

Hello,

I have a requirement where i need to reject sales order at header level via BAPI.

i know one BAPI-'BAPI_SALESORDER_CHANGE' but for this we need to pass items also.

is there a way to pass rejection reason at header level and the whole SO is rejected.

Thanks

Mahesh

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

B. Wallagh Jul 05, 2017 at 02:27 PM
2

I'm not 100% sure, but isn't that the only way to set the reason for rejection on header level by setting the rejection reason on all items first?

Please consult your functional consultant on this. he/she might be able to try this manually in VA02. If that works, you can set the rejection on all items and SAP will take care of the rest.

Show 4 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hello,

You can set the rejection at header level or at all item level.

I want to set at header level via BAPI.

0

I am inclined to agree with the answer that has been given. I don't see anything that corresponds to VBAP-ABGRU in the VBAK table and I have checked two system versions because we are working on an upgrade. I see a text that gives a status regarding rejection but doesn't appear to be linked to any header level table.

Regards,

Ryan Crosby

1

It's just a feature of the GUI transaction. What happens behind the scenes it actually rejects all the items. It's merely a convenience for the users. You won't find any BAPI with the same functionality because no such convenience is required for a program.

2

Reason for rejection at Header level??

can you please Re-confirm your query..(I think we are talking about order reason,which Not having any relation with Reason for rejection)

Phanikumar

0
avatar image
Former Member Jul 12, 2017 at 10:45 AM
0

Hi Mahesh ,

Using BAPI it is not possible to directly update rejection in Header .

pl check with your functional team for Mass updation or develop a zreport for the same .

Regards,

Krishna

Share
10 |10000 characters needed characters left characters exceeded