cancel
Showing results for 
Search instead for 
Did you mean: 

How to Hide Tracking Tab based on condition in SRM RFx

sarath_27
Explorer
0 Kudos

Hello Experts,

My requirements is to hide the tracking tab for open tender RFx after Rfx is published. If technical opening is done then again it should be visible to the purchaser. This requirement is to avoid the malpractices for open tenders.

I have written my code to hide tracking Tab in Standard class /SAPSRM/CL_FPM_OVRIDE_OIF_RFQ , method GET_VIEW_SWITCH_VISIBILITY in Post-Exit.

Code is working fine for first time (when opens Rfx first time), it satisfies our condition. But when i click on refresh button, i could able to see the tracking tab once again, in this scenario my code is not triggering.

Please assist in resolving this issue.

B R,

Sarath.K

Accepted Solutions (0)

Answers (1)

Answers (1)

daniel_marlen
Active Participant
0 Kudos

Hi Sarath,

I reproduced this case in our internal system, but if I set Tracking tab invisible in Method GET_VIEW_SWITCH_VISIBILITY, it doesn't appear again, when I click Refresh. This difference can be related to SAP Note 2586092. If this note is not applied in the system manually or via SP, please apply it and check, if the Tracking tab appears when clicking button Refresh.

Best regards,

Daniel

sarath_27
Explorer
0 Kudos

Hi Daniel Marlen,

Thanks for your Prompt reply,

As you suggested, i applied SAP Note 2586092. In the development system it is working fine,but when i tested in Quality it is not working as expected. In Quality i have published Rfx ⊂mitted responses then i login to purchaser Id , initially Tracking tab disappear because we made a condition not to visible till Technical opening, but when i click Refresh i could able to see Tracking Tab.

My query is GET_VIEW_SWITCH_VISIBILITY is not triggering when i click on refresh button, then how to control this tracking tab.

Please assist me in resolving this.


BR,

Sarath.K


daniel_marlen
Active Participant
0 Kudos

Hi Sarath,

So applying Note 2586092 solved the error in dev system, but not in quality? Could you please double check if the code correction of the note is available in quality system as well?

Best regards,

Daniel

sarath_27
Explorer
0 Kudos

Hi Daniel Marlen,

I have checked,code correction is available in the quality system. Sorry for not mentioning, code available in quality. It was working fine in the development but not in the QA.

BR,

Sarath.K

daniel_marlen
Active Participant
0 Kudos

Hi Sarath,

That's strange. Could you please set a breakpoint in Method FIRE_EVENT_REFRESH of class /SAPSRM/CL_CH_WD_XO_MAPPER and click Refresh? Which entries can you see in table LT_REGISTERED_MAPPER?

Best regards,

Daniel

sarath_27
Explorer
0 Kudos

Hi Daniel Marlen,

As you suggested, i've placed breakpoint in Method FIRE_EVENT_REFRESH of class /SAPSRM/CL_CH_WD_XO_MAPPER. After refresh i observed four records are populating in the LT_REGISTERED_MAPPER?

LT_REGISTERED_MAPPER TABLE

ROW MAPPER(REFERENCE)

1. ->{O:3007*\CLASS=/SAPSRM/CL_CH_WD_IDEN_MAP_RFQ}

2. ->{O:3619*\CLASS=/SAPSRM/CL_CH_WD_MAP_TABS}

3. ->{O:4927*\CLASS=/SAPSRM/CL_CH_WD_DODM_RFQ_H_BD}

4. ->{O:5442*\CLASS=/SAPSRM/CL_CH_WD_DODM_PARTNERS}


BR,

Sarath.K

daniel_marlen
Active Participant
0 Kudos

Hi Sarath,

Thank you. Now please set a breakpoint in Method SET_VIEW_SWITCH_VISIBLE of class /SAPSRM/CL_CH_WD_FPM_CNP_PROV. This logic is responsible to set the visibility of the tabs and this is called when clicking Refresh. This Method will be called several times. Please check in each call whether the visible flag is blank or X in table mt_mainviews for Tracking.

Best regards,

Daniel

sarath_27
Explorer
0 Kudos

Hi Daniel Marlen,

Thank you for your prompt reply,

I had scrutinized the above logic, their i understood the functionality of FPM visibility, but we had the controlled sub tabs in tracking, which displays bidder details. Glad that you responded rapidly.

BR,

Sarath.K


daniel_marlen
Active Participant
0 Kudos

Hi Sarath,

Unfortunately I don't fully understand your reply. What was the outcome of the debugging? Did you see the visible flag set in Method SET_VIEW_SWITCH_VISIBLE?

Best regards,

Daniel