08-19-2008 6:45 AM
Dear All,
I have a requirement to make user exit in sales order the schedule lines , the quantity and date should not be changed and it should be granted for authorized users only.
I came to know USEREXIT_CHANGE_SALES_ORDER is the user exit for this.
Anyone can help into ?
Thanks and regards
Jijo
08-19-2008 6:50 AM
Dear Jijo
These are the following exits name for sales order change
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
Now go to transaction SMOD and check the Function Modules associated with these exits
what i feel is SDTRM001 may solve your problem .
Regards
Hitesh
08-19-2008 6:47 AM
08-19-2008 6:47 AM
In the include MV45AFZZ, check USEREXIT_MOVE_FIELD_TO_VBEP for schedule lines.
Regards
Kannaiah
08-19-2008 6:50 AM
Dear Jijo
These are the following exits name for sales order change
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
Now go to transaction SMOD and check the Function Modules associated with these exits
what i feel is SDTRM001 may solve your problem .
Regards
Hitesh
08-19-2008 6:55 AM
Hi Jijo,
First option is always by using authorisations to prevent users from accessing t-codes for creation/change..but if we want to prevent users from changing only specific details on a screen we need to check alternative solutions
Please check in include MV45AFZZ if any user exit suits the requirement.The exits like USEREXIT_MOVE_FIELD_TO_* are triggered when we press enter on the sales screen and checks can be written here OR on save FORM USEREXIT_SAVE_DOCUMENT we can prevent the user from saving the final changes
Hope it helps
Regards
Byju
08-19-2008 7:47 AM
Dear Byju,
Thanks for your reply. My requirement is to disable the schedule lines.
Thanks and regads
Jijo
08-19-2008 7:52 AM
Hi
just unmark 'Availability' field in "Maintain schedule line categories" (VOV6) .
i hope it will work.
Regards
pavan
08-19-2008 7:53 AM
Jijo
Best way I could think of is, create the transaction variant using SHD0. Link it to the SAP Transaction. (For all users)
Create another transaction variant, which will allow only authorized users to modify it. Assign it to Z-Transaction with the required authorization rule. Let the authorized users know about this alternative transaction.
Thanks
Amol Lohade
08-19-2008 11:42 AM
Dear All,
Thank you all for your replies.
I have solved that issue, but i don't know is it the correct solution or not !
I inserted code for checking screen fields and prevent editing the fields by user (screen-input = 0),
in include MV45AFZZ and FM USEREXIT_FIELD_MODIFICATION.
Later I'll create auth object for the same and check auth for enabling screen fields.
Thanks and regards
Jijo