M7279- Data for creating a delivery is incomplete (Vendor)

Dear All,
i am getting below error while processing Goods receipt.
"M7279- Data for creating a delivery is incomplete (Vendor)" 
1.I am doing Goods receipt with mvt type 521( GR without ref to prod order).
2.storge location is WH manged + HU managed.
3.Material master is assinged with sales org / distribution channel- sales view.
4.maintained for Transportation Group . loading group - sales gen/plant data.
5. Maintaine for shipping data for Storage location ( customisation -SPRO-LE-Shipping-Basic shipping function- Shipping points and goods receiving points determination-Assign goods receiving points for Inbound Deliveries.)
6. HUM- setting - LG-HUM-HU requirement for storage location and default values for deliveries)
Why system is thowing this error message as in my case vendor does not comes in to picture ( I can cosider if a GR is with refence to PO , in that case in customer master number has to be maintained in vendor master + shipping condition entered in customer master)
Could you pl help me on above ( as this is 521 movement , it should not have any link with vendor or customer master) then why i am getting this error.
Appreciate your earliest response.
Om

I am doing simple goods receipt without reference to any document ( mvt 521 - goods receipt without ref to production order) , in that case it should not ask for any vendor or should not search for vendor code , i am not getting why it is searching for vendor.
If i removed the setting related to HU management for storage location then it allows me to post the document without any error, but if i activate for HU managment in below path i am getting error ( even in below path if i entered any vendor code then it allows me to post the document)
Logistics general- Handling unit management- basics-materials management - inventory management -HU requirement for storage location and default values for deliveries
plant     Storage location      Partner storage location   Sal org  Dist chan shipping division vendor customer HU requred
05         ZBD1                       ZPK1
in above if i entered any vendor code then it allows me to post the doc but i remove it then i am getting above error.
If there any alternative or other setting to overcome this error.
Thanks
Om

Similar Messages

  • Error: M7279 Data for creating delivery is incomplete (vendor)

    Hi All,
    I cannot post goods issue in MB1A transaction (movement type 281) due to this error.
    I have read some of the threads with the same issue on this forum and have see the solution is to maintain customer number in VMR.
    Would you know where can I see if customer number is not assigned in VMR? What is the transaction or table to update?
    Thanks!
    Otepogi
    Edited by: Jürgen L. on Dec 26, 2011 5:51 PM
    Moderator message: message locked because it is a basic question.

    MK03, FK03 and XK03 are the display transactions to look into a vendor master (does't your SAP system have a menu to find those transactions yourself?)
    with MK02, FK02 and XK02 a user who has authority can change the vendor master and enter a customer master, which was created before with FD01, VD01 or XD01 transaction..
    the customer number field in in the control view.

  • FM for create outbound delivery with order reference

    Hi,
      Can u pls tell me the function module name for create outbound delivery with order reference.
    regards,
    Mahi.

    Hi,
    You can use the BAPI BAPI_DELIVERYPROCESSING_EXEC
    Check this sample code..
    PARAMETERS: p_vbeln LIKE vbak-vbeln.
    DATA: BEGIN OF t_vbap OCCURS 0,
            vbeln LIKE vbap-vbeln,
            posnr LIKE vbap-posnr,
            kwmeng LIKE vbap-kwmeng,
            matnr  LIKE vbap-matnr,
            werks  LIKE vbap-werks,
          END OF t_vbap.
    DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
          WITH HEADER LINE.
    DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
          WITH HEADER LINE.
    DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    SELECT vbeln posnr kwmeng matnr werks
           INTO TABLE t_vbap
           FROM vbap
           WHERE vbeln = p_vbeln.
    LOOP AT t_vbap.
      t_request-document_numb = t_vbap-vbeln.
      t_request-document_item = t_vbap-posnr.
      t_request-quantity_sales_uom = t_vbap-kwmeng.
      t_request-id = 1.
      t_request-document_type = 'A'.
      t_request-delivery_date      = sy-datum.
      t_request-material = t_vbap-matnr.
      t_request-plant = t_vbap-werks.
      t_request-date = sy-datum.
      t_request-goods_issue_date = sy-datum.
      t_request-goods_issue_time = sy-uzeit.
      APPEND t_request.
    ENDLOOP.
    CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
      TABLES
        request               = t_request
        createditems          = t_created
        return                = t_return
    READ TABLE t_return WITH KEY type = 'E'.
    IF sy-subrc = 0.
      MESSAGE e208(00) WITH 'Delivery creation error'.
    ENDIF.
    COMMIT WORK.
    READ TABLE t_created INDEX 1.
    Write: /  t_created-document_numb.
    Thanks
    Naren

  • Finding FM/BAPI/RFC for Create Inbound Delivery(vl31n).

    Hi all,
    i need for a FM/BAPI/RFC for Create Inbound Delivery(vl31n) or ASN
    where in import Parameter i have to pass -
    *vendor no*
    *PO no*
    *External ID no*
    *Delivery date*
    *TransPlanngDate*
    *BillOfLad*
    *GR/GI Slip*
    in Export i need ASN no and in tables we can use ITEM details.
    Regards,
    Sunil sahoo.

    Hi,
    Check the below link
    [https://forums.sdn.sap.com/click.jspa?searchID=16938983&messageID=5780492]
    Regards,
    Surinder

  • Function module for create outbound delivery

    Hi,
          Can any one pls tell me the BAPI function module name for create outbound delivery with order reference.
    Regards,
    Mahi

    Hi
    This is the BAPI for creating Delivery with Sales Order Reference.
    You can use the BAPI <b>BAPI_DELIVERYPROCESSING_EXEC</b>
    Check this sample code..
    PARAMETERS: p_vbeln LIKE vbak-vbeln.
    DATA: BEGIN OF t_vbap OCCURS 0,
            vbeln LIKE vbap-vbeln,
            posnr LIKE vbap-posnr,
            kwmeng LIKE vbap-kwmeng,
            matnr  LIKE vbap-matnr,
            werks  LIKE vbap-werks,
          END OF t_vbap.
    DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
          WITH HEADER LINE.
    DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
          WITH HEADER LINE.
    DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    SELECT vbeln posnr kwmeng matnr werks
           INTO TABLE t_vbap
           FROM vbap
           WHERE vbeln = p_vbeln.
    LOOP AT t_vbap.
      t_request-document_numb = t_vbap-vbeln.
      t_request-document_item = t_vbap-posnr.
      t_request-quantity_sales_uom = t_vbap-kwmeng.
      t_request-id = 1.
      t_request-document_type = 'A'.
      t_request-delivery_date      = sy-datum.
      t_request-material = t_vbap-matnr.
      t_request-plant = t_vbap-werks.
      t_request-date = sy-datum.
      t_request-goods_issue_date = sy-datum.
      t_request-goods_issue_time = sy-uzeit.
      APPEND t_request.
    ENDLOOP.
    CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
      TABLES
        request               = t_request
        createditems          = t_created
        return                = t_return
    READ TABLE t_return WITH KEY type = 'E'.
    IF sy-subrc = 0.
      MESSAGE e208(00) WITH 'Delivery creation error'.
    ENDIF.
    COMMIT WORK.
    READ TABLE t_created INDEX 1.
    Write: /  t_created-document_numb.
    REWARD IF HELPFUL.

  • Mismatched data for "Created By" in generated Purchase Requisitions

    Hi,
    Just wanted to ask question to all gurus that, I see some mismatched data for ‘created by’ for system generated Purchase requisitions. As if I do MRP run using MD40(MPS scheduling run) then system is showing PR created by 'MRP controller' but if I run MRP using MD41(single item multi level), then system is showing the user ids name(the person on whose id MRP run is executed) is showing in the PR.
    As both the MRP runs being executed in the same user id, then there should not be such kind of diffrent data. Due to this mismathced data we are gettting some difficulties in the reporting. 
    Thanks in advance.
    Regards
    Amit

    Hi!
    It's solved. The mistake was on the connection of the tables:
    BUT000 - BUT020 - ADRC
    Thanks and regards,
    Mon

  • BAPI for creating outbound delivery

    Hi,
    Can anyone please let me know the bapi for creating outbound delivery.I have checked for few bapi's like
    BAPI_OUTB_DELIVERY_SAVEREPLICA
    BAPI_DELIVERPROCESSING_EXEC
    If i use the first one i would like to know whether i need to do the PGI seperately by using any bdc or is it taken care in the same bapi.
    Its basically for the workflow task werein we have all the required parameters like delivery numb, sales order num ...etc
    Iam new to BAPI's.Please consider my request and let me know the details for the same.
    thanks
    keith

    The below is for creating delivery for STO's.
        Delivery creation
          call function 'SHP_VL10_DELIVERY_CREATE'
            exporting
              IF_LEDAT           = I_LFDAT
              IF_NUR_VORGABE_POS = YES
              IT_KEY_ENQUE_READ  = IT_KEY_ENQUE_READ
              IT_KOMDLGN         = IT_KOMDLGN
            changing
              CX_SD_ORDER        = XS_SD_ORDER
              CT_VBSK_ALL        = XT_VBSK_ALL
              CT_VBLS            = XT_VBLS
              CT_KEY_LATE        = XT_KEY_LATE.
    Message was edited by: Anurag Bankley

  • BAPI for creating outbound delivery reference to PO

    Hi all,
       I want to crate delivery against the the PO. scenario is i want to create delivery in one plant which will be copy of delivery in some other plant. I require it for automation. Main thing is that BAPI should handle batch split scenario. The problem is that i used 'GN_DELIVERY_CREATE' bt although it meets po quantity it is not closing PO's ELIKZ flag. Plz suggest some solution on it.
    Theme is I want to create delivery against PO but quantity should be from other delivery and it should handle battch split.
    I will thankful to u .

    hi Amol,
    welcome to SDN
    here is related scenario check it out
    BAPI to Copy Materials from one Plant to Another
    Copy Materials from one Plant to Another
    First run   GETDATA AS CHECKBOX, "Tick to download materials data to local harddisk
    Second run  UPDDATA AS CHECKBOX. "Tick to update date to Materials Master
    Check data in Excel before Second run
    REPORT ZBAPIMM01 LINE-SIZE 255 NO STANDARD PAGE HEADING
                     LINE-COUNT 065(001).
    TABLES: T001L, "Storage Locations
            MARA,  "General Material Data
            MAKT,  "Material Descriptions
            MBEW,  "Material Valuation
            MARC.  "Plant Data for Material
    DATA: BAPI_HEAD   LIKE BAPIMATHEAD,
          BAPI_MAKT   LIKE BAPI_MAKT,    "Material Description
          BAPI_MARA1  LIKE BAPI_MARA,    "Client Data
          BAPI_MARAX  LIKE BAPI_MARAX,
          BAPI_MARC1  LIKE BAPI_MARC,    "Plant View
          BAPI_MARCX  LIKE BAPI_MARCX,
          BAPI_MBEW1  LIKE BAPI_MBEW,    "Accounting View
          BAPI_MBEWX  LIKE BAPI_MBEWX,
          BAPI_RETURN LIKE BAPIRET2.
    DATA: BEGIN OF INT_MAKT OCCURS 100.
            INCLUDE STRUCTURE BAPI_MAKT.
    DATA: END OF INT_MAKT.
    DATA: BEGIN OF INT_MAT OCCURS 100,
             WERKS(4),     "Plant
             MTART(4),     "Material type
             MATNR(18),    "Material number
             MATKL(9) ,    "Material group
             MBRSH(1),     "Industry sector
             MEINS(3),     "Base unit of measure
             GEWEI(3),     "Weight Unit
             SPART(2),     "Division
             EKGRP(3),     "Purchasing group
             VPRSV(1),     "Price control indicator
             STPRS(12),    "Standard price
             PEINH(3),     "Price unit
             SPRAS(2),     "Language key
             MAKTX(40),     "Material description
           END OF INT_MAT.
    SELECT-OPTIONS:
                PLANT    FOR  MARC-WERKS OBLIGATORY MEMORY ID PLT,
                MATERIAL FOR  MARA-MATNR MEMORY ID MAT,
                MATLTYPE FOR  MARA-MTART MEMORY ID MTY,
                DIVISION FOR  MARA-SPART MEMORY ID DIV.
    PARAMETERS:  F_FILE LIKE RLGRAP-FILENAME
                 DEFAULT 'C:\DATA\ZMATERIAL.XLS' MEMORY ID F_FILE,
                 GETDATA AS CHECKBOX, "Tick to download materials data to local harddisk
                 UPDDATA AS CHECKBOX. "Tick to update date to Materials Master
    IF GETDATA = 'X'.
       PERFORM DOWNLOAD_DATA.
       PERFORM DOWNLOAD_FILE.
    ENDIF.
    IF UPDDATA = 'X'.
       PERFORM UPLOAD_FILE.
       PERFORM UPDATE_MM.
    ENDIF.
    FORM DOWNLOAD_DATA.
    SELECT * FROM MARC  WHERE LVORM EQ ' '
                          AND WERKS IN PLANT
                          AND MATNR IN MATERIAL.
        CLEAR MARA.
        SELECT SINGLE * FROM MARA WHERE MATNR =  MARC-MATNR.
        CHECK MATLTYPE.
        CHECK DIVISION.
        CLEAR MBEW.
        SELECT SINGLE * FROM MBEW WHERE MATNR =  MARC-MATNR
                                    AND BWKEY =  MARC-WERKS.
        CLEAR MAKT.
        SELECT SINGLE * FROM MAKT WHERE SPRAS =  'EN'
                                    AND MATNR =  MARC-MATNR.
        WRITE:/ MARC-WERKS,    "Plant
                MARA-MTART,    "Material type
                MARA-MATNR,    "Material number
                MARA-MATKL,    "Material group
                MARA-MBRSH,    "Industry sector
                MARA-MEINS,    "Base unit of measure
                MARA-GEWEI,    "Weight Unit
                MARA-SPART,    "Division
                MARC-EKGRP,    "Purchasing group
                MBEW-VPRSV,    "Price control indicator
                MBEW-STPRS,    "Standard price
                MBEW-PEINH,    "Price unit
                MAKT-SPRAS,    "Language key
                MAKT-MAKTX.    "Material description
                INT_MAT-WERKS = MARC-WERKS.    "Plant
                INT_MAT-MTART = MARA-MTART.    "Material type
                INT_MAT-MATNR = MARA-MATNR.    "Material number
                INT_MAT-MATKL = MARA-MATKL.    "Material group
                INT_MAT-MBRSH = MARA-MBRSH.    "Industry sector
                INT_MAT-MEINS = MARA-MEINS.    "Base unit of measure
                INT_MAT-GEWEI = MARA-GEWEI.    "Weight Unit
                INT_MAT-SPART = MARA-SPART.    "Division
                INT_MAT-EKGRP = MARC-EKGRP.    "Purchasing group
                INT_MAT-VPRSV = MBEW-VPRSV.    "Price control indicator
                INT_MAT-STPRS = MBEW-STPRS.    "Standard price
                INT_MAT-PEINH = MBEW-PEINH.    "Price unit
                INT_MAT-SPRAS = MAKT-SPRAS.    "Language key
                INT_MAT-MAKTX = MAKT-MAKTX.    "Material description
                APPEND INT_MAT.
                CLEAR  INT_MAT.
    ENDSELECT.
    ENDFORM.
    FORM DOWNLOAD_FILE.
    call function 'WS_DOWNLOAD'
      EXPORTING
        FILENAME                      = F_FILE
        FILETYPE                      = 'DAT'
      FILETYPE                      = 'WK1'
      tables
        data_tab                      = INT_MAT
      EXCEPTIONS
        FILE_OPEN_ERROR               = 1
        FILE_WRITE_ERROR              = 2
        INVALID_FILESIZE              = 3
        INVALID_TYPE                  = 4
        NO_BATCH                      = 5
        UNKNOWN_ERROR                 = 6
        INVALID_TABLE_WIDTH           = 7
        GUI_REFUSE_FILETRANSFER       = 8
        CUSTOMER_ERROR                = 9
        OTHERS                        = 10.
    IF SY-SUBRC = 0.
       FORMAT COLOR COL_GROUP.
       WRITE:/ 'Data Download Successfully to your local harddisk'.
       SKIP.
    ENDIF.
    ENDFORM.
    FORM UPLOAD_FILE.
    call function 'WS_UPLOAD'
      EXPORTING
        FILENAME                      = F_FILE
        FILETYPE                      = 'DAT'
      FILETYPE                      = 'WK1'
      tables
        data_tab                      = INT_MAT
      EXCEPTIONS
        FILE_OPEN_ERROR               = 1
        FILE_WRITE_ERROR              = 2
        INVALID_FILESIZE              = 3
        INVALID_TYPE                  = 4
        NO_BATCH                      = 5
        UNKNOWN_ERROR                 = 6
        INVALID_TABLE_WIDTH           = 7
        GUI_REFUSE_FILETRANSFER       = 8
        CUSTOMER_ERROR                = 9
        OTHERS                        = 10.
    IF SY-SUBRC = 0.
       FORMAT COLOR COL_GROUP.
       WRITE:/ 'Data Upload Successfully from your local harddisk'.
       SKIP.
    ENDIF.
    ENDFORM.
    FORM UPDATE_MM.
    LOOP AT INT_MAT.
    Header
        BAPI_HEAD-MATERIAL        = INT_MAT-MATNR.
        BAPI_HEAD-IND_SECTOR      = INT_MAT-MBRSH.
        BAPI_HEAD-MATL_TYPE       = INT_MAT-MTART.
        BAPI_HEAD-BASIC_VIEW      = 'X'.
        BAPI_HEAD-PURCHASE_VIEW   = 'X'.
        BAPI_HEAD-ACCOUNT_VIEW    = 'X'.
    Material Description
        REFRESH INT_MAKT.
        INT_MAKT-LANGU           = INT_MAT-SPRAS.
        INT_MAKT-MATL_DESC       = INT_MAT-MAKTX.
        APPEND INT_MAKT.
    Client Data - Basic
        BAPI_MARA1-MATL_GROUP     = INT_MAT-MATKL.
        BAPI_MARA1-BASE_UOM       = INT_MAT-MEINS.
        BAPI_MARA1-UNIT_OF_WT     = INT_MAT-GEWEI.
        BAPI_MARA1-DIVISION       = INT_MAT-SPART.
        BAPI_MARAX-MATL_GROUP = 'X'.
        BAPI_MARAX-BASE_UOM   = 'X'.
        BAPI_MARAX-UNIT_OF_WT = 'X'.
        BAPI_MARAX-DIVISION   = 'X'.
    Plant - Purchasing
        BAPI_MARC1-PLANT      = INT_MAT-WERKS.
        BAPI_MARC1-PUR_GROUP  = INT_MAT-EKGRP.
        BAPI_MARCX-PLANT      = INT_MAT-WERKS.
        BAPI_MARCX-PUR_GROUP  = 'X'.
    Accounting
        BAPI_MBEW1-VAL_AREA   = INT_MAT-WERKS.
        BAPI_MBEW1-PRICE_CTRL = INT_MAT-VPRSV.
        BAPI_MBEW1-STD_PRICE  = INT_MAT-STPRS.
        BAPI_MBEW1-PRICE_UNIT = INT_MAT-PEINH.
        BAPI_MBEWX-VAL_AREA   = INT_MAT-WERKS.
        BAPI_MBEWX-PRICE_CTRL = 'X'.
        BAPI_MBEWX-STD_PRICE  = 'X'.
        BAPI_MBEWX-PRICE_UNIT = 'X'.
        WRITE:/ BAPI_HEAD, BAPI_MARC1.
        call function 'BAPI_MATERIAL_SAVEDATA'
          exporting
            HEADDATA                   = BAPI_HEAD
            CLIENTDATA                 = BAPI_MARA1
            CLIENTDATAX                = BAPI_MARAX
            PLANTDATA                  = BAPI_MARC1
            PLANTDATAX                 = BAPI_MARCX
          FORECASTPARAMETERS         =
          FORECASTPARAMETERSX        =
          PLANNINGDATA               =
          PLANNINGDATAX              =
          STORAGELOCATIONDATA        =
          STORAGELOCATIONDATAX       =
            VALUATIONDATA              = BAPI_MBEW1
            VALUATIONDATAX             = BAPI_MBEWX
          WAREHOUSENUMBERDATA        =
          WAREHOUSENUMBERDATAX       =
          SALESDATA                  = BAPI_MVKE1
          SALESDATAX                 = BAPI_MVKEX
          STORAGETYPEDATA            =
          STORAGETYPEDATAX           =
          IMPORTING
            RETURN                     = BAPI_RETURN
          TABLES
            MATERIALDESCRIPTION        = INT_MAKT
          UNITSOFMEASURE             =
          UNITSOFMEASUREX            =
          INTERNATIONALARTNOS        =
          MATERIALLONGTEXT           =
          TAXCLASSIFICATIONS         =
          RETURNMESSAGES             =
          PRTDATA                    =
          PRTDATAX                   =
          EXTENSIONIN                =
          EXTENSIONINX               =
    IF BAPI_RETURN-TYPE = 'E'.
       WRITE:/ 'Error Message ', BAPI_RETURN.
    ENDIF.
    ENDLOOP.
    ENDFORM.
    *---End of Program
    if u find it useful mark the points
    Regards,
    Naveen

  • Step for creating inbound delivery in case of customer return.

    Hi,
    When I start vl31N I can create with reference to vendor or PO an inbound delivery.
    How to create inbound delivery with reference to a customer return?
    What to do?
    Thank you in advance,
    Eric van Zundert.

    Hi,
    You can try to create a copy control for return sales order to inbound delivery document. Depending on business requirements like combining vendor PO and returns sales orders, you can try to use VL31N.
    If it is only returns sales orders that needs to be processed, then SAP standard document types and its associated copy control would help.
    Regards
    P.S: Does your scenario relate to import process? I am in the same boat.
    Edited by: Shiva Ram on Jan 22, 2008 2:17 PM

  • BAPI for creating Return delivery to vendor using transaction MIGO

    Hi All,
             My requirement is to create Return delivery to vendor using transaction MIGO.
    In MIGO transaction to create return delivery, the following steps needs to be followed.
    i) Select the option A02 Return delivery, R02 Material document,
        Enter Material document xxxxxxxx.
        Reson for movement:xxxx
        By selecting the option item ok and via delivery check box, then save.
    After saving return delivery needs to be created.
    Is there any BAPI/FM exist for this requirement?
    I made lot of search in sdn, but i could not find any thing helpful.
    Appreciate quick help.
    regards
    surya

    Hi
    In VL02n->Extras->Delivery Output->Header
    Check if you see any message type (LD00 ?).
    If you do not see any, insert a message type LD00.
    If you want to check the IMG settings, see Txns : V/71 (for delivery types RL/RLL) and V/73 (for Item category RLLN)
    Best regards
    Ramki

  • BAPI or function module for creating outbound delivery agains STO

    Hi,
    Is there any function module or BAPI to create an outboud delivery against STO?  Appreciated if anybody tells what are all the mandatory fields to pass.
    Thanks and Regards,
    Suresh

    Hi,
    Pls check the BAPIs,
    BAPI_OUTB_DELIVERY_CONFIRM_DEC BAPI for Outbound Delivery Confirmation from a Decentralized System
    BAPI_OUTB_DELIVERY_SPLIT_DEC   BAPI for Subsequent Outbound-Delivery Split from a Decentralized Syste
    Regards,
    Renjith Michael.

  • Function Module for Creating Outbound Delivery

    Hi All,
    Please provide me the FM Name which will create the outbound delivery same as VL01N transaction and I needs to update Serial Numbers also. Please help me to find the FM which will create outbound delivery and behave same as VL01N transaction.
    Thanks in advance.

    hi
    check FM 1:
        CLEAR: ls_request.
        ls_request-document_type      = 'A'.
        ls_request-document_numb      = tvbap-vbeln.
        ls_request-document_item      = tvbap-posnr.
        ls_request-quantity_sales_uom = tvbap-KWMENG.
        ls_request-PLANT              = tvbap-werks.
        ls_request-STGE_LOC           = tvbap-lgort.
        ls_request-MATERIAL           = tvbap-matnr.
        ls_request-batch              = tvbap-charg.
        ls_request-date_usage         = p_datvw.
        ls_request-date               = p_date.
        ls_request-time               = p_time.
        APPEND ls_request TO lt_request.
      CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
    * EXPORTING
    *   DELIVERY_EXTEND         =
    *   TECHN_CONTROL           =
      TABLES
        REQUEST                 = lt_request
    *   PARTNER                 =
    *   PARTNER_ADDR            =
    *   TEXT_HEADER             =
    *   TEXT_LINES              =
        CREATEDITEMS            = CREATEDITEMS
        RETURN                  = RETURN
    *   EXTENSION1              =
    *   EXTENSION2              =
    *   CO_CHAR_VALUES          =
    *   BATCH_ATTRIBUTES        =
    *   BATCH_VALUES_CHAR       =
    *   BATCH_VALUES_CURR       =
    *   BATCH_VALUES_NUM        =
    *   TOKENREFERENCE          =
    or FM2:
      CALL FUNCTION 'W_FRM_DELIVERY_CREATE_GENERAL'
        EXPORTING
          I_INTERNAL_COMMIT   = 'X'
          I_NO_LOCK_DOCS      = 'X'
          I_INIT_UNIT_CONV    = 'X'
        TABLES
          T_DOCUMENTS         = ITAB_DOCUMENTS
          T_MESSAGELOG        = ITAB_MESSAGELOG
          T_VBLS              = T_VBLS
        EXCEPTIONS
          NOTHING_TO_DO           = 1
          MESSAGE_ACCORDING_LOGS  = 2
          OTHERS                  = 3.
    regards,darek

  • Problems for creating a delivery from a order with less items

    hye, I have created a delivery from a sales order and all is ok. So, If I put less quantity in severals items, the delivery is generated ok and the sales order is OPEN status.
    Now , I want to generate a delivery from sales order, but I don´t want to include in my delivery all sales order's items. For example, if I have in my sales order four items (Itm1,Itm2,Itm3,Itm4) with theirs quantity, by SDK I want to generate the Delivery with Itm2 and Itm3 only. I can't do that. I hate It,jajajajajaja.
    With the next FOR, I get do it with all Items but I don´t know to say it that when status = 0 "jump" this item.
             delivery.CardCode = Order.CardCode
             delivery.DocDueDate = Order.DocDueDate
             delivery.DocDate = Order.DocDate
             For i = 0 To Order.Lines.Count - 1
                 delivery.Lines.BaseType = 17
                 delivery.Lines.BaseEntry = Order.DocEntry
                 Status = 1
                  If Status <> 0 Then
                       delivery.Lines.BaseLine = place
                       If i <> Order.Lines.Count - 1 Then
                          delivery.Lines.Add
                          place = place + 1
                       End If
                  End If
              Next
         retval = delivery.Add
    Thanks and I hope to get a solution.

    What is "it" that you cannot do (+ hate)???
    What is "status"? LineStatus???
    What is your problem when you try to skip an item?
    PS: You should always use enums instead of hard-coded values e.g.: Use the BoAPARDocumentTypes Enumeration for delivery.Lines.BaseType

  • VL04 transaction for creating the delivery

    Dear Guru's
    we are doing STO process for some materials from plant 1 to plant2.
    for example i have made po for 100 nos.
    if there is only 30 nos in stock then when we do VL04 system will create delivery for 30 nos.
    this process was running fine from two years but now we are facing problem that,
    when i do VL04 system is creating two deliveries.
    for example stock is 40 nos then system is creating delivery for 24 nos & 16nos.
    please help to resolve the problem.
    Regards
    prakash

    Hello,
    This is nothing because of DELIVERY SPLIT, please check the following whiich causes the delivery split
    SHIP TO PARTY
    SHIPPING DATE?DELIVERY DATE
    INCO TERMS
    DIFFERENT ROUTES
    DIFFERENT PLANTS/SHIPPING POINTS
    please check the above criterial for the deliveries which were split
    cheers,
    santosh

  • Problem while changing data for STO Assign Delivery type and checking rule

    Hi All,
    In Set up STO..... executing Assign delivery type and checking rule.
    I am trying to add values to Rule for Adoption of ATP Results in Purchasing(REVFE),Delivery Type for Stock Transfers Within a Company Code(LFART1) and another two more fields..After entering the data When i clik Save button... it shows "Data was Saved".But its not showing when i went back and come
    I have checked in debugg mode and table T161V table ..waht ever i entered its not saved in Database table.
    We have checked in another system its working fine..
    Can anyone please help me  on this?

    Solved by posting in OSS.
    The below include has to be uncommented.
    While doing upgrade this include  L0ME6F00 has commented INCLUDE L0ME6F99 has uncommented
         view related include-files   (never change, please)        *
    *{   REPLACE        CB2K900006                                        2
      INCLUDE L0ME6F00.      " subprograms

Maybe you are looking for