cancel
Showing results for 
Search instead for 
Did you mean: 

Enter company code validation Error - PO change

Former Member
0 Kudos
109

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

View Entire Topic
laurent_burtaire
Active Contributor
0 Kudos

Hello,

check what's happened in CONSTRUCTOR method from /SAPSRM/CL_PDO_USER_CONTEXT class.

Regards.

Laurent.

Former Member
0 Kudos

Hi Laurent,

     Thanks for your suggestion.

     I placed debugger in the constructor. It is being called during shopping cart creation but not during PO change .

Thanks & Regards,

Veena

laurent_burtaire
Active Contributor
0 Kudos

Hello Veena,

i have just checked, and method i gave you is called when you access PO through POWL (in display or change mode - POWL action ID) in SRM 7.02 release.

Regards.

Laurent.