Modify Batches Quantities in VL02n

Hi folks,
when I subtract a quantity in a batch item to a lower quantity, the difference is stored in 'Open Qty', then when I have to change manually this amount to zero to save the document correctly. I want to do it AUTOMATICALLY.
Can anybody help me?
Many thx,
Antonio.
I try with :
V50PSTAT -> EXIT_SAPLV50P_001
User exit MV50AFZ1, MV50AFZ2 and MV50AFZZ
and BADI change_delivery_item in LE_SHP_DELIVERY_PROC

USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Transaction Code - VL02N                    Change Outbound Delivery
Exit Name           Description
V02V0001            Sales area determination for stock transport order
V02V0002            User exit for storage location determination
V02V0003            User exit for gate + matl staging area determination (headr)
V02V0004            User Exit for Staging Area Determination (Item)
V50PSTAT            Delivery: Item Status Calculation
V50Q0001            Delivery Monitor: User Exits for Filling Display Fields
V50R0001            Collective processing for delivery creation
V50R0002            Collective processing for delivery creation
V50R0004            Calculation of Stock for POs for Shipping Due Date List
V50S0001            User Exits for Delivery Processing
V53C0001            Rough workload calculation in time per item
V53C0002            W&S: RWE enhancement - shipping material type/time slot
V53W0001            User exits for creating picking waves
VMDE0001            Shipping Interface: Error Handling - Inbound IDoc
VMDE0002            Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0003            Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0004            Shipping Interface: Message SDPACK (Packing, Inbound)
No of Exits:         17
Rewards if useful.........
Minal

Similar Messages

  • Modify batch in EDI delvry03

    Hi all,
    we are using EDI with an external warehouse. We send deliveries by a SHPORD idoc to the warehouse that replies with an SHPCON with the PGI indicator in the E1EDL18 segment. I also indicate the batch they should pick and post for the good issue.
    But sometimes the external warehouse may decide to post the good issue with a different batch. How they can replies this information to us?
    Thanks
    Skandios

    Hi Fabio,
    I am afraid you can only achieve your goal by using a goods issue (in source warehouse) followed by a goods receipt (in destination warehouse). Stock transfer can only transfer the original batch without modifying batch number.
    Thanks,
    Gordon

  • Full batch quantities selected in batch determination in process orders

    In batch determination of a process order, how can you require that only full batch quantities be selected?  I do have selected multiple batch splits.  But would rather it pick full batch sizes up to the requirement quantity.

    Dear,
    full batch sizes up to the requirement quantity
    What it mean?Up to my understanding you want to restrict multiple Batch Determination..Correct me if I Wrong.
    If  yes then
    In Batch Determination Strategy (COB1) set No. Batch Split allowed up to 1 only..
    Regards,
    Dhaval

  • I need available batch quantities

    Hi,
    I need help to compose this query below:
    When there is a goods receipt (PO) the system should send a message to user about the items ready to release to fulfill open quantities. The problem comes from batch numbers as we use them at every item. I need available batch quantities that may cover open quantities of an order (pick & pack manager).
    Thanks for any help.

    Hi, I did the query with the tables you suggested to compile the list of buyers' orders that contain material not currently on stock. This is unfortunately unacceptably slow. Do you have any idea how to speed up this query a bit? 40 lines are checked in 43 seconds.
    Thanks
    USE [u2026]
    GO
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE FUNCTION [dbo].[functionName] (@PDocNum int, @PItemCode as nvarchar(20))
    RETURNS varchar(50)
    AS
    BEGIN
         DECLARE @ResultVar  varchar(50)
         select top 1 @ResultVar =  BaseNum from IBT1 where ItemCode=@PItemCode and BaseNum =@PDocNum  and basetype = 17
         RETURN @ResultVar
    END
    select top 20 t1.DocNum, t0.ItemCode
    from RDR1 t0 left join ORDR t1 on t0.DocEntry = t1.DocEntry
    where  t0.LineStatus ='O' and dbo.functionName(t1.DocNum, t0.ItemCode) is null
    select top 20 t1.DocNum, t0.ItemCode
    from RDR1 t0 left join ORDR t1 on t0.DocEntry = t1.DocEntry
    where  t0.LineStatus ='O' and dbo.functionName(t1.DocNum, t0.ItemCode) is null

  • User-exit wich modify batch number in vl31n

    Hi,
    I have another question.
    What is user-exit wich modify batch number in vl31n transaction ?
    Regards,
    Greg.

    Hi
    Find the available exits with the following program:::
    *& Report  ZFINDUSEREXIT
    report  zfinduserexit.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir where pname = tstc-pgmna.
    select single * from enlfdir where funcname =
    tfdir-funcname.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name eq enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    select * from tadir into table jtab
    where pgmid = 'R3TR'
    and object = 'SMOD'
    and devclass = v_devclass.
    select single * from tstct where sprsl eq sy-langu and
    tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    write:/(95) sy-uline.
    loop at jtab.
    select single * from modsapt
    where sprsl = sy-langu and
    name = jtab-obj_name.
    format color col_normal intensified off.
    write:/1 sy-vline,
    2 jtab-obj_name hotspot on,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    execute this code.
    <b>type the transaction. u will get the user exits</b>
    If there are no available user exits you could go for badi's.
    To search for a badi, go to se 24 display class cl_exithandler. double click on method get_instance, get a break point on case statement. execute and start the required transaction in new session. look for variable exit_name. It would show the available badi's.
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • Item category not defined in batch split in vl02n

    HI GUrus,
    cna anybody please helpe me with this. We have to send 3 differnt batches of parts to the vendor via returns PO. when i go to vl02n and click on batch split to send out batch A - 5 EA, Batch B - 5 ea and Batch C - 5 ea. the system is throwing eerror messages like item category not defined. please help me with this
    thanks
    anusha

    I can't understand what are you doing...
    1. You already asked this question - it was answered
    2. Link is pasted in my previous message.
    Please read your previous question (that was the same) - please read the answer too. That's all.

  • How to modify Batch details

    I i need to modify the Attribute value of an Batch.
    Does the DI allows this ? 
    tks

    Of course.
    Menu history : Inventory / Inventory reports / Batch Number Transaction report
    Fill criteria, throw transaction report list you can access to the existing batch. Show the batch details.
    The SQL table used is OIBT. I need to update a filed with the DI.
    Is it possible?
    Thanks

  • F4 help for the batch field in VL02N transaction

    We have upgraded our system from 4.6 to ecc 6.0 .In 4.6 the f4 help for the batch had " Batch selection via plant/Material/Storage location/Batch " which is not there in ECC 6.0.
    Please tell us the procedure to add in the existing  search help H_MCHA in ECC 6.0
    Thanks
    Aruna

    Hi Aruna.
      Create ur own search help using se11 tcode for required fields.
      Thanks & Regards,
    Kiran.
    Plz give rewards if and only if it is helpfull.

  • Modifying batch characteristics value

    Dear Experts,
    We have created batch characteristics named 'POTENCY','LOD','ASSAY'.
    Now the value of POTENCY is calculated based on the formula, that is LOD * ASSAY. There are chances that the value is sometimes calculated more than 100%. Now I want to put a restriction that if the value increases more than 100 than the value of POTENCY should be automatically be 100.
    What should I do to resolve this issue.
    NOTE - POINTS WILL BE REWARDED.......

    Hello,
    You can write a specific FM called by the configurator (procedure which call a user FM). Input are your LOD andd ASSAY, output is POTENCY. Inside you can write your formula.
    Parameters are given by std tables.
    This is sample :
    FUNCTION zsca_calcul.
    *"  IMPORTING
    *"     VALUE(GLOBALS) TYPE  CUOV_00
    *"  TABLES
    *"      MATCH STRUCTURE  CUOV_01
    *"      QUERY STRUCTURE  CUOV_01
    *"  EXCEPTIONS
    *"      FAIL
    *"      INTERNAL_ERROR
    DATA : w_met_cmin_r  LIKE cuov_01-atflv.
      CLEAR : w_matnr_paracheve, w_instance .
      BREAK-POINT.
    lecture des données en entrée dans la table query
      LOOP AT query WHERE atcio = 'I'.   "input parameter
    vérification type num
        IF query-atfor NE 'CHAR'.
         MESSAGE ID 'ZSCA_CONFIGURATEUR' TYPE 'W' NUMBER '000' RAISING fail
        ENDIF.
        CASE query-varnam.
          WHEN  'MET_NUMART_MLAZ'. ' my single input characteristic
            w_matnr_paracheve = query-atwrt.
            PERFORM lire_mara.  ' process the input parameter
            PERFORM lire_carac.
          WHEN OTHERS..
         MESSAGE ID 'ZSCA_CONFIGURATEUR' TYPE 'W' NUMBER '000' RAISING fail.
        ENDCASE.
      ENDLOOP.
    update of the output characteristic MET_CODEMAT (it is numeric and contains value 9
      READ TABLE query WITH KEY varnam = 'MET_CODEMAT'.
      match = query.
      match-atfor = 'NUM'.
      match-atflv = 9.
      APPEND match.
    ENDFUNCTION.
    Regards.

  • Modify Batch Sequence to generate two reports per UUT with different names.

    I have a special situation for the batch model.
    Each UUT consist of two separate products that must be tested as a single unit.
    I can run each UUT and generate a test report for each.  - aka. The standard use case works great.
    However we are keeping records using this method. So I need a separate copy with a different name for each run.
    The idea behind this is that we might have a running history for each half of the UUT. Since the two halves will probably never meet again.
    I have looked at the BatchModel.seq and read some of the documentation, however I am having a hard time figuring out what is going on.
    I assume the Highlighted Items above are where the UUT Reports are generated. I do not however know the mechanism for giving them the names from the Report Options->Report File Pathname menu or how to change it between those points in time. Also is there any tricks to getting duplicate Report with a diffrent path put into this setup.
    Any links to relevant information would be useful. Thanks
    Solved!
    Go to Solution.

    Just copy those two steps and between them and the copies have another step that is just a Statement.  In there you can change the report path by setting parameters.TestSocket.ReportFilePath to the new path.
    Ideally what you would do is have the client set it by using a callback.  So your code would look like this:
    Write UUT Report
    Write UUT Report (on the fly)
    Set Report Path Callback (override in client OR statement step)
    Write UUT Report
    Write UUT Report (on the fly)
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • VL02N Batch INPUT, change field LFIMG

    HI gurus,
    On a selection screen i have those:
    parameters: p_vbeln
    select-options: s_posnr
    parameter: p_lfimg
    I did a BATCH input on VL02N on a delivery that has 2 items. When i'm trying to change the delivery quantity using the parameters and the select options on the selection screen i can't modify the field LFIMG with the value of parameter p_lfimg.
    PERFORM bdc_dynpro      USING 'SAPMV50A' '4004'.
      PERFORM bdc_field       USING 'BDC_CURSOR' 'LIKP-VBELN'.
      PERFORM bdc_field       USING 'BDC_OKCODE' '=ENT2_T'.
      PERFORM bdc_field       USING 'LIKP-VBELN'  <b>wa_lips-vbeln. </b>  "aici
      PERFORM bdc_dynpro      USING 'SAPMV50A' '1000'.
      PERFORM bdc_field       USING 'BDC_OKCODE'  '=SICH_T'.
    PERFORM bdc_field       USING 'LIPS-POSNR'  wa_lips-posnr.
    PERFORM bdc_field       USING 'BDC_CURSOR' <b>'LIPSD-G_LFIMG(01)'.</b>
      PERFORM bdc_field       USING 'LIPSD-G_LFIMG(01)' p_lfimg.  "aici
    THE PROBLEM is that vl02N modifies only the field 01 , although i want to modify the quantity for the position posnr that i've selected in select-options. How can i tell SAP to go and modify delivery quantity for the position that i;ve selected in select-options?
    Pls help.

    Previous answer was copy pasted from LSMW loading multiple structured records..

  • B1 Error with Item Batches and Delivery notes generation

    Hi Experts
    I am getting the following error
    SAPB1 error: (-10) [DLN1.WhsCode][line: 0] , 'The selected quantity of batch/serial numbers is greater than the open quantity.'
    When I try to generate a Delivery note based on information provided in a EDI file
    The EDI file contains item code, quantity, batches, batch quantities. I am able to generate the delivery however in certain instances I get the above error message.
    I am using IBOLT software to import the sales information into a delivery note in SAP.
    I am using SAP B1 2007
    Thanks
    Anthony Mendes

    Dear Mr Mendes,
    Obviously there is an error related to the warehouse on the first line of the document. Considering the error message I reckon that the information imported refer to a warehouse were there is not enough qty in stock and with batches.
    I would recommend to test the issue without using the add on and see if you can add the missing batches through the application (inventory - item management - batches - complete mode).
    If you can it means that the issue relates to the add on and therefore something must be changed in its code.
    If you have an issue in the application, please run the select query related to batches that you can find in note n. 1250867 and if that query retrieves results, please log a message.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • DELVRY01 via IDoc with batch split

    Hi Experts!
    Process:
    -a supplier sends delivery information via EDI to us
    -the supplier cannot do a batch split, so he sends us the delivery like that
    Delivery (delivery order, material number, ...)
    |
    |-Pos 1
    |    |
    |    |-box 1 (batchnumber)
    |    |-box 2 (batchnumber)
    |    |-box 3 (batchnumber)
    |    |-box 4 (batchnumber)
    |
    |
    |-Pos 2
    |    |
    |    |-box 5 (batchnumber)
    |    |-box 6 (batchnumber)
    |    |-box 7 (batchnumber)
    |    |-box 8 (batchnumber)
    |
    |
    Technical infos at our side (customer)
    -IDoc typeDESADV
    -message type: DELVRY01
    -FM which perform the incoming IDoc: IDOC_INPUT_DESADV1
    Problem:
    How can I get the structure above into a IDoc? The problem is that in DELVRY01 (also DELVRY02 and -03, in R/3 4.7 and ERP6.0) I only can insert the batch number once per position of a delivery!
    So I try to use the described E1EDL19 segment with control qualifier BAS. I also generated lower positions with the flag HIPOS in E1EDL24, but it doesn't work. The IDoc is processed correctly without errors but when I look into the delivery (via Tcode: VL32N or MIGO) I see just main items - three positions (in case I had insert one main item with two lower items)!!
    SAP Documentation for delivery
    Does anybody has a hint for me how should I use the DELVRY01 type ?
    regards,
    Steffen Fröhlich

    Steffen -
    I have a similar problem and was wondering if the discoveries you made would fall in that space , currently when we are sending the 856(Advanced shipping notification's ) for batch split items the standard SAP functionality is to put a "0" qty at LGMNG (actual delivered qty field)and populate the various batch quantities at the sub level. Currently the edi mapping is such that only the LGMNG is mapped. In the scenario of batch split items we are sending back "0" qty eventhough they have a valid qty ! any idea how to resolve this ?
    would this require a custom code to add a new field to cumulative the batch splits ?
    Is there another standard field that edi can map to pass this information?
    Is there std edi mapping rules for this scenario?

  • Cannot update batch header MIGO GR in MB_DOCUMENT_BADI

    I am trying to update next inspection date via MIGO when Goods Receipting a production order which is held in the batch header and in a classification we have set up. I have used function modules to try and perform the update.
    I have used both 'VB_UPDATE_BATCH' and QEVA_BATCH_UPDATE both by themselves and in an update task to update field QNDAT. (1st one updating MCHA and MCH1 the second one to update MCHA).
    I had the code before in POST_DOCUMENT of BADI MB_MIGO_BADI and this made no difference either. Sometimes it updates if I cancel the material document and redo the goods receipt with the same production number but this is very inconsistent. I need this to be done when I am posting the goods receipt.
    Does anyone have any ideas as I am at the end of my tether with this one?
    Many thanks
    Regards
    Larissa Maryniuk

    i did not get total req .
    but i came to know that u want to update batch.
    rt .use this i did in this.
    MB_MIGO_BADI
    use this method  LINE_MODIFY
    where u can modify batch field.
    and if u want to modify batch characteristics
    use
    MBCFC004
    in this
    EXIT_SAPMM07M_004
    if nay clarification plz reply.

  • Idoc creation debug I ha /   VL02n delevery

    Hello ,
    I am working on  Z transaction   that picks the best carrier after creration of the deliveryand shipement.
    This transaction is related with standard  SAP transaction  that creates idoc and send it to customer .
    Some of fields  in data segment are not populated correctly.
    When I look in delevery > Header >  Extras> delevery output>
    I can see that idoc is created
    "Processing log for program RSNASTED routine EDI_PROCESSING
      IDoc '0000000034617883' added"
    But when I set up external break points in RSNASTED  > EDI_PROCESSING.
    I cannot reached the point when the idoc data segment is created .
    Break points are external and system & uupdate debuging are activated.
    I know that Z transaction is  creatin batch input  for Vl02n .
    Do you know some user exit where idoc is populated with data or
    some other vay to get to  idoc creation in debugger .
    Thanks
    Krsto

    Hello ,
    I am working on  Z transaction   that picks the best carrier after creration of the deliveryand shipement.
    This transaction is related with standard  SAP transaction  that creates idoc and send it to customer .
    Some of fields  in data segment are not populated correctly.
    When I look in delevery > Header >  Extras> delevery output>
    I can see that idoc is created
    "Processing log for program RSNASTED routine EDI_PROCESSING
      IDoc '0000000034617883' added"
    But when I set up external break points in RSNASTED  > EDI_PROCESSING.
    I cannot reached the point when the idoc data segment is created .
    Break points are external and system & uupdate debuging are activated.
    I know that Z transaction is  creatin batch input  for Vl02n .
    Do you know some user exit where idoc is populated with data or
    some other vay to get to  idoc creation in debugger .
    Thanks
    Krsto

Maybe you are looking for

  • After updating to iOs 8 I cannot close out programs which is eating data

    After my son updated his 5s iphone to i0S 8, he cannot close out any programs open, which is eating up data when not connected to wifi. He rebooted and it still will not close them out. Has anyone else had this problem?

  • Key edit mapping has no information...

    Hi Guru's, I am trying to syndicate back articles from MDM to SAP..I have to manually enter Key mapping for each record( without which they dont send information).. How can we automate this in MDM ,so that as soon as new record is created in MDM we h

  • User manual for mainboard MS-6791

    Hello all, I've just purchased a used computer with the Micro Star MS-6791 mainboard in it. I've searched the MSI web site as well as the internet and have not been able to find the users manual for this mainboard. Does anyone have or can tell me whe

  • Can two remote workgroups sync their XServes?

    Our company has two main physical locations (Midwest and Pacific Northwest), each with its own xServe and LAN.  Our employees collaborate on projects between the two offices. Frequently, I hear complaints that someone is looking for a file but doesn'

  • Opening an Excel File

    Error Message - The File might have been damaged or modified from its original format!