07-27-2010 8:36 AM
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.
08-09-2010 12:16 PM