cancel
Showing results for 
Search instead for 
Did you mean: 

Help with purchase order detail

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Using that ID, I get a msg:

BBP_PD

013

Incorrect Object Type.

Any Ideas on what this is?

Former Member
0 Kudos

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.