cancel
Showing results for 
Search instead for 
Did you mean: 

Change item number (posnr) of sales document

Former Member
0 Kudos

Hi Gurus,

I need your help urgently!!

I've migrated several orders to production, but now, I need to change the item number of 10 sales orders.

Example:

Migrated order:

409000830

Item 10 -Material 52

Objective:

409000830

Item 20 - Material 52.

Can you help me?

Thanks a lot,

Vasco

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

My suggestion is that the line item not be changed because many tables are now affected which could cause problems. I suggest that you create a new line item as 20 with same information as the existing line item. Then also be sure to reject the line item that is no longer desired.

This is based on understanding that the orders are maintained manually.

0 Kudos

Hi,

SAP does not support the change of an item line.

It is possible, to allow modifications on the field "posnr" using userexit MV45AFZZ - field modification, but if you then change the number of the item line, SAP processes message ID V1339 "You cannot change the Item number".

I agree with Anabela, the easiest way would be to create a new item line and delete the old one.

Here an example coding to change field modification status via MV45AFZZ (works with all fields, but handle with care!):


FORM userexit_field_modification.
  CASE screen-name.
    WHEN 'VBAP-POSNR'. ' fieldname
      IF sy-tcode = 'VA02'.
        screen-input = 1. ' 1= changes possible, 0 = changes not possible
      ENDIF.
  ENDCASE.
ENDFORM.

regards

Ralf

Answers (0)