10-11-2007 4:05 PM
Hi everybody
I wanted to create PO with reference to PR through BAPI_PO_CREATE (4.6c), but i found there is no field to set PR info in the parameter. Is the bapi right for this case, or there are other functions?
THANKS FOR ANY ADVICE!
Best regards,
Egg
10-12-2007 5:45 AM
Hi,
If u want to maintain PR field in the BAPI_PO_CEATE,
then in the FM, there is PO_ITEM_SCHEDULES table, where you have the PR field named,
PREQ_NO BANFN Purchase Requisition Number
PREQ_ITEM Item Number of Purchase Requisition
There you can maintain PR data.
Thanks,
Bhawani
10-12-2007 5:45 AM
Hi,
If u want to maintain PR field in the BAPI_PO_CEATE,
then in the FM, there is PO_ITEM_SCHEDULES table, where you have the PR field named,
PREQ_NO BANFN Purchase Requisition Number
PREQ_ITEM Item Number of Purchase Requisition
There you can maintain PR data.
Thanks,
Bhawani
10-13-2007 1:45 PM
Hi Bhawani !
I find the fields and I think I can solve the problem now. Many thanks!
Best regards,
Egg
10-12-2007 5:47 AM
Hi,
use the transaction ME59 to create a PO with reference to PR..
use call transaction to ME59 and pass the PR number in the bdc data..
Thanks
Naren
10-17-2007 1:46 PM
10-06-2009 8:21 AM
Hi abappers!
I'm using bapi BAPI_PO_CREATE1 to create PO with reference to one or more PR. I have a problem with document date:
If the delivery date of the PR is lower than creation date of PR, the document date of the PO is the delivery date (lower than sy-datum).
If the delivery date of the PR is the same or higher than creation date of PR, the document date of the PO is the creation date of PR (sy-datum or high).
I'm trying to change this date in poheader-doc_date, but the system ignores me. I'm sure this is the correct variable, because I use it to create other PO's without reference.
Another thing confuses me is that if I create the PO with reference to the same PR from ME21N, the system doesn't allow me to indicate a document date lower than sy-datum.
Thanks in advance,
Jorge