Skip to Content
-1

Internal Table as an Input to a Report, while calling a FM inside it

Aug 17, 2017 at 11:02 AM

55

avatar image
Former Member

Hi all,

My requirement is to call a Function Module in a Report.

Where FM input is a Internal Table with Material and Batch as a unique combination.

sdn1.png

Now if my report selection screen has Material and Batch as two different select options, then how to pass them to my FM as an unique combination.

sdn2.png

Please suggest. Thank you.

With Regards,

Sudhir.

sdn1.png (2.2 kB)
sdn2.png (3.5 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Horst Keller
Aug 17, 2017 at 11:12 AM
0

Get the values for Material and Batch from the selection tables and fill the internal table with these values. Where's the problem?

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi,

1. My FM input is a Internal Table, where the combination is Material + Batch. Material is Mandatory and Batch is optional. So the internal table has multiple combinations of entries with Batch and without Batch.

2. With Material + Batch, one set of code triggers and with only Material one set of code triggers in my FM.

sdn3.png

3. Now when I'm calling my FM inside a Report, based on select options, how I come to know that which material has its unique batch and which material doesn't have a batch.

sdn4.png

Like FM internal table, I need to know the unique combination of Material + Batch and Material without Batch.

Please let me know the solution. Thank you.

With Regards,

Sudhir.

0

Don't you know how to analyze the input from a selection screen or where is your problem?

0
Bertrand DELVALLEE Aug 17, 2017 at 11:51 AM
0

Hello,

You will find all that you need in this recent post : https://answers.sap.com/questions/262370/select-options-depend-on-select-options.html

Best regards

Bertrand

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi,

1. My FM input is a Internal Table, where the combination is Material + Batch. Material is Mandatory and Batch is optional. So the internal table has multiple combinations of entries with Batch and without Batch.

2. With Material + Batch, one set of code triggers and with only Material one set of code triggers in my FM.

sdn3.png

3. Now when I'm calling my FM inside a Report, based on select options, how I come to know that which material has its unique batch and which material doesn't have a batch.

sdn4.png

Like FM internal table, I need to know the unique combination of Material + Batch and Material without Batch.

Please let me know the solution. Thank you.

With Regards,

Sudhir.

0