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

Function Module for listing Equipment based on Material

Former Member
0 Likes
2,987

Hi Team,

Anybody guide me through a function module that works in the similar way as Transaction "IH08" with Material number passed as selection parameter.

My requirement is, if i pass a material number, i need a list of equipment that uses the given material as like in Transaction "IH08".

Any suggestion would be helpful for me, Thank you.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,189

Hi Team,

We found a Function module that suits my requirement.

We can use

1) CS_WHERE_USED_MAT

2) CS_WHERE_USED_MAT_ANY

Both will get in the Material Number and returns the list of Equipment that uses this material and the sub Materials too.

~Yuvi

7 REPLIES 7
Read only

jogeswararao_kavala
Active Contributor
0 Likes
2,189

Because it is based on a simple Select statement, using table EQUI, you can develop a Z function module, with Import field MATNR and Export field EQUNR.

Jogeswara Rao K

Read only

satyabrata_sahoo3
Contributor
0 Likes
2,189

You can have your own custom FM to get this selecting data from EQUI.


SELECT equnr matnr sernr FROM equi INTO CORRESPONDING FIELDS OF TABLE <Int Table>

       WHERE matnr IN im_matnr.

-SS

Read only

Former Member
0 Likes
2,189

Thank you for your response.

This is the simplest way to achieve my requirement.

I'm Keen in knowing is there any standard function module that can be used for this purpose?

If so i can use that or i will create my own.

Thank You.

Read only

0 Likes
2,189

BAPI_EQMT_DETAIL is there but it did not work fine for me. I am afraid, no such FM available to achieve this.. I had similar situation where I used this logic finally.

-SS

Read only

0 Likes
2,189

Why do you need a function module?

Read only

Former Member
0 Likes
2,189

hi frnd,

       

Give function group name.description…ok

import : --matnr type equi-matnr

export:-equnr type equi-equnr

Table : - itab like equi

IN THE SOURCE CODE TAB.-----------------------

SELECT EQUNR FROM EQUI INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE MATNR

EQ MATNR.

Fm is ready for input..you can easily check by execute and give matnr value ,get output.

Read only

Former Member
0 Likes
2,190

Hi Team,

We found a Function module that suits my requirement.

We can use

1) CS_WHERE_USED_MAT

2) CS_WHERE_USED_MAT_ANY

Both will get in the Material Number and returns the list of Equipment that uses this material and the sub Materials too.

~Yuvi