Hi Experts
Good evening / morning everyone:
I require your help for the next topic, the paper published named "Debugging Guide for SRM PO transfer (Extended Classic Scenario) Purpose:" notes that can include new locations for prices and conditions refer to the use of the BADI "BBP_ECS_PO_OUT_BADI "which will run through the FM" BBP_PD_PO_TRANFER_EXEC ", until then I have not had any problems. However when I try to add these positions in my expansion to add new price conditions, do not present any problem to annex in the fields structure "ct_bapi_pocond" when traveling to ECC tells me that update correctly the PO in ECC without But when I display the PO in ECC data do not appear to send, I require your wisdom to solve this as it took several days and I have to give and the client.
Anex my code, from my point of view I think I'm doing wrong surely I'm not correctly including the new price conditions, note that you price terms only know, the kind of condition which in my case is "ZI" and a consecutive 25 that reaches the currency and the values are equal to 0.
On the other hand, I am also trying to send the values that correspond to the table EIKP, which are those corresponding to the following fields:
"EXPVZ"
"Stabe"
But I see that only allows me to send the values of "Transport_mode" corresponding to EXPVZ. My question is how can I send the value corresponding to stabe field?
I request your help urgently hope I provide some attention to explain me why is not working properly while to get some of his SAPiensa.
METHOD if_ex_bbp_ecs_po_out_badi~bbp_b46b_po_outbound.
DATA : lt_item_sc TYPE TABLE OF bbp_pds_sc_item_d,
lw_item_sc TYPE bbp_pds_sc_item_d,
lw_header_po TYPE bbp_pds_po_header_d,
lt_item_po TYPE TABLE OF bbp_pds_po_item_d,
lw_item_po TYPE bbp_pds_po_item_d,
lt_partner TYPE TABLE OF bbp_pds_partner,
lw_partner TYPE bbp_pds_partner,
lt_cond TYPE TABLE OF bbp_pds_prc,
lw_cond TYPE bbp_pds_prc,
lw_poeikp TYPE BBPS_BAPIEIKP.
data: lw_cond_b type BBPS_IF_BAPIMEPOCOND_PI.
****Detail PO
CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
EXPORTING
i_guid = is_header-guid
IMPORTING
e_header = lw_header_po
TABLES
e_item = lt_item_po
e_partner = lt_partner
e_pridoc = lt_cond.
IF lw_header_po-process_type EQ 'ZIPO' OR lw_header_po-process_type EQ 'ZICP'.
DATA: vl_type(2) TYPE c VALUE 'ZI',
vl_num(2) TYPE c,
vl_reg(2) TYPE n,
vl_typef(4) TYPE c.
DO 25 TIMES.
vl_reg = vl_reg + 1.
vl_num = vl_reg.
CONCATENATE vl_type vl_num INTO vl_typef.
lw_cond_b-cond_type = vl_typef.
lw_cond_b-cond_value = 0.
lw_cond_b-currency = is_header-currency.
lw_cond_b-applicatio = 'M'.
lw_cond_b-stat_con = 'X'.
lw_cond_b-change_id = 'U'.
APPEND lw_cond_b TO ct_bapi_pocond.
ENDDO.
lw_poeikp-transport_mode = is_header-zexpvz.
move lw_poeikp TO cs_poexpimpheader.
ENDIF.
The message of the table return, send me the follow records: