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

Functionality Of Function Module

Former Member
0 Likes
1,615

Hi experts!

I want to know the functionality of the function Module WFMC_MESSAGES_SELECT.

I want to know what to pass in the Exporting parameters ,especially in 'tx_messages'.

Since I am very new in ABAP,I request you to explain me in as much detail as you can.And Why and When this Module is used.

Will be thankful to you

Regards

Sourabh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,195

Hi

I don't know when but it seems to be a fm to get the print messages.

So:

PI_APPLICATION:

Application code: i.e which module the message is from

PI_PROCESSING:

How to make the messge: print, fax

PI_PRINTER: Device output

RI_MEDIUM

RI_TYPE

RI_OBJECT

RI_APPLICATION

here you can insert the ranges for selection of NAST table

TX_MESSAGES: Messages list: when a msg is created it's stored in NAST table, this parameter returns the selection from NAST table

Max

6 REPLIES 6
Read only

gopi_narendra
Active Contributor
0 Likes
1,195

Hi refer to the thread below

Regards

Gopi

Read only

Former Member
0 Likes
1,195

hi

it is an FM related to output control( NAST ).

check this example

tables : nase.

constants: appl like nase-kappl value 'V2'.

select-options:

rg_nacha for nase-nacha default '1',

rg_kschl for nase-kschl.

ranges: rg_objky for nast-objky.

data:

msgs_1 like msg0 occurs 100 with header line.

*-Fill Object Key

*-Execute fm

call function 'WFMC_MESSAGES_SELECT'

exporting

pi_application = appl

pi_processing = '1'

tables

ri_medium = rg_nacha

ri_type = rg_kschl

ri_object = rg_objky

tx_messages = msgs_1.

Read only

Former Member
0 Likes
1,196

Hi

I don't know when but it seems to be a fm to get the print messages.

So:

PI_APPLICATION:

Application code: i.e which module the message is from

PI_PROCESSING:

How to make the messge: print, fax

PI_PRINTER: Device output

RI_MEDIUM

RI_TYPE

RI_OBJECT

RI_APPLICATION

here you can insert the ranges for selection of NAST table

TX_MESSAGES: Messages list: when a msg is created it's stored in NAST table, this parameter returns the selection from NAST table

Max

Read only

0 Likes
1,195

Check out the program <b>SD70AV2A</b>. the FM "WFMC_MESSAGES_PROCESS" is used in this program.

Read only

0 Likes
1,195

Hi!

Sorry all,to bother you again. I am still not clear what does what this function Module is doing.Can any one give a brief on it.

Actually my requirement is to change the standard program SD70AV1A,include two more fieds in the selection Criteria and Display them in the output.

In this program the function Module(WFMC_MESSAGES_SELECT) is called.I am not able to make out what this Function Module is doing.

Please give me as much detail as you can,since I am very new in ABAP.Will be thankful to you.

Regards

Sourabh

Read only

0 Likes
1,195

Sourabh,

this function module enables you to issue printout through Output determination. For example, lets say you have invoice that prints from VF01, VF02, etc using output type ZINV. This function module would let you print invoices from a background program. You would first use function module WFMC_MESSAGES_SELECT to get the messages from NAST and then pass it to this function module

thanks

-kaushik