cancel
Showing results for 
Search instead for 
Did you mean: 

SAP SD/ABAP - Sales Order Item Number - VBAP-POSNR change / modify

jhon_jhon
Explorer
0 Kudos
1,001

Hi

I have a requirement to change Line item number (Ex: by default system is assigning is VBAP-POSNR number is 10/20/30....).

My requirement is to change the line item number (VBAP-POSNR) based on certain conditions. (Ex: If POSNR is 10 , I want to change to 11 while crating Sales Order).

Verified VA01 user exists and no luck , Can any one know how to achieve this requirement.

Regards

Jhon

srikanthnalluri
Active Participant
0 Kudos

@ jhon.jhon

Any condition to change the line item other than 'If POSNR is 10'.

Did you check the BADI - BADI_SD_SALES_ITEM

Accepted Solutions (0)

Answers (1)

Answers (1)

Florian
Active Contributor
0 Kudos

Depends on when you have to make the change. If you want to do it while the user is active within the sales order there are a lot exit-points available. HAve a look at xvbap 😉

If you want to do it before savin the order, have a look at save_document_prepare or save_document --> SAPMV45A

When you want to do it afterwards there are the bapi's the way to go. There are a lot of examples here around how to use those.