How to Restrict Single Delivery Date for PO with Multiple Line Items

Dear Experts,
How to Restrict Single Delivery Date for PO with Multiple Line Items.
System needs to through Error Message if User Inputs Different Delivery Dates for PO with Multiple Line Items in ME21N Tcode.
Can we achive this by Some Enhancement in SAP or Not ???
If so how to do it.
Any Inputs is highly appreciated.
Thanks and Regards,
Selvakumar. M

Hi Selvakumar,
we can resrict the PO to have a single delivery date in all the line items by means of giving a error message or overwiting the delivery date keyed/determined in the line item.
You can use the BADI -> ME_PROCESS_PO_CUST. In which you need to implement the method PROCESS_SCHEDULE.
(for technical aid - This method will be called for each and every PO line item, From the imporing parameter im_schedule we can get all the details of current PO line, even we can change the data in the current PO line. )
Regards,
Madhu.

Similar Messages

  • Partial goods receipt for PO with multiple line items

    Hello All,
    While doing MIGO, for a PO with multiple line items, if one line item is having error, will we be able to go ahead with goods receipt? Or entire material document is blocked for doing MIGO?
    We will be doing a development - in case if there is problem in goods receipt (checking of any parameter, and if it is missing - we will be posting error message)...is it possible to ahead with next line item and still post the material document?
    If partial goods receipt if possible for PO with multiple line items, how do we do it?
    Regards,
    RJS

    Hi
    While doing MIGO, for a PO with multiple line items, if one line item is having error, will we be able to go ahead with goods receipt? Or entire material document is blocked for doing MIGO?
    No. You cannot post the MIGO, if even one of the PO line item is having problem or giving error.
    We will be doing a development - in case if there is problem in goods receipt (checking of any parameter, and if it is missing - we will be posting error message)...is it possible to ahead with next line item and still post the material document?
    If you skip a line irem and do GR with next line item, how will you match quantity & value with the vendor Invoice at LIV ?
    If partial goods receipt if possible for PO with multiple line items, how do we do it?
    Partial goods receipt is possible for PO line items. That means, if PO has 100 qty for line item 1 then you can do GR for 50 now and 50 later depending on the vendors delivery.
    Hope this is what you mean by "Partial Goods Receipt".
    Edited by: Arun R on May 10, 2010 2:03 PM

  • BDC for VA01 with multiple line items

    Hi,
    My client is 4.6c version, I have created a BDC program for transaction VA01 which will have multiple line items. I'm able to enter 12 items in the first instance, then 12 items next time. But I'm not doing any P+..System is automatically taking me to first item after reaching item 12 every time.
    But I have a doubt in production system also I will have only 12 items every time to enter..If not my program may not work..
    I'm calling BDC using following statment..
      CALL TRANSACTION 'VA01' USING BDCDATA
                        MODE 'N'
                        UPDATE 'S'
                        MESSAGES INTO lt_message.
    Please suggest me the solution.
    Regards
    Jaker.

    I had a similar problem with goods movements in a CO11N BDC I wrote.  Here's how it was fixed:
    DATA: lcl_opt     TYPE ctu_params.
    lcl_opt-defsize  = 'X'.
    CALL TRANSACTION 'CO11N' USING i_bdctbl OPTIONS FROM lcl_opt
                                 MESSAGES INTO messco11n.
    The option "defsize" makes sure that the screen always contains the same number of lines as it goes through the BDC.  That way, you can write in the paging logic without having to worry about the number of lines that appear on a user's screen as it may vary depending on how their screen resolution is set up.

  • Production order from sales order with multiple line item(for one material)

    Dear Gurus,
    I am working in MTO scenarios. If there is several line item in a sales order for one material, multiple production order( same as no. of sales order line item) is getting created against each of the line item.My requirement is,since the material code is same in each line item and sales order is one, one production order should be generated for all line item. please tell me how to do it.
    (Here for one material, multiple line item is required for some specific reason)
    Regards
    Rajib Pathak

    Hi,
    This is not possible.
    In Std SAP will create one production order for one sales order. The stock is also allocated to thet particular sales order only. Because each and every sales order may vary in any one of the parameters. Considering this, SAP has designed like this.
    Regards,
    V. Suresh

  • How to restrict PO delivery date to weekdays?

    Hi All,
      My factory calendar has all days (Including Week ends & public holidays ) as working days. In this case, some of my vendors prefer not to deliver on the week ends & public holidays. In the MRP run, system calculates PO delivery date using calendar days and it sometimes falls on weekends & public holidays.
      I'd like to know how can i restrict PO delivery date for certain materials to fall ONLY on WEEK DAYS.Your help on this is highly appreciated.
    Thanks in advance.
    Rgeards,
    Faizul

    Please go to
    Goto Spro
    Materials Management -> Purchasing -> Environment Data -> Define Attributes of System Messages
    Goto System massage and select
    There are messages related to your requirement.
    exact message number i do not know , but you an search

  • Delivery Qty Zero for STO with 2 line item

    Hi Guys,
    I have a problem when create delivery for STO with 2 line item which contain material with BOM. I have create delivery with tcode VL10G refer to Purchase Order and Delivery successfully created, but delivery qty was zero or empty. I try to fill the dlv qty same with STO Qty but  popup message "Only 0 PC for the material available", I have check the stock and there is a stock exist for the material.
    I need help for this problem.
    Regards
    Gunawan

    Hi,
    Please check if inbound delivery is already created for that Qty
    Thanks
    Diwakar

  • Where/ how do I set SNP to create Planned orders with multiple line items?

    Hi
    Currently our SNP is generating planned orders on a daily basis, it creates a single order with a single line item per location.
    Where/ how do set SNP to create planned orders on a daily basis to generate a single order with multiple line items per location, so therefore one planned order with multiple line items for a single location.
    Thanx
    Keegan

    Hi Keegan,
                   In SNP (APO) it is not possible to create order with multiple line items.
    But you can do some settings so that while planning system can do aggregation and disaggregation.
    But your requirment should be set on Aggregation/Dis-aggregation logic.
    Please follow the follwing links:
    http://help.sap.com/saphelp_scm2007/helpdata/en/2c/c557e9e330cc46b8e440fb3999ca51/content.htm
    Aggregation:
    http://help.sap.com/saphelp_scm2007/helpdata/en/42/f731d078e73ee4e10000000a1553f6/content.htm
    Disaggregation:
    http://help.sap.com/saphelp_scm2007/helpdata/en/a6/ebefaf32e22e468355da304cc59387/content.htm
    Please be sure that the setting of this logic will be at planning area level.
    You can't change aggregation/disaggregation logic further.
    Regards,
    Santosh

  • Create ecatt script for one sales order creation with multiple line items

    Hi ,
    I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
    This selection of data will be from an external file/ variants which will have only one row of data in it.
    Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
    Second: I have to create sales order for those many line items having same PO Number.
    Best Regard
    Taranum

    Hi Micky
    Firstl you should upload the Line items for a particular sales Order in an Internal table
    and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
    In case of any issues pls revert back
    Reward points if helpful
    Regards
    Hitesh

  • How system updating the delivery dates in sale order schedule line

    Hello
    i created a sales order with 2 line items. For the first line item the confirmed delivery date in the schedule line is 06.02.2012 and for the second line item the confirmed delivery date in the schedule line is 14.02.2012 . Both the line items are third party items and the PR created against the line items in the sales order .
    We created the PO with reference to the PR of the SO and we find there are different delivery dates coming in the PO document for the 2 line items . For the first line item the delivery date is coming as 14.11.2011 and for the second line item in the PO , the delivery date coming as 11.11.2011 . Firstly we are not understanding from where the delivery dates are picking in the PO.
    Secondly , once we saved the Purchase order and once we come back to the sales order , the schedule line dates are getting changed automatically in the sales order . For the first line item in the sales order the delivery date is changing to 22.11.2011 and for the second line item in the sales order the delivery date is changing to 22.11.2011.
    Now my question , is from where the delivery dates are updating in the Purchase order and once we save the purchase order how the delivery dates in the schedule line are getting changed .

    Now my question , is from where the delivery dates are updating in the Purchase order and once we save the purchase order how the delivery dates in the schedule line are getting changed .
    For third party processing, the delivery dates are updated in the purchase order based on the settings in the field Planned delivery time in the MRP2 view of the material master(defined in purchase info record in t.code ME11/ME12) and purchasing processing time defined in t.code OMEW. This means, since the date of PO created, it will take the days mentioned in the planned delivery time field and purchasing processing times to determine the delivery date, which will be copied into the sales order as delivery date. In your case, the purchase order delivery date is not copied into the sales order, hence you may need to check OSS note. How the PO is handled? Any confirmation control functionality is used?
    Regards,

  • URGENT: Delivery with multiple line items for a STO

    Hi Gurus,
    We ar ecreating deliveries using VL10b for a STO. Teh TSO has 40 - 50 line items. But the delivery is created with one line item only an dit creates a delivery for each line item. How cna we allow the inclusion of multiple line items in delivery?
    We are using delivery type NL an ditem categor is NLN.
    Geratly appreciate any help in that.
    Thanks,
    KHAN

    The problem you face is called 'Delivery split'.
    For the STO scenario, one common cause is different delivery dates (in the past) in the STO line items. If so, then you should refer to SAP Note 377501 (from where I quote below):
    You can implement the source code specified in the correction instructions in copy routine 301 (or a copy of this routine in the customer namespace). This correction ensures that when you transfer data form the preceding document, backlogged delivery dates or goods issue dates are set to the current date. This prevents the system form performing a delivery split.
    Then a rescheduling of the delivery occurs. Since forward scheduling occurs for backlogged delivery items (that is, the picking date or the transportation planning date is set to the current date), the manipulation of the delivery date or goods issue date in the copy routine does not affect the result of the scheduling.
    If the dates are not the problem, then this Note refers to other Notes which deal with this problem, and should definitely solve your problem.
    Regards
    Nikhilesh

  • BDC code for MB01 Application(Multiple Line Items)

    Hi,
    Can anybody please send me the BDC CODE for MB01 Application(for Multiple Line items).
    Very urgent.
    Thanks And Regards,
    Ajay

    Instead of BDC you can use following BAPI.
    see the following ex:
    BAPI TO Upload Inventory Data
    GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order
                         02 - MB31 - Goods Receipts for Prod Order
                         03 - MB1A - Goods Issue
                         04 - MB1B - Transfer Posting
                         05 - MB1C - Enter Other Goods Receipt
                         06 - MB11
    Domain: KZBEW - Movement Indicator
         Goods movement w/o reference
    B - Goods movement for purchase order
    F - Goods movement for production order
    L - Goods movement for delivery note
    K - Goods movement for kanban requirement (WM - internal only)
    O - Subsequent adjustment of "material-provided" consumption
    W - Subsequent adjustment of proportion/product unit material
    LOOP AT I_TAB.
          count = sy-tabix.
          SELECT SINGLE * FROM ZMM_GI_WIP
                                    WHERE GI_NO = I_TAB-DOCNO AND
                                    GI_DATE = I_TAB-DOCDT.
          IF SY-SUBRC = 0.
            I_TAB-FLAG = 'C'.
            modify i_tab index count.
            CONCATENATE 'ERROR  GI : ' I_TAB-DOCNO
            '  WAS ALREADY UPLOADED' INTO I_MSG1.
            APPEND I_MSG1.
            CLEAR I_TAB-FLAG.
            CONTINUE.
          ELSE.
            CONCATENATE I_TAB-DOCDT+4(2)
                        I_TAB-DOCDT+6(2)
                        I_TAB-DOCDT+2(2)
                        I_TAB-DOCDT+0(2)
                        INTO G_DATE.
            gmhead-pstng_date = G_DATE.
            gmhead-doc_date = sy-datum.
            gmhead-pr_uname = sy-uname.
    "01 - MB01 - Goods Receipts for Purchase Order
            gmcode-gm_code = '03'.
            refresh itab.
            clear itab.
            SORT I_MAIN BY SOL_DOCNO.
            LOOP AT I_MAIN WHERE DOCNO = I_TAB-DOCNO.
              IF I_MAIN-GI_TXN_TYPE = 'MGI'.
                itab-move_type  = '291'.
              ENDIF.
              itab-mvt_ind    = ' '.
              itab-plant      = I_MAIN-WERKS.
              itab-material   = I_MAIN-MATNR.
              itab-entry_qnt  = I_MAIN-ERFMG.
              itab-stge_loc   = I_MAIN-LGOBE.
              itab-ENTRY_UOM = I_MAIN-ERFME.
              IF I_MAIN-WERKS = 'MR'.
                itab-TR_PART_BA = '11'.
              ELSEIF I_MAIN-WERKS = 'MR'.
                itab-TR_PART_BA = '12'.
              ENDIF.
              append itab.
            ENDLOOP.
            if not itab[] is initial.
              call function 'BAPI_GOODSMVT_CREATE'
               exporting
                   goodsmvt_header             = gmhead
                   goodsmvt_code               = gmcode
                 *   TESTRUN                     = ' '
              IMPORTING
                  goodsmvt_headret            = mthead
             *   MATERIALDOCUMENT            =
      MATDOCUMENTYEAR             =
               tables
                 goodsmvt_item               = itab
      GOODSMVT_SERIALNUMBER       =
                return                      = errmsg.
              clear errflag.
              loop at errmsg.
                if errmsg-type eq 'E'.
                  write:/'Error in function', errmsg-message.
                  errflag = 'X'.
                else.
                  write:/ errmsg-message.
                endif.
                move errmsg-message to i_msg1.
                append i_msg1.
              endloop.
              if errflag is initial.
                CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
              EXPORTING
                WAIT          =
              IMPORTING
                RETURN        =
               commit work and wait.
                if sy-subrc ne 0.
                  write:/ 'Error in updating'.
                  exit.
                 endif.
            endif.
          ENDIF.
           wait up to 20 seconds.
        ENDLOOP.

  • Transfer Order for Inbound delivery with multiple line items...

    Hi All,
    <The flow of my report pgm is >
    PO creation using Transaction - me21n
    My report pick the PO created as per date given in selection screen-
    Creates outbound Deliveries using BAPI_OUTB_DELIVERY_CREATE_STO
    Create Transfer order FM L_TO_CREATE_DN
    Confirm Transfer order FM L_TO_CONFIRM
    GI is done - Inbound delivery is created
    Create Transfer order FM L_TO_CREATE_DN for Inbound delivery
    Confirm Transfer order FM L_TO_CONFIRM
    Goods receipt.
    If PO is having one item - the entire flow is working perfectly.
    if my PO is having multiple items,
    While creating TO for inbound deliveeies - i am facing the error.
    Before calling FM,
    I am assigining these values like
    wa_delit-nlpla  = wa_ltap_vb-vlpla.    "Source Storage Bin To Destination Bin
          wa_delit-nltyp  = wa_ltap_vb-vltyp.    "Source Storage Type To Destination Storage type
          wa_delit-anfme  = wa_ltap_vb-nsolm.    "Actual destination quantity
          wa_delit-letyp  = wa_ltap_vb-letyp.    "Storage Unit Type
          wa_delit-altme  = wa_ltap_vb-meins.    "Unit of measure
          LOOP AT i_lips INTO wa_lips WHERE vbeln = WA_VBFA-IN_DELIV.
            wa_delit-posnr =  wa_lips-posnr.
            APPEND wa_delit TO it_delit.
             ENDLOOP.
    As i am appending i am getting 2 line items in the tabke it_delit.
    Function module :
    CALL FUNCTION 'L_TO_CREATE_DN'
      EXPORTING
       i_lgnum                         = l_lgnum
       i_vbeln                         = wa_vbfa-in_deliv
       i_commit_work                   = 'X'
       i_bname                         = sy-uname
       it_delit                        = it_delit
    IMPORTING
       e_tanum                         = gv_tonum_1
    TABLES
       t_ltap_vb                       = i_ltap_vb_1
      EXCEPTIONS
       foreign_lock                     = 1
       dn_completed                     = 2
       partial_delivery_forbidden       = 3
       xfeld_wrong                      = 4
       ldest_wrong                      = 5
       drukz_wrong                      = 6
       dn_wrong                         = 7
       squit_forbidden                  = 8
       no_to_created                    = 9
       teilk_wrong                      = 10
       update_without_commit            = 11
       no_authority                     = 12
       no_picking_allowed               = 13
       dn_hu_not_choosable              = 14
       input_error                      = 15
       error_message = 16
       OTHERS = 32.
    Here i am getting as input error, i need to create only one TO for multplie items
    If i pass this i a loop - then it will create 2 Transfer order which is WRONG ...so please help me to over come this error.
    Thanks
    Senthil
    Edited by: Senthil Kumar on Dec 7, 2009 3:29 PM

    Hi,
    Please check FM L_TO_CREATE_MULTIPLE.
    Regards,
    Ferry Lianto

  • How to set default email address for contact with multiple addresses.

    Apologies if this has been asked before, it seems a very basic question but I'm unable to find an answer.
    Can a default address be set in Address Book for a contact with multiple addresses? Or if not, which address does it send to "automatically" when this condition exists? I know you can manually select the address you want to use, but what if the contact is added to a group?
    Thanks
    Denis

    Thanks for the reply, buy I have no idea what this means.
    I have the same question. I have a contact that has five email addresses. When I add the person to a group, Mail automatically selects one of the addresses, but not the one I want. I need to go back and manually select the correct address. Can't I select one of these addresses as the default to be used all the time?
    Apologies for not quite understanding the first reply.

  • Partial delivery of sales order with some line items

    Hi all,
    Please help me in the issue i want to create delivery against sales order partially for some line items of the sales order . Can any one suggest me the procedure how to do it through programing .
    Thanks in advance,

    Hi,
    You have several methods of doing same.
    Method 1
    Go to VL01N, and given your sales order number.
    Without giving the line item, just press Enter
    Now inside the delivery, you can delete unwanted line items, and you can adjust quantities under Item overview tab.
    After that do picking and PGI.
    Method 2
    Go to VL10E,
    Give your sales order number and execute.
    Mark relevant schedule lines only and press execute,
    then those line items with marked schedule lines will copied to the delivery document.
    Best regards,
    Anupa

  • LT12 TO confirmation error for multiple line items

    Hi Experts,
    We recently upgraded to ECC 6 DIMP EP6. We are not able to confirm TO with multiple line items. It is failing with an error message VL 198 that 0 quantity of material is available. We are able to confirm TO line items one by one. This TO is created for a delivery picking request. We tried with a configuration change for the delivery line item category availability check as Y as mentioned in this note 1653018. But still not working fine. Please let me know any relevant SAP note for this issue. 
    Thanks
    Rijil

    Please run CO09 and enter material numbers to see the available quantity and see if there is some inconsistency there.
    Also check MD04 for those materials to see if there is something wrong there.
    If you can you can also post the screens here, if you are not sure about CO09 and MD04 interpretation.

Maybe you are looking for