Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Delete position from purchase requisition

maria_merino
Active Participant
0 Likes
1,577

Hi experts,

I have an issue related to third-party sales order and purchase requistion.

When the user creates a third-party sales order (item type ZTAB or ZTAS) a purchase requisition is automatically created. Then the user creates a new purchase order using this purchase requisition.

The problem is when they modify or delete items in the sales order, i.e, the user changes ZTAB item to ZTAS and saves again the sales order. In that case, in the purchase requisition, the first position 10 is deleted (marked as deleted) and there is a new position 20 for the ZTAS sales order item. When the user creates de purchase order whith this purchase requisition, the first position is not 10 but 20. And the consultan wants the position to be 10.

I think this is SAP standard behaviour and it' s not possible to be changed, but i may be wrong..

Any idea ?

Thanks in advance !!

María

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,409

It is a part of key field and surely it is standard behaviour cannot be modified.....

Hi experts,

I have an issue related to third-party sales order and purchase requistion.

When the user creates a third-party sales order (item type ZTAB or ZTAS) a purchase requisition is automatically created. Then the user creates a new purchase order using this purchase requisition.

The problem is when they modify or delete items in the sales order, i.e, the user changes ZTAB item to ZTAS and saves again the sales order. In that case, in the purchase requisition, the first position 10 is deleted (marked as deleted) and there is a new position 20 for the ZTAS sales order item. When the user creates de purchase order whith this purchase requisition, the first position is not 10 but 20. And the consultan wants the position to be 10.

I think this is SAP standard behaviour and it' s not possible to be changed, but i may be wrong..

Any idea ?

Thanks in advance !!

María

8 REPLIES 8
Read only

Former Member
0 Likes
1,410

It is a part of key field and surely it is standard behaviour cannot be modified.....

Read only

0 Likes
1,409

In other client (I can't connect to it so I can't see how it is configured) it works as they want, if a sales order position is modified, then in the purchase requisition the item is deleted and the new position has the correct number. But I don't know how can I do that..

Read only

0 Likes
1,409

As I told... its a key field... if the insert happens first then the delete happens then it will come as 20 .. but if delete happens first then insert it will come as 10.

Read only

0 Likes
1,409

and it's not possible to delete this purchase requisition and create a new one whenever there is a change ?

Read only

0 Likes
1,409

As you mentioned it is marked for deletion.... if you want to show the functional take a marked entry and try to insert with the same line item outside in a dummy program.... as per my understanding this entry needs to be deleted and not marked for deletion.

In that case it will give item 10 for the new item.

So I recommend you to check with user exit EXIT_SAPFV45E_002 in Include LXVVAU16 (program SAPLXVVA).

It can help you.

Read only

0 Likes
1,409

Thanks a lot. I took a look to that user exit before posting here but I don't know what should I do there. I don't find anything related to it in the forums so I'm quite lost...

Read only

0 Likes
1,409

This message was moderated.

Read only

0 Likes
1,409

Yes, I've sent you an invitation from my gmail.