Hi Techies,
When I am trying to change the Asset in PO it is throwing "Enter company code" error. But the same is not happening during shopping cart creation. I debugged and found out that there are no values getting populated for mv_attributes-buk[] in standard method.
method /SAPSRM/IF_PDO_SHARED_USER~GET_COMPANY_CODE.
IF mv_initialized IS INITIAL.
CALL METHOD /SAPSRM/CL_PDO_SHARED_USER=>INIT
.
ENDIF.
RT_BUK = MV_ATTRIBUTES-buk[].
endmethod.
This table gets value from the company code attributes maintained for a particular user. My doubt is why it is getting populated during SC creation not during PO change.
Looking forward for your replies.
Thanks&Regards,
Veena