on 03-27-2013 9:00 AM
Dear All
We all knows that in delivery, the ship to party is taken from the ship to party of item level in the sales order. Issue is user can change the ship to party at sales order item level after delivery creation . but logically it should not be the case . Once DN created user should not be able to edit this field at sale order item level. My requirement is ship to party field should not be editable once the DN created. Please help me know how we can achieve this .
Thanks and Regards
Sachin G.
If the partner function SH is made 'Not modifiable' in the partner determination procedure, then the ship to party will in non-editable mode even after delivery creation.
In order to know the partner determination procedure, check the partner determination procedure assigned to the item category in 'Partner determination assignment folder'. Then change the partner function SH for that partner determination procedure.
Thanks and regards
Deepak.V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Deepak
as for your requirement ,
go to include LV09CF63 and implement enhancement write below logic at line 161 level.
DATA: VBUK TYPE STANDARD TABLE OF VBUK,
VBUP TYPE STANDARD TABLE OF VBUP,
W_LFSTK TYPE VBUK-LFSTK,
W_LFSTA TYPE VBUP-LFSTA.
IF SY-TCODE = 'VA02'.
SELECT SINGLE LFSTA FROM VBUP INTO W_LFSTA
WHERE VBELN = GT_XVBPA-VBELN
AND POSNR = GVS_TC_PARAMETERS-POS.
IF W_LFSTA NE 'A'.
loop at screen.
if screen-name = 'GVS_TC_DATA-REC-PARTNER'.
if GVS_TC_DATA-REC-PARVW = 'WE'.
screen-input = 0.
endif.
ENDIF.
modify screen.
endloop.
ENDIF.
ENDIF.
wrote above coding your requirement will satisfied ,
anything queries give me replay
Hi,
You can set this in PARTNER DETERMINATION PROCEDURE at the Sales document item
in the partner determination procedure, put the indicator Not modifiable for partner function SH, so it will be in non-editable mode and user cannot change it
If you have two or more ship-to parties for one sold to, then you can go with the user exit, i feel it will be difficult to achieve using user exit
regards,
santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sachin,
Check the below thread. This may help you.
https://scn.sap.com/thread/1028669
Regards, Sai Krishna.
Sachin,
Yes, the SH customer number, in the sales order, at line item level can be changed after creation of delivery also after PGI of delivery!
Please ask your client / company, why users are going to the sales order (at line item level, Tab Partners) and changing the customer number of SH, after delivery is created?
This is not done usually by users.
Vemuri,
If you have two or more ship-to parties for one sold to, then you can go with the user exit, i feel it will be difficult to achieve using user exit
This can be an interesting test case.
Could you please test this case and update here.
With "Not modifiable" activated at SH for both partner procedure at header and item level.
Sai,
I think "the easy part" is to point out a program and userexit.
But what should be the logic? (for writing the code)
E.g.
If field "Delivery status", Tab Status, at item level, in the Sales order = Fully delivered, then make field customer with partner function SH = uneditable.
Or should the code compare the Delivery quantity with the Confirmed quantity in Tab Schedule lines, at item level, in the Sales order?
etc.
Dear First ship to party is coming only sold to party function not ship to party .
it is hard coded in sap system.
user can change the ship to party at sales order item level after delivery creation
and once you created sales order if you want to change ship to party it is possible only in sales order level in va02 or va01 but that is also if you created delivery you have to cancel the delivery then only we can change
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Venu.
Thanks for input.
Logically if a DN is created then user should not be able to change the ship to party at sales order item level. Do you mean that if user is changing the SH in SO item level after DN creation is a standard SAP functionality ? i believed its a bug. and what is the way to restrict this?
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.