Assign external delivery number using BAPI_DELIVERYPROCESSING_EXEC

Hi Experts,
How to assign the external delivery number using "BAPI_DELIVERYPROCESSING_EXEC?
For internal no, the BAPI works and I try to pass the parameters "tbl_request-EXTDELV_NO = XXX" to the BAPI , it prompt an error "Unexpected issue of error message (output NR 751)"
Thanks

Hi,
Please check the external number which you are giving is within the number  Range defined  in Configuration  .
regards
Deepak.

Similar Messages

  • External Delivery Number in VL31N

    Hi,
    When creating inbound deliveries against a Purchase Order in VL31N, is there a user exit that will let me put in an external delivery number instead of an internally generated one.
    Deliveries in our system are created in a third party LE system and then sent back to SAP. We need to create deliveries in SAP using that external number.
    Your help is greatly appreciated.
    Thanks,
    Jay Viswanathan.

    Hi,
    These are the user exits present for the VL31N transaction,
    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)          
    Regards,
    Azaz Ali.

  • Create delivery document using bapi_deliveryprocessing_exec

    Can any one send me the sample code to create delivery document using BAPI_DELIVERYPROCESSING_EXEC BAPI.

    Hi,
    Use the fm:     'SHP_VL10_DELIVERY_CREATE_PARA' for creatting the delivery.
    The below code creates the delivery document:
    *& Report  ZSTATUS
    REPORT  zstatus.
    DATA: t_vbak LIKE vbak   OCCURS 0 WITH HEADER LINE.
    DATA: t_vbap LIKE vbapvb OCCURS 0 WITH HEADER LINE.
    DATA: t_vbep LIKE vbepvb OCCURS 0 WITH HEADER LINE.
    DATA: t_vbkd LIKE vbkdvb OCCURS 0 WITH HEADER LINE.
    DATA: t_vbpa LIKE vbpavb OCCURS 0 WITH HEADER LINE.
    DATA: t_vbuk LIKE vbukvb OCCURS 0 WITH HEADER LINE.
    DATA: t_vbup LIKE vbupvb OCCURS 0 WITH HEADER LINE.
    DATA: t_vbfa LIKE vbfavb OCCURS 0 WITH HEADER LINE.
    DATA: c_vbfa LIKE vbfavb OCCURS 0 WITH HEADER LINE.
    DATA: ls_sd_keys     TYPE sales_key.
    DATA : key      TYPE shp_sales_key_t,
           sd_order TYPE shp_vl10_sd_order.
    p_vbeln(sales doc no) = '5000006100'.
      AT END OF vbeln.
        REFRESH: t_vbak, t_vbap,
                 t_vbep, t_vbkd,
                 t_vbpa, t_vbuk,
                 t_vbup.
        CLEAR : t_vbak, t_vbap,
                t_vbep, t_vbkd,
                t_vbpa, t_vbuk,
                t_vbup.
        REFRESH: key.
        ls_sd_keys-vbeln = p_vbeln.
        APPEND ls_sd_keys TO key.
        CLEAR:ls_sd_keys.
        CLEAR: sd_order.
        CALL FUNCTION 'SHP_GET_SD_DATA'
          EXPORTING
            it_vbak_key = key
          CHANGING
            cx_sd_order = sd_order.
        APPEND LINES OF sd_order-vbak TO t_vbak.
        APPEND LINES OF sd_order-vbap TO t_vbap.
        APPEND LINES OF sd_order-vbep TO t_vbep.
        APPEND LINES OF sd_order-vbuk TO t_vbuk.
        APPEND LINES OF sd_order-vbup TO t_vbup.
        APPEND LINES OF sd_order-vbkd TO t_vbkd.
        APPEND LINES OF sd_order-vbpa TO t_vbpa.
        APPEND LINES OF sd_order-vbfa TO c_vbfa.
        LOOP AT c_vbfa WHERE vbtyp_n = 'J'.
          MOVE c_vbfa TO t_vbfa.
          APPEND t_vbfa.
          CLEAR t_vbfa.
        ENDLOOP.
        CLEAR: sd_order.
        CLEAR: key.
        CALL FUNCTION 'SHP_VL10_DELIVERY_CREATE_PARA'
          EXPORTING
            if_ledat              = sy-datum
            if_nur_vorgabe_pos    = ' '
          TABLES
            it_vbak               = t_vbak
            it_vbap               = t_vbap
            it_vbep               = t_vbep
            it_vbuk               = t_vbuk
            it_vbup               = t_vbup
            it_vbkd               = t_vbkd
            it_vbpa               = t_vbpa
           it_vbfa               = t_vbfa
          EXCEPTIONS
            system_failure        = 1
            communication_failure = 2
            RESOURCE_FAILURE      = 3
            OTHERS                = 4.
        IF sy-subrc = 0.
       WRITE:/ 'delivery completed'.
        ENDIF.
      ENDAT.
    If it is helpful rewards points.
    Regards
    Pratap.M

  • How to update Z table with delivery number using MV50AFZ1

    Hi Friends,
    I am working with user exit MV50AFZ1/ USEREXIT_SAVE_DOCUMENT.
    My requirement is I have a Ztable with delivery number field (initially blank). If I create a delivery thru sales order VA02 , my created delivery number should get populated/updated in my Ztable.
    I would appreciate if someone could help me on this.
    Thanks.

    Hi
    First of all, read SAP Note 415716 - User exits in delivery processing, as for instance, avoid your own COMMIT WORK.
    For instance, as the sample code suggests, the better is encapsulate your ABAP coding in a function module with the option IN UPDATE TASK. Define the interface with the data that you need (XLIKP, XLIPS, XVBUK, and so on), after in your own coding (for instance)
    FUNCTION Z_SAVE_DELIVERY
         IMPORTING
           VALUE(IM_LIKP) TYPE SHP_LIKP_T.
       DATA: w_zeta LIKE z_table.
       DATA: ty_likp TYPE likp.
      LOOP AT im_likp INTO ty_likp.
         MOVE-CORRESPONDING ty_likp TO w_zeta.
         MODIFY z_table FROM w_zeta.            "or your own algorithm, searching records and modify them.
      ENDLOOP.
    In the userexit you can do this coding:
      CALL FUNCTION 'Z_SAVE_DELIVERY' IN UPDATE TASK
          EXPORTING
                im_likp = xlikp.
    I hope this helps you
    Regards
    Eduardo
    Edited by: E_Hinojosa on Jun 21, 2011 5:49 PM

  • External delivery number from VL3xN as reference in the material document

    All,
    I have the following situation. I need the external reference ID delivered by the supplier sent in an advanced shipping notification (ASN) to be copied over as the reference in the material document.
    If you post the delivery with MIGO, the external reference is copied, if you use VL3xN or BORGR, it is not.
    Can anybody help me here?
    Thx & regards,
    Bobby

    Padmasri,
    the x in VL3xN stands for 1 or 2, i.e. either create or change.
    BORGR is the transaction code for goods receipt in the automotive business.
    B.

  • Can we print handling unit label before assigning to delivery

    I created handling unit and assigned the output type in the handling unit, I tried to create label through VL74 but not succeded. Kindly let us know whether we can print the label without assigning to delivery document.Kindly let me know if any other options are there.
    THanks

    Hi Prakash,
    Thanks for your reply. I am bit confused with your statement. I create handling unit number and assigned output type in HU02, now i am trying to print labels from VL74 tcode, but failed. No results in VL74 output.
    It seems VL74 can be used for HU prints only after assigning to Delivery number.
    Regards,
    Lakshmikanth

  • Regarding delivery creation using BAPI

    Hi,
    I am creating a delivery document number using BAPI_DELIVERYPROCESSING_EXEC.its working fine and giving delivery number also.but the problem is when i open the created delivery number in tc VL02N,the delivery and picking quatities are empty..what are the parameters i am missing ?so for me its not possible to issue PGI..
    what's the solution for this..and is there any function module to pick the quantity....
    Please reply soon..

    HI shilpa,
    Try to use below code
    DATA : lv_file_name TYPE string.            "File name
      lv_file_name = pv_file.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = lv_file_name
          filetype                = gc_asc
          has_field_separator     = gc_x
        CHANGING
          data_tab                = gt_upload[]
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          not_supported_by_gui    = 17
          error_no_gui            = 18
          OTHERS                  = 19.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Thanks,
    Amol

  • Material delivery number

    Hi,
    I know the material document number.
    iam getting reference document number (mkpf-xblnr) using the material document number.
    is there any way to get the delivery number using the reference document number.
    i checked the LIKP  table but they don't maintain the reference document number.
    how can i get the delivery number using material document number or reference document number.
    Thanks & regards,
    Suresh.

    Hello,
    LIKP-VBELN = MKPF-XBLNR.
    Goto VL02N --> Post Goods Issue. If Goods have been successfully issued, then goto MKPF you can see MKPF-XBLNR = LIKP-VBELN.
    BR,
    Suhas
    Edited by: Suhas Saha on Jan 30, 2009 11:34 AM

  • External Document Number assignment using Bapi_acc_document_post

    Hi All Experts and Max,
    We want to post th same external document no using BAPI_ACC_document_post, but we are unable to post thatexternal  Document no.
    Note: If we are posting the same no using transaction FB01 , we are able to post the document , if we are passing the Acc_do_no field as the external Document no.
    Our requirement is to post the document no of the e.g A system to B system with th esame document No .
    Kindly provide what value we need to pass in the obj_type , obj_key and obj_sys fields of BAPI_ACC_Document_post.
    I am aware about the scenario that in case of internal document no creation we will get all these 3 fields from th eBAPI, but we need the values in case of external document no assignment.
    We tried with obj_type as 'BKPFF' but we are not able to post the document with that obj_type, In that case Bapi is clearing the exterbal document no acc_doc_no field in the first subroutine.
    Note: We are uploading a file in different system  with the .dat format and we are using BAPI_ACC_DOCUMENT_POST method.
    Please refer the below link for more issue details.
    Link:[External Document Number assignment using Bapi_acc_document_post;
    Kindly provide the solution.
    Thanks,
    Rahul Sisodia

    Hi All,
    Please suggest if you came across such situation. <removed by moderator>
    Thanks,
    Rahul Sisodia
    Edited by: Thomas Zloch on Sep 19, 2011 10:18 PM

  • User exit/ enhancement for billdoc creation using external billdoc number

    good day experts,
    my requirement is to allow assignment of external billing document. we have no problem with sales document and outbound delivery number. but for billing document, it seems no possible without user exit. I want to know the user exit for this and if I need to request for devkey upon modifying this user exit? or just create an enhancement point?
    thank you in advance!

    Refer to the reply from Brad.
    SAP IMG documentation reads,
    Number assignment
    Specify a number range for number assignment. For billing documents numbers can
    only be assigned internally by the SAP System. To define a common number
    assignment for different billing types, you have to specify the same number range
    in each case.

  • Purchase Order Modification: External Document Number already assigned

    Hello,
    We're running Extended Classic Scenario in a SRM 4.0 implementation.
    The problem is the following: When the user modifies a purchase order (this purchase order is already replicated to the backend), sometimes (not always), the next error occurs:
    "Purchase Order XXXXXXXXXX: PO header data still faulty "
    "Purchase Order XXXXXXXXXX: External document number XXXXXXXXX already    assigned"
    The system does not provide additional info (RZ20 give us the same message, no ST22 dumps...
    We think it could be some kind of error in the standard BAPI BAPI_PO_CHANGE.
    We've revised the SAP OSS but didn´t find anything....
    Some idea?
    Regards and Thanks in advance!!!

    Hi
    <u>Any other rrors / dumps noticved in system using RZ20 and ST22 transactions ?</u>
    <b>Have you seen this helpful pointers and link ?</b>
    <u>The related SAP OSS notes are as under :</u>
    <b>"Purchase Order item 00010 still contains faulty account assignment items"</b>
    <b>Note 1000184 - Account assignment error when document transfer to back end</b>
    Note 966323 - Service Item: Not able to create PO in ERP backend
    "Purchase Order item 00010 still contains faulty account assignment items"
    Re: How to create a PO in R/3 from a local Bid Invitation in classic scenario ?
    Re: From local Bid invitation PO is not generated in backend
    <b>Do let me know.</b>
    Regards
    - Atul

  • External document number already assign

    Hi,
    I am running Extended Classic Scenario.
    In my Application Monitors under <b>Purchase Order :  Backend application errors</b>
    I once in a while get an error like this:
    "<b>PurchOrder 3000002452: PO header data still faulty</b> "
    "<b>Purchase order 3000002452: External document number 3000002452 already assign ed</b>"   
    As far as I can see the PO is fully copied into R/3 and if there is made a chage to the PO, it is also replicated in R/3
    Does anyone have an idea why I am experiencing this error?

    Hi
    Which SRM and R/3 versions are you using ?
    Please give complete Error message details using RZ20 Transaction ?
    Any other dumps noticed in R/3 or SRM System, using ST22 Transaction ? If yes, give details.
    <u>Meanwhile, please look at the following SAP OSS Notes -></u>
    Note 990946 - BBPSC01: Accounting error during PO creation
    Note 815849 - FAQ: Account assignment system response
    Do let me know.
    Regards
    - Atul

  • XK01 Account group 0003 uses ext no assignment Specify account number

    Hi
    When I am trying to create one time vendor in XK01 , after filling all fields (except vendor , when I click the enter I am getting the following error .
    "Account group 0003 uses ext no assignment Specify account number "
    Any idea where should I specify account number  and what is this account number  ? I mean is it GL account number ?
    Thanks
    SN

    Hi Satya,
    if you donot want to assign the external number range to the vendors.....use T.code XKN1..remove the tickmark from checkbox "EXT" and save.
    Try creating again. The problem occurs because you have selected external number ranges for vendors in XKN1.
    Regards
    A
    Assign points if useful

  • Incoming Payments F-28 . . . Use of Delivery Number in Cash Application

    We have a request from a customer who will instead of referencing our Billing Doc when they make a payment, will instead reference the Delivery Number.  At this time we have the fields - Assignment field (this is where AR will put information from the customer . . . such as our customer's debit/credit numbers), Document (which is the billing doc) and Reference (at this time it is the Sales Order #).  All this was set up when we first implemented SAP in 1997.  I would appreciate any information as to whether using delivery number is possible . . . if it is possible (maybe a new reference field created that would hold the delivery #), and how to configure this??
    Thanks!
    Diane

    Hai Bishnu,
    Check it once your doc types in OBA7 t.code here u can maintain No. Ranges for 2006 year.
    If your already maintain the No ranges, try to change the no ranges for the doc type instead of 14 you can change like 99
    Regards
    Madhu I

  • Assign External Number to BP

    Hi Experts.
    We are using Standalone SRM.
    In this how to assign external number to business partner.I have checked in BUT000 table for my Business partner, in this i can't get any external number assigned to business partner.
    Please tell me how to assign external number to BP.
    Regards,
    Chandu

    Hi Chandu
    External number range means some external system provides number range for vendor  other than EBP
    Plz visit BUCF - tcode for BP no range. for eg you pulled same vendor number from r/3 to ebp and it must flag in srm as external.
    also see this.cross apllication components->SAP business partners>Business partners>basic setting> number ranges and grouping>Define grouping and assign numbe ranges.
    What is your master vendor database system ebp or some external system. if you create a vendors in srm then it is internal only .if you get  a vendor from external system then only external possible.
    regards
    Muthu

Maybe you are looking for

  • F110 automatic Payment for Customer

    Hi, I want to pay to a customer for the credit memo thru' F110 automatic payment program. If I maintain the document number in the 'free selection' tab then there is a error during proposal *'company codes xxxx/xxxx do not appear in the proposal 04.0

  • Limiting output to 10 per page (servlets)

    I'm using netBeans to create a servlet that querys the database and displays the results. I'm trying to limit the results to 10 per a page but I'm having trouble. I've referred to Karl Moss's guide to java servlets and attempted to input his coding,

  • Invalid sibling link error

    I have a 15" PB which gave an "invalid sibling link error" one month ago and I was not able to even repair it using DiskWarrior. I have Apple Care Protection plan, so I sent it for repairs and the repair guys replaced the motherboard as they suspecte

  • [Solved] Can't Get Bluetooth Adapter To Run

    Hello all, I have a notebook (Dell Studio 1555) with an internal bluetooth adapter (dell 370, if I remember correctly), that I'm unable to set up in Gnome 3.10. It has worked before under KDE 4.10, but I think it stopped working under KDE 4.11, prior

  • JFrame always on tod, how to do it ???

    Hi, On my main application, when a user click on a button a jframe should appear to set some option. I would like this JFrame stay always on top somewhere on the screen and the user to be able to continue to use the main application. Do you know how