Skip to Content
0
Sep 14, 2023 at 10:51 AM

Sales order items: Maintain item text when item postion category is changed

60 Views Last edit Sep 14, 2023 at 11:01 AM 4 rev

Hello Team,

I could like to maintain text positions when in a sales order item the position category is changed to a diferent one. System mantain this texts when same text type exists for the new item position type.

In my case, when position category is changed in an item, I want to copy the content of one of its text types to a diferent text type in the new position category .

In my system I have diferent position types with diferent text type associated.

SalesOrderType - ReturnPos.Category - TextGroup(TXTGR) - TextType(VBBP)

ZRE - ZF1 - 80 - 0002 (Position note)
ZRE - ZF1 - 80 - ZZF1 (description of the bad conditions)
ZRE - ZE1 - 79 - 0002 (Position note)
ZRE - ZE1 - 79 - ZE01 (description of anomaly)
ZRE - ZE1 - 79 - ZI00 - plummet number
ZRE - ZF2 - 81 - 0002 (Position note)
ZRE - ZF2 - 81 - ZZF2 - Descrip. deterioro transporte

If I change a sales item category from ZF1 to position category ZE1, I value on text type 0002 is automatically copied to text type 0002 of the new position type ZE1. But I could like also to maintain the value for text type ZZF1 for ZF1 to item type ZE1 and text type ZE01.

And same if I change to position category to ZF2, I could to translate the value on text type ZZF1 to position category ZZF2.

I checked if this can be by customizing, but it seems that is not posible.

I also check ABAP code an i think that I should insert my changes on FV45PFAP_VBAP_FUELLEN_TEXTE, form VBAP_FUELLEN_TEXTE. Is it that possible to do? Anyone have any advise to me? I am so lost about how to do that.

translate-text-value.jpg

Thanks in advance.

María

Attachments