cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible to change requirement type in sales order after saving

yu_xin2
Explorer
0 Kudos

After sales order being saved, I can see the "requirement type" under Procurement tab cannot be changed any more .

Is it standard? Is there any way to change it after saving the sales order?

Accepted Solutions (0)

Answers (1)

Answers (1)

VeselinaPeykova
Active Contributor
0 Kudos

Whether a field (including requirement type) can be modified in a sales order or not, depends on:

  • standard SAP logic
  • custom logic.

The custom logic, e.g. in MV45AFZZ, USEREXIT_FIELD_MODIFICATION can override the standard logic. The thing is, that SAP usually has valid reasons to place certain restrictions not allowing changes to specific fields. If you decide to override the restriction, then it is your responsibility to ensure the consistency and the correctness of the end-to-end process.

As to the standard logic, you can find out why the field for requirement type is not editable after you save the order by following the guide from note 208245 - Availability of fields in sales orders.

The relevant code is not complex

WHEN 'BEDAE'.
      IF xvbup-rfsta CA 'BC'  OR
         xvbup-lfsta CA 'BC'  OR
         xvbup-absta CA 'C'   OR
         xvbapf-vmenge > 0    OR
         vbap-anzsn  >  0     OR
         vbap-prosa  EQ charc OR
         vbap-vkgru  EQ vkgru_dyn_posten OR
         vbap-vkgru  EQ vkgru_dyn_posten_ag OR
         NOT vbap-stlnr IS INITIAL AND vbap-bedae IS INITIAL OR
         vbap-kzvbr NE space AND t180-trtyp EQ charv
                             AND vbapd-updkz NE updkz_new OR
         NOT vbap-kalnr IS INITIAL AND t180-trtyp EQ charv
                             AND vbapd-updkz NE updkz_new.
        screen-input = 0.
      ENDIF.

but even in this case it may be faster just to place a breakpoint on WHEN 'BEDAE'. and debug VA02 for your specific order.