cancel
Showing results for 
Search instead for 
Did you mean: 

BBP_PD_PO_GETDETAIL

Former Member
0 Kudos

Hi!

While creating a PO from a Quotation, we need to make a validation which uses the PO history, so inside the BBP_DOC_CHECK_BADI we used the BBP_PD_PO_GETDETAIL function module with the e_header_rel parameter, as this:

DATA: u_header_rel_po TYPE TABLE OF bbp_pds_hrel,

x_header_po TYPE bbp_pds_po_header_d.

CALL FUNCTION 'BBP_PD_PO_GETDETAIL'

EXPORTING

i_guid = iv_doc_guid

i_with_itemdata = 'X'

IMPORTING

e_header = x_header_po

TABLES

e_item = u_items_po

e_header_rel = u_header_rel_po.

The problem is that when we run the code, we get the e_header_rel table empty.

What shall we do?

Accepted Solutions (0)

Answers (2)

Answers (2)

yeushengteo
Advisor
Advisor
0 Kudos

Hi,

Try this...

Before calling the FM BBP_PD_PO_GETDETAIL, check that the PO GUID is not initial first. You only called the FM when the GUID is already assigned in the system.

Regards.

Former Member
0 Kudos

Hi!

Thanks for answering.

We are checking it. In fact we are getting other structures filled, like the e_header parameter. So, I guess this is not the problem.

Thanks!

Gabriel

Former Member
0 Kudos

Hi Gabriel Jenik,

I am facing the same issue in my object. Can you please tell me how you resolved this issue.

Appreciate your quick respose.

Guys, if you have any idea please let me know.

Best Regards,

Surya Sankar

Former Member
0 Kudos

Hi,

We are using FM BBP_PD_PO_GETDETAIL inside method BBP_PO_CHANGE of BAdi BBP_DOC_CHANGE_BADI.

E_HEADER_REL is coming blank even if all other values are filled in like E_ITEM, E_ACCOUNT, E_ORGDATA etc.

We need to get shopping cart details inside method BBP_PO_CHANGE of BAdi BBP_DOC_CHANGE_BADI.

Please advise.

Regards,

Bijaya Achary

yann_bouillut
Active Contributor
0 Kudos

Hi,

You mean the history as follow-on documents or the version ?

Kind regards,

Yann

Former Member
0 Kudos

Hi,

Thanks for answering. I mean the history as follow-on documents.

Kind regards,

Gabriel