Application Development 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: 

Program for PO message

Former Member
0 Kudos

I want SAP to run a program when I am creating PO.

I would like to retrieve data from PO tables (e.g. EKKO) to use it in the program, but as the PO is not yet created, the data is not entered into a database yet.

Is there a temporal table which used for containing data temporally prior to entering the data into the database later?

If yes, how can I access to the temporal table to take (retrieve) the data to use it?

10 REPLIES 10

SimoneMilesi
Active Contributor
0 Kudos

Hi Jackson, your request is pretty unclear.
What should the program to do?

Instead of a program, why do not use the standard BAdI?

You should share more details or it will be impossible to help you

Former Member
0 Kudos

Thanks for your comment.

I am developing an output program which will be executed before PO creation. I don't mind the program runs right after PO created but i do not know whether SAP has this feature aside from using a job.

As PO is not created, the data i want to use for my program is not available in database.

For example, when i checked table EKKO for my program, i couldn't find PO number in the database as PO was not yet created.

But i guess the data is available in "somewhere" as they (the data) will be entered into the database.

I am looking for that "somewhere" to get the data for my program.

SimoneMilesi
Active Contributor
0 Kudos

And why don't you rely on standard output messages and controls?

You should search via google and you can find plently of wikis and examples like this one

0 Kudos

Thanks for your Answer.

But i am not looking for standard output messages and controls.

I just want to talk about the availability of the data in "somewhere".

It is my current concern for my program for special usage.

0 Kudos

Special usage?

You said it was an output program....

I am developing an output program 

Anyway in BAdIs you have all the data available and you can "play" with them.

0 Kudos

Output program but i am adding something for "Special usage".

and i am looking for the data location to access.

0 Kudos

If you do not want or can share any meaningful info, i'm sorry, i doubt you can find any help.

Even more, i already gave you the info you need: there is no "temporary table", there is the memory areas accessible implementing the right BAdI

0 Kudos

you mentioned that "there is no "temporary table"", and that can be the answer i was looking for even though that is not a good news for me as i need to try other way.

0 Kudos
 there is the memory areas accessible implementing the right BAdI

0 Kudos

yes, the mentioned "other way" can be that one. Thanks!