Oracle B2B - Trading Partner identification for Custom XML purchase order

Hi ,
How to identify From TP and To TP from the data available in the custom XML?
Also need know will it be possible to identify the Agreement based on XML data of custom purchase order (Not with File Name format identification)?
Thank you.
Regards
Anvesh Raju

Hi,
please refer to below doc for various identification options
Creating Types - 11g Release 1 (11.1.1.7)
Generic exchange is also discussed
Thanks,
Prasanna

Similar Messages

  • AS2 and Trading Partner Identification for MDN

    Hi,
    I have a scenario where I have multiple Trading Partners that all use the same hub provider. I have setup the trading partners individually in B2B so the trading partner can be identified regardless of the transport server endpoint.
    For inbound documents I use the 'Identifying XPATH Expression" and "Identification Value" to override the default Document Definition so I can see which Trading Partner the Invoice is from, regardless of the hub provider that sent it. This is working fine.
    However, when sending outbound documents such as a Purchase Order the ourbound document is shown correctly :-
    HealthCorporateNetworkWA BBraunAustraliaPtyLtd AS2 - 1.1 GS1_MultishipmentOrder_Doc - 2.5 GS1_MultishipmentOrder_Action Complete 30 March 2009 10:07:54
    Whereas when the MDN is returned it is identified as another trading partner :-
    BaxterHealthcarePtyLtd HealthCorporateNetworkWA AS2 - 1.1 GS1_MultishipmentOrder_Doc - 2.5 Acknowledgement Complete 30 March 2009 10:07:59
    These are 2 seperate agreements that are deployed and I assume that the b2b instance is simply identifying the appropriate Trading Partner Agreement by the AS2 Identifier only ?
    Is there anyway to modify this behaviour ? Obviously I want it to indicate that the MDN is coming from the Trading Partner I sent the PO to ? If I got the hub provider to apply a AS2 Custom Header would I be able to use this instead by adding a new Trading Partner Identification Type and then using that as the identifier in the TP Agreement ?
    Given the MDN is a synchronous response, why isnt it associated with the same TP Agreement ?
    Any ideas ?

    You are using custom over AS2 business protocol where in the identification of trading partner can only be based
    on the Exchange which is by AS2 identifier. The identification of Agreement is happening in the document layer which is nothing to do with whether the Acknowledgement is Sync/Async.
    Ideally you should create the agreement between host and hub provider

  • B2B Trading partner identification

    We have the following scenario:
    1. Trading Partner sends X12 PO 850 ( one Interchange ID) But at our side we have multiple Interchange ID's . So file comes from single customer ( single sender ID) but having multiple Receiver ID's.
    So is this true that only way to handle this is to create multiple Partners in Oracle B2B and attach Sender Receiver ID's on aggrement?
    I tried above option but B2B is not able to identiify TP based on SENDER RECEIVED ID combination. We have b2b.edi.identifyToTP =true.
    Error Code B2B-50549
    Error Description Machine Info: (xyz.americas.com) Description: Cannot uniquely identify a trading partner. The trading partners CA_SEARS, SCA_SEARS have the same set of identifications.
    Error Level ERROR_LEVEL_COLLABORATION
    Error Severity ERROR
    Error Text Cannot uniquely identify a trading partner. The trading partners CA_SEARS, SCA_SEARS have the same set of identifications
    Vijay.

    Now problem is with outbound.... we need to send outbound docs to different channels for same Tp based on our different Sender ID's. So I thought to create 2 different tp is B2B and use seperate channels for both.Ok. If I understood it correctly, then in your scenario you have to send same document (doctype and docrevision) to same TP on different URL's based on your different sender ID's. If this is the case then definitely you have to have two remote TP's in your B2B configuration but both remote TP's should use different receiver ID's (your TP should have two interchange id's).
    What happening currently is that you have created two separate TP's but both of them are using same interchange id's which is not possible in B2B scenario. All TP's must have unique Interchange ID's
    Regards,
    Anuj

  • Deletion of name in trading partner identification of host trading partner

    Hi,
    Is there a way to delete the name of host trading partner under Trading partner identification?
    I have two names to the same host trading partner "MyCompany" and "TestCompany".
    Now i want to delete "TestCompany" from the list (It is not showing me delete option for either of them).
    Kindly let me know how to do this.

    Hi Vithal,
    If you are not getting the delete option then you are not supposed to delete those names. Have you created thses names by yourself or it was already there after installation? Names created by you should get deleted.
    You may contact Oracle for the script but it is not a good practice and moreover extra names in identification details never harm any configuration in any way.
    Regards,
    Anuj

  • How will i configure partner determination for customer master

    how will i configure partner determination for customer master data.

    hi
    Check this
    BUSINESS PARTNERS AND PARTNER DETERMINATION
    In the partner determination procedure you can determine whether partner functions can or should occur in a partner object (Customer Master, Sales Document, Item Category etc.) For each object, in which partner function can be created, you can define partner procedures. This also means that
    For Customer Master
    For Sales Documents
    For Sales Documents and Billing Documents: for items
    We can define our partner determination procedure for each of these levels as shown below. In Blue are given the ones wherein the Partner Procedures are assigned to the Partner Objects
    Customer Master Account Group
    Sales Document Header Sales Document Type
    Sales document Item Item Category in sales
    Delivery Delivery Type
    Billing Header Billing Type
    Billing Item Billing Type
    Sales Activity Sales Activity type
    By assigning a procedure you determine for which account groups (for the customer master), which sales document types (for sales documents) and for which item categories this procedure would be valid.
    In the partner determination procedure you can determine for each partner function
    whether the partner function is an obligatory partner function
    whether the partner function can be changed in the document
    BUSINESS PARTNER FUNCTION
    By assigning a business partner function to a partner you can determine which functions the partner fulfils in the business process. Partner Functions are classified using partner type. The partner type represents the roles played by the business partner within the business transaction.
    Following partner functions exist in the standard process of Sales and Distribution
    Partner Type Customer
    Sold-to Party, Ship-to Party, Bill-to Party, Payer and Sold-to Party authorized to release against a contract. You can define the sold-to party authorized to release against a contract in the partner screen of a contract. This partner may only schedule orders with reference to this contract, even when he is not the sold-to party authorized against a contract.
    Partner Type Contact Person
    Contact persons are natural persons whom you must contact at the customers for business processing (e.g. purchasers) Contact person can be created directly in customer master record.
    Partner Type Vendor
    A forwarding agent is an example of a business partner on the credit side, who is included in a sales process. If you commission a particular forwarding agent for deliveries to a specific customer, you can define the forwarding agent in the customer master record as the partner.
    The other possible partner functions on the credit side in the sale process are interpreters, auditors etc. The forwarding agent is an agent who performs transportation services. This includes organizing the shipment, delivery and receipt of the goods, arranging the carrier services and handling the customs issues.
    Partner Type Personnel
    Employee Responsible
    Sales Personnel
    You can enter an employee from your firm as the person responsible:
    In the Customer Master – If the employee is normally responsible for processing transactions with this customer.
    In the Sales Document – If the employee is responsible for processing the Business Transaction.
    STEP WISE PROCESS FOR PARTNER DETERMINATION PROCEDURE
    Sales and Distribution->Basic Functions->Partner Determination->set Up Partner Determination->Set up Partner Determination for Customer Master.
    First go to OVT0 – create customer account groups. Here you make new entries, click whether it is a one time customer, description. Also you can do the field selection here for general data, co. code data and sales area data.
    Now go to IMG – logistics general – business partner – customers – control – define & assign customer number ranges define the number. Here you range that you want and assign it to your customer account group.
    Now go to VOPA – here the selection will be on customer master, click on partner procedures, create the partner determination procedure. The following steps need to be done in partner determination area
    Assign partner function to account group i.e SP,SH, BP, PY to account group (debit side ). Sales and Distribution->Basic Functions->Partner Determination->Assign Partner Functions on the debit side to account Groups.
    Then create Partner Determination Procedure.
    Assign the Partner Determination Procedure to Partner Function.
    Then finally assign the Partner Determination Procedure to acc group.
    Important Points in Business Partners and Partner Determination Procedure
    Partner relationship maintained/defined in the customer master is proposed automatically in the document header when you create a sales document.
    In customizing we can decide whether several partners can be assigned to one partner function in the customer master.
    In sales documents, the system is configured so that only one partner can be assigned to each partner function.
    We can define partners at item level in the sales documents.
    Business Partners that are defined at the header level however cannot be changed at the item level.
    You can prohibit anyone from changing a partner that has already been entered in a sales document.
    It is also possible to manually change or enter the address of a partner, such as the Ship-to Party. This change does not affect the master record.

  • Trading partner field in Customer Master

    hi,
    please let me know where does VBUND (trading partner) appear in Customer master transaction.
    regards,
    GHS.

    General data level -control data-account control tab---behind vendor you will see trading partner field
    Regards
    raja

  • How to Enable Delta for a Custom MM Purchase Order History ODS ???

    Hi all,
       We have a Customized MM Purchase Order History ODS with Full Update on Monthly basis. We want to enable the DELTA for this ODS and how can I proceed, PLEASE.
    Please find the Key Figures and Data Fields in the below:
    ODS Structure for PO History ODS:     
    Key Fields
    SAP R/3 Field Description             Technical Name
    Purchasing Document Number             EKBE-EBELN
    Purchasing Line Item Number             EKBE-EBELP
    Sequential number of account assignment     EKBE-ZEKKN
    Transaction/event type, purchase order history     EKBE-VGABE
    FI Fiscal Period     FISCPER (from BKPF-GJAHR + BKPF-MONAT) in the format YYYYPPPP
    Number of Material Document             EKBE-BELNR
    Item in Material Document             EKBE-BUZEI
    Data Fields
    SAP R/3 Field Description     Technical Name
    Company Code     EKKO-BUKRS
    Plant     EKPO-EWERK
    Account Number of the Vendor                   EKKO-LIFNR
    Currency Key (of PO)                           EKKO-WAERS
    Deletion indicator in purchasing document     EKPO-LOEKZ
    Purchasing Document Date                   EKKO-BEDAT
    Responsible salesperson at vendor's office    EKKO-VERKF
    Vendor's telephone number                   EKKO-TELF1
    Incoterms (part 1)                           EKKO-INCO1
    Incoterms (part 2)                           EKKO-INCO2
    Short text                                   EKPO-TXZ01
    Material Group                                   EKPO-MATKL
    Material Number used by Vendor                   EKPO-IDNLF
    Expected Delivery Date                           EKET-EINDT
    Order unit (UOM)                           EKPO-BSTME
    Delivery Completed Indicator                   EKPO-ELIKZ
    Account assignment category                   EKPO-KNTTP
    Business Area (from PO)                           EKKN-GSBER
    Name of requisitioner/requester                   EKPO-AFNAM
    Purchasing organization                           EKKO-EKORG
    Purchasing group                           EKKO-BKGRP
    G/L Account Number (from PO)                   EKKN-SAKTO
    Cost Center (from PO)                           EKKN-KOSTL
    Work Breakdown Structure Element (WBS Element)     EKKN-PS_PSP_PNR
    Payment Terms (from PO)                           EKKO-ZTERM
    PO History Category                            EKBE-BEWTP
    Movement Type                        EKBE-BWART, MSEG-BWART
    Debit/Credit Indicator                     EKBE-SHKZG
    Reference from Invoice                     RBKP-XBLNR
    Payment Terms (from Invoice)             RBKP-ZTERM
    Posting Date      RBKP-BUDAT for IR, MKPF-BLDAT for GR
    Document Date      RBKP-BLDAT for Invoice, MKPF-BLDAT for GR
    Baseline Date     RBKP-ZFBDT
    FI Document Number      BKPF-BELNR, found through BKPF-AWKEY (IR # or GR # + fiscal year) or MSEG-LFBNR
    FI Dcoument Year          BKPF-GJAHR
    FI Document Type          BKPF-BLART
    Fiscal Variant     Hardcoded: S4
    Payment Method (invoice header level)     RBKP-ZLSCH
    GL Account (from GR/IR document)     MSEG-SAKTO for GR, DRSEG-SAKNR for IR (DRSEG is a structure)
    Cost Cener (from GR/IR document)     MSEG-KOSTL for GR, DRSEG-KOSTL (DRSEG is a structure) for IR
    Business Area (from GR/IR document)     MSEG-PARGB; not sure on IR
    Local Currency                             BKPF-HWAE
    Local Currency 2                     BKPF-HWAE2
    Amount posted to GR/IR Clearing (LC)     EKBE-AREWR
    Amount posted to GR/IR Clearing (GC)     EKBE-AREWR converted to Group Currecny found through BKPF-KURS2 if BKPF-HWAE2 is USD
    Purchase order quantity                           EKPO-BSTMG
    Price Unit (for PO)                           EKPO-PEINH
    Net price in purchasing document (in document currency)                                           EKPO-BPREI
    Amount in local currency; amount in document currency     MSEG-DMBTR for material document, RSEG-WRBTR for invoice
    Amount in local currency; amount in document currency (GC)     MSEG-DMBTR for material document,
            RSEG-WRBTR for invoice converted to USD
    Quantity      MSEG-ERFMG for material document;
                    RSEG-MENGE for Invoice
    Delivery costs' share of item value     RSEG-BNKAN
    Delivery costs' share of item value (GC)RSEG-BNKAN converted to USD
    Tax Amount (accrued)             BSEG-PSWBT
    Freight Amount (accrued)     BSEG-PSWBT
    Discount Amount (invoice header level)     RBKP-WSKTO
    Thanks.

    Hi Venkat,
    If you are using a Custom DataSource/Extractor the main problem is that you are collecting data from a lot of tables, so it is really difficult to determine a field for the delta.
    If for you is important only a change at Key Fields Table (EKBE) you can set the Generic Delta only on a field of this table (Doc Number or Position Number - Date - Timestamp).
    But if you are interested in all changes you have to determine a single field for every tables...
    I think it is really difficult to find a delta in all these tables.
    Maybe you can think to use in BW an ODS without Reporting BEx flag to determine Delta, and then introduce delta records in a Cube.
    Ciao.
    Riccardo.

  • Can anyone give me user exit name for create/update purchase order partners

    Hello guys
      Can anyone gives me user exit name for create/update purchase order partners?
      Requirement is to insert/update partner when SC flag is checked while creating/updating purchase order (ME22N / ME21N)  by using user exit.

    hi,
    check these exits.
    Transaction Code - ME21N                    Create Purchase Order
    Enhancement/ Business Add-in            Description
    Enhancement
    MEQUERY1                                Enhancement to Document Overview ME21N/ME51N
    MEVME001                                WE default quantity calc. and over/ underdelivery tolerance
    MM06E001                                User exits for EDI inbound and outbound purchasing documents
    MM06E003                                Number range and document number
    MM06E004                                Control import data screens in purchase order
    MM06E005                                Customer fields in purchasing document
    MM06E007                                Change document for requisitions upon conversion into PO
    MM06E008                                Monitoring of contr. target value in case of release orders
    MM06E009                                Relevant texts for "Texts exist" indicator
    MM06E010                                Field selection for vendor address
    MMAL0001                                ALE source list distribution: Outbound processing
    MMAL0002                                ALE source list distribution: Inbound processing
    MMAL0003                                ALE purcasing info record distribution: Outbound processing
    MMAL0004                                ALE purchasing info record distribution: Inbound processing
    MMDA0001                                Default delivery addresses
    MMFAB001                                User exit for generation of release order
    MRFLB001                                Control Items for Contract Release Order
    MELAB001                                Gen. forecast delivery schedules: Transfer schedule implem.
    AMPL0001                                User subscreen for additional data on AMPL
    LMEDR001                                Enhancements to print program
    LMELA002                                Adopt batch no. from shipping notification when posting a GR
    LMELA010                                Inbound shipping notification: Transfer item data from IDOC
    LMEQR001                                User exit for source determination
    LMEXF001                                Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001                                Customer-Specific Source Determination in Retail
    M06B0001                                Role determination for purchase requisition release
    M06B0002                                Changes to comm. structure for purchase requisition release
    MEFLD004                                Determine earliest delivery date f. check w. GR (only PO)
    MEETA001                                Define schedule line type (backlog, immed. req., preview)
    ME590001                                Grouping of requsitions for PO split in ME59
    M06E0005                                Role determination for release of purchasing documents
    M06E0004                                Changes to communication structure for release purch. doc.
    M06B0005                                Changes to comm. structure for overall release of requisn.
    M06B0004                                Number range and document number
    M06B0003                                Number range and document number

  • How can I get the template( word rtf )  for PO – Printed Purchase Order ?

    I want to convert the “PO - Printed Purchase Order” report from Oracle rdf format to BI Publisher. I am looking for the template but could not find in UNIX.
    As per the Oracle blog, the template is available. Please see the URL : https://blogs.oracle.com/xmlpublisher/resource/121BIPReports.pdf
    The template code is POXPRPOL_XML.rtf
    when I look at the $PO_TOP/patch/115/publisher/templates/US directory, I cannot find POXPRPOL_XML.rtf
    How can I get the template( word rtf ) for PO – Printed Purchase Order ?
    Thank you,
    Biju Varghese.

    How can I get the template( word rtf ) for PO – Printed Purchase Order ? XML Publisher Administrator -> Templates
    find by code or name
    open it and you can downloadtemplate by "download" button

  • MULTILEVEL REORT FOR STOCK TRANSPORT PURCHASE ORDER

    Hi,
    I will have lot of stock transport purchase orders,like md4c transaction where we get multilevel report for sale order/production order,is there any report for stock transport purchase orders.its urgent kindly help

    hi,
    the requirement is  in md04 screen we are getting for each material wise stock requirement list,but client  wants purchase order i e stock transport order wise stock requirement list.i e reverse case of md04 screen.
    if it is sale order (customer order)we will get in md4c transaction,but there is no tab for purchase order in that transaction.

  • MULTI LEVEL REPORT FOR STOCK TRANSPORT PURCHASE ORDER

    Hi,
    I will have lot of stock transport purchase orders,like md4c transaction where we get multilevel report for sale order/production order,is there any report for stock transport purchase orders.its urgent kindly help

    goto purchase order history tab
    you can see all the details of PO-deluvery-GI, GR, imvoice. Click on delivery, you can see the billing document throughdocument flow button.
    This function is not availilable for production order, hence we have MD4c.

  • How to setup a release strategy for store generated purchase order

    Hi there,
    Does anybody know how to setup a release strategy for store/plant generated purchase order? I have a request from our client, but I never cross this before. Please help and let me know the step with every single detail.
    Greatly thank for your help.
    Kind Regards,
    2tea

    Please go thru the below Release Procedure and check whether you have maintained all the settings properly.
    PO RELEASE STRATEGY
    The release code is a two-character ID allowing a person to release (clear, or approve) a requisition or an external purchasing document. The release codes is basically controlled via a system of authorizations (authorization object M_EINK_FRG).
    Use SE12, structure CEKKO to check all the fields available for controlling the Purchase Order.
    e.g. If the total value for the Purchase Order exceeds 10,000, release strategy 01 is assigned to the Purchase Order. There is only one characteristic created in this example. For controlling the Purchase Order type, create characteristic for CEKKO-BSTYP and the value NB.
    CT04 - Create Characteristic e.g. NETVALUE
    Click Additional data Table name CEKKO Field name GNETW and press enter
    (for currency dependent field, you are prompt to enter the currency which the system then converts the currency of the Purchasing document into this currency)
    In the Basic data (X refers to tick),
    X Mutliple values
    X Interval values
    In the Value data, in the Char. value column, type >10000 and press enter
    Save your data
    CL02 - Class
    Class - Create REL_PUR
    Class type - 032
    Click Create
    Description - Release Procedure for Purchase Order
    In the Same Classification section, click Check with error
    In the Char. (characteristic) tab, type NETVALUE to assign your characteristics to the class
    OMGS - Define Release Procedure for Purchase Order Type
    Release Group - New entries
    Rel.group Rel. Object Class Description
    02 REL_PUR Rel. Strategy for PO
    Release codes - New entries
    Grp Code
    02 01
    Release indicators
    Release indicators Release Description
    0 Blocked
    1 X Release
    Release Strategy
    Release group 02
    Rel.strategy 01
    Release codes 01
    Release status 01
    Classification Choose your check values
    OMGSCK - Check Release Strategies
    (make sure there are no error messages)
    Once the Purchase Order is not release, buyers will not be able to print the Purchase Order.
    Goods Receipts will be shown with Message no. ME 390 - Purchasing document XXXXXXX not yet released.
    In 4.6c, Purchase Order with Release Strategy have a tabs at the end of the Header. This allowed the buyers to check the release status of the Purchase Order.
    The person with the release authorization have to use ME28 to release the Purchase Order.
    Regards,
    Ashok

  • Acct determination for Account-assigned purchase order with keys not define

    Hi,
    I'm trying to post an IDOC of type BBPIV through XI to an R/3 system.
    The posted idoc in R/3 is in status 51 (Application document not posted) with the error message "Acct determination for Account-assigned purchase order with keys not defined in chart of acts WP2P"
    As per my understanding this is something related to FI.
    Long text of the error is "The system cannot generate an automatic posting because there is no account determination defined for Account-assigned purchase order with keys   in chart of accounts WP2P.
    Correct the account determination for Account-assigned purchase order"
    Please help me how to solve this.
    Regards,
    Rashmi

    Hiya,
    This looks like its a MM posting / transaction.
    You need to go to OBYC and maintain the account assignment. If you provide the business scenario (GR into Stock, Subcontracting, etc.) for the process, I may be able to help.
    VKOA is for SD account assignment and I don't believe you can use that here.
    Cheers.

  • Goods Receipt for Account-assigned Purchase Orders

    Hello,
      We want to make Goods Receipt for Account-assigned Purchase Orders. When we try, SAP gives the error 'Account determination for entry PCOA KBS 0001 not possible'. According to SAP online help, account assignment is adopted from the purchase orders for the transaction/event 'KBS' and we cannot assign transaction key 'KBS' to an account using transaction OBYC. How do you make it work? Any solution pointers will be appreciated and rewarded.
    Thanks,
    Venu

    create an implicit enhancement point in function module CKMV_AC_DOCUMENT_CREATE.
    IN STRUCTURE IT_ACCIT U CAN MODIFY THE gl ACCOUNT IN RUN TIME .

  • BAPI needed  for  Goods Receipt Purchase Order(Transaction : MIGO)

    Hi all,
    We have a requirement where in we need to post the documents throuh BAPI for Goods receipt Purchase order(Transaction: MIGO).
    Any inputs on this..is highly appreciable...
    thanks in advance...
    regards..
    prathima.

    Hi,
    use 'BAPI_GOODSMVT_CREATE'
    Check this sample.
    code
    REPORT ZRICH_0001 .
    Structures for BAPI
    DATA: GM_HEADER TYPE BAPI2017_GM_HEAD_01.
    DATA: GM_CODE TYPE BAPI2017_GM_CODE.
    DATA: GM_HEADRET TYPE BAPI2017_GM_HEAD_RET.
    DATA: GM_ITEM TYPE TABLE OF
    BAPI2017_GM_ITEM_CREATE WITH HEADER LINE.
    DATA: GM_RETURN TYPE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA: GM_RETMTD TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
    CLEAR: GM_RETURN, GM_RETMTD. REFRESH GM_RETURN.
    Setup BAPI header data.
    GM_HEADER-PSTNG_DATE = SY-DATUM.
    GM_HEADER-DOC_DATE = SY-DATUM.
    GM_CODE-GM_CODE = '04'. " MB1A
    Write 971 movement to table
    CLEAR GM_ITEM.
    MOVE '412' TO GM_ITEM-MOVE_TYPE .
    MOVE 'Q' TO GM_ITEM-SPEC_STOCK.
    MOVE '3800533484' TO GM_ITEM-MATERIAL.
    MOVE '1' TO GM_ITEM-ENTRY_QNT.
    *MOVE 'PC' TO GM_ITEM-ENTRY_UOM.
    MOVE '1060' TO GM_ITEM-PLANT.
    MOVE '0007' TO GM_ITEM-STGE_LOC.
    *MOVE '0901' TO GM_ITEM-MOVE_REAS.
    MOVE 'P203601001' TO GM_ITEM-WBS_ELEM.
    MOVE 'P203601001' TO GM_ITEM-VAL_WBS_ELEM.
    APPEND GM_ITEM.
    Call goods movement BAPI
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
    GOODSMVT_HEADER = GM_HEADER
    GOODSMVT_CODE = GM_CODE
    IMPORTING
    GOODSMVT_HEADRET = GM_HEADRET
    MATERIALDOCUMENT = GM_RETMTD
    TABLES
    GOODSMVT_ITEM = GM_ITEM
    RETURN = GM_RETURN.
    IF NOT GM_RETMTD IS INITIAL.
    COMMIT WORK AND WAIT.
    CALL FUNCTION 'DEQUEUE_ALL'.
    ELSE.
    COMMIT WORK AND WAIT.
    CALL FUNCTION 'DEQUEUE_ALL'.
    ENDIF.
    WRITE:/ GM_RETMTD.
    LOOP AT GM_RETURN.
    WRITE:/ GM_RETURN.
    ENDLOOP.
    [/code]
    Also check the Bapis
    BAPI_PO_CREATE --> To create Purchase Order
    BAPI_PO_CHANGE --> To change Purchase Order
    BAPI_PO_GETDETAIL --> Todisplay Purchase Order
    Regards,
    Raj.

Maybe you are looking for