02-04-2009 8:08 AM
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
02-04-2009 9:49 PM
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?
02-05-2009 9:30 AM
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?
02-05-2009 3:37 PM
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?
02-06-2009 9:39 AM
02-05-2009 4:07 PM
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
02-06-2009 9:46 AM
Hi Merry,
read the date from db via SELECT ... and create a "PR" via BAPI: BAPI_PR_CREATE.
Regards, Dieter
08-15-2009 4:15 AM