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

select-options and match code

Former Member
0 Likes
8,681

Hi!

when i use a some select option for some field it visualizes the match code for helping us choosing the value, but for others it doesn't... How can I add a match code also for other fields?

thanks a lot,

Simone

7 REPLIES 7
Read only

Former Member
0 Likes
3,545

Hi.

Go to SE11 and in search help radio buton text search it as.

lets if ur fields description contains "wage"

then search it as

*wage*

and then press F4.

realted match codes will be appear.

Edited by: tahir naqqash on Feb 10, 2009 4:28 PM

Read only

Former Member
0 Likes
3,545

Hi,

You need to create search help for that field in SE11 and in your program you need to assign it to the selection parameter using MATCHCODE OBJECT.

Thanks,

Sriram Ponna.

Read only

0 Likes
3,545

Thanks!

...and how can I create the match code object?

Do you have some tips or useful link?

Read only

Read only

faisalatsap
Active Contributor
0 Likes
3,545

Hi,

You can find it using T-Code Se11

and use it as in the following code sample.

selection-screen begin of block a with frame.
select-options: pay_roll for p0001-abkrs no intervals,
                wa_type for pc207-lgart no intervals matchcode object h_t512w_all,
                pernrs  for pa0001-pernr matchcode object prem .

selection-screen end of block a.

Kind Regards,

Faisal

Read only

0 Likes
3,545

And one more efficient way is that

goto SE11.

in search help parameter write H_* and then press f4. it shows all the match code .

now press ctrl + F and place the descrition of the field means if ur field for which u are fininding match code contains the word wage . then write wage in it and find. and then select appropriate match code.

Read only

Former Member
0 Likes
3,545

Hi,

Match code can be created as ZObject and can be attached where you want to avail this facility.you have to fetch the data from the database tables accordingly to get the data depending upon the choice where he has opted for Match code values.

Simply opting for matchcode is Adding search help for the Input field .

we can define our own matchcodes .the numbers 0 to 9 are reserved for us to create our own matchcode Ids for SAP defined match code object.

Thanks

Parvathi