cancel
Showing results for 
Search instead for 
Did you mean: 

Removal of a line item in the order after unblocking in VKM

Former Member
0 Kudos

Hi, everybody!

Help, please, with a problem.

After creation of the order in transactions of VA01, the order it is blocked because of a crediting limit.

But after unblocking in transaction of VKM1, in certain cases, positions from the order are removed. Only those materials which have a podstanovochny code (transaction of VB11-13) are removed, usual materials aren't removed. Removal of a position happens only because of VKM1.

In test system it is impossible to reproduce a problem because I don't know what to repeat that the position was removed.

Colleagues, help please why so occurs?

Accepted Solutions (0)

Answers (2)

Answers (2)

phanikumar_v3
Active Contributor
0 Kudos

You can find the changes in sales order by running the program RVSCD100.

also you track the users doing these alterations.

You can either remove the deletion option for such users with variants(Tcode SHD0)

or make the original sales order into a custom table line item wise and restrict the changes through VA02 in exit MV45AFZZ..(USEREXIT_SAVE_DOCUMENT)

Just small query what you mean by **Only those materials which have a podstanovochny code (transaction of VB11-13) are removed, usual materials aren't remove**

Phanikumar

Former Member
0 Kudos

**Only those materials which have a podstanovochny code (transaction of VB11-13) are removed, usual materials aren't remove**


The remote line item was considered as a subline item.

In case of substitutions 2 lines are created:

Example:

A5776928 – YAX

A5776928 – YAPS

Under a line item of YAPS can be as the main, and the alternative code, everything depends on an inventory in a warehouse, but it is already visible in delivery.

All shipment goes on a code with the YAPS type.

The subline item is removed.

The materials YAX and YAPS, in principle, shall not live independently, these are the interconnected parts.

And it has turned out so that YAX remained in the order, and YAPS was removed.

Code, in case of sales substitutions, always identical in both lines.

I have a question to you:

RVSCD100 program. It can be started in productive system and it will remove nothing, and will just show the report?

What needs to be made by means of MV45AFZZ. (USEREXIT_SAVE_DOCUMENT)? I have not understood what you mean.

Prompt, please.

phanikumar_v3
Active Contributor
0 Kudos

Hope your YAX,YAPS are the copy of standard item categories TAX & TAPS..

My suggestion on reading RVSCD100 program is with this you can find the user wise issue of changing such documents..if needed you can check AUT10 too..later controlling with deletion option for such users with variants..

In the mentioned user exit you can validate the XVBAP structure..

In short-if Y material is need to be always with material X-then take these SOs first into this structure and validate this in VA01/VA02.

we have the same scenario in our client (but we are dealing with free goods but not with material substitution).In seeds industry- Refugea is free for every cotton material.(it is the legal requirement too)

We configured this with free goods with method EXCLUSIVE.

If user intentionally tries to remove the free line item at sales order level & attempt to save-then system will throw an error like below-we done this in Exit as mentioned earlier..

Phanikumar

Lakshmipathi
Active Contributor
0 Kudos

Have a look at OSS note 381954 whether it is related to your issue in which case, you need to carry out coding corrections.

G. Lakshmipathi