Vl02n : How to restrict changed in Delivery after TO confirmation

Hi,
Standard behaviour of system is observed as follows.
Delivery created --> TO Create --> No changes in Delivery --> TO Confirmed --> Delivery Item quantity can be increased or Line item/s or delivery itself can be deleted.
Needs to be restriced Delivery Changes , once TO Confirmation is done.
Can you please advice me, how to achive this.
Regards,
Manish Gupta

Hi:
I had a similar trouble in a 46B version, and if I remember well, the system when the TO was confirmed, the system display a warning message, no error message. I achieved display error message with two user-exits.
1. In report MV50AFZ1, in subroutine 'USEREXIT_SAVE_DOCUMENT_PREPARE', you can write this tcode (it verify that the end user that manage deliveries don't delete items in delivery when TO is confirmed by users of warehouse, because they are not the same users).
EHM 280403 (CHEQUEAR ANTES DE GRABAR) / do a check before save
*break-point.
verif si utilizamos sy-uname / check if I must use sy-uname
CHECK sy-tcode = 'VL02N' OR sy-tcode = 'VL02'.
TABLES: ltak.
DATA: BEGIN OF iltap OCCURS 30,
lgnum LIKE ltap-lgnum,
tanum LIKE ltap-tanum,
tapos LIKE ltap-posnr,
posnr LIKE ltap-posnr,
pquit LIKE ltap-pquit,
nlpla LIKE ltap-nlpla,
vorga LIKE ltap-vorga,
nsola LIKE ltap-nsola,
nista LIKE ltap-nista,
END OF iltap.
DATA: linpan TYPE i, "delevery line in dynpro-> PAI (xlips)
lintab TYPE i, "delivery lines in table ->PBO (lips, linelips)
ot LIKE ltak-tanum,
confir LIKE ltak-kquit.
DESCRIBE TABLE ilips LINES linpan.
DESCRIBE TABLE xlips LINES lintab.
*PASO A SELECT SINGLE: ACCESO + RAPIDO
SELECT SINGLE tanum kquit INTO (ot, confir) FROM ltak
WHERE vbeln = xlips-vbeln.
*ENDSELECT.
IF sy-subrc = 0 and confir = 'X'.
SELECT lgnum tanum tapos posnr pquit nlpla vorga nsola nista
INTO CORRESPONDING FIELDS OF TABLE iltap FROM ltap
UP TO lintab ROWS
WHERE lgnum = '151'
AND tanum = ot
AND pquit = 'X'.
*DESCRIBE TABLE ilips LINES linpan.
*DESCRIBE TABLE xlips LINES lintab.
IF lintab > linpan AND linpan > 0.
LOOP AT xlips.
READ TABLE ilips WITH KEY posnr = xlips-posnr
BINARY SEARCH.
IF sy-subrc NE 0. "es la posicion eliminada (item deleted)
READ TABLE iltap WITH KEY nlpla = xlips-vbeln
posnr = xlips-posnr
BINARY SEARCH.
IF sy-subrc = 0
AND iltap-pquit = 'X'
AND iltap-nsola EQ iltap-nista
AND iltap-vorga NE 'ST'
AND iltap-vorga NE 'SL'.
message e027(ZB) WITH ot.
ENDIF.
ENDIF.
ENDLOOP.
VERIFICAR SI SE MANTIENE
ELSEIF lintab < linpan.
message e028(ZB) WITH ot.
ENDIF.
ENDIF. "sy-subrc
2.Enhancement V50PSTAT, FM 'EXIT_SAPLV50P_001' in the include 'ZXV50U07' you can write this tcode (it check that the end user in a delivery with a TO confirmed cannot change the quantity to avoid problems):
INCLUDE ZXV50U07 *
EHM ABRIL 2003 : IMPEDIR Q MODIFIQUEN ENTREGAS CON OT CONFIRMADA
*BREAK-POINT.
CHECK sy-tcode = 'VL02N' OR sy-tcode = 'VL02'.
EHM 020703 (CHEQUEO SY-UCOMM DISTINTO A WABU_T -> CONTAB. SM)
CHECK sy-ucomm NE 'WABU_T'.
FIN VERIF. (Q NO VERIFIQUE A EXPEDICIONES AL IMPRIMIR EL ALBARAN)
TABLES: lips, ltak, ltap.
DATA: BEGIN OF tltap OCCURS 30,
lgnum LIKE ltap-lgnum,
tanum LIKE ltap-tanum,
tapos LIKE ltap-posnr,
posnr LIKE ltap-posnr,
pquit LIKE ltap-pquit,
nlpla LIKE ltap-nlpla,
vorga LIKE ltap-vorga,
nsola LIKE ltap-nsola,
nista LIKE ltap-nista,
END OF tltap.
DATA: ordcar LIKE lips-vbeln,
ocposi LIKE lips-posnr,
occant LIKE lips-lfimg.
DATA: ot LIKE ltak-tanum,
confir LIKE ltak-kquit.
CLEAR: occant, ot, confir.
SELECT lfimg INTO occant FROM lips
WHERE vbeln = is_lips-vbeln
AND posnr = is_lips-posnr.
ENDSELECT.
INCIDE A lkat-vbeln ??
SELECT SINGLE tanum kquit INTO (ot, confir) FROM ltak
WHERE vbeln = is_lips-vbeln.
ENDSELECT.
(SE AÃu2018ADE EL SINGLE PARA HACER MAS RAPIDO EL ACCESO A LTAK)
IF sy-subrc = 0.
SELECT lgnum tanum tapos posnr pquit nlpla vorga nsola nista
FROM ltap
APPENDING CORRESPONDING FIELDS OF TABLE tltap
WHERE lgnum = '151'
AND tanum = ot.
EHM 280403: OJO: SOLO PARA LAS POSICIONES DEL PEDIDO
CONFIRMADAS. LAS DEMAS SE PUEDEN MODIFICAR
VERIFICAR Q NO VIENE LA OT DE MAS DE UNA ENTREGA
READ TABLE tltap WITH KEY nlpla = is_lips-vbeln
posnr = is_lips-posnr
BINARY SEARCH.
IF sy-subrc = 0
AND tltap-pquit = 'X'
AND tltap-nsola EQ tltap-nista
AND tltap-vorga NE 'ST'
AND tltap-vorga NE 'SL'.
IF occant NE is_lips-lfimg.
MESSAGE e025(ZB) WITH ot.
ENDIF.
ENDIF.
ENDIF.
*DATA:
One suggestion: be careful with the performance with the SQL on tables LTAK and LTAP if you have a lot of records in this tables, because you could have an expensive performance of tcodes VL02N, VL02 and so on. You can avoid it with secondary indexes (if you can growth in DB) or archiving data of LTAK, LTAP with object RL_TA (if deliveries are loaded in a reasonable period).
I hope this help you.
Regards.
Eduardo
Edited by: Eduardo Hinojosa on Sep 3, 2009 5:01 PM

Similar Messages

  • Restricting Changes in Delivery after proforma invoice is generated

    Hi All,
    I have a requirement where i would like to restrict certain changes in delivery document for which proforma invoice is created so that the final invoice remains in line with the proforma invoice.
    for. example. change in item quantity, adding another items etc.
    is there any configuration settings for the same?

    Hello,
    When do you create Proforma Invoice? After PGI or before PGI.
    If you are creating Proforma after PGi then there is no issue as Delivery Cannot be changed after PGI.
    If you are issuing Proforma Invoice before PGI then you will have to go for a Z-Development as there is nothing available in SAP Standard to fulfill your requirement.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • How to undo changes in Delivery after goods movement happened

    Dear All,
    I need to undo the manual changes done in delivery note but the goods movement and billing document has been created.
    Advise me regarding this.
    Thanks in advance
    Raghu

    Agreed with Amit. It doesnt make a sense that after doing PGI and billing user can change delivery document. This is standard functionality of SAP to avoid missuses of Sales documents. Like Delivery document you also can't change billing document or delivered items in sales order. For this you need to go reverse your whole sale process e.g Reverse billing VF11 > Reverse PGI VL09 change or delete delivery document VL02N and change or delete sale order VA02

  • HT204053 I used one Apple ID to set up iCloud after iOS 6 was downloaded to my iPhone, now I want to change the Apple ID for iCloud on my iPhone but I'm unable to. How do you change the ID after it's been set up?

    I used one Apple ID to set up iCloud after iOS 6 was downloaded to my iPhone, now I want to change the Apple ID for iCloud on my iPhone but I'm unable to. How do you change the ID after it's been set up?

    See https://discussions.apple.com/message/19218571#19218571.

  • How to block changes in pr  after po creation

    We have set up the system messages (06 76 as error). However still it is possible that the user can change the description or add new line item after  after the release/po creation. How to prevent this.  how to block changes in pr  after po creation
    do i have to create  new system messages if yes then hoe kindly suggest
    Thanks.
    regards

    Dear Goel,
    When setting the message 06076 and 06400 as described in the note 385002            
    to error it is no more possible to create a second purchase order with              
    reference to the purchase requisition.                                              
    See SAP note
    315448     ME21N: Referencing a purchase requisition                                                                               
    Regards
    V V

  • How can I change the country after a massage saying that check the security code

    How can I change the country after a massage saying that check the security code

    Massage?
    Why not ask the masseuse who gave you the massage?

  • Recently I moved from Spain to Australia, how can I change the delivery country of the photo albums?

    Recently i moved from Spain to Australia, how can I change the delivery country of the photo albums?
    I tried to change all my country information in my apple id but when I'm going to pay the photo album in iphoto 11 only can change the addres but not the country.
    thanks.

    iPhoto Menu -> Preferences -> Advanced
    Bottom of the page you can choose your Print Store
    Regards
    TD

  • Production order status was not changed to 'CNF' after final confirmation.

    Hi guru.
    I experienced very special case that production order status was not changed to CNF after final confirmation.
    I did final confirmation and canceled confirmation. (CNF -> REL)
    And I did final confirmation again because of fixing activity quantity.
    the strange thing is that production order status wasn't changed from REL to CNF.
    I did  confirmation again with 0 activity, thereby  I solved this problem
    BUT i don't know why this case happened.
    Please, explain the reason.
    Thanks.

    Hi,
    As per my observation, their is not any change in the status of the order REL with confirmation CNF, instead of this, it has change from CRTD & then to TECO.
       Sequence of the status of the order as below
    1) CRTD MANC NMAT SETC
    2) REL  NMAT SETC - Changes from CRTD to REL after releasing of the order
    3) REL  CNF  PRC  CSER ERTR OPGN SETC -  After confirmation, it updated after the order REL status.
    Rgd,
    Chetan

  • Changes to Delivery after it is sent for Pickup (in EWM)

    Hello Experts,
    here i have a requirement with my client:
    Current Landscape:  ECC 6.0 EHP4, EWM 7.0 (on Separate server)
    Additional data: Implementing HU, RF guided transations
    Scenario:
    on 07/20(July 20)
    Customer create an SO, delivery created in ECC --> replicated to EWM --> Outbound delivery doc created --> WT...WO...created --> assigned to a resource for Pick up on 07/30 (july 30).
    On July 30th, i wanted to change the delivery doc in ECC.
    for the above scenatio, please suggest what are the config changes that i have to make and how the resource allocation is done based on the change in quantities?
    waiting for reply. please let me know if more details are needed
    Thanks
    Venkat

    It is NOT possible to change them in ERP after sent to EWM and picked up. You  have to finish them with 0 quantity in EWM and then re-create if you would like to change them. It goes for Outbound deliveries.
    However the Inbound deliveries can be changed in ERP also after the replication, but only using transaction VL60, with the condition that the delivery in EWM hasnu2019t been processed yet. If you performed already any task, then the change should be rejected (not directly in dialog, but later on automatically).
    One additional information about deleting vs rejecting:
    Deleting deliveries in EWM normally will never really delete them, but only create e.g. a new inbound delivery (PDI) from an inbound delivery notification (IDN). If you want to reject deliveries, use the reject button for PDIs, or decrease the quantities to 0 for PDOs and create a final delivery.

  • How to restrict changing password for user ?

    Hi All experts ,
    We have created users . Users should not change their password without permission of Administrator . How to restrict them by setting Permissions / Authorizations ? 
    Thanks.
    KISHORE SATPUTE

    Hi,
    In "USER MAINTENANCE- SU01" --> in the "logon tab" there are 5 different "user type"
    1. dialog
    2. system
    3. communication
    4. service
    5. reference
    Kindly mention the function and role of all the above mentioned user types specifically and hows is one user type different from another.
    These are as follows:-
    1. Dialogue:-
    For this kind of users:-
    GUI login is possible.
    Initial password and expiration of passowrd are checked.
    Multi GUI logins are checked.
    Usage:- These are used for GUI logins.
    2. System
    For this kind of users:-
    GUI login is not possible.
    Initial password and expiration of passowrd are not checked.
    Usage:- These are used for internal use in system like background jobs.
    3. Communication
    For this kind of users:-
    GUI login is not possible.
    Users are allowed to change password through some software in middle tier.
    Usage:- These are used for login to system through external systems like web application
    4. Service
    For this kind of users:-
    GUI login is possible.
    Initial password and expiration of passowrd are not checked.
    Multiple logins are allowed.
    Users are not allowed to change the password. Only admin can change the password
    Usage:- These are used for anonymous users. This type of users should be given minimum authorization.
    5. Reference
    For this kind of users:-
    GUI login is not ible.
    Initial password and expiration of passowrd are not checked.
    Usage:- These are special kind of users which are used to give authorization to other users.
    Rewads point if helpful
    Thanks
    Pankaj Kumar

  • How to restrict  changes in Tabs: Defaults and Parameters in tcode:  SU3

    Good Morning Everybody.
    Do you know how to restrict End Users can change data stored in Tabs Defaults and Parameters of tcode: SU3.
    I was checking Authorization Objects related this transaction but I did not find a way to fix this issue.
    Thanks for your comments.
    Mauricio Cardozo.
    BASIS Consultant.

    I've been looking into this same question.  I don't think there's any way to protect individual user parameters, which is what we really wanted to do, but it is possible to protect the Parameters tab as a whole while still granting access to the Address and Defaults tabs (if desired).  SU3, which is usually given to all users, gives change access to all three tabs in the User Data, but to make it more fine-grained, as the last person said, take away SU3 and instead grant whatever combination of SU0, SU1, or SU2 makes sense for your organization.  SU0 gives access to the Defaults tab, SU1 to the Address tab, and SU2 to the Parameters tab.
    So, in your case, you would grant SU1 only, so users can change their name or phone number, etc, but not Defaults or Parameters.  They won't even be able to see defaults or parameters if you do this, though.
    I hope this helps.
    --Matt

  • How to block changes of PR after convert into PO

    how to block change/deletion of purchase requisition after convert into purchase order without changing/deleting PO.

    Hi
    Goto customizatin of rellease procedure of p.req, in that select setup procedure with classification  and select release indicator,and select details in that changeability indicator is there in that you will select based on your requirement
       changeble,new release in case of release strategy
    1-cannot be changed
    2-changeble,no new determination of strategy
    3-changeble,new release in case of release strategy
    4-changeble,new release in case of release strategy or value change
    select in the list and save and check your scenario.
    Thanks

  • How to block change of delivery quantity in VLO1N

    The system should not allow the change of delivery quantity in VLO1N, say if in sales order the quantity is 10 & they change in VLO1n as 12

    Hello Prem,
    What I understand from your post is that you want that a delivery document created for a Sales order should not allow the quantity to go beyond the Sales Order Quantity.
    You can do this by going to the following customizing entry.
    First determine the item category relevant to you here:
    LE -> Shipping -> Deliveries -> Define Item Category determination in Deliveries
    Then go to "Define Item Categories for Deliveries". Open the relevant item category. In the field "check overdelivery" Provide value "B" and save.
    Hope this helps.

  • How to restrict change type in CC31

    Hi ,
    I have a new requirement in which I need to restrict change types in txn CC31 (Create ECR).onlya set of people should create a ECR with one change type and another set of ppl with another change type, but I am not able to find any auth object with the field CCART(Change types) to provide these restrictions .
    Is creating a new auth object the only way ? please let me know if there is any other possibility  or any other auth objects which can be used for the same ?
    Thanks,
    Nanda

    Fields of such types (e.g. document types, master data accounts, etc) are often not the same field name that you are looking for in an authorization object, but rather grouped in their master records and the authority-check is against the assigned group value.
    More often than not, if no group value is assigned to a record then no check is made.
    So what you can try to look for is a BEGRU type field of an object in the code and look to see where it is gettings its value from.
    Might be worth a try...
    Cheers,
    Julius

  • How to Restrict adding AR-Delivery connecting to Sales Order

    Good Day Experts,
    I am newbie in SAP Business One, Please me help on this scenario:
    I have created an Series Numbering in Sales Order (SO-BOM) No.17 and a User Define Field (ORDR_DwnPayment) with option w/DP and w/out DP (DP means DownPayment).
    Now i need to restrict adding AR-Delivery that is copied from Sales Order with Series#17 (SO-BOM)  if the UDF is "w/out DP".
    I hope you can understand my english.
    Thank You.
    Richard

    Hi Richard........
    Welcome to SAP Business One Forum.......
    @your Query......
    Please try....
    If @object_type='15' and @transaction_type IN ('A','U')
    BEGIN
    If Exists (Select T0.DocNum from ODLN T0
    Where T0.U_ORDR_DwnPayment = 'w/out DP'
    And T0.DocEntry = @list_of_cols_val_tab_del)
    BEGIN
    Select @error = -1,
    @error_message = 'You can not add Delivery with 'w/out DP' '
    End
    End
    Above is the Validation which you need to run in PostTransnotification......
    This will restrict users to add the delievry if UDF value is equal to  'w/out DP'
    Regards,
    Rahul
    Edited by: RAHUL MOUNDEKAR on Mar 28, 2011 12:21 PM

Maybe you are looking for

  • Validating digital signatures. NEED HELP ASAP!

    I emailed a form to an employee, who created and applied a digital signature to it.  The form was emailed back to me and I received the message 'At least 1 signature requires validating/validation."  I go through the steps to trusting and validating,

  • [STATEMENT] XDO Servlet shutdown complete

    Hi, What is the root cause of this error?? [STATEMENT] XDO Servlet shutdown complete [042511_035257283][][STATEMENT] Total time used: 7953ms for processing XSL-FO [042511_035257799][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Helvetica

  • Alternative for WBS BOM

    hello In standard BOM for PP in T-code eg cs01 I can write alternative. But if I want to create WBS BOM with T-code cs71 I can't see such field for alternative. I checked in help.sap.com that alternative for WBS BOM are not used. I don't know why but

  • Oracle answers pivot table grand total problem

    hi All, I am working with OBI dashboard. I have a problem in creating a pivot table. To make it simple assume I have 3 columns: Sales, Target Sales, and %Diff. I added a total row but the problem is the total for %Diff is actually the average of the

  • How to save contents of JPanel to an image file

    Hi, I am using a JPanel to display some primitive shapes(line, circle,etc.) and I need to save the contents of this panel to disk as an image file (JPEG, bitmap, TIFF, etc.). Have searched jdc but've found no feasible results. I would really apprecia