cancel
Showing results for 
Search instead for 
Did you mean: 

FM "BBP_PD_PO_GETDETAIL " not working

Former Member
0 Kudos

Hi all, we guys are facing a problem in follwoing badi "IF_EX_BBP_WFL_APPROV_BADI~GET_REMAING_APPROVERS"with the FM BBP_PD_PO_GETDETAIL.when we execute the badi the FM BBP_PD_PO_GETDETAIL will not populate Tax value in the Header table .but when we executed the function module separtalty it is giving the Tax value .problem is very starge .why it is giving the Tax value in Header table when we execute FM separtly but not popullating the Tax in the badi which uses the same FM and same set of Parametes

Please guide us.

Regards

-


Channappa Sajjanar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello

how your call the FM BBP_PD_PO_GETDETAIL?

Does it looks like this?

call function 'BBP_PD_PO_GETDETAIL'
  EXPORTING
    i_guid    = i_header-guid 
  IMPORTING
    e_header = ls_header_active
  TABLES
    e_item   = lt_items_active

.

Without TABLES it will not work, I think.

May this helps...

Best Regards,

Daniel

Former Member
0 Kudos

Hi we are calling it as below in the BADI.

call function 'BBP_PD_PO_GETDETAIL'

EXPORTING

i_object_id = object_id

i_guid = lv_guid

IMPORTING

e_header = lw_po_header

TABLES

e_actval = litab_actval

e_item = litab_po_item

e_limit = litab_limit

e_account = litab_account

e_partner = litab_partner.

Regards

-


Channappa Sajjanar

Former Member
0 Kudos

In the BADI, is the value getting passed to lv_guid ??

there should be a statement " move guid to lv_guid." before the FM is called..

Regards,

PR.

Former Member
0 Kudos

Hi ,

yes we are using it .

map char32 to raw16

move guid to lv_guid.

Former Member
0 Kudos

Hello,

The tables called within the WF will have buffered data

in them. This is done to keep track of changes currently being processed

when the WF is called. In order to use the function BBP_PD_PO_GETDETAIL

to always receive the current active version, try running

BBP_PD_PO_GETLIST first to retrieve the proper GUID for the PO.

You can then supply the GUID to the function BBP_PD_PO_GETDETAIL which

should then retrieve the active version.

there is an example of the proper usage of the function in the Module Pool BBPRP_01,

perform GET_MM_DATA.

Hope this helps you out.

Regards,

Daniel

former_member206968
Active Contributor
0 Kudos

Hi,

A workaround for you would be to read the tax details from FM-BBP_PDTAX_MULTI_GETDETAIL

using the guid of the PO.

Regards,

Sanjeev

Answers (1)

Answers (1)

Former Member
0 Kudos

thanks a lot for ur response