Unloading point  query

Hi all,
I want to assign a delivery address and unloading point to a purchase requistion i got the delvery address but iam not able to figure out the unloading point.
I want you guys to let me know from which table i have to retrieve the unloading point and assign to which part of BAPI.
Iam sending my code please take a look at it and let me know if iam wrong any where and what i need to add for unloading point.
data: begin of itab_bapiebkn occurs 100.
        include structure bapiebkn.
data: end of itab_bapiebkn.
data : I_BAPIMERQADDRDELIVERY TYPE TABLE OF BAPIMERQADDRDELIVERY,
W_BAPIMERQADDRDELIVERY TYPE BAPIMERQADDRDELIVERY.
w_quantity = itab-multiple * itab-bstrf.
      w_item_no = w_item_no + 1.
      itab_bapiebanc-preq_item = w_item_no.
      itab_bapiebanc-doc_type  = c_doc_type.
      itab_bapiebanc-created_by = sy-uname.
      itab_bapiebanc-material   = itab-matnr.
      itab_bapiebanc-plant      = itab-werks.
      itab_bapiebanc-quantity   = w_quantity.
      itab_bapiebanc-deliv_date = sy-datum + 1.
      itab_bapiebanc-trackingno = w_bednr.
      append itab_bapiebanc.
w_bapimerqaddrdelivery-PREQ_ITEM = w_item_no.
IF S_GROUP = '2'.
SELECT SINGLE * FROM TVARV WHERE NAME EQ 'ZGRP1'.
IF SY-SUBRC EQ 0.
SELECT SINGLE ADDRNUMBER FROM ADRC INTO w_bapimerqaddrdelivery-ADDR_NO
             WHERE ADDRNUMBER = TVARV-LOW.
ENDIF.
Thanks in advance
Suchitra

Hi,
you want the unloading to be assigned for each material right.
swathi

Similar Messages

  • How to get unloading point value from Production order?

    Hi
    Can u tell me how can i get the Unloading Point  value from Production order where the
    Warehouse no,
    Movement Type AND
    Requirement Type F is given
    Kindly send me full select query (Table name-field name).
    Moderator message: please search for available information and try solving things yourself before asking.
    locked by: Thomas Zloch on Sep 24, 2010 9:15 AM

    Try these options.
    Table: AFPO
    Field: ABLAD.
    Table: AUFM
    Field: ABLAD.

  • Creation of unloading points for STO's

    Dear Gurus,
    I have been requested to create unloading points (ABLAD) to be used in STO's.
    Can someone of you tell me what they are and where to create them?
    Thanks in advance!
    F

    Hi,
    Unloading point are comming under logistices execution -->shipping area.
    This in Material master -->sales general data view.  you can find the unloading point.
    This function using when you make shipping against the STO  through VL10B.
    SAM

  • USER EXIT/BADI for blocking pop up in VA01/VA02 for unloading point

    Hi,
    Please see details below with an example
    Following the below steps will execute the popup.
    1. VA01 (Sales Doc Create)
    Document type can be anything.This pop-up should be blocked for 'CRQ' and 'CR' types.
    2. Input “CRQ” or “CR” in the Order Type field and execute.
    3. Within the document:
    Input customer “194” as the Sold-to and Ship-to parties
    Input the PO Date field with today’s date
    Input material “475410m” and a Target Quantity of “1”
    Press Enter
    If the ship-to party has more than one unloading point  a pop up would show both values to choose one(these values come from KNVA-ABLAD).
    The code details are as follows:
    Program SAPMV45A--> Include  MV45AF0K_KUAGV_SELECT---->CALL FUNCTION 'VIEW_KUAGV'
    2)CALL FUNCTION 'VIEW_KUAGV' uses CALL FUNCTION 'SD_PARTNER_SINGLE_MODIFY' for ship-to(WE)
    3) IN FM 'SD_PARTNER_SINGLE_MODIFY'  the following sub-routine is called:
    *-- proceed inserting a partner -
    create a new xvbpa-segment
    PERFORM XVBPA_ENTRY_FILL USING LVF_VKORG LVF_VTWEG LVF_SPART
    LVF_VBELN
    fif_posnr
    LVF_KUNNR_NEW
    FIF_MANUAL_ADDRESS
    FIF_MANUAL_ADDRESS_ORIGIN
    FIF_PARVW FIF_PARGR
    LVF_PARTNER_USER
    FIF_KNREF_PARNR
    FIF_PRFRE
    FIF_BOKRE
    FIF_HISTUNR
    FIF_HZUOR
    FIF_NO_DIALOG
    LVT_XVBADR
    LVF_ACTION_TODO
    LVS_OLD_XVBPA-CNTPA
    CHANGING LVS_NEW_XVBPA
    LVT_XVBPA.
    4)This subroutine uses FM 'SD_PARTNER_ABLAD_SELECTION'  to determine unloading points for ship-to and also  brings up the pop-up using 'REUSE_ALV_POPUP_TO_SELECT'.
    partner is ship-to, so determinate unloading point
    CALL FUNCTION 'SD_PARTNER_ABLAD_SELECTION'
    EXPORTING
    FIF_KUNNR = LVS_XVBPA-KUNNR
    FIF_NO_DIALOG = LVF_NO_DIALOG
    IMPORTING
    FES_KNVA = LVS_KNVA
    EXCEPTIONS
    NO_UNLOADING_POINT = 1
    NO_SELECTION_DONE = 2
    OTHERS = 3.
    LVS_XVBPA-ABLAD = LVS_KNVA-ABLAD.
    Any help in this regard is highly appreciated.
    Sincere Regards,
    Sai.

    Have a look at below link which gives the details abt the user exits related to VA01/VA02.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • To add the "unloading point/supplier Node" field to the sales order incompl

    Hi All,
    Very Urgent treat this has high priority!
    Regarding the field "unloading point/supplier Node" in the header data of sales order VA01- Tab Shipping.
    You know if the field "unloading point/supplier Node" is missing, then Ebilling will failed. And at that moment, the system gives the order as complete even if this field is missing.
    Is it possible to add when we use the button "Incompletion log", when a manual sales order is created like showing some message stating that 'Unloading point missing or incorrect’
    Points will be rewarded for suitable answers..
    Awaiting for all your replies..
    Regards,
    Ravi Ganji

    you should be writing the code in MV45AFZZ in one of the routinues...

  • Unloading point and Goods recipient in Purchase Requisition

    Hi,
    I have a requirement to update Good Recipient and Unloading point in Purchase requisition.
    I am using BAdI ME_PROCESS_REQ_CUST and PROCESS_ACCOUNT Method.
    in PROCESS_ACCOUNT method I am using IM_ACCOUNT_REF and GET_DATA and SET_DATA methods. and this is working fine for me.
    I need your help in resolving below problem.
    If Purchase already planned with some Materials by an individual, is now added more Materials by another individual, the system should assign the values of the Goods Recipient  and Unloading Point of the second individual to the Material items in the document. The Goods Recipient and Unloading Point values of the existing Material items in the document should remain unchanged, unless these values are specifically changed by the user editing the document or the Material number of the original item has been changed by the user, following which the Goods Recipient  and Unloading Point values of the current user should be adopted instead, overwriting the existing values.
    GET_DATA and SET_DATA methods does not have the inforamtion Material number filed.
    I have also checked GET_PERSISTANT_DATA and GET_PREVIOUS_DATA.
    Please let me know which BAdI and method i can use to cater this requirement. or any Enhancement points.
    Thanks in Advance.

    Hi,
    Reason for not getting populated these fields from PR to PO
    through ME59N or ME21N is because in general, in case of service
    environment, these are not available as explained in attached
    note 118008. Their role is taken by the so-called user fields
    since release 4.0 which are declared as text fields and play
    a purely informative role only....
    These two fields have never been included into the standard
    functionalities due to the basic business process which does not
    include these fields for service transactions/functionalities.
    The fields "unloading point" and "Goods recipient" are not available
    for services in R/3.
    >>The same functionality exists for blanket pos.<<<
    One reason for this is that the account-assignment screen is filled
    by the user on sub-item level. The system aggregates this information
    to item level. This is not possible for the unloading point and goods
    recipient, because there can be several unloading points / goods re-
    cipients for one purchase/requisition order item.
    This functionality won't be available in standard R/3.
    See also note
    633986     FAQ: Account assignment in the service
    Br
    Nadia Orlandi

  • Changing unloading point using BAPI

    Hello Gurus,
                         Can we change unloading point(item level) in the sales order using BAPI_SALESORDER_CHANGE. If so please let me know how to do it.
    Thanks,
    KB

    Did you use BAPI_TRANSACTION_COMMIT after BAPI_PO_CHANGE.
    Look also at this <a href="http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm">Sample Abap code on BAPI_PO_CHANGE</a>
      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          PURCHASEORDER = T_POHEADER-PO
          POHEADER      = T_BAPI_POHEADER
          POHEADERX     = T_BAPI_POHEADERX
        TABLES
          RETURN        = T_BAPIRETURN
          POITEM        = T_BAPI_POITEM
          POITEMX       = T_BAPI_POITEMX.
      READ TABLE t_bapireturn WITH KEY type = c_err TRANSPORTING NO FIELDS.
      IF sy-subrc NE 0.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = c_x.
      ENDIF.
    Regards

  • Duplicate of unloading point info in PR for line items

    Hi
    We have a Vendor Stock Inventory (VSI) scenario where when we we create Reservation for VSI material then PR is getting created automatically.
    Now we found out that when we create reservation for multiple line items giving different unloading point but when single PR is getting created for mulitple line items , all line items have same unloading point which is incorrect behaviour beacuse while creating reservation we have given different unloading point on line items.
    We are using bapi BAPI_REQUISITION_CREATE to create PR.
    Any clue to this problem . Is this standard SAP bug?? If yes any OSS note on this.
    Regards,
    Ashish

    There was bug in the exit program and this is now resolved.

  • Unloading point is not copied from PR -PO,when i change account assignment

    Hi All,
    unloading point is not copied from PR -PO,when i change account assignment from 'K' to 'F' in PO. unloading point field should be in display for both 'K' & 'F' Account assignment category in SPRO because we r using this field to acknowledge my thirty party planning system.
    Thanks in advance
    Vengal Rao

    Have a look at SAP note <a href="https://service.sap.com/sap/support/notes/734273">734273</a>

  • Report - Unloading point wise

    Hi all,
    I would like to see the amount of material that has been received in to stock based on " unloading point " field. Is there any standard reports are available in the system?  If yes, kindly provide the details of the report. Otherwise kindly explain how to see the material  stock based on above requirement.
    Edited by: Saidwarakesh on Jul 27, 2009 2:08 PM

    Hi Saidwarakesh ,
    Try to collect the PO from Table EKKN based on unloading point.
    Later enter the PO no's in EKBE .Check it.
    Regards
    Ramesh Ch

  • Unloading point not transmited to vendor through EDI in SA

    Hi ,
    Unloading point details are not transmited to vendor for perticular material in SA . What will be the possible reason for this ? . It was gone as blank in ASN . But in message details auto unloading point details are their .
    RB
    Edited by: Raghavendra Balegar on Dec 10, 2009 5:31 AM

    Hi,
    You should create an incoming message of type DESADV which will create ASN in you system as inbound delivery. Purchase Order confirmation control key should allow such confirmation.
    Best Regards,
    Tomek

  • Unloading point not transmited to vendor through EDI in Scheduleing Agreeme

    Hi ,
    Unloaloading point details are not transmited to vendor through EDI in scheduleing agreement . What would be the possible reason ? . Auto unloading point detials are their for perticular material in message details .
    RB

    Hi ,
    Currently we are using Message Type - GSVERF , Basic type - GSVERF03 , Processing code- GSVE , FM-IDOC_INPUT_GSVERF_START and assigned this FM to Object Type- BUS2094)..which is giving above error. I just found that process code GSVE is for Outbound message
    Can any one suggest /  confirm what should  be exact Message Type , Basis Type, Process code  and Funct. Module requiered  for processing EDI inbound message in MM - Logistics Inv Varification ? 
    Thanks
    NAP

  • Merging of Prodn Order number and operation number into the unloading point

    Hi,
    I am creating the production order using the Tcodes Co01 or co10 and my requirement is that after creating the production number and then when I open that one in the change mode using co02 Tcode the unloading point which is present in the Goods Receipt tab should come as a concatenation of order number and operation number .
    Thanks for the help in advance.
    Regards,
    Venkat.

    Hello Rachit,
    The relation is as follows
    AFKO-AUFPL (Routing number is Order header)
    Use this routing number to get operations from AFVC
    AFVC-VORNR gives operation number
    AFVC-LTXA1 gives operation description
    For sub-operations, VORNR will be sub-operation number, and AFVC-SUMNR for this sub-operation corresponds to the respective superior operation(refers to AFVC-APLZL).
    AFVC-APLZL is a unique number for each operation.
    Hope this helps. You can check with some existing/new orders as well.
    let me know if you need anything about split operations as well.
    Best Regards,
    Subhakanth

  • Using unloading point in MB1A mvt type 291

    Hi,
    How can I make the unloading point available for entry during goods issuance (MB1A) mvt type 291? I can't find the unloading point in the screen layout design in the Goods Issue folder in SPRO and I can't add the unloading point field in the movement type config.
    By the way, when creating reservation order using the same movement type the unloading point is available for entry.

    HI
    Go to OMJJ and select the 291 movement type and in field selection Enjoy you can add the the particular field ( Unloading point) and you can make here optional and required entry by selcting radio button. Check the field and add.

  • Mass change recipient and unloading point on material

    Hello Experts,
    Is there a way to mass change recipient and unloading point on materials in PS?
    It is quite a task to go into every parts general data screen and enter it there
    rgds
    GAR

    Ok,
    Thanks for your reply
    rgds
    GAR

Maybe you are looking for

  • How to create metheds in abap

    Hi All, Can anybody help me to know how create methods in abap and whats is the perpose of these methods. Any documentation is helpful. Thanks.. Regards, Kalpana

  • Can't drag an icon to the dock

    I am a recent Mac convert and I just set up user profiles on my Mac Mini for my two kids. My son plays Pirates of the Caribbean online. I installed it on the Mac and when I opened the applications folder and tried to drag the icon into the doc it wou

  • Walmart Moneycard Sign In Issues

    With the update to 8.1, I have not longer been able to log, or even access my Wal-Mart Money Card Account Only the top part of the page is shown. I am can use other operating systems, INCLUDING Windows 8 with zero issues, only when I updated to 8.1 i

  • RFC for reading payroll results into Accounting

    hi folks, I have the HR payroll results forwarded to accounting. I need to display these results in the accounting system. Is there a RFC enabled function module to do that? your help is really appreciated. thanks Vinu

  • Apple deciding what is junk mail and creating folders on my Mac

    I am becoming far less enthused with Apple.  For Apple to be filtering my email, to decided what is OK for me read and what is not, Apple must read my email and decide for me like a Big Brother, reasoning "it's for my own good".  Further Apple has de