Create Purchase Order with reference to Purchase Requisition using BAPI's
Hello Experts,
I need to create a Purchase order with reference to a Purchase Requisition.
All the above has to be done by using BAPI's.
For creating PR, I am using BAPI_REQUISITION_CREATE.
and for PO, I am using BAPI_PO_CREATE.
I am not able to use the requistion number in the PO. BAPI throws the following exception
"Requisition 1014396 00010 not selectable"
"Document contains no items"
Query's:
1. Do I need to release the PR for using it in PO?
2. If so how can I work with the "BAPI_REQUISITION_RELEASE_GEN" to release PR?
I have tried using the BAPI getting the following error "Release outside filed of responsibility".
Please help I am in critical Postion...
Thanks,
Suma
Hi Meenakshi,
When, I try to release error I am getting the following the error " Purchase Requisition can not be released".
Is this problem because of authorization or data issue?
Thanks
Suma
Similar Messages
-
Program for Creating Purchase Order with reference to purchase requisition
Hi ,
I need to Create purchase Order with reference to Purchase requisition,
in my case i need to automize the Process which is happening in MD04,
Can you please suggest me ?
Thanks ,
MuraliHi,
Plz check this link. It will be helpful to you.
Purchase order creation with reference to PR
We can also create the PO Using the BAPI_PO_CREATE1 function module.
In this function module fill up the all necessary Details.
With details in Item Table we haveto give the Fields PREQ_NO and PREQ_ITEM for each item .
then it will creates the PO with PREQ.
Thanks & Regards,
Sarita Singh Rathour
Edited by: Sarita Rathour on Aug 3, 2009 7:01 AM -
Help Bapi Purchase order with reference to purchase requisition no
Hi,
i used BAPI_PO_CREATE1 for creating purchase order with reference to Purchase requisition number but im getting these error
please help me to solve this
1 E BAPI 001 No instance of object type PurchaseOrder has been created. External reference:
2 E MEPO 001 Purchase order item 00010 still contains faulty schedule lines
3 E 06 054 Doc. type/item cat. NB/S (requisition) <-> NB/ (purch. order)
4 E 8W 162 No schedule line exists for schedule line number 0010000030 00010 0000.
Thanks & Regards,
Azhar
Message was edited by:
AzharHi Azar,
I am also getting the same messages, did you get resolve the issue. -
Net price on purchase order with reference to purchase requisition
Hello!
When I create a purchase order with reference to purchase requisition, the net price goes automatically to the purchase order.
But It's possible change the net price on PO, and I must close this possibility.
Do you know how can I do this?
Thanks, Camila!Hello
Try to search SCN for EVO
You will find this: PR price in PO -
Purchase Order with reference to Purchase Order
Dear SAP Gurus,
Can it be possible to have a purchase order with reference to purchase order.
Regards
Vinod KakadeHi,
there is an option to give document date in the Purchase order selection in Document overview, what you can do here is that you can get a TVARVC variable created with date range of today - Today - 179 Days, in the attributes of the variant enter the TVARVC variable so that when the user uses this variant, he will get PO's only for that date range, if you have any confusion on this then please speak to your ABAP Consultant.
Regards
Chandra Shekhar -
Purchase Order with reference to Purchase Requisition
Hello
I have this situation:
One Purchase Requisition with quantity of 10.
When I issue a Purchase Order with reference to this purchase requisition, for the moment I can use this Purchase Requisition many times. For example: two Purchase Order with the same purchase requisition, same item and same quantity.
The objective is thay the system only allows to use the Purchase Requisition until the quantity is completed. For example: one purchase order for 10, or two purchase orders with 5 each. But never with a quantity superior to the total quantity in the purchase requisition.
Somebody can help?
Thank you,
ElenaHi,
1) By setting the configuration paths as suggested by the previous posts.
2) In the first place, when converting a PR in PO Create Screen (ME21N), you should make the Open only and Released only field as Display. This way, the results will only show Open and Released PRs to be converted to PO
Hope this helps -
Create Sales Order With Reference to Billing Document Using BAPI_SALESORDER
Hi,
How can i create a sales order With Reference to Billing Document Using BAPI_SALESORDER_CREATEFROMDAT2?
Thanks in advance,
Alejandro.I have to create sales order with reference to existing billing document. I have tried to following bapis.
1. BAPI_SALESORDER_CREATEed
I have successfully created document with following details.
-->ORDER_HEADER_IN:
DOC_TYPE = ZRK
SALES_ORG = 3000
DISTR_CHAN = 00
DIVISION = 00
ORD_REASON = 100
SD_DOC_CAT = L
CURRENCY = EUR
REF_DOC = 100000028
REF_DOC_CA = M
-->ORDER_ITEMS_IN:
ITM_NUMBER = 000010
MATERIAL = 701791
TARGET_QTY = 0000000001000
CURRENCY = EUR
REF_DOC = 100000028
REF_DOC_CA = M
-->ORDER_PARTNERS:
PARTN_ROLE = SP
PARTN_NUMB = W12001
COUNTRY = NL
by providing this input i am able to create the document but it is not picking up the net value. so i have passed some extra paramters in ORDER_ITEMS_IN
COND_TYPE = PNET
COND_VALUE = 14,56
COND_D_UNT = PC.
folowing error is occured: Condition PNET is missing in pricing procedure A V Z0000.
is it something related to configuration problem?
2.BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2
I have used same test data that is used for BAPI_SALESORDER_CREATEFROMDATA (where in i coudl succefully create doc). but here i encounterd following error.
Unpermitted combination of business object BUS2032 and sales doc. category L. -
Create Sales order with reference to purchase order - Help needed
Hi Gurus
Purchase order is being created in Oracle system. SAP system will receive the purchase order and creates the sales order for the corresponding purchase order.
Hoe to create sales order, Through BAPI or through IDOC. Please suggest and give some pointers of existing interface
Thanks
Andy.Hi,
If you are working on ECC6.0 check for the BAPI BAPI_SALESORDER_CREATEFROMDAT1 .You can also pass the purchase order number .
Check the sample code
REPORT z_bapi_salesorder_create.
Parameters
Sales document type
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text FOR FIELD p_auart.
PARAMETERS: p_auart TYPE auart OBLIGATORY.
SELECTION-SCREEN END OF LINE.
Sales organization
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text1 FOR FIELD p_vkorg.
PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
SELECTION-SCREEN END OF LINE.
Distribution channel
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text2 FOR FIELD p_vtweg.
PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
SELECTION-SCREEN END OF LINE.
Division.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text3 FOR FIELD p_spart.
PARAMETERS: p_spart TYPE spart OBLIGATORY.
SELECTION-SCREEN END OF LINE.
SKIP 1.
Sold-to
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text4 FOR FIELD p_sold.
PARAMETERS: p_sold TYPE kunnr OBLIGATORY.
SELECTION-SCREEN END OF LINE.
Ship-to
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text5 FOR FIELD p_ship.
PARAMETERS: p_ship TYPE kunnr OBLIGATORY.
SELECTION-SCREEN END OF LINE.
SKIP 1.
Material
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text6 FOR FIELD p_matnr.
PARAMETERS: p_matnr TYPE matnr OBLIGATORY.
SELECTION-SCREEN END OF LINE.
Quantity.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text7 FOR FIELD p_menge.
PARAMETERS: p_menge TYPE kwmeng OBLIGATORY.
SELECTION-SCREEN END OF LINE.
Plant
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(20) v_text9 FOR FIELD p_plant.
PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
SELECTION-SCREEN END OF LINE.
Data declarations.
DATA: v_vbeln LIKE vbak-vbeln.
DATA: header LIKE bapisdhead1.
DATA: headerx LIKE bapisdhead1x.
DATA: item LIKE bapisditem OCCURS 0 WITH HEADER LINE.
DATA: itemx LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
DATA: partner LIKE bapipartnr OCCURS 0 WITH HEADER LINE.
DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA: lt_schedules_inx TYPE STANDARD TABLE OF bapischdlx
WITH HEADER LINE.
DATA: lt_schedules_in TYPE STANDARD TABLE OF bapischdl
WITH HEADER LINE.
Initialization.
INITIALIZATION.
v_text = 'Order type'.
v_text1 = 'Sales Org'.
v_text2 = 'Distribution channel'.
v_text3 = 'Division'.
v_text4 = 'Sold-to'.
v_text5 = 'Ship-to'.
v_text6 = 'Material'.
v_text7 = 'Quantity'.
v_text9 = 'Plant'.
Start-of-selection.
START-OF-SELECTION.
Header data
Sales document type
header-doc_type = p_auart.
headerx-doc_type = 'X'.
Sales organization
header-sales_org = p_vkorg.
headerx-sales_org = 'X'.
Distribution channel
header-distr_chan = p_vtweg.
headerx-distr_chan = 'X'.
*Purchase order number
header-PURCH_NO_C = '4000006'.
headerx-PURCH_NO_C = 'X'.
Division
header-division = p_spart.
headerx-division = 'X'.
headerx-updateflag = 'I'.
Partner data
Sold to
partner-partn_role = 'AG'.
partner-partn_numb = p_sold.
APPEND partner.
Ship to
partner-partn_role = 'WE'.
partner-partn_numb = p_ship.
APPEND partner.
ITEM DATA
itemx-updateflag = 'I'.
Line item number.
item-itm_number = '000010'.
itemx-itm_number = 'X'.
Material
item-material = p_matnr.
itemx-material = 'X'.
Plant
item-plant = p_plant.
itemx-plant = 'X'.
Quantity
item-target_qty = p_menge.
itemx-target_qty = 'X'.
APPEND item.
APPEND itemx.
Fill schedule lines
lt_schedules_in-itm_number = '000010'.
lt_schedules_in-sched_line = '0001'.
lt_schedules_in-req_qty = p_menge.
APPEND lt_schedules_in.
Fill schedule line flags
lt_schedules_inx-itm_number = '000010'.
lt_schedules_inx-sched_line = '0001'.
lt_schedules_inx-updateflag = 'X'.
lt_schedules_inx-req_qty = 'X'.
APPEND lt_schedules_inx.
Call the BAPI to create the sales order.
CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
EXPORTING
sales_header_in = header
sales_header_inx = headerx
IMPORTING
salesdocument_ex = v_vbeln
TABLES
return = return
sales_items_in = item
sales_items_inx = itemx
sales_schedules_in = lt_schedules_in
sales_schedules_inx = lt_schedules_inx
sales_partners = partner.
Check the return table.
LOOP AT return WHERE type = 'E' OR type = 'A'.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
WRITE: / 'Error in creating document'.
ELSE.
Commit the work.
COMMIT WORK AND WAIT.
WRITE: / 'Document ', v_vbeln, ' created'.
ENDIF.
Reward points if it worked.
Regards,
Abhishek
Edited by: Abhishek Raj on May 14, 2008 9:57 AM -
Purchase order with referance to Purchase requisition
Dear All,
This is the requirement of <b>Purchase order creation with reference to Purchase requisition only at the same time this requirement need to control particular document type ( Ex: Standard purchase Order) only .</b>Based on this other document types should not effect.
Please give me the proper solution for above.
Regards,
KrishnaDear Krishna Raju,
There is no configuration for the Purchase order with reference to Purchase requistion..
We can customise the Purchase order with reference to Purchase Requistion through the funcational authorisations.
For this,
Define Functional Authorisations in the customizing for Purchasing, there we can unmark PO w/o reference allowed.
Functional Authorisation, like ''abc'' create with <b>T.Code OMET</b>
Assign ''abc'' to a Parameter ID ''def'' with the <b>T.Code SU52</b>
Mostly this Purchase order authorisations will be give BASIS consultants. Pls approch them for more clarity in this regard.
With regards,
B.Ravindranath -
Can we create outbound delivery with reference of purchase order
Hi All,
can we create outbound delivery with reference of purchase order?dear friend,
as far as i know you can create it with the following references:
-to sales order;
-to STO;
-to subcontract order;
-to project;
-without any ref
are you talking about stock transport order ?
regards, -
Create purchase order with reference to Sales order Line item
Hi All,
i had a requirement that i need to create the Purchase order with reference to sales order line item...
In T.code me27 client requied a input field for sales order no and with that order reference he want the data of line item to PO creation line item screen.....
please sujjust......how to proceed......
regards,
Ravi NemaniHi
Go to SPRO->Logistic general->Tax on goods movement->India->Movement types.
Here you will find the group of movement types check which movement types is mantained for the out side movement groups or inward movement.
also check the Material Master in MRP view if the collective requirements (02) is mantained.
Regards
Sri -
Function module to create Inbound delivery with reference to Purchase Order
Hi experts,
I want to create Inbound delivery with refernce to Purchase Order. But I want to create item wise. For example If one purchase order is there with 10 line items. 10, 20, 30, 40, 50......100.
If I am showing report for Purchase Order with select option and if I select first 5 line items 10, 20, 30, 40, 50 then my program should be create one Inbound delivery for selected line items only. I have tried BDC for Tcode VL31N, but its not worked. Is there any Function module to create Inbound delivery with reference to Purchase Order for selected line items????????Hi,
Try FM RV_DELIVERY_CREATE or GN_DELIVERY_CREATE.
For creating a delivery wrt PO u 1st need to have a sales order i guess.
Regards,
Amit -
Purchase order with reference to Sales Order
Dear SAP Gurus,
I want to create a Purchase Order with reference to sales order.
I want to take the material in my stocks also. If i create a Purchase order with account assignment, i am able to take the inventory of that material as it is consumed at the time of GR (MIGO).
hope you understand my requirement.
AshishHi
Go to SPRO->Logistic general->Tax on goods movement->India->Movement types.
Here you will find the group of movement types check which movement types is mantained for the out side movement groups or inward movement.
also check the Material Master in MRP view if the collective requirements (02) is mantained.
Regards
Sri -
Purchase order with reference to internal order
Dear all
I am creating a purchase order with reference to a statistical internal order.The total PO value should not exceed the budgeted amount for that statistical internal order.How should i achieve this?
Thanks in advance.
MadhaviHello
First Create Budget Profile.
Make Specification In Availability Control as Activation Type ''01- Automatic activation during budget allocation''
Usage 100 and Tick ''Overall'' check box.
After that Make Setting for your Controlling area in SPRO Path '' Define Tolerance Limit for Availibility control'' -
BAPI For CREATE SALES ORDER WITH REFERENCE TO ORDER
Hi ,
I want to develop a new RFC for 'Creating Sales Order' with reference to another sales order -
Is there any BAPI available for the same ? (Version 4.7) - I know its available for new create and change
but couldn't find for create with reference to Order ...
Thanks in advance ...
Regards
Rajesh.Hi,
You can use this FM "/SAPNEA/SMAPI_ORDER_CREATE". I haven;t tried this but you can still give it a try. Mention the Reference Order Type and other data in the header work area and pass it to the FM.
Reward if it's useful.
Thanks,
Anil
Maybe you are looking for
-
Unable To Include Files In iOS Package
Hi, I an using the latest release version of Flash Builder, trying to package an app for the iPad. I have an AIR application that I created to run on a desktop, and have modified it to run on the iPad. It works fine, however I cannot package the need
-
OSB sbconsole responding slow.
Hi, We have OSB 11.1.1.5 installed on Weblogic server 10.3.5 running on 64 bit Linux platform. The OSB installation is a vanilla one with no changes to the default installation, except that we have increased the JVM heap size of osb_server from 512MB
-
Executing procedure at regular interval from java program
hi, I want to write java program that will execute procedure at regular interval, please give me hint how it will happen??????
-
Newbie wants to have a VPN server
Dear All, I want to have a VPN server, so my users can access it from the internet, how to configure my PIX 515 for this purpose? I need advise Thanks & Regards Winanjaya
-
I opened an email that may have contained a virus, do i need to run a scan?
how do you run a virus scan using OSx mavericks?