Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Default label when using a machtcode

Former Member
0 Likes
853

Hello experts, When a machtcode is selected, what determines which the default label that is previously selected is? Is there any way to control this value? Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
820

HI Laura,

In my mind, machtcode is a search help object. But What is lable? You mean display either key or value?

regards,
Archer

6 REPLIES 6
Read only

Former Member
0 Likes
821

HI Laura,

In my mind, machtcode is a search help object. But What is lable? You mean display either key or value?

regards,
Archer

Read only

0 Likes
820

Hello Dengyong, When a field has a  "complex" matchcode, you can find objects according different criteria. With label I mean every option that we have. For example, in a material field, we have different labels to search, "Material Number/Material Description", "Material by bill of material", "Material by material group"... every of this options is in a different label.  Once you select the matchcode, one of them is active, is there any way to control which is the active one by default? Regards

Read only

0 Likes
820

Hi,

Use HOT Keys for selecting a specific tab  directly without going through all tabs.

Ex :

Tcode- MM03 , for searching Material number by material catagory,

in the material field, enter    =J  & press F4 ...........then you will get directly  the Material by Material catagory  tab active .

similarly for every tabs, you can get a hot key,, which you can use to activate the desired tab directly .

Regards

DJ

Read only

0 Likes
820

Hi ,

SAP uses table DDSHDEFSH to control the default tab by user. Unfortunately it cannot be updated by configuration.

There is no API to update this table. So only way could be updating it directly but as you know it is not recommended.

R

Read only

0 Likes
820

Hi,

You are correct, let me tell you one thing ,, values in table  DDSHDEFSH (for a userID ) gets changed every time a user  uses a HOT key in the input field (As detailed in my last post) .

so i dont think you need any API or enhancement for the value to be changed.

You just have to use one HOT key for the tab which you want. then it will get updated in the table automatically .

Use as mentioned in my last post and check .

Regards

DJ

Read only

0 Likes
820

Ok, that is 'tab' in my knowledge...

Yes, do as said, using HOT key.

Your code will like this:

PARAMETERS: p_matnr type mara-matnr MATCHCODE OBJECT MAT1_A DEFAULT '=J'. " J is hot key. you can view hot key in single SH definition.

Once you click F4, it will go to related single SH.

Regards,

Archer