BAPI_PO_GETDETAIL

Hello All,
I want to use the above BAPI to retrive purchase order details remotely.
PO details available in the  logistic system X . My client requirement is that want to store this information in system Y(this is also SAP system).
But my question is BAPI structures are not available in the system Y.
For example structure BAPIEKPO being used by the BAPI_PO_GET_DETAIL function to store purchase order line item details.
But there is no similar structure available in the system Y to call the BAPI from system X.
Creation of similar structure (BAPIEKPO having more than  180 fields) in to the the system Y would be the solution?
What could be the idle solution for this?
Waiting for your reply.
Thanks,
Sarada

Hi Atish,
No,  I need to develop one RFC using this BAPI.
I can not use ALE/IDOC functionality.
Thaks,
Sarada

Similar Messages

  • Error in bapi_po_getdetail

    Hi all,
    I am using BAPI_PO_GETDETAIL to get required data. cODE IS
    data: po_items type table of bapiekpo with header line.
    data: po_item_schedules type table of   BAPIEKET with header line.
    data: PO_ITEM_TEXTS type table of BAPIEKPOTX with header line.
    data: PO_ITEM_ACCOUNT_ASSIGNMENT type table of BAPIEKKN
                                         with header line.
    data: PO_HEADER_TEXTS type table of BAPIEKKOTX with header line.
    data: PO_HEADER type BAPIEKKOL.
    data: return1 type table of BAPIRETURN with header line.
    parameters: p_ebeln type ekko-ebeln.
    call function 'BAPI_PO_GETDETAIL'
      exporting
        purchaseorder                    = p_ebeln
        ITEMS                            = 'X'
      ACCOUNT_ASSIGNMENT               = ' '
      SCHEDULES                        = ' '
      HISTORY                          = ' '
      ITEM_TEXTS                       = ' '
      HEADER_TEXTS                     = ' '
      SERVICES                         = ' '
      CONFIRMATIONS                    = ' '
      SERVICE_TEXTS                    = ' '
      EXTENSIONS                       = ' '
    IMPORTING
        PO_HEADER                        = PO_HEADER
      PO_ADDRESS                       =
    tables
    PO_HEADER_TEXTS                  = PO_HEADER_TEXTS
       po_items                         = po_items
    PO_ITEM_ACCOUNT_ASSIGNMENT   = ITEMACCOUNT_ASSIGNMENT
       PO_ITEM_SCHEDULES                = PO_ITEM_SCHEDULES
    PO_ITEM_CONFIRMATIONS            =
    PO_ITEM_TEXTS                    = PO_ITEM_TEXTS
      PO_ITEM_HISTORY                  =
      PO_ITEM_HISTORY_TOTALS           =
      PO_ITEM_LIMITS                   =
      PO_ITEM_CONTRACT_LIMITS          =
      PO_ITEM_SERVICES                 =
      PO_ITEM_SRV_ACCASS_VALUES        =
        RETURN                           = RETURN1
      PO_SERVICES_TEXTS                =
      EXTENSIONOUT                     =
    Problum is there is no data in PO_ITEM_SCHEDULES. But there is data in database.
    What would be problum?
    plese let me know as soon as possible.
    Thank you,
    shashikanth.

    CALL FUNCTION 'BAPI_PO_GETDETAIL'
      EXPORTING
        PURCHASEORDER                    =
       ITEMS                            = 'X'
       SCHEDULES                        = 'X'
    IMPORTING
       PO_HEADER                        = tabx
       PO_ADDRESS                       = tabx
    TABLES
       PO_HEADER_TEXTS                  = tabx
       PO_ITEMS                         = tabx
       PO_ITEM_SCHEDULES                = tabx.

  • Problem with Bapi_po_Getdetail return values

    We have developed a web service in asp.net to get the details of a particular purchase order number calling Bapi_po_Getdetail. The input parameters that we pass are:
    string  ITEMS = “X”
    string PURCHASEORDER= “<purchase order number>”
    But when we debug and check the return values from the bapi, BAPIEKPO Table doesn’t have any data, it is null.
    Could someone help us, please?

    Please initialize the BAPIEKPOTable bedore call. Passing null allways returns null.
    NCo:
    string ITEMS = “X”
    string PURCHASEORDER= “<purchase order number>”
    BAPIEKPOTable result = new BAPIEKPOTable();
    proxy.Bapi_po_Getdetail(ITEMS, PURCHASEORDER, ref result);
    Soap Processor / Web Service Wizard
    string ITEMS = “X”
    string PURCHASEORDER= “<purchase order number>”
    BAPIEKPO[] result = new BAPIEKPO[0];
    proxy.Bapi_po_Getdetail(ITEMS, PURCHASEORDER, ref result);

  • Prodagio wants to use BAPI_PO_GETDETAIL, but here's the problem !!!!!

    For some PO line items, there can be multiple entries for the same line item number if there are freight charges, etc. You can see the extra entries in ME23, among other places - there will be more than one entry for the same PO line item.
    BAPI_PO_GETDETAIL appparently only brings back the "main" line item entry, and not auxiliary entries for the same line item such as those for freight.
    Any one know a different PO BAPI that will bring back the auxilliary entries associated with the same line item?
    Or will I have to do a "Z" version of the standard BAPI and put some code in to pass the auxiliary entries back to Prodagio?
    This is pretty critical, since the customer wants to use Prodagio on the front-end,  but can't unless this issue is resolved.

    The easiest way to get the ipod ejected is shut down
    the computer this will not damage the ipod but i
    would suggest that you turn off all of your antivirus
    programs all of your pop up blockers and your
    firewall that sounds like it is grabbing ahold of the
    ipod while you are trying to eject it.
    thanks, leaving the ipod attached till i close the computer seems like a safe logical solution, but i have to say that it's not a firewall and antivirus problem because i used before to eject the ipod from i tunes and it used to eject normally, till i sync the ipod with a second user on the computer ( it was also set to ''manually add songs'' with the 2 users. it is stupid, i know), i think the problem is in sync with with more than one user, so if u know a way to ''un''sync the ipod with one user or the whole computer i would be very thankful if u mention it. Also what do u think if i uninstalled itunes from the computer. would that work? i dont care if i would then lose the songs currently on the ipod, because the ipod is still new so i didnt put a lot of songs. thanks again
      Windows XP  
      Windows XP  
      Windows XP  

  • Dump in calling the BAPI_PO_GETDETAIL

    Hi
      I am getting a dump while CALLING  the BAPI_PO_GETDETAIL..
    The dump as follows:
    In the function module interface, you can specify only
    fields of a specific type and length under "PO_HEADER".
    Although the currently specified field
    "IT_HEADER" is the correct type, its length is incorrect.
    Here is my declaration.
    TYPES : BEGIN OF TY_HEADER.
    INCLUDE STRUCTURE BAPIEKKOL.
    TYPES : END OF TY_HEADER.
    CALL FUNCTION 'BAPI_PO_GETDETAIL'
      EXPORTING
        PURCHASEORDER                    = EBELN
        ITEMS                            = 'X'
      ACCOUNT_ASSIGNMENT               = ' '
      SCHEDULES                        = ' '
      HISTORY                          = ' '
      ITEM_TEXTS                       = ' '
      HEADER_TEXTS                     = ' '
      SERVICES                         = ' '
      CONFIRMATIONS                    = ' '
      SERVICE_TEXTS                    = ' '
      EXTENSIONS                       = ' '
    IMPORTING
       PO_HEADER                         = IT_HEADER
      PO_ADDRESS                       =
    TABLES
      PO_HEADER_TEXTS                  =
       PO_ITEMS                          = IT_ITEM
      PO_ITEM_ACCOUNT_ASSIGNMENT       =
      PO_ITEM_SCHEDULES                =
      PO_ITEM_CONFIRMATIONS            =
      PO_ITEM_TEXTS                    =
      PO_ITEM_HISTORY                  =
      PO_ITEM_HISTORY_TOTALS           =
      PO_ITEM_LIMITS                   =
      PO_ITEM_CONTRACT_LIMITS          =
      PO_ITEM_SERVICES                 =
      PO_ITEM_SRV_ACCASS_VALUES        =
      RETURN                           =
      PO_SERVICES_TEXTS                =
      EXTENSIONOUT                     =
      NFMETALLITMS                     =
    Its not showing any syntax error while executing it. But while runninghte program i am getting the above said dump.
    Thanks in advance
    Arun

    Hello Arun
    Once again the most important information to answer your question is missing:
    Where is the definition of IT_HEADER?
    I assume you are still using itabs with header lines (which are outdated for almost a decade).
    Why not using a clean and straightforward approach?
    DATA:
      ls_po     TYPE bapiekkol,
      lt_po      TYPE STANDARD TABLE OF bapiekkol.
    " Use LS_PO to return the PO header data.
    Regards
      Uwe

  • Delivery address in bapi_po_getdetail

    Hi friends,
    i am using a BAPI(BAPI_po_getdetail) to display PO details in this i am not able to find out the delivery address. can any one tell me in which structure and filed where  i can get directly the delivery address instead of plant and storage location.
    thanks and regards,
    venkat suman.

    Hi,
    Delivery address is not available the BAPI output.  You can get the delivery address number from structure field PO_ITEMS-ADDRESS2.  Extract the delivery address information from table ADRC by passing this address number. 
    Regards
    Vinod

  • Can someone explain these fields from BAPI_PO_GETDETAIL

    These fieds come under the table PO_ITEM_HISTORY in BAPI_PO_GETDETAIL
    PO_ITEM
    SERIAL_NO1
    WITHDR_QTY
    BLOCKED_QY
    BL_QTY
    DELIV_QTY
    PO_PR_QNT
    VAL_GR_LOC
    VAL_GR_FOR
    IV_QTY
    IV_QTY_PO
    VAL_IV_LOC
    VAL_IV_FOR
    CL_VAL_LOC
    CL_VAL_FOR
    DOP_VL_LOC
    IVVAL_LOC
    IVVAL_FOR
    DL_QTY_TRSP
    BL_QTY_TOTAL
    DL_QTY_TOTAL
    IV_QTY_TOTAL
    CURRENCYEUR
    CURRENCY_ISO

    Hi,
    I think you will get this responses with a functional Analyst or post you doubt on a SAP solutions specific forum: http://forums.sdn.sap.com/index.jspa#16
    Best Regards

  • Regarding bapi_po_getdetail   and bapi_incominginvoice_create

    can any one tell me after getting the account assignment<b>(bapi_ekkn)</b> details from the <b>bapi_po_getdetail</b> .......is there any prerequisite to follow ,to pass the account assignment details to the <b>bapi_incinv_create_account </b>and <b>bapi_incinv_create_gl_account</b>.
    if any one did the same please send me the data mapping details for the
    bapi_ekkn to  bapi_incinv_create_account
                        bapi_incinv_create_gl_account.

    Hi Kiran,
    Plese refer my code below.basically I need to update batch characteristics.
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
        EXPORTING
          objectkey                = w_object
           objecttable              = 'MCHA'
          classnum                 =  p_class
          classtype                = p_klart
      STATUS                   = '1'
      STANDARDCLASS            =
      CHANGENUMBER             =
      KEYDATE                  = SY-DATUM
      NO_DEFAULT_VALUES        = ' '
    IMPORTING
      CLASSIF_STATUS           =
        TABLES
          allocvaluesnumnew        = numtab
          allocvaluescharnew       = chatab
          allocvaluescurrnew       = curtab
          return                   = rettab
    wa_object is the concatenation of Matnumber and batch batch number but it's giving the error if I give objecttable mcha where as if I give MARA as object table No error is coming but it's changing batch characteristics. can you please throw some idea about this?
    Thanks&Regards
    Mahesh

  • BAPI_PO_GETDETAIL Documentation

    Hi, can you provide me the documentation for BAPI_PO_GETDETAIL, i am connecting to sap from java middleware, from which i need to get the PO items history.

    Hi Ramesh,
    To get the PO history details, please pass the PO number, and History as 'X' in importing parameters.
    Get the data from the tables parameter, "PO_ITEM_HISTORY" table.
    Regards,
    SHashikanth. D

  • What are all the mandatory fields of the BAPI_PO_GETDETAIL?

    Hi friends,
    I am new to XI. I am using the "BAPI_PO_GETDETAIL1" in my scenario to get details of a particular Purchase Order. Can you tell me the mandatory fields of this BAPI?
    Where should i look to identify the mandatory fields of a BAPI?
    Thanks.
    Senthil Nathan.

    Hi you can see this in SE37 under the Import Tab. Here you see that the only mandatory input field is PURCHASEORDER. So if you provide the purchaseorder number you get alle the details for that.
    Kind regards
    Mikkel

  • What are the Mandatory Fields in Transaction ME51

    Hello Seniors,
    I have a requirement about purchase order creation. In this process, I am using the BAPI named   " BAPI_PO_CREATE1 ". I have passed all the fields but when I debug and look into the internal tables, I couldn't find certain records. I even debugged " bapiret2"  and I see an error which reads "" All mandatory fields are missing"". I have even created a PO  in ME51 and found out the mandatory fields but in vain. BAPIRET2 still says, there are some more mandatory fields missing. I need to know what are all the mandatory fields to create a Purchase order using TCODE - ME51.
    Your reply is most awaited and rewarded.
    Thanks and Regards,
    MARKIV

    hi ,
    Functionality
    Function module BAPI_PO_CREATE1 enables you to create purchase orders. The BAPI uses the technology behind the Enjoy purchase order transaction ( ME21N).
    Alternatively, the IDoc type PORDCR1 is available. The data from this IDoc automatically populates the interface parameters of the function module BAPI_PO_CREATE1.
    Functionality in Detail
    Authorization
    The following authorization objects are checked when an Enjoy purchase order is created (activity 01):
    M_BEST_BSA (document type in PO)
    M_BEST_EKG (purchasing group in PO)
    M_BEST_EKO (purchasing organization in PO)
    M_BEST_WRK (plant in PO)
    Controlling adoption of field values via X bar
    For most tables, you can determine via your own parameters in the associated X bar in each case (e.g. PoItemX) whether fields are to be set initial, values inserted via the interface, or default values adopted (e.g. from Customizing or master records) (for example, it is not mandatory to adopt the material group from an underlying purchase requisition - you can change it with the BAPI).
    Transfer
    Header data
    The header data of the Enjoy purchase order is transferred in the table PoHeader.
    Item data
    The item data of the Enjoy purchase order is stored in the table PoItem (general item data). The delivery schedule lines are stored in the table PoSchedule.
    Use the table PoAccount to specify the account assignment information. If account assignments have been specified for services and limits, you show the relevant account assignment line in PoAccount in the table PoSrvAccessValues via the package number of the service or the limit.
    Services and limits
    Services, free limits and limits with contract reference can be specified in the tables PoServices, PoLimits, and PoContractLimits.
    Conditions
    Conditions are transferred in the table PoCond; header conditions in the table PoCondHeader. Price determination is reinitiated via the parameter CALCTYPE in the table PoItem.
    Vendor and delivery address
    The vendor's address can be specified individually in the table PoAddrVendor; the delivery address in the table PoAddrDelivery. If you do not make any individual specification, the fields will be populated via the central address managementfacility.
    Note
    In this method, the following restrictions apply with regard to addresses:
    Addresses can only be created with this method - they cannot be changed. You can only change address data with the method BAPI_ADDRESSORG_CHANGE.
    When you create addresses, they are not checked by the method. An Enjoy purchase order may therefore contain faulty address data.
    Partner roles
    The partners can be maintained individually via the table PoPartner (with the exception of the partner role "vendor").
    Import/export data
    Import/Export data can be specified per item in the table PoExpImpItem. Foreign trade data can only be transferred as default data for new items.
    Texts
    Header and item texts can be transferred in the tables PoTextHeader and PoTextItem. Texts for services are imported in the table PoServicesText.
    Version Management
    You can make use of the Version Management facility via the table AllVersions.
    Return
    The PO number is returned in the parameter ExpPurchaseOrder. In addition, all information except the service and export/import tables is placed in the output structures.
    Return messages
    Messages are returned in the parameter Return. This also contains information as to whether interface data has been wrongly or probably wrongly (heuristical interface check) populated. If a PO has been successfully created, the PO number is also placed in the return table with the appropriate message.
    Example
    Example of population of BAPI interface in the Function Builder
    Parameter: POHEADER
    COMP_CODE = 1000
    DOC_TYPE = NB
    ITEM_INTVL = 00001
    VENDOR = 0000001000
    PMNTTRMS = 0001
    PURCH_ORG = 1000
    PUR_GROUP = 001
    CURRENCY = EUR
    Parameter: POHEADERX
    COMP_CODE = X
    DOC_TYPE = X
    ITEM_INTVL = X
    VENDOR = X
    PMNTTRMS = X
    PURCH_ORG = X
    PUR_GROUP = X
    Parameter: POITEM
    PO_ITEM = 00001
    MATERIAL = 100-100
    PLANT = 1000
    STGE_LOC = 0001
    QUANTITY = 15.000
    TAX_CODE = V0
    ITEM_CAT = 0
    ACCTASSCAT = K
    Parameter: POITEMX
    PO_ITEM = 00001
    MATERIAL = X
    PLANT = X
    STGE_LOC = X
    QUANTITY = X
    TAX_CODE = X
    ITEM_CAT = X
    ACCTASSCAT = X
    Parameter: POSCHEDULE
    PO_ITEM = 00001
    SCHED_LINE = 0001
    DELIVERY_DATE = 02.12.2002
    QUANTITY = 6.000
    PO_ITEM = 00001
    SCHED_LINE = 0002
    DELIVERY_DATE = 03.12.2002
    QUANTITY = 5.000
    PO_ITEM = 00001
    SCHED_LINE = 0003
    DELIVERY_DATE = 04.12.2002
    QUANTITY = 4.000
    Parameter: POSCHEDULEX
    PO_ITEM = 00001
    SCHED_LINE = 0001
    PO_ITEMX = X
    SCHED_LINEX = X
    DELIVERY_DATE = X
    QUANTITY = X
    PO_ITEM = 00001
    SCHED_LINE = 0002
    PO_ITEMX = X
    SCHED_LINEX = X
    DELIVERY_DATE = X
    QUANTITY = X
    PO_ITEM = 00001
    SCHED_LINE = 0003
    PO_ITEMX = X
    SCHED_LINEX = X
    DELIVERY_DATE = X
    QUANTITY = X
    Parameter: POACCOUNT
    PO_ITEM = 00001
    SERIAL_NO = 01
    QUANTITY = 15.000
    GL_ACCOUNT = 0000400000
    COSTCENTER = 0000001000
    CO_AREA = 1000
    Parameter: POACCOUNTX
    PO_ITEM = 00001
    SERIAL_NO = 01
    QUANTITY = X
    GL_ACCOUNT = X
    COSTCENTER = X
    CO_AREA = X
    Parameter: POCOND
    ITM_NUMBER = 000001
    COND_ST_NO = 001
    COND_TYPE = PB00
    COND_VALUE = 79.900000000
    CURRENCY = EUR
    CURRENCY_ISO = EUR
    COND_UNIT = KG
    COND_P_UNT = 1
    CHANGE_ID = U
    Parameter: POCONDX
    ITM_NUMBER =  000001
    COND_ST_NO =  000
    ITM_NUMBERX =  X
    COND_TYPE =  X
    COND_VALUE =  X
    CURRENCY =  X
    CHANGE_ID =  X
    Parameter: POPARTNER
    PARTNERDESC =  OA
    LANGU =  EN
    BUSPARTNO =  0000001100
    PARTNERDESC =  GS
    LANGU =  EN
    BUSPARTNO =  0000001200
    PARTNERDESC =  PI
    LANGU =  EN
    BUSPARTNO =  0000001000
    Help in the Case of Problems
    1. Note 197958 lists answers to frequently asked questions (FAQs). (Note 499626 contains answers to FAQs relating to External Services Management.)
    2. If you have detected an error in the function of a BAPI, kindly create a reproducible example in the test data directory in the Function Builder (transaction code SE37). Note 375886 tells you how to do this.
    3. If the problem persists, please create a Customer Problem Message for the componente MM-PUR-PO-BAPI, and document the reproducible example where necessary.
    Customer Enhancements
    The following user exits (function modules) are available for the BAPI BAPI_PO_CREATE1:
    EXIT_SAPL2012_001 (at start of BAPI)
    EXIT_SAPL2012_003 (at end of BAPI)
    The following user exits (function modules) are available for the BAPI BAPI BAPI_PO_CHANGE:
    EXIT_SAPL2012_002 (at start of BAPI)
    EXIT_SAPL2012_004 (at end of BAPI)
    These exits belong to the enhancement SAPL2012 (see also transaction codes SMOD and CMOD).
    There is also the option of populating customer-specific fields for header, item, or account assignment data via the parameter EXTENSIONIN.
    Further information
    1. Note 197958 contains up-to-date information on the purchase order BAPIs.
    2. If you test the BAPIs BAPI_PO_CREATE1 or BAPI_PO_CHANGE in the Function Builder (transaction code SE37), no database updates will be carried out. If you need this function, please take a look at Note 420646.
    3. The BAPI BAPI_PO_GETDETAIL serves to read the details of a purchase order. The BAPI cannot read all details (e.g. conditions). However, you can use the BAPI BAPI_PO_CHANGE for this purpose if only the document number is populated and the initiator has change authorizations for purchase orders.
    4. Frequently used BAPIs for purchase orders are BAPI_PO_CREATE, BAPI_PO_CREATE1, BAPI_PO_CHANGE, BAPI_PO_GETDETAIL, BAPI_PO_GETITEMS, BAPI_PO_GETITEMSREL, and BAPI_PO_GETRELINFO.
    5. For more information on purchase orders, refer to the SAP library (under MM Purchasing -> Purchase Orders) or the Help for the Enjoy Purchase Order, or choose the path Tools -> ABAP Workbench -> Overview -> BAPI Explorer from the SAP menu.
    regards
    reena

  • Text in PO(text tab in header & item) is not shown in the Print Preview

    Hi Guys,
                I face a problem in ME23N.Text maintained in Purchase Orders (text tab in header & item)  is not shown in the Print Preview.
                Can you guys help.Do I need to write a subroutine pool for this.
                <<text removed by moderator>>
    Regards,
    Rajiv
    Edited by: Matt on Nov 12, 2008 1:20 PM

    Hi ,
    Use bapi bapi_po_getdetail .
    CALL FUNCTION 'BAPI_PO_GETDETAIL'
        EXPORTING
          purchaseorder   = is_ekko-ebeln
          item_texts      = c_x
          header_texts    = c_x
        TABLES
          po_header_texts = it_header_text
          po_item_texts   = it_item_text.
    Regards
    Neetesh

  • BAPI for PURCHASE ORDER with OPEN QUANTITY field

    Hi All,
    I wanted to use the BAPI_PO_GETDETAIL to get the Purchase Order details upon triggering from Warehouse management system,
    But the details required contains a field called OPEN QUANTITY...which is not used in this BAPI.
    I request to let me know if any BAPI exits for PO details having the structure for this field:Open Quantity.
    Am using SAP version 4.0B.
    If not exists please advise how to customize the existing BAPI to meet the requirement.
    thanks
    mahi

    Hi,
    Open quantity is a calculated field. I guess the BAPI gives the details of the delivery, so take the ordered qty and substract the delivered qty from that.
    Delivery data is EKET table.
    Regards,
    Ravi

  • Purchase order text report

    Hi All,
      I want to take report of "Purchase order text" which is stored in material master.
    Any Idea pls let me know....
    Thanks
    Hari

    Dear Hari,
    You can use BAPI_PO_GETDETAIL1 or BAPI_PO_GETDETAIL to retrieve the data in your program.Enter the PO number and tick the item text and header text indicator.
    Regards,
    w1n

  • Is there any Function module available for GR IR for purchase order

    Hi
    Is there any function module available in SAP to get the list of Goods Received and Invoice Reciept for a purchase order.
    One way to create a custom fuction to fetch the details from MSEG and BKPF.
    Can somebody suggest a better solution.
    Thanks in advance.
    Ruhi Hira

    Which table in BAPI_PO_GETDETAILS exactly has these information ?
    PO_HEADER_TEXTS
    PO_ITEMS
    PO_ITEM_ACCOUNT_ASSIGNMENT
    PO_ITEM_SCHEDULES
    PO_ITEM_CONFIRMATIONS
    PO_ITEM_TEXTS
    PO_ITEM_HISTORY
    PO_ITEM_HISTORY_TOTALS
    PO_ITEM_LIMITS
    PO_ITEM_CONTRACT_LIMITS
    PO_ITEM_SERVICES
    PO_ITEM_SRV_ACCASS_VALUES
    RETURN
    PO_SERVICES_TEXTS
    EXTENSIONOUT
    NFMETALLITMS
    Regards
    Ruhi Hira

Maybe you are looking for