Help with purchase order detail

Hello Experts,
I am currently trying to get information on a purchase order, but not having any luck.  I need to find the PO Number, and PO Approval Date.  I cannot find either of these.  I have tried using BBP_PD_PO_GETDETAIL, but have no luck with this.  here is what I have:
move w_result-sc_guid TO lv_guid.
        CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
         EXPORTING
           I_GUID                           = lv_guid
           I_OBJECT_ID                      = w_zwkflw_rep-object_id
           I_WITH_ITEMDATA                  = 'X'
           I_READ_FROM_ARCHIVE              = 'X'
         IMPORTING
           E_HEADER                         = ls_e_header
         TABLES
           E_ITEM                           = lt_e_item
All I have available is shopping cart number.  Can anyone assist please?  Thank you.

hi,
try below steps to retrieve purchase order details from a shopping cart.
get the purchase order GUID in ET_HEADER_REL parameter of BBP_PD_SC_GETDETAIL fm using the shopping cart number or GUID.
then to get the purchase order details, use BBP_PD_PO_GETDETAIL importing I_GUID = purchase order GUID from ET_HEADER_REL.
regards.

Similar Messages

  • Help with purchase order

    hie all, i have a problem with a custom purchase order. The item text  for a line item is over shadowing the line item, they are sitting on top of each other.. how ever if i comment out the item text the line item is displayed properly. the Item text is attached to the last line item on the order. please help

    Hi,
    increase line spacing in your smartstyles instead of null of that paragraph format.
    Thanks,
    Sree.

  • Extracting Purchase order details

    Hai All,
               I am workng on a report in which I have to display the purchase order and GRN details for a given Purchase Requisition number.
    If the PR has 5 line items and PO is made only for 2 line items, then the purchase order details for only those 2 line items should be displayed, but I am getting default purch ord data for all those 5 line items even though PO is not made for 3 line items.
    Can anyone pls help me on this....

    Hi ,
        Here goes ur solution , Only u have to use EBAN and EKBE for the purpose.The report displays item no wise details of PR with PO and GR. selection options for PR REQ or REQ Date  is used .
    types: begin of int_pr,
         banfn like eban-banfn,
         bnfpo like eban-bnfpo,
         badat like eban-badat,
         ebeln like eban-ebeln,
         bedat like eban-bedat,
         matnr like eban-matnr,
        end of int_pr.
    declaring work area.
    data: pr_wa type table of int_pr,
          pr_wa1 like line of pr_wa,
           prnum(10),prval(10),tot type n.
    types: begin of type_ekbe,
           ebeln like ekbe-ebeln,       " PO NO
           ebelp like ekbe-ebelp,        " ITEM NO IN PO
           belnr like ekbe-belnr,         " GR NO
           end of type_ekbe.
    data: itab_gr type table of type_ekbe,
          wa_gr like line of itab_gr.
    giving selection crieteria
    select-options pr_no for eban-banfn.         " for purchase requistion no.
    select-options pr_dt for eban-badat.         " for pr date
    start-of-selection.
    if pr_no is not initial.
    select banfn bnfpo badat ebeln bedat matnr into corresponding fields of table pr_wa from eban where
    banfn in pr_no and loekz ne 'x'.
    select ebeln ebelp belnr into table itab_gr from ekbe for all entries in pr_wa where ebeln = pr_wa-ebeln and ebelp = pr_wa-bnfpo.
    elseif pr_dt is not initial.
    select banfn bnfpo badat ebeln bedat matnr into corresponding fields of table pr_wa from eban where
    badat in pr_dt and loekz ne 'x' order by badat.
    select ebeln ebelp belnr into table itab_gr from ekbe for all entries in pr_wa where ebeln = pr_wa-ebeln and ebelp = pr_wa-bnfpo.
    endif.
    loop at pr_wa into pr_wa1.
    read table itab_gr into wa_gr with key ebeln = pr_wa1-ebeln  ebelp = pr_wa1-bnfpo.
    if pr_wa1-ebeln ne ' '.
    write: / sy-vline,2(10) pr_wa1-banfn color 2, sy-vline,14(12) pr_wa1-badat color 2, sy-vline, 28(9) pr_wa1-bnfpo color 2, sy-vline, 40(13) pr_wa1-matnr color 2, sy-vline, 55(16) pr_wa1-ebeln color 2, sy-vline, 74(15) pr_wa1-bedat color 2, sy-vline,
    wa_gr-belnr,sy-vline.
    else.
    write: / sy-vline,2(10) pr_wa1-banfn color 2, sy-vline,14(12) pr_wa1-badat color 2, sy-vline, 28(9) pr_wa1-bnfpo color 2, sy-vline, 40(13) pr_wa1-matnr color 2, sy-vline, 55(16) 'not processed' color 6, sy-vline, 74(15) pr_wa1-bedat color 2, sy-vline,
    wa_gr-belnr,sy-vline.
    endif.
    endloop.
    uline at /1(90).
                                 thats all u have to do for getting the required output.

  • Upload of purchase order details using LSMW

    Hi friends,
    I encountered a problem while uploading purchase order details using LSMW . in the field mapping I could not able to fine the field TCODE. as a result I could not assign the transaction code ME21. could you please suggest me a solution.
      thanks

    Hai
    Check with the following
    Select fifth Radio button then follow the bellow step
    <b>5) select radio-Button 5 and execute
       Maintain Field Mapping and Conversion Rules
       Select the Tcode and click on Rule button there you   will select constant
       and press continue button
       give Transaction Code : ME21 and press Enter</b>
    Thanks & regards
    Sreenivasulu P

  • Print document type Q02( technical delivery terms)  with Purchase Order

    Hi all
    1) I have activated the QM procurement for a certain material and I have assigned the control key that makes mandatory the technical delivery terms on the material master (standard control key 0002).
    2) I have created a Document Info Record Q02 to hold the Technical Delivery Terms assigning a PDF file. Document is released.
    3) I have assigned the DIR to the material master (object link in the DIR).
    I would like to know how to print the this DIR with Purchase Order. I am testing this scenario in IDES system and the form does not get printed.
    Could anyone please advice how to get the PDF file printed with the purchase order?
    Thank you

    Hi Sappmqm,
    There is no internal way, you would have to create an ABAP program to handle this function, where it would search the material record to pull the DIRs linked and then open them on user's screen for printing.
    Additional SAP add-ons are available as 3rd party apps, can click my name and contact me for more detail if you like.
    Good luck.

  • I Need interactive report to list the purchase orders details for a vendor

    I Need interactive report to list the purchase orders details for a vendor that has    interactive drill down options to give the detail of vendor from vendor master.

    Hi
    see this sample report
    this is Customer wise sales orders
    just make similar report just using LFA1, EKKO and EKPO tables instead of KNA1,VBAK,VBAP
    REPORT ZTEJ_INTAB1 LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
    HEADING.
    *TABLES DECLARATION
    TABLES : KNA1, VBAK, VBAP.
    *SELECT OPTIONS
    SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
    *INITIALIZATION
    INITIALIZATION.
    CUST_NO-LOW = '01'.
    CUST_NO-HIGH = '5000'.
    CUST_NO-SIGN = 'I'.
    CUST_NO-OPTION = 'BT'.
    APPEND CUST_NO.
    *SELECTION SCREEN VALIDATION
    AT SELECTION-SCREEN ON CUST_NO.
    LOOP AT SCREEN.
    IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
    MESSAGE E001(ZTJ1).
    ENDIF.
    ENDLOOP.
    *BASIC LIST SELECTION
    START-OF-SELECTION.
    SELECT KUNNR NAME1 ORT01 LAND1 INTO
    (KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
    FROM KNA1
    WHERE KUNNR IN CUST_NO.
    WRITE:/1 SY-VLINE,
    KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    KNA1-NAME1 UNDER 'NAME',
    61 SY-VLINE,
    KNA1-ORT01 UNDER 'CITY',
    86 SY-VLINE,
    KNA1-LAND1 UNDER 'COUNTRY',
    103 SY-VLINE.
    HIDE: KNA1-KUNNR.
    ENDSELECT.
    ULINE.
    *SECONDARY LIST ACCESS
    AT user-command.
    IF SY-UCOMM = 'IONE'.
    PERFORM SALES_ORD.
    ENDIF.
    IF SY-UCOMM = 'ITWO'.
    PERFORM ITEM_DET.
    ENDIF.
    *TOP OF PAGE
    TOP-OF-PAGE.
    FORMAT COLOR 1.
    WRITE : 'CUSTOMER DETAILS'.
    FORMAT COLOR 1 OFF.
    ULINE.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'NAME',
    61 SY-VLINE,
    63 'CITY',
    86 SY-VLINE,
    88 'COUNTRY',
    103 SY-VLINE.
    ULINE.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR SECONDARY LISTS
    TOP-OF-PAGE DURING LINE-SELECTION.
    *TOP OF PAGE FOR 1ST SECONDARY LIST
    IF SY-UCOMM = 'IONE'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'SALES ORDER DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'DATE',
    60 SY-VLINE,
    62 'CREATOR',
    85 SY-VLINE,
    87 'DOC DATE',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR 2ND SECONDARY LIST
    IF SY-UCOMM = 'ITWO'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'ITEM DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'SALES ITEM NO.',
    60 SY-VLINE,
    62 'ORDER QUANTITY',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *END OF PAGE
    END-OF-PAGE.
    ULINE.
    WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
    SY-PAGNO.
    SKIP.
    *& Form SALES_ORD
    *& FIRST SECONDARY LIST FORM
    FORM SALES_ORD .
    SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
    (VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
    FROM VBAK
    WHERE KUNNR = KNA1-KUNNR.
    WRITE:/1 SY-VLINE,
    VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
    40 SY-VLINE,
    VBAK-ERDAT UNDER 'DATE',
    60 SY-VLINE,
    VBAK-ERNAM UNDER 'CREATOR',
    85 SY-VLINE,
    VBAK-AUDAT UNDER 'DOC DATE',
    103 SY-VLINE.
    HIDE : VBAK-VBELN.
    ENDSELECT.
    ULINE.
    ENDFORM. " SALES_ORD
    *& Form ITEM_DET
    *& SECOND SECONDARY LIST FORM
    FORM ITEM_DET .
    SELECT VBELN POSNR KWMENG INTO
    (VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
    FROM VBAP
    WHERE VBELN = VBAK-VBELN.
    WRITE : /1 SY-VLINE,
    VBAP-VBELN UNDER 'SALES ORDER NO.',
    40 SY-VLINE,
    VBAP-POSNR UNDER 'SALES ITEM NO.',
    60 SY-VLINE,
    VBAP-KWMENG UNDER 'ORDER QUANTITY',
    103 SY-VLINE.
    ENDSELECT.
    ULINE.
    ENDFORM. " ITEM_DET
    REPORT demo_list_at_pf.
    START-OF-SELECTION.
    WRITE 'Basic List, Press PF5, PF6, PF7, or PF8'.
    AT pf5.
    PERFORM out.
    AT pf6.
    PERFORM out.
    AT pf7.
    PERFORM out.
    AT pf8.
    PERFORM out.
    FORM out.
    WRITE: 'Secondary List by PF-Key Selection',
    / 'SY-LSIND =', sy-lsind,
    / 'SY-UCOMM =', sy-ucomm.
    ENDFORM.
    After executing the program, the system displays the basic list. The user can press the function keys F5 , F6 , F7 , and F8 to create secondary lists. If, for example, the 14th key the user presses is F6 , the output on the displayed secondary list looks as follows:
    Secondary List by PF-Key Selection
    SY-LSIND = 14
    SY-UCOMM = PF06
    Example for AT USER-COMMAND.
    REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.
    START-OF-SELECTION.
    WRITE: 'Basic List',
    / 'SY-LSIND:', sy-lsind.
    TOP-OF-PAGE.
    WRITE 'Top-of-Page'.
    ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
    CASE sy-pfkey.
    WHEN 'TEST'.
    WRITE 'Self-defined GUI for Function Codes'.
    ULINE.
    ENDCASE.
    AT LINE-SELECTION.
    SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
    PERFORM out.
    sy-lsind = sy-lsind - 1.
    AT USER-COMMAND.
    CASE sy-ucomm.
    WHEN 'FC1'.
    PERFORM out.
    WRITE / 'Button FUN 1 was pressed'.
    WHEN 'FC2'.
    PERFORM out.
    WRITE / 'Button FUN 2 was pressed'.
    WHEN 'FC3'.
    PERFORM out.
    WRITE / 'Button FUN 3 was pressed'.
    WHEN 'FC4'.
    PERFORM out.
    WRITE / 'Button FUN 4 was pressed'.
    WHEN 'FC5'.
    PERFORM out.
    WRITE / 'Button FUN 5 was pressed'.
    ENDCASE.
    sy-lsind = sy-lsind - 1.
    FORM out.
    WRITE: 'Secondary List',
    / 'SY-LSIND:', sy-lsind,
    / 'SY-PFKEY:', sy-pfkey.
    ENDFORM.
    When you run the program, the system displays the following basic list with a the page header defined in the program:
    You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.
    Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.
    For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.
    Regards
    Anji

  • Shipments/ Delivery Document tracking with Purchase Order

    Dear all,
    Please help me in finding all the shipments accessed against Purchase order or Delivery document information with the help of Purchase order.
    Is it possible to track either of them using PO?
    Please help....
    Thanks & Regards,
    Deepthi.

    This is the sales forum, not purchasing forum.
    You might be able to find something in EKBE table for PO. Also check the reference document field LIPS-VGBEL on the delivery. In sales it usually contains the sales order number, not sure if it will have the PO number for the inbound delivery. If not, check other fields in LIPS.
    There is no direct link between shipments and orders. You'll need to find the delivery first and then the shipments for it. Delivery numbers will be in VTTP-VBELN, VTTP-TKNUM is the shipment number.

  • Issues with Purchase order change documents

    Hi Gurus,
    I have some peculiar issues with Purchase order. The PO line item has deletion indicator set but I can't find who set the deletion indicator. The PO change documents doesn't show anything related to deletion indicator.
    Please help to fix the Issue.
    Regards,
    Senthil

    Hi
    Check it in Tcode SE16
    Table Name CDHDR and CDPOS
    Regards,
    Raman

  • Problem with purchase orders and cancelling order lines

    Hi,
    We have a problem with purchase orders and cancelling order lines. For example we have created PO no. 4300291277:
    We have made a GR 5000186897 on 03.09.2010 amount 1.920 and tried to cancel it with GR 5000208866, but it takes the invoice amount 1.724 instead of 1.920. What is the correct way to undo this orders, so we cancel the 1.920 and not the 1.724?
    Please help me, your help will be highly appreciated.
    Regards,
    Najma.

    hi,
    You have to cancel the IR first...and then do cancel the GR...
    yes, there will be diff. in the price(if the price changes in bwtn)..if no changes in the price , the price will taken as old one..
    Process:
    1. Cancel IR
    2. Then cancel GR..
    3. then go the PO and try to delete the line item..
    Regards
    Priyanka.P

  • Interactive ALV report for vendorwise purchase order details

    Hi Experts,
    I am trying to create vendor wise purchase order interactive report, if i click any of vendor detail it has to display vendor details in a popup window or if i click any of purchase details it has to display purchase order details ina popup..
    can any body explain by using function modules REUSE_ALV_POPUP_TO_SELECT and REUSE_ALV_FIELDCATALOG_MERGE...

    Check the link below will be of some use to you.
    http://www.geocities.com/mpioud/Z_REUSE_ALV_POPUP_TO_SELECT.html
    Regards,
    Murthy

  • Interactive report for vendorwise purchase order details

    Hi Experts,
      I am trying to create vendor wise purchase order interactive report, if  i click any of vendor detail it has to call display vendor screen for selected vendor or if i click any of purchase details it has to open purchase order details..
    can any body explain...

    hi arun,
    use at line-selection
    example,
    at line-selection.
    if sy-ucomm = 'PICK'.
      if wa_lifnr is not initial.
        set parameter id 'LIF' field wa_lifnr.
        set parameter id 'BUK' field wa_bukrs.
        set parameter id 'EKO' field wa_ekorg.
        call transaction 'XK03'.  endif.
      if wa_ebeln is not initial.
        set parameter id 'BES' field wa_ebeln.
        call transaction 'ME23N' and skip first screen.
      endif.
    endif.
    Regards,
    Logan

  • MIRO: posting to G/L Accounts with purchase order reference

    hello
    our company want to post an invoice for other expense in MIRO through the tab "G/L Acconunt" and don't through the tab "PO reference".
    our problem that when we post through "G/L Account" how we allocate the "purchasing document" to the line of G/L Account?
    in miro there is an option to create a posting line with purchase order reference to a g/l account and i read the documentation that says proceed as follows:
    1. choose miro
    2. enter header data as required
    3. allocate the invoice to a document and check the items to be settled - i don't underdand what i need to do in this step?
    4. choose the tab page g/l account
    5. enter data as requierd.
    thanks
    meir

    hi
    in the table below your MIRO screen you will see PO Reference on this tab select the item of the PO that you need post for this PO, in the tab G/L account you can make manual post aditional to the PO, also you can in the tab PO reference modify amounts and quantity if you need, but it is not recommended

  • Invoice Verification without GR and with Purchase Order

    Hi all
    During the Logistic Invoice Verfication (MIRO) without GR and with Purchase Order, I want to exclude "Invoice to be received" account (WRX) from the posting. How can I do it?
    Let me know
    Thanks

    it doesn't work. Can you explain me better the solution?
    Thanks

  • How to link asset with purchase order and PO Item.

    Hello,
           I have to generate a report which contains columns
    Asset No , po no(ebeln) ,PO Item(ebelp),Material no etc
    My query is how to link asset with purchase order and      PO Item.
    I am selecting asset and po no. from anla  but how to get
    po item no(ebelp)?
    po line item is important in this report because every line item has differrent asset and material no.
    i tried to match asset no in mseg table but i am not getting asset no in mseg .
    how should i proceed ?

    Thanks Thomas & Srimanta for the quick response.
    When I checked EKKN table by entering PO there is no asset no. in anln1 field.
    Also I would like to add that, In me23n for a PO, account assignment category we are entering 'F' for internal order settlement.
    Where can i find the link between asset and po no(ebeln) and po item(ebelp)?
    Regards,
    Rachel
    Edited by: Rachel on Aug 11, 2008 7:23 AM

  • For getting purchase order details what are the inputs and outputs

    I need to display purchase order details in EP portal by using integration EP, XI and R/3.
    I dont know what are the Inputs and what are the Outputs.
    Reward points for helpers.
    Cheers,
    Preethika

    Hi Preethika,
    for displaying PO use BAPI : BAPI_PO_GETDETAIL
    Its input is PO number
    Its output are tables PO_HEADER_TEXTS - for PO header data
    PO_ITEMS - for PO line items
    Thanks,
    Rajeev Gupta

Maybe you are looking for