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

Matchcode id, sample coding

Former Member
0 Likes
329

Hi expert,

I'm new in SAP, I created a new matchcode id for an existing matchcode object (YSEH) , now the object hv 2 id,

exsiting object id is A, B is the new one

existing coding :

SELECT-OPTIONS:

so_mbrno FOR V_mbrno MATCHCODE OBJECT YSEH,

so_name1 FOR V_name1

I want to use object id B for v_name1

how to code it ?

Regards,

Janice

1 REPLY 1
Read only

Former Member
0 Likes
264

Dear Janice,

From my understanding:

i think you have a matchcode which is being referred by two matchcode ID's say A and B.

B matchcode Id contains A.

You want your select options to use B matchcode.

The same scenario i have developed and here is the solution and expected answer.

I have created a elementary search help ( matchcode ) called zview_inst. i have copied that search help ( matchcode ) in to another id called zview_inst2.

CODE:

tables: t095a.

select-options: so_accd for t095a-ktogr matchcode Object ZVIEW_INST,

so_accd2 for t095A-ktogr matchcode object ZVIEW_INST2.

I have two fields on the screen which uses two diff matchcode ID's but which in turn refers to single matchcode ID.

Hopefully this will help you.

Please reward points if its useful or gives you some idea.

Any doubts please revert back