cancel
Showing results for 
Search instead for 
Did you mean: 

How to know we are in Display Mode or Edit Mode

Former Member

Hi experts

I'm changing a web dynpro (/SAPSRM/WDC_DODC_SC_I_BD) and I need to know if I'm in Display Mode or Edit Mode. Which classe can I use? I know OSS note 1334202 but it does not interest me, because I don't want to get current action (like sy_ucomm) but I want to get current mode (like IV_MODE in Badi BBP_DOC_CHANGE).

Thank you for your help.

Regards,

Peggy.

Accepted Solutions (1)

Accepted Solutions (1)

laurent_burtaire
Active Contributor
0 Kudos

Hello Peggy,

Call method GET_TRANSACTION_MODE from interface /SAPSRM/IF_CLL_TASK_CONTAINER.

Attribute MO_TASK_CONTAINER from WDC /SAPSRM/WDC_DODC_SC_I_BD Component Controller has a reference to this interface.

Call this container using attribute WD_THIS.

Regards.

Laurent.

Former Member
0 Kudos

Hello Laurent,

I am also working on the same Std component.

I am able to get the GUID of the SC thru GET_BO_GUID method of the task container.

In any way.. can i get the GUID of the item level. (this is very important to me) using the task container

or in any method.

Thanks for your valuable help.

Regards,

Vinay

Answers (0)