‎2006 Sep 21 6:58 AM
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
‎2006 Sep 21 7:08 AM
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
‎2006 Sep 21 7:02 AM
‎2006 Sep 21 7:07 AM
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.
‎2006 Sep 21 7:08 AM
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
‎2006 Sep 21 7:09 AM
‎2006 Sep 21 8:16 AM
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
‎2006 Dec 14 9:05 PM
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