2006 Oct 24 6:21 PM
Hi Everyone,
I have a requirement where i need to download the PO data whenever a PO is created or changed through ME21N/ME22N. Though this functionality can be easily achieved through a customer exit, my requirement is to trigger the download through output types.
What is required is that in NACE for application EF, output type NEU (for eg.) i have to attach my custom program containing a form routine which in turn contains the data extraction code to medium 5 (for eg.) there is no form or smartform attached.
Having done this i create an output message for a PO with the above output type and medium and in the further data i maintain the dispatch time as 'Send immediately (when saving the application). Now i expect that on saving the transaction (ME22N) my extraction routine will get triggered, but that does not happen. I have to go to ME9F and get the list of succesfully processed messages and select one and click on 'Display message' and then my extraction code gets triggered. Apart from this if i click on the print preview pushbutton my extraction code gets triggered.
Is there anything i can do so that the extraction routine gets triggered immediately on saving the application apart from using a customer exit?
Hi Everyone,
I have a requirement where i need to download the PO data whenever a PO is created or changed through ME21N/ME22N. Though this functionality can be easily achieved through a customer exit, my requirement is to trigger the download through output types.
What is required is that in NACE for application EF, output type NEU (for eg.) i have to attach my custom program containing a form routine which in turn contains the data extraction code to medium 5 (for eg.) there is no form or smartform attached.
Having done this i create an output message for a PO with the above output type and medium and in the further data i maintain the dispatch time as 'Send immediately (when saving the application). Now i expect that on saving the transaction (ME22N) my extraction routine will get triggered, but that does not happen. I have to go to ME9F and get the list of succesfully processed messages and select one and click on 'Display message' and then my extraction code gets triggered. Apart from this if i click on the print preview pushbutton my extraction code gets triggered.
Is there anything i can do so that the extraction routine gets triggered immediately on saving the application apart from using a customer exit?
2006 Oct 24 6:47 PM
Did you set you output type as MULTIPLE ISSUE?
Leonardo De Araujo
2006 Oct 24 6:49 PM
Additionally, play with the following settings under TIME tabstrip:
Output timing prg Z_MMPO_010_01
FORM routine OUTPUT_TIME
Hope it helps
Leonardo De Araujo
2006 Oct 24 7:09 PM
Use transmission medium 8 instead of 5
Set RETURN_CODE = 0 after successfule download of po data.
US_SCREEN is populated with X if print preview clicked
FORM ENTRY USING RETURN_CODE US_SCREEN.
IF US_SCREEN = 'X'.
do not download data.
endif.
...
....
RETURN_CODE = 0.
ENDFORM.
Regards
Sridhar
2006 Oct 24 7:38 PM
You mean when your PO is created or changed your output type IS created but not processed immediately or it's not created at all ?
If it's created with proper timing but not processed immediately - then I would change medium type.
If it's not created at all or created with wrong timing - I would start with output determination analysis while you are in create/change transaction.
2006 Oct 25 7:18 AM
Hi Sridhar
after using transmission medium 8 instead of 5, and keeping the rest of the procedure same at saving the application i get the message in an error state with this message "Processing routine ENTRY_NEU in program ZDOWNLOAD does not exist" This was not the case with transmission medium 5, i am unable to figure this out, can you help?
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |