Dear All,
R/3 PR is not getting transfered to SRM
as SC , error raised is msgno BBP_PD 540 "System AEDCLNT110 of purch. organization Haldia Purchase organisation differs from doc. reference ASDCLNT110 " . AEDCLNT110 is R/3 system and ASDCLNT110 is SRM system
SRM 7.2 (according to Note 913831
logsys_fi field logic was inserted and should have fetched it with FM
BBP_HDRPROC_GETDETAIL) . For this we have checked all the cusotmizing
settings, define backend system is also maintained for FI validation.
But still for line item the standard code is not fetching LOGSYS_FI
value.
LBBP_PDORGF11 "PERFORM check_proc_org_and_group"
from line 326 :
ELSEIF ( iv_obj_subtype = c_subtype_i_ep OR
iv_obj_subtype = c_subtype_i_et OR
iv_obj_subtype = c_subtype_i_extd OR
iv_obj_subtype = c_subtype_i_dp ).
* ECS: p.-org must be assigned to FI or local system
IF lt_ekorg IS INITIAL. "local purch. org.
lb_eq_sys = c_on.
ELSE.
READ TABLE lt_ekorg INDEX 1 ASSIGNING <ls_ekorg>.
IF sy-subrc = 0
336**********AND iv_logsys_fi EQ <ls_ekorg>-backend.****************
lb_eq_sys = c_on.
ENDIF.
ENDIF.
*********** at line 336 above, the value in iv_logsys_fi is blank and
<ls_ekorg>-backend is having 'AEDCLNT110' which is ERP system.
Beacause of which the variable lb_eq_sys is blank not set to 'X'.
at the time of debugging I did not find any place where the variable
value is set for iv_logsys_fi , right from FM BBP_PD_SC_CREATE where
the variable Li_header ( this structure has field LOGSYS_FI) is
declared till the perform 'PERFORM check_proc_org_and_group'.
for header it is blank and for Line item LOGSYS_FI is 'ASDCLNT110' which is read from own logical system.
But when I implemented BADI BBP_DETERMINE_LOGSYS method
IF_EX_BBP_DETERMINE_LOGSYS~DETERMINE_LOGSYS inside the debugger i
passed logical_system value as 'AEDCLNT110' for item_data. Then system
is transferring PR to SRM as SC .
Further it is found that the line item lt_item_ic for Function module
BBP_PD_SC_CREATE is not getting logsys_fi value through standard code it is taking OWN logical system ie., ASDCLNT110.
But through above BADI the logical system is taken as logsys_fi inside
FM BBP_DOCUMENT_COMPLETE.
Do we have to implement BADI as it is Extended scenario?
Where is the flaw in customizing?
Define backend system and Define backend system for Product category is maintained properly in system.
![define system landscape.PNG]()
![Product category.PNG]()
Thanks,
Jaya.