Delivery Address in PO - Function module?

Hi Experts,
I there any Function module to retrieve the Delivery address in a PO.
I am trying to find if the plant address & Delivery address are same or different.
regards,
Kevin.

Hi,
Its giving all details except Delivery address.
That table is empty .
I tried marking X for del alone & to all.
is there any other way i ca get the delivery address.
Thanks for your response.
Your answer was helpful though.
regards,
Kevin.

Similar Messages

  • Chaging the sender address in the function module

    Hi All,
    Can we change the sender address in the function module 'SO_NEW_DOCUMENT_SEND_API1' .
    Thanks & Regards
    Warun Kumar todimala

    Hi Vijay,
    Ima getting sy-subrc as 5 document_error when iam using this function module.
    Regards
    Warun

  • Equipment record address creation via function module

    How can I  populate an Equipment record's address via a function module?  I'm referrring to the Address area of the Location tab in tcode IE02. BAPI_EQUI_CREATE works fine for the base data but has no address capabilities.

    Alejiandro
    Yes it was ITOB410. I tried the lock_old parm without luck but was able to get around that problem with an explicit calll to FM EQUIPMENT_LOCK. However, I have a new problem with the FM.
    The LOCK FM got rid of the BLOCKED issue. However, now an internal call from EQUIPMENT_MODIFY to EQUI_GET_SAVE_DATA is causing a short dump in include LITOBBUFEQF70 on:
    120           IF NOT SY-SUBRC IS INITIAL.
    121 *         try to read lock table by matnr/sernr
    122             READ TABLE I_WA-LOCK ASSIGNING <L_WA_LOCK_REC>
    123                  WITH TABLE KEY EQUNR = SPACE
    124                                 MATNR = <L_WA_EQUI_REC_WBUF>-EQUI
    125                                 SERNR = <L_WA_EQUI_REC_WBUF>-EQUI
    126             IF NOT SY-SUBRC IS INITIAL.
    >>>>               MESSAGE X003.
    128             ENDIF.
    129           ENDIF.
    Have you seen this?

  • Automatic packing of delivery through BAPI or function module

    Hello,
            I have a requirement to invoke the automatic packing functionality of a delivery through a delivery output type as soon as the delivery is saved in the system. We have a delivery output type ZPAC with special function. I am looking for a function module or BAPI which satisfies the functionality so that I can plug it in the custom program I develop to drive the ZPAC output type. Any inputs will be greatly appreciated.
    Thanks,
    Giri..

    Thanks Mike. Appreciated ur answer.
    I am trying same function module "CBGL_LB61_LABEL_GENERATE" in SE37 to get a sense how it generate the file.
    But when i execute in different data combination, it never executed successfully.
    So do you have more info to execute this function module successfully.
    ex: I_label accepts a ID which is 4 digit. so which id it says here.
    Thanks again Mike. Let me know if you have more info on this.

  • Delivery change function module

    Dear all
    Can anyone tell me the Function module for Out bound Delivery Deletion.
    How can we delete the delivery through the following function module.
    What data  needs to be populated in to the FM!
    BAPI_OUTB_DELIVERY_CHANGE
    Could u please some one help me.
    Regards
    raj

    Hi,
    For deleting the delivery I think it would be sufficient to set the DLV_DEL of the Header control data flag to 'X'.
    Pass the HEADER_CONTROL-DELIV_NUMB and HEADER_CONTROL-DLV_DEL = 'X'
    You might also have to pass the delivery number to HEADER_DATA-DELIV_NUMB. Not sure of this, you test this in transaction SE37.
    But if you want to delete a single item, then you will have to pass data to
    ITEM_CONTROL-DELIV_NUMB
    ITEM_CONTROL-DELIV_ITEM
    ITEM_CONTROL-DEL_ITEM = 'X'.
    You might also have to pass the delivery number and item number to ITEM_DATA-DELIV_NUMB and ITEM_DATA-DELIV_ITEM. Also not sure of this, you test this in transaction SE37.
    regards,
    Advait

  • Function module to create and change delivery

    Hi,
    I need to create a function module to create and change delivery using the same function module.
    For this I want to call the bapi's BAPI_OUTB_DELIVERY_CREATE_SLS
    and BAPI_OUTB_DELIVERY_CHANGE.
    So what are the variables I need to declare in source code of my function module.
    Can anybody please suggest me.
    thanks,
    Sudheer

    Hi Sudheer,
                      Check this out
    In the BAPI BAPI_OUTB_DELIVERY_CREATE_SLS
    You need to provide
    SHIP_POINT - Goods receiving point for the returned goods.
    DUE_DATE - Delivery creation date selected as december 12
               9999 unless specified.
    DEBUG_FLAG makes analysis of the process earlier .
    call function 'BAPI_OUTB_DELIVERY_CREATE_SLS'
    DESTINATION logsys
    EXPORTING
    SHIP_POINT = 'MD01'
    DUE_DATE = sy-datum
    DEBUG_FLG = 'X'
    importing
    *delivery = lf_vbeln
    *num_deliveries = lf_num
    *tables
    *sales_order_items = lt_order
    *extension_in = lt_extin
    *deliveries = lt_deli
    *created_items = lt_itm
    *extension_out = lt_extout
    *return = lt_return
    For the BAPI_OUTB_DELIVERY_CHANGE.
    Please read the documentation of the function provided there.
    A Wiki To support your need.
    Link: [Wiki|https://wiki.sdn.sap.com/wiki/display/ABAP/Changeoutbounddelivery+%28VL02%29]
    hope your query resolves soon.
    Have a best day ahead.

  • Tax Jurisdiction code is not replicating from Delivery address tab to Invoi

    Hi Gurus,
             when i trying to change the value i.e tax jurisdiction code in the  delivery address tab that value is not replicating to the Invoice tab in the transaction ME22N.
    How to resolve this ???
    thanks in advance.

    Hi,
    Make use of this BADI  ME_TAX_FROM_ADDRESS in this use method  GETTXJCD_
    You will get the delivery address number using function modeul  MM_DELIVERY_ADDRESS_TXJCD_GET
    Regards,
    Pravin

  • How to use function module ADDRESS_INTO_PRINTFORM in a smart form

    Hi Experts,
    I have a requirement where in the address window in the smart form output should be  country specific. For example if the customer is an Indian . The address should NAME,CITY and POSTAL CODE. I searched on web to find a function module wich will display the address in country specific format I found ADDRESS_INTO_PRINTFORM I am not sure whether this is right function module or not. If this is correct please help me in using this.
    Thanks and Regards,
    Srini..

    That function module should be able to do the formatting you're after, as long as the necessary settings are present in the country configuration. It appears the default formatting routine for India would want the postal code before the city, so you may have to change that if your requirement calls it for being after the city. But keep in mind that such config changes will have an effect on other programs that format addresses.
    The function module also has pretty extensive documentation.
    In a Smartform, you have an ADDRESS element that does the formatting for you, so theoretically you shouldn't have to use the function module though...

  • Sold to Party and Ship to Party Function module or BAPI

    Hi Experts,
       1) I need to create customer data,So i need to Function module or BAPI.
       2) Address create data Function module or BAPI.
       3) Sold to Party and Ship to Party Function module or BAPI relation ship.
    Thank you ,
    Dinesh Reddy
    Moderator message: anything else? please search for available information before asking.
    Edited by: Thomas Zloch on Oct 14, 2011 3:19 PM

    Hi,
      Try these Bapis
    BAPI_BUS2001_PARTNER_GETDETAIL Get Detail Data for Partner Data
    BAPI_BUS2001_PARTNER_GETLIST   Get Overview List for Partner Data
    Regards,
    Prashant

  • Function module for getting Vendor Address details

    Hi,
    Im new to this group,and new to ABAP
    plz hep me out by solving ABAP Query...
    i want to generate a report for getting Vendor Details
    like Vendor address,Ph num and Email
    input fields are Company code,country key and Account Group.
    im Using Smart Forms for this..
    but im not getting the Exact Function module to get All Required Details..
    regards
    Smitha

    thanks for ur quick reply...
    SELECT SINGLE LIFNR
      FROM LFB1
      INTO V_LIFNR
      WHERE BUKRS EQ V_BUKRS.
      CALL FUNCTION 'VENDOR_READ'
        EXPORTING
          i_bukrs         = V_BUKRS
          i_lifnr         = V_LIFNR
        EXCEPTIONS
         NOT_FOUND       = 1
         OTHERS          = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    this is the code i have written...
    but my problem is there no table in the Function module....
    for Example...
    CALL FUNCTION 'QPAX_PLMKB_READ_FROM_PLKO'
        EXPORTING
          i_plnty            = 'Q'
          i_plnnr            = V_PLNNR
          I_PLNAL            = V_PLNAL
          i_sttag            = V_DATUV
       TABLES
        T_PLMKB_TAB        = IT_TAB
    i want the function modules with tables and proper input...

  • Packing a Delivery via function modules or BAPI's

    Does anyone know the correct function modules to call in order to pack an outbound delivery.  The HU is already been entered into the delivery.  I just need to pack all the items into this HU and PGI the delivery.  I've tried the following function modules:
    SD_DELIVERY_UPDATE_PACKING
    V51P_FIND_HEADER
    V51P_NEUE_HU_PRO
    I'm not sure what I'm doing wrong but the delivery doesn't get packed.  Anyone have a clue?
    Thank you,

    The problem resides in external unique number assignement for handling units:
    in SPRO:
    > Logistics - General
      > Handling Unit Management
        > External Identification
          > Set Unique Number Assignment for HU Identification
    Simply flag the checkbox and Save!
    Without this flag BAPI's raise this info message (HUDIALOG 038). Even if it is an info message and the number is returned at the end the handling unit won't be created!
    Just flag it!

  • Function Module for Changing delivery date

    Hi Friends ,
        I am held up with a scenario of changing the delivery date while creating purchase order. Could you please suggest any function module to change the delivery date in purchase order if it is less than 5 days.
    With Regards ,
    Sudhir S
    Moderator message: please do some own research before asking.
    Edited by: Thomas Zloch on Feb 21, 2011 11:45 AM

    Hi praveen for u r requirement there is no need of any FM
    Try this code
    parameters:
      p_date like sy-datum,
      p_no type i.
    data:
      w_date like sy-datum.
    w_date = p_date - p_no.
    write: / w_date .
    it is enogh for u r requirement
    plzz reward if it is usefull...
    for any further quiries my mail id is [email protected]
    plzz dont forget to reward

  • Function Module to Fetch data of Vendor for Inbound Delivery at runtime

    Hi All,
    I am new to EWM. I am using BADI /SCWM/EX_DLV_DET_PROCTYPE method CHANGE_PROCTYPE to change process type of the inbound delivery as per some logic from a custom table. However the parameter Vendor is not available in IS_ITEM during inbound delivery creation. Vendor is one of the key fields in my table.
    Does anyone know any solution/function modules to fetch vendor data for the inbound delivery at runtime. I know the database tables to fetch vendor but this works only once the inbound delivery is saved.
    Thanks and Regards,
      Vanessa Noronha

    Hi All,
    I am new to EWM. I am using BADI /SCWM/EX_DLV_DET_PROCTYPE method CHANGE_PROCTYPE to change process type of the inbound delivery as per some logic from a custom table. However the parameter Vendor is not available in IS_ITEM during inbound delivery creation. Vendor is one of the key fields in my table.
    Does anyone know any solution/function modules to fetch vendor data for the inbound delivery at runtime. I know the database tables to fetch vendor but this works only once the inbound delivery is saved.
    Thanks and Regards,
      Vanessa Noronha

  • Function Module to get address from adrc table

    Hi,
    Is there any Function module which is retrieving data from ADRC table by passing address number.
    I tried in SDN and I got address_read but its obsolete.

    Hi,
    Please try this piece of code
    data: wa_addr1_sel like addr1_sel,
    wa_addr1_val like addr1_val.
    clear : wa_addr1_sel, wa_addr1_val.
    wa_addr1_sel-addrnumber = it_adrnr-adrnr.
    call function 'ADDR_GET'
    exporting
    address_selection = wa_addr1_sel
    importing
    address_value = wa_addr1_val
    exceptions
    parameter_error = 1
    address_not_exist = 2
    version_not_exist = 3
    internal_error = 4
    others = 5.
    if sy-subrc eq 0.
    it_addr-adrnr = wa_addr1_val-addrnumber.
    it_addr-name1 = wa_addr1_val-name1.
    it_addr-street = wa_addr1_val-street.
    it_addr-city = wa_addr1_val-city1.
    it_addr-region = wa_addr1_val-region.
    append it_addr.
    clear it_addr.
    endif.
    Regards
    Hiren k.Chitalia

  • Function module to get customer's  PO box address?

    Hello friends,
    I want to display customer address in my report.
    When we execute XD03 and enter any customer number, address details displays in various sections..like..
    Name, Search Terms, Street Address,PO box address and Communication.
    I need function module which gives me the details of "PO box address".
    Is there any function available in abap?
    Thanks
    RH

    Hello,
    You can use the BAPI: BAPI_CUSTOMER_GETDETAIL2. In the EXPORT parameter you have a structure for Customer Addr. (CUSTOMERADDRESS LIKE BAPICUSTOMER_04).
    The PO BOX is in BAPICUSTOMER_04-PO_BOX.
    Hope this helps.
    BR,
    Suhas

Maybe you are looking for