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: 

put some data form the databse of SQL Server into SAP and auto general PR?

Former Member
0 Kudos

Dear all,

Can you tell me how I can put some data from the databse of SQL Server into SAP and auto general PR?

Best regards,

Merryzhang

Edited by: merry zhang on Feb 4, 2009 9:10 AM

7 REPLIES 7

Jelena
Active Contributor
0 Kudos

What the heck is "auto general PR"? Please use correct spelling and grammar.

You can't just put some "data" into SAP, you need to know and understand what you're doing. Creating a material? An order?

Former Member
0 Kudos

Sorry,I have type wrong word,should be generate instead general

How can I put some data which are from the databse of SQL Server into SAP and auto generate PR?

Jelena
Active Contributor
0 Kudos

What's a "PR"? Public Relations? Puerto Rico? Problem Report? Purchasing Requisition?

It doesn't matter where the data comes from, what are you trying to do in SAP exactly?

Former Member
0 Kudos

PR is Purchasing Requisition

Former Member
0 Kudos

Hi Zhang,

If i have understood your question properly, I guess you wanted to create Purchase Requistion automatically right?

Then you have lots of option simpilest one would be create a couple of Z table with all the fields that you require for header and Item.

create a Program and use BAPI function module to create the PR by reading the values from those Z tables. after creation delete the contents from the table. Schedule this program in Background periodically like everyday or weekly once however you would like it to be. So once the table has contents in it and when the program runs it will create the PR's (Purchase Requisition).

You can also use a workflow with the Z table. Once the Z table is filled you can trigger a workflow based on the Table change. I'm not sure like how to do it but I nkow that this process can also be used.

Hope this might have thrown some light upon.

Thanks,

Prashanth

Former Member
0 Kudos

Hi Merry,

read the date from db via SELECT ... and create a "PR" via BAPI: BAPI_PR_CREATE.

Regards, Dieter

Former Member
0 Kudos

thank you