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

Extracting PO data through output types

Former Member
0 Likes
1,027

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?

5 REPLIES 5
Read only

LeonardoAraujo
SAP Mentor
SAP Mentor
0 Likes
926

Did you set you output type as MULTIPLE ISSUE?

Leonardo De Araujo

Read only

0 Likes
926

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

Read only

sridhar_k1
Active Contributor
0 Likes
926

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

Read only

Former Member
0 Likes
926

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.

Read only

0 Likes
926

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?