on 08-14-2007 10:39 PM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi,
You mean the history as follow-on documents or the version ?
Kind regards,
Yann
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.