Application Development 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: 

how to pass table in FM

Former Member
0 Kudos

Hi Friends

In this below requirement i have two doubts how can we pass multiple emp in FM for which we have to find manager and how can we acheive this req with well performed code ?

Steps

1) You will the employee for whom you need to find the manager

2) Identify the position(level 0) for the employee (PA0001 table will give you this)

3) For the position go to the table HRP1001 and look for a relationship A002 with another position (which will be level 1 manager). If there is no relation(A002 to S) go to the current solution you have (A-012)

If there is a relation(S-A002-S) to level1 (manager) look for the associated employee in HRP1001 table through the A008/B008 relationship between the position(level1) and the the person. If the person is found.. It is the Manager ; Exit.

Else.. go to the HRP1001 table and look for the A002 relationship between identified Manager position in step 3 and another position(level 2). Again repeat step 4. If not found repeat 5 and 4 till you find the Manager (5 iterations or loops).

Regards

Smeeta

Moderator message - Please ask a specific question and do not just post your requirements - post locked

Edited by: Rob Burbank on May 4, 2009 9:16 AM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi:

have a look for passing the table in Function module

[Link|http://help.sap.com/saphelp_nw70/helpdata/EN/9f/db98fc35c111d1829f0000e829fbfe/content.htm]

For the rest, you should derive the logic

Regards

Shashi

1 REPLY 1

Former Member
0 Kudos

Hi:

have a look for passing the table in Function module

[Link|http://help.sap.com/saphelp_nw70/helpdata/EN/9f/db98fc35c111d1829f0000e829fbfe/content.htm]

For the rest, you should derive the logic

Regards

Shashi