Current location - Trademark Inquiry Complete Network - Trademark inquiry - Question: How to set up a sales order? MRP can only be run after approval.
Question: How to set up a sales order? MRP can only be run after approval.
My current practice is this, through authority control and enhancement. Permission is divided into permission to modify the rejected status of line items and permission not to modify them. Only the manager level can modify this status. Salespeople can only make orders. After the order is entered, the right to pass judgment will be enhanced. If it is a salesperson, set it directly to "99". So you won't participate in MRP operation. Salesperson is not authorized to modify this status. If modified, enhance the prompt: You have no right to modify the rejected status. The code is as follows: if sy-tcode =' va0 1'. If vbak-auart =' zor'. * If there is no modification right, the default setting is 99 authority-checkobject' z _ vbak _ k3' id' actvt' field' 02'. ifsy-subrec0.vbap-abgru =' 99 '。 endif.endif.ifsy-tcode =' va02 '。 . If VBAK-AUART = 'ZOR'. Data: Abruzzi likes VBAP- Abruzzi. Data: the beginning of I_vbap 1 appears in 125. Includes the structure vbapvb. Data: I_vbap65438+ 0 ends. I _ vbap 1[]= xbap[]。 Loop at I_VBAP 1 Clear: Abu Ghraib. * judge whether the selection list abgru enters abgru from vbap, where vbeln = i _ vbap 1-vbeln and POSNR = i _ vbap 1-posnr. If abgrui _ vbap 1-abgru.auth is modified, Ority-checkobject 'z _. Ifsy-subrec0.message "You have no right to modify the rejection status" Type "e". endif . endif . end loop . endif . endif .