2016 Feb 01 6:58 AM
Hello Guru.
Today I need to came across a requirement to trigger print from SAP: WFMC_MESSAGE_SINGLE.
Although I am not sure whether the mentioned function module is the correct one to suffice my requirement.
Did anyone came across similar requirement or can share sample source code the use of this FM.
Regards,
Pavan G
2016 Feb 01 7:13 AM
Just do a simple where used list for this FM and you will get the sample code.
Nabheet
Just do a simple where used list for this FM and you will get the sample code.
Nabheet
2016 Feb 01 7:13 AM
Just do a simple where used list for this FM and you will get the sample code.
Nabheet
2016 Feb 01 7:23 AM
2016 Feb 01 8:32 AM
Hi Pavan,
Go through below links...
NAST-Report Execute every Message without the Application - Code Gallery - SCN Wiki
Process Output types through program - ABAP Development - SCN Wiki
Hope that helps.
Regards,
Prithviraj.
2016 Feb 01 8:34 AM
Sample code also
LOOP AT xitem.
IF xitem-vstat = '0'.
CLEAR: flag, tmp_ebelp.
MOVE-CORRESPONDING xitem TO nast.
IF xitem-kappl EQ 'EL' AND xitem-objky+10(5) NE '00000'.
tmp_ebelp = xitem-objky+10(5).
PERFORM position_sperren USING
xitem-ebeln
tmp_ebelp
flag.
ELSE.
PERFORM beleg_sperren USING xitem-ebeln flag.
ENDIF.
IF NOT flag IS INITIAL. CONTINUE. ENDIF.
* PERFORM EINZELNACHRICHT(RSNAST00) USING SUBRC. " 361179
CALL FUNCTION 'WFMC_MESSAGE_SINGLE' " 361179
EXPORTING " 361179
pi_nast = nast " 361179
IMPORTING " 361179
pe_rcode = subrc. " 361179
IF xitem-kappl EQ 'EL' AND xitem-objky+10(5) NE '00000'. "455903
tmp_ebelp = xitem-objky+10(5).
PERFORM position_entsperren USING
xitem-ebeln
tmp_ebelp.
ELSE.
PERFORM beleg_entsperren USING xitem-ebeln.
ENDIF.
ENDIF.
COMMIT WORK.
2016 Feb 01 10:38 AM
Thanks nabheet but I had to finally handcode.
Regards,
PavanG.
2019 Sep 05 10:28 AM
I have used this function module WFMC_MESSAGE_SINGLE to trigger print output as well as email (external send). First you need to fill up the NAST structure based on your requirement and then pass it to the FM.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |