Automatic creation of Sales Order with reference to Purchase Order
Hi
I want to create the sales order automatically when we are creating the purchase order.
kindly guide me how to do it,
Pramod
Hi
U can create BDC for Tcode VA01 in T code SHDB with the validation and ask the ABAPer to create one Y/Z Tcode. Then you input the PO no in the Tcode to create the SO in background.
Or
Create BDC for PO AND SO and give logic and validation with input field and ask the ABAPer to crate one Y/Z Tcode to create PO and SO in single execute.
Thx.
Similar Messages
-
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 -
Sales order with reference to purchase order
Hi
I have a scenario where i need to create a sales order from PO raised in another company code
My client has 4 company codes
1000 company code
2000 company code
3000 company code
4000 company code
Now
2000 company will raise a PO on company code 1000
So in company code 2000 i need to create a sales order with reference to PO from compcode 1000
where all the data has to copied from PO with schedules
so when i create a order in VA31 i have to create scheduling agreements with refernce to PO all the schedule line items should be copied?
Is there any standard process or do i need to go for development?
RegardsHi,
As per my Understanding,
I guess, you can do this same as creating Purchase Order-NB ( In ordering Company code)-ME21N,
Vendor- Plant of Supplying Comp code ( Create this Plant as Vendor in ORdering Comp code)
Purchase org/Group-
Comp Code - Ordering Comp Code
Material-
Plant - Receiving Plant.
Try n Revert-
No Need to go for Userexit,
My Query is: -
Why you want to create Scheduling agreement wrt "PO" of Diff Comp Code.
We can use the PO from Ordering Comp Code is a ref for any dispatches ( To Pass the PO requirements to Production in Supp.Comp code, while creating PO by maintaining Checking rule ) -
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 -
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, -
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 -
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 -
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 -
ARE-1 form with reference to Purchase Order
Hi All,
We are having a scenario where we need to send the ARE-1 to our vendor along with CT1. I have tried assigning the Purchase Order as reference document for creation of ARE-1 but its not working.
Can anybody suggest the way to create ARE-1 with refernce to Purchase Order?
Rgds,
AntimaHi Rithvika,
Yes the scenario is for merchant export. Here we are the customer and along with our purchase order, we need to send CT1 and ARE-1 to our vendor. The ARE-1 series has to be same as for our direct export, so i need to create an ARE-1 with reference to Purchase Order.
If anybody has any idea how to do that and whether its possible in SAP then please guide me.
Rgds,
Antima -
Payment Posting with Reference to Purchase Order
Dear Experts,
I've created a Purchase Order with reference to a purchase requisition. Now I want to post MIRO with reference to this Purchase Order Number to give payment to Vendor mentioned in Purchase order. But when I going to post miro amount not coming which I mentioned in Purchase Order!!
How can I post MIRO with reference to Purchase Order Number? Is it possible?
Best Regards.
Ripon>
riponkp wrote:
> Dear Experts,
>
> I've created a Purchase Order with reference to a purchase requisition. Now I want to post MIRO with reference to this Purchase Order Number to give payment to Vendor mentioned in Purchase order. But when I going to post miro amount not coming which I mentioned in Purchase Order!!
>
> How can I post MIRO with reference to Purchase Order Number? Is it possible?
>
> Best Regards.
> Ripon
Seems like you are doing MIRO before GR. If GR is done, it will pick the amounts, if GR is not done, the amounts are not picked. You enter the amounts manually with reference to PO. -
Report for gl accounts with reference to purchase order
hi
experts
Is there any report which can give the gl accounts with reference to purchase order
thnxUse t code ME2N and click 'Account Assignment" from application tool bar or press Shift + F12 to view PO with GL code. If GL code is not showing select from the layout.
Rgds,
Vijay -
Goods Issue with reference to Purchase Order
Hi MM Gurus,
Is there any settings to do Goods Issue with reference to Purchase order?
I want to capture the material price in purchase order during goods issue instead of standard price or moving average price.
Thanks in advance
DineshHello Dinesh,
Batch valuation is similar to split valuation. Here is the link on how batch valuation works.
http://help.sap.com/saphelp_47x200/helpdata/en/25/283db54f7811d18a150000e816ae6e/content.htm
Please check in sandbox environment before using.
Hope this helps.
Regards
Arif Mansuri -
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. -
MIRO posting with reference to Purchase Order
Dear Experts,
I've created a Purchase Order with reference to a purchase requisition. Now I want to post MIRO with reference to this Purchase Order Number to give payment to Vendor mentioned in Purchase order. But when I going to post miro amount not coming which I mentioned in Purchase Order!!
How can I post MIRO with reference to Purchase Order Number? Is it possible?
Best Regards.
RiponAs above it sounds like a GR gasn't been posted but you can still process invoice. Just manually enter the quantity and value as per invoice.
Note the invoice will block for payment pending the GR.
See transaction MRBR if you want to release the invoice for payment immediately.
Regards,
Nick -
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''
Maybe you are looking for
-
Header line only prints on first page of multiple page document
Hi, I've created a SmartForms table and it has the Header, Main, and Footer sections. I've created table lines for the Header and Main sections. In the Header section, I've checked 'at Start of Table' and 'at Page Break'. The form prints multiple pag
-
Oracle Installation on linux Error in invoking target ntcontab.o
Hi All, During installing Oracle 8i EE on mandrake Linux 7.0, at the point of linking oracle protocol support 8.1.6.1.0 ,while Linking in progress I got the following message box "Error in invoking target ntcontab.o of make file /home/network/lib/ins
-
External data Transfer - Loan Module (t.code - KCLJ)
Hi Expert I have upload the loan source data through t.code KCLJ. and it showing me External data transfer completed with return code: 4. there is no error but no loan is created in server and also tables is not updated. is there any further step to
-
Inbound idoc to R/3 from XI
Hi , i am trying to post an idoc from Xi to R/3 system . I m using a file system as the input for the idoc and later using a communication channel of idoc adapter type to transfer the idc thus generated to the R/3 system . The file syetm i m using is
-
After automatic software update- being prompted for Darwin login - HELP!
I'm now locked out of the Powerbook G4. Purchased this system back in 2004 - haven't even used it since then as we didn't know how to hook it up to the internet. Recently powered it up and got it hooked into the network (although wireless not working