Application Development 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: 

Restrict the Entries in Dropdownlist Reason for Rejection VA01/VA02/VA03

former_member227141
Active Participant
0 Kudos
1,363

Hi all,

I have the following requirement: For a few cases depending on some validations the "Reason for Rejection" drop down list  must be limited to do not show the values saved in a tvarv variable.

How can I achieve that by code?

Is there some enhancement I could use?

Is it possible to do it by customizing in IMG>Sales and Distribution>Sales>Sales Documents>Sales Document Header>Define Order Reasons?

Thanks and best regards.

1 ACCEPTED SOLUTION

SwadhinGhatuary
Active Contributor
0 Kudos
416

Hi,

It is not possible .As VBAK-AUGRU field in 4409  screen as a list box .And all the value populated because of value table TVAU, all values are picked.

.



4 REPLIES 4

SwadhinGhatuary
Active Contributor
0 Kudos
417

Hi,

It is not possible .As VBAK-AUGRU field in 4409  screen as a list box .And all the value populated because of value table TVAU, all values are picked.

.



0 Kudos
416

Hi,

  It is not possible to restrict the entries in drop down list reason for rejection. You put validation based on your condition and restrict reason for rejection through Error message.

Regards,

Nilesh

former_member207661
Active Participant
0 Kudos
416

To all those who are still looking for a standard solution for this, SAP has released SAP Note '2477027 - Restriction of values for order reason and rejection reason in dropdown lists' for this.

As per the note, earlier this requirement was not possible, but now we can maintain below 2 tables for Order Reason and Rejection Reason filtering.

This filtering is based on Sales Organization and Sales Document Type:

  • TVAU_AUART_VKO for filtering drop down values in Order Reason
  • TVAG_AUART_VKO for filtering drop down values in Rejection Reason

0 Kudos
416

Hi Shyam,

Thank you so much for sharing this SAP note. This solution also worked for our business requirement as well.

Just only one issue I observed that. It did not create any IMG path in SPRO after note implementation. I have crated Transaction codes as per pre-requisites. But how to link to SPRO ?

  1. VAUP = customizing to maintain the permitted order reasons (IMG path “Sales and Distribution -> Sales -> Sales Documents -> Sales Document Header -> Assign Order Reasons to Sales Document Types and Sales Organizations”).
  2. VAGP = customizing to maintain the permitted rejection reasons (IMG path “Sales and Distribution -> Sales -> Sales Documents -> Sales Document Item -> Assign Rejection Reasons to Sales Document Types and Sales Organizations”).
    Examples

Thanks

Ritesh Parikh