cancel
Showing results for 
Search instead for 
Did you mean: 

Need BAPI to reject sales order at header level

mahesh_jagnani
Participant

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member259807
Active Participant

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.

mahesh_jagnani
Participant
0 Kudos

Hello,

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

I want to set at header level via BAPI.

Ryan-Crosby
Active Contributor

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

Jelena
Active Contributor

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.

phanikumar_v3
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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