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: 

User exit for sales order - schedule lines

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member

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

8 REPLIES 8

bpawanchand
Active Contributor

Former Member
0 Kudos

In the include MV45AFZZ, check USEREXIT_MOVE_FIELD_TO_VBEP for schedule lines.

Regards

Kannaiah

Former Member

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

Former Member
0 Kudos

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

0 Kudos

Dear Byju,

Thanks for your reply. My requirement is to disable the schedule lines.

Thanks and regads

Jijo

0 Kudos

Hi

just unmark 'Availability' field in "Maintain schedule line categories" (VOV6) .

i hope it will work.

Regards

pavan

Former Member
0 Kudos

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

0 Kudos

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