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: 

Populate Route in VA01

Former Member
0 Kudos

Hi ,

I have reqmt to populate route as 1001 when sold-party is c25 and plant is 0920

then same as for route is 0002 when sold-to party is c25 and plant is 0910.

I found an exit EXIT_SAPL0VRF_001 it is getting triggered but when i create a new sales order with plant 0920 the route is not displaying 1001 its still giving 0002 the default.

Here is my code.

If I_vbap-KUNNR = 'C025_63' and i_vbap-kunag = '142054'.

if i_vbap-werks = '0920' and i_likp-vstel = '0925'.

e_route = '100001'.

elseif i_vbap-werks = '0910'.

e_route = '000002'.

pls suggets how can automatically provide the value of route as 10001 when plant is 0920.

Any bug in code , suggest.

Thanks.

1 REPLY 1

Former Member
0 Kudos

answerd