cancel
Showing results for 
Search instead for 
Did you mean: 

Delete a SO line before saving the SO

Former Member
0 Kudos

Hi SD experts,

I have a requirement where: If user tries to enter a new line in an SO, with a material/plant combination which already exists for that SO in a different line, then this new line should be deleted and the quantity should be added to that already existing line. Can this be acheived?

We are already using the exit: userexit_move_field_to_vbap to change the POSNR, so tried to add it in this, but the problem is we do not have XVBAP filled in this exit.

Regards...

Accepted Solutions (0)

Answers (3)

Answers (3)

Manoj_Mahajan78
Active Contributor
0 Kudos

Hi...

Use.MV45ATZZ

But you will ahve to logic to ABAer..

REWARD IF U FINDS THIS AS USEFUL...

Regds

MM

Former Member
0 Kudos

Hi,

Try with using the one of the below User Exits:

User exits in the SD orders. These are program names (SE38):

MV45ATZZ

For entering metadata for sales document processing. User-specific

metadata must start with "ZZ".

MV45AOZZ

For entering additional installation-specific modules for sales

document processing which are called up by the screen and run under

PBO (Process Before Output) prior to output of the screen. The

modules must start with "ZZ".

MV45AIZZ

For entering additional installation-specific modules for sales

document processing. These are called up by the screen and run under

PAI (Process after Input) after data input (for example, data

validation). The User exits in the SD orders. These are program names (SE38):

MV45ATZZ

For entering metadata for sales document processing. User-specific

metadata must start with "ZZ".

MV45AOZZ

For entering additional installation-specific modules for sales

document processing which are called up by the screen and run under

PBO (Process before Output) prior to output of the screen. The

modules must start with "ZZ".

MV45AIZZ

For entering additional installation-specific modules for sales

document processing. These are called up by the screen and run under

PAI (Process after Input) after data input (for example, data

validation). The modules must start with "ZZ".

MV45AFZZ and MV45EFZ1

for entering installation-specific FORM routines and for using user

exits, which may be required and can be used if necessary. These

program components are called up by the modules in MV45AOZZ or

MV45AIZZ. e modules must start with "ZZ".

MV45AFZZ and MV45EFZ1

for entering installation-specific FORM routines and for using user

exits, which may be required and can be used if necessary. These

program components are called up by the modules in MV45AOZZ or

MV45AIZZ.

Please take your ABAPERs help in this regard.

Please Reward If Really Helpful,

Thanks and Regards,

Sateesh.Kandula

Former Member
0 Kudos

Why do u want to delete the repetitive line item, when your ABAPer can put the logic that they should add up the quantity automatically when you save the Order as this functionality is attained by logic.

Reward Points if it helps,

Regards,

N

Former Member
0 Kudos

thats exactly my question, where should he put the logic to delete the line item and how? and also to add the qty.