on 02-26-2009 3:03 PM
Hi all,
Can any one tell me from which table lt_partner (Partner details-like address) is comming.
i am using the BBP_PD_PO_GETDETAIL Function Module and i am in the need of to know
form which table did partner details is taken from the Function module.
Please help me.
Regards
-
Channappa Sajjanar
Check if the following pseudo code can help you in some way or the other..
call function 'BBP_PD_INV_GETDETAIL'
exporting
i_guid = lv_guid
i_object_id = object_id
importing
e_header = ls_inv_header
tables
e_item = lt_inv_item.
loop at lt_inv_item into ls_inv_item where del_ind is initial.
call function 'BBP_PD_PO_GETDETAIL'
exporting
i_object_id = ls_inv_item-be_refobj
importing
e_header = ls_po_header
tables
e_item = lt_po_item
e_itmlim_rel = lt_po_ilrel.
read table lt_po_item into ls_po_item with key number_int = ls_inv_item-be_refobj_item.
if ls_po_item-product_type = 02 or ls_po_item-itm_type = 'LIMI'.
read table lt_po_ilrel into ls_po_ilrel with key itm_guid_b = ls_po_item-guid objtype_a = 'BUS2121001'.
get the details of the shopping cart
call function 'BBP_PD_SC_GETDETAIL'
exporting
i_guid = ls_po_ilrel-hdr_guid_a
importing
e_header = ls_header
tables
e_item = lt_item
e_account = lt_account
e_partner = lt_partner
e_orgdata = lt_orgdata.
read table lt_partner into ls_partner with key partner_no = '00000016'.
call function 'BP_CENTRALPERSON_GET'
exporting
iv_bu_partner_guid = ls_partner-partner_no
importing
ev_username = lv_name
exceptions
no_central_person = 1
no_business_partner = 2
no_id = 3
others = 4.
v_app_index = v_app_index + 1.
ls_approver-approval_index = v_app_index.
ls_approver-approval_agent = lv_name.
call function 'BBP_LA_GET_FULLNAME_BY_USERID'
exporting
i_userid = lv_name
importing
e_fullname = lv_full_name
exceptions
no_user_found = 1
others = 2.
ls_approver-name = lv_full_name.
ls_approver-approval_description = 'Invoice approval'..
append ls_approver to approval_table.
endif.
endloop.
Regards,
PR.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.