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

Mapping between report and FM

Former Member
0 Likes
680

Hi experts,

I have a req. in which there is 1 report, and 1 FM that is called in this report.

Now the FM has some parameters like customer name (kna1-name1), host name.

The report needs to have the customer number (kna1-kunnr) and host name as the select options.

My problem is how to map the customer number of the report with the customer name of the FM i.e.

how will the FM come to know that the customer number being passed by the report corresponds to

the customer name in the FM.

Thanks,

Ajay.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
638

Dear Ajay,

your reports selection screen gets the customer number.

Then inside the report you fetch customer name from the table kna1 based on the customer number.

then you pass this customer name to your function module parameters in the report.

Regards

Sajid

Hi experts,

I have a req. in which there is 1 report, and 1 FM that is called in this report.

Now the FM has some parameters like customer name (kna1-name1), host name.

The report needs to have the customer number (kna1-kunnr) and host name as the select options.

My problem is how to map the customer number of the report with the customer name of the FM i.e.

how will the FM come to know that the customer number being passed by the report corresponds to

the customer name in the FM.

Thanks,

Ajay.

3 REPLIES 3
Read only

Former Member
0 Likes
638

Hi Ajay,

The requirement is not clear. However, how @ retrieving KNA1-NAME1 - customer name based on KNA1-KUNNR & then comparing the report customer name with FM customer name ?

Thanks,

Best regards,

Prashant

Read only

Former Member
0 Likes
638

Hi Ajay,

If i am understanding your issue correctly, then in report you will fetch customer data based on the data entered in a selection screen. Means, based on customer number, you can retrieve customer name from database table. You can ask your functional consultant for the table to be used. Then you can pass this customer name to your FM.

Thanks,

Archana

Read only

Former Member
0 Likes
639

Dear Ajay,

your reports selection screen gets the customer number.

Then inside the report you fetch customer name from the table kna1 based on the customer number.

then you pass this customer name to your function module parameters in the report.

Regards

Sajid