on 05-10-2010 10:37 AM
Hi I have two scnarios where a custom field must be copied :
1)Creating return order WRT invoice
2)Creating return order WRT sales order
In the first case the field is copying and the copy control uses subroutine 953 for ZFA(Invoice)=>ZRE(Return order).
In the second case the field is not copied and the copy control subroutine was 151 for ZOR(Sales order)=>ZRE(return ordre).
To resolve this my fucntional has replaced the subroutine 151 with 953.and now the ssytem is giving some error sales area 102 50 is not allowed (message V1316).
Now my question here is that
1)can the same subroutine be used in both the cases?
2)Does keeping the same subroutine 151 and making some changes in it(copying the field) suffice?
3)Are thses subroutine defined per process(like or=>re) etc..
Awaiting an early repy..
Regards,
Abhi
Hi,
Please see the answers below:
1)can the same subroutine be used in both the cases? No, not always.
2)Does keeping the same subroutine 151 and making some changes in it(copying the field) suffice?
Yes It should. Infact debug 953 & see how the Z field is coming correctly. Copy routine 151 to say 970. Put the logic to bring the Z field in this new routine(970). Then assign this new routine (970) in place of 151
3)Are thses subroutine defined per process(like or=>re) etc..
Yes.. to a large extent
regards
Edited by: Innovation is key on May 10, 2010 1:33 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just copying 953 in the place of 151 will not help. May be 953 is relevant only for invoices and not for order and thats why the error is coming.
First analyse 953 and try to create a routine on the same lines applicable for sales order. Then assign this routine instead of 151. It should work now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello
Please find the replies as below
1) can the same subroutine be used in both the cases?
the routines belong to differnt tables, the first is for invocei to order and uses information from VBRK/VBRP to VBAK/VBAP,
so the data cannot be the same .
2)Does keeping the same subroutine 151 and making some changes in it(copying the field) suffice?
the routine 151 copied to a new one with 9xx, along with chnages similar to the 9xx used for inocie copy should work fine
3)Are thses subroutine defined per process(like or=>re) etc..
yes the routines are as per the process, as differnt access, differnt info flows between the objects
Hopes this helps
Thanks
akash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.