cancel
Showing results for 
Search instead for 
Did you mean: 

Can you insert item lines into a document ?

former_member221339
Participant
0 Kudos

Hi

I am working on SAP 8.81 and need the ability to insert an item line into a sales order

I have looked through the forums and I don't think it can easily be done.

It's slightly more complicated than usual as there will be bill of materials in the sales order

I know you can insert special lines but I need to insert item lines

The only way I can think of doing it is to delete the lines after I want to insert an item, enter in a new line and then put them back in again

Has anyone any ideas please ?

Regards Andy

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member201110
Active Contributor
0 Kudos

Hi Andy,

Inserting rows is a difficult thing to achieve using the DI API because the field you need to control is VisOrder rather than LineNum but this is read-only in the DI API. If you manually insert a row using the SBO client and check the RDR1 table through SQL before and after the insert you will see that the new row is given the next available LineNum value but that the VisOrder for the new row and all rows below it on the screen have been adjusted.

I can't find a workaround to this so your only option may be to delete all rows below the place you want to insert the new row and add them back again afterwards. Of course, the user could then just open the sales order screen and resort the lines by another column which would change the row order anyway (...users can be like that!)

Kind Regards,

Owen

former_member221339
Participant
0 Kudos

Thanks for trying Owen

It's a bit tricky because there will be boms in the sales order as well

😞

Regards Andy