Creating purchase order with bapi_po_create1
hi ,
i am getting an error saying shippin details not maintained for the material ....which i have created by using bapi_material_savedata.
where do i have to look for to fill the shipping data in bapi_material_savedata
thanks and regards ,'
mithun seshadri
Hi,
Dont think Shipping data will be there in Material Master. U probably need to chk the shipping details for the customer instead.
Regards,
Bikash
Similar Messages
-
Create blocked purchase order with BAPI_PO_CREATE1
Hi,
I´m creating stock transport orders with BAPI_PO_CREATE1. At first, I need to
set them to the release status 'S' for blocked. After some checks, I want be able
to relase it and create the delivery.
I have found some fields like rel_status inside of the header structure of
BAPI_PO_CREATE1. But when I set this to 'S', the purchase order is created
with status 'released'.
How can I create a purchase order with BAPI_PO_CREATE1 and set it to 'blocked'
first?
Thanks, ArneNo ideas about that?
-
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 -
Error while creating purchase order with account assignment category "A"
Dear All,
At the time of creating purchase order with account assignment category A - Asset its throwing error as " GL Account 123400 can not be used"
how to resolve this issue"
Edited by: Matt on Sep 16, 2010 10:09 AM - removed bold tagsHI,
Assign all assets GL to Asset Class
spro --> financial accounting new -->assets accounting --> assets accounting (lean Implementation) --> organization structures --> Assign GL
Hope Help U !
Regards,
Pardeep Malik -
Is it possible to create purchase order with zero value ?
Is it possible to create purchase order with zero value ?
Hi,
There are two scenarios where the purchase order is created with zero value.
1. Standard Purchase order with Free tick indicator.
Whenever we expect a material with free of cost from vendor, we use to put the free indicator in item overview. This means the material is valuated at zero price irrespective of price control in material master. Quanitiy is updated while receipts.
Conditions tab in item detail doesnt appear.
2. Consignment PO.
While creating a purchase order for consignment, the system doesnt ask us the price and the condition tab doesnt appear in item detail.
An info record for consignment must be maintained before making the GR.
Hope i have clarified. If you want any further clarification. please do reply. -
How to Create Purchase Order with Co Product greater than Consumption
Hi All,
I'm new to SAP. Can any one please help with the steps to create PO with Co Product greater than Consumption.
Thanks in Advance.Hi Srinivasu,
If you are talking about handling by-products during subcontracting follow the following steps.
Create Purchase order with item category "L". In the components tab maintain by-product in negative quantity. If you are not sure about the actual quantity, enter theoretical quantity ( Actual quantity can be adjusted in Subsequent adjustment in Goods receipt).
Hope this helps you.
If this has not helped you, please elaborate your requirement.
Thanks
Vasuki B S -
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 -
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,
SumaHi 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 -
ME21N Create Purchase Order with reference to previous Purchase Order
Hello Expert,
Previously have been using Purchase Info Records for reference when creating Purchase Orders using ME21N. We then have deleted the Pricing Condition in the Purchase Info Record using ME12. Now when we are trying to create a new Purchase Order with the same values (Vendor, Material, Plant and Storage Location), the transaction code ME21N automatically fetches the previous values of the Pricing Condition as if it was cached. I remember of studying this in the MM academy but I am not sure how to disable it.
This error only happens when we are creating the first Purchase Order after the deletion, for the second Purchase Order, error will be prompted to the user saying that the Pricing Condition could not be found.
I would like to ask where in configuration can I delete this cache behaviour or is that any work around for this.
Thanks in advance.Hello Antony,
I found the "Update Prices" function in the Conditions Tab of the Item Details helps to refresh the data and fetch the new information from the Purchase Info Record. I would like to ask is there anyway to provoke this function automatically everytime when a user runs the transaction ME21N.
Thanks in advance again. -
Change/Create purchase order with customer BSART via CIF
Hi,
we create Purchase Orders in SCM SNP. Those POs are passed via CIF to R/3, but the Purchase orders should be created with a customer BSART.
In SCM the POs currently use the standard ATPCategories. I found an exit in CIF_PO_INBOUND where you can change BSART, but at this point there is no access to the data from APO.
Has anybody already implemented such a scenario?Hi Michael,
I used CIF outbound user exit from APO , for filtering purchase requisions going to SAP R/3.
You are creating purchase oders in SCM APO and transferring the same to SAP R/3 / ECC through CIF.
We may have two options : Change the data before publishing to SAP R/3 from APO. This happens in APO , outbound .
Otherwise we can change the data in the PO before it is created in SAP R/3 , for this we use user exit inbound SAP R/3.
You have option of changing or enahancing purchase order data inbound in SAP R/3, before the PO is created in SAP R/3.
The enhancement is CIFPUR02.
With this enhancement, you can change purchase order data from your APO system before a purchase requisition or purchase order is created in the ERP system
The enhancement contains the following components:
EXIT_SAPLCPUR_001
You can use this enhancement to change purchasing data (purchase requisitions, purchase orders) in ERP inbound. To do this, you can change the existing transfer data or include additional customer-specific data in your own tables.
Other enhancements in the same
EXIT_SAPLMEPI_004
With this enhancement, you can change the header data of a purchase order before it is created in the ERP system.
The following data can be changed:
Document type (parameter CP_BSART)
EXIT_SAPLMEPI_007
You can use this enhancement to specify the document type of a purchase requisition or purchase order when they are created in the ERP system (parameter CP_BSART).
There are other ehancements which I have not listed.
I assume you can create an enhancemnet projects for incorporating the above enhancements in CMOD / SMOD transactions.
I hope this helps you.
Please confirm.
Regards
Datta -
Probelm with Creating purchase order using BAPI_PO_CREATE1
Hi Experts,
I am trying to create a PO using the "BAPI_PO_CREATE1".
The BAPI is returning a PO number but when I am checking for the same in ME23 its saying that the number doesnot exsists.
In BAPI retrun I am gettig an info message as "Stock transport ord. Created number 4500016833". What does this indicate and what do I need do for the PO to get created?
Thanks & Regards,
SumaIf so how can we make use of the PO create BAPI from an Integration like XI?
I need to create a PO using BAPI from XI, and the returned PO number has to taken reference and create a Goods receipt using BAPI_GOODSMVT_CREATE. I am testing the data before using the same for XI.
So what do i need to do for creating a PO from XI?
Thanks,
Suma -
Problem creating Purchase Order with Bapi_po_create Return Message is ""
Hello everybody
When I get to create PO with bapi_po_create . I get this message in the return parameter :"Enter the PURCH_ORG".
I think that I have implemented it very well but I don´t get the results that I was expected : No PO was created.
Please see the following codes and let me know if something is wrong. Thanks .
=====================================
*& Report Z_PED_TRAS *
REPORT z_ped_tras .
Definición de la tabla asociada la tabla interna bdcdata
*DATA :in_data LIKE bdcdata OCCURS 0 WITH HEADER LINE.
Definición de la estructura que contendrá los pedidos
DATA : s_cabeceras_pedidos LIKE bapiekkoc,
s_pos_pedidos LIKE bapiekpoc.
DATA : t_cabeceras_pedidos LIKE bapiekkoc OCCURS 0 WITH HEADER LINE,
t_pos_pedidos LIKE bapiekpoc OCCURS 0 WITH HEADER LINE,
t_final_cabeceras_pedidos LIKE bapiekkoc OCCURS 0 WITH HEADER
LINE,
t_final_pos_pedidos LIKE bapiekpoc OCCURS 0 WITH HEADER LINE.
Data : item_schedule like BAPIEKET occurs 0 with header line.
*DATA : BEGIN OF pedidos,
ematn TYPE mepo1211-ematn, "Número de material
menge TYPE mepo1211-menge, "Cantidad de pedido
name1 TYPE mepo1211-name1," Centro destino
lgobe TYPE mepo1211-lgobe, "Almacén
END OF pedidos.
*DATA: s_pedidos LIKE pedidos,
wa_pedidos LIKE pedidos,
t_pedidos LIKE pedidos OCCURS 0 .
Variables auxiliaires
Variables para la ejecución del explorador de archivos
DATA: l_temp_dir TYPE string.
DATA: l_filter TYPE string.
DATA: l_files TYPE filetable.
DATA: l_rc TYPE i.
DATA: l_file TYPE filename.
DATA: l_filename TYPE string.
DATA: excel TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE.
DATA: s_excel TYPE alsmex_tabline.
DATA: qid LIKE apqi-qid.
Declaración de parametros de selección
PARAMETERS :
p_center LIKE bapiekkoc-suppl_plnt OBLIGATORY,"" Proveedor/Centro
p_ekorg LIKE bapiekkoc-purch_org OBLIGATORY , " Organización compras
p_ekgrp LIKE bapiekkoc-pur_group OBLIGATORY, " Grupo de compras
p_bukrs LIKE bapiekkoc-co_code OBLIGATORY,"Sociedad"
p_date LIKE sy-datum DEFAULT sy-datum OBLIGATORY, "fecha
test AS CHECKBOX DEFAULT 'X'.
p_center LIKE mepo_topline-superfield, " Proveedor/Centro
p_ekorg LIKE mepo1222-ekorg, " Organización de compras
p_ekgrp LIKE mepo1222-ekgrp, " Grupo de compras
p_bukrs LIKE mepo1222-bukrs,"Sociedad"
p_date LIKE sy-datum," Fecha
test AS CHECKBOX DEFAULT 'X'.
PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'C:PEDIDOS.XLS'. " Ruta
Carga del explorador de ficheros **
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
l_temp_dir = 'C:A'.
l_filter = '.'.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
default_extension = '*.xls'
file_filter = l_filter
initial_directory = l_temp_dir
CHANGING
file_table = l_files
rc = l_rc
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
OTHERS = 5.
IF NOT l_files[] IS INITIAL.
READ TABLE l_files INTO l_file INDEX 1.
p_file = l_file.
TRANSLATE p_file TO UPPER CASE.
ENDIF.
START-OF-SELECTION.
IF p_file NE space.
PERFORM upload_data.
PERFORM fill_data.
PERFORM llamar_bapi.
ENDIF.
END-OF-SELECTION.
*& Form Upload_data
text
--> p1 text
<-- p2 text
FORM upload_data .
IF excel IS INITIAL .
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = p_file
i_begin_col = 1
i_begin_row = 2
i_end_col = 4
i_end_row = 50000
TABLES
intern = excel
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
IF sy-subrc <> 0.
WRITE :/'Hay un problema al cargar los datos delfichero excell'.
ENDIF.
SORT excel DESCENDING BY row col.
ENDIF.
ENDFORM. " Upload_data
*& Form fill_excell
text
--> p1 text
<-- p2 text
FORM fill_data .
DATA : cant TYPE i ,
value_row TYPE i VALUE 1,
data_aux TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE.
Leer las filas del fichero excell.
IF test NE 'X'.
s_cabeceras_pedidos-suppl_plnt = p_center.
s_cabeceras_pedidos-purch_org = p_ekorg.
s_cabeceras_pedidos-pur_group = p_ekgrp .
s_cabeceras_pedidos-co_code = p_bukrs .
s_cabeceras_pedidos-doc_date = p_date.
APPEND s_cabeceras_pedidos TO t_cabeceras_pedidos.
cant = excel-row.
DO cant TIMES.
LOOP AT excel WHERE row EQ value_row.
APPEND excel TO data_aux.
ENDLOOP.
SORT data_aux BY col.
LOOP AT data_aux.
CASE data_aux-col.
WHEN '1'.
s_pos_pedidos-pur_mat = data_aux-value.
WHEN '2'.
s_pos_pedidos-DISP_QUAN = data_aux-value.
WHEN '3'.
s_pos_pedidos-plant = data_aux-value.
WHEN '4'.
s_pos_pedidos-store_loc = data_aux-value.
ENDCASE.
ENDLOOP.
APPEND s_pos_pedidos TO t_pos_pedidos.
ENDDO.
ENDIF.
ENDFORM. " fill_data
*& Form llamar_Bapi
text
--> p1 text
<-- p2 text
FORM llamar_bapi .
data : T_RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE,
PORDER LIKE BAPIEKKOC-PO_NUMBER.
t_final_cabeceras_pedidos[] = t_cabeceras_pedidos[].
t_final_pos_pedidos[] = t_pos_pedidos[].
CALL FUNCTION 'BAPI_PO_CREATE'
EXPORTING
po_header = t_final_cabeceras_pedidos
IMPORTING
PURCHASEORDER = PORDER
TABLES
po_items = t_final_pos_pedidos
po_item_schedules = item_schedule
RETURN = T_RETURN
IF sy-subrc EQ 0 .
WRITE :/ 'P O created well'.
ELSE .
WRITE :/ 'P .O was not created well'.
endif.
ENDFORM. " llamar_BapiHi,
When we use BAPI_PO_CREATE1 to create service PO, following tables are populated at item level:
a) POITEM
b) POITEMX
c) POACCOUNT
d) POACCOUNTX
e) POSERVICES
f) POSRVACCESSVALUES
For service items: POITEM-PCKG_NO = u20180000000001u2019. (assign package no as a dummy number)
Set PCKG_NO flag in POITEMX table as u2018Xu2019.
Package No is the link that connect POITEM table to POACCOUNT table through tables POSERVICES and POSRVACCESSVALUES.
Set POACCOUNT-SERIAL_NO to u201801u2019.
Set same PCKG_NO to u20180000000001u2019 in POSERVICES table. Maintain two entries in POSERVICES table like this:
WA_POSERVICES-PCKG_NO = u20180000000001u2019.
WA_POSERVICES-LINE_NO = u20180000000001u2019.
WA_POSERVICES-OUTL_IND = u2018Xu2019.
WA_POSERVICES-SUBPCKG_NO = u20180000000003u2019. (Dummy No.)
WA_POSERVICES-QUANTITY = u2018100.000u2019.
WA_POSERVICES-BASE_UOM = u2018EAu2019.
WA_POSERVICES-PRICE_UNIT = u20181u2019.
WA_POSERVICES-GR_PRICE = u2018100.000u2019.
WA_POSERVICES-SHORT_TEXT = u2018SERVICE TESTu2019.
APPEND WA_POSERVICES TO IT_POSERVICES.
WA_POSERVICES- PCKG_NO = u20180000000003u2019.
WA_POSERVICES- LINE_NO = u20180000000002u2019.
WA_POSERVICES-QUANTITY = u201810.000u2019.
WA_POSERVICES- BASE_UOM = u2018EAu2019.
WA_POSERVICES--PRICE_UNIT = u20181u2019.
WA_POSERVICES-GR_PRICE = u2018100.000u2019.
WA_POSERVICES-SHORT_TEXT = u2018SERVICE 1u2019.
WA_POSERVICES-MATL_GROUP = u20180012u2019.
APPEND WA_POSERVICES TO IT_POSERVICES.
Set PCKG_NO as SUB_PCKG_NO in table POSRVACCESSVALUES this:
WA_POSRVACCESSVALUES-PCKG_NO = u20180000000003u2019.
WA_POSRVACCESSVALUES-LINE_NO = u20180000000002u2019.
WA_POSRVACCESSVALUES-SERNO_LINE = u201801u2019.
WA_POSRVACCESSVALUES-SERIAL_NO = u201801u2019.
WA_POSRVACCESSVALUES-QUANTITY = u201910.000u2019.
APPEND WA_POSRVACCESSVALUES TO IT_ POSRVACCESSVALUES.
This logic will work definitely and PO Service Items will be created.
Thanks & Regards.
Dhina.. -
PURCHASE ORDER WITH OUT BAPI_PO_CREATE CAN WE CREATE?
PURCHASE ORDER WITH OUT calling BAPI_PO_CREATE CAN WE CREATE?
Don't Post your question with all Caps. Follow the Rules of Engagement
Edited by: Vijay Babu Dudla on Apr 23, 2009 1:46 AM[Create Purchase order with program|can we create purchase order through report programming?]
Plz be clear about your requirement instead of posting questions like these.
Don't violate forum rules with Duplicate posts -
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. -
Hi,
Is it Possible to create purchase order with negative Quantity, right now it is issuing msg "negative Quantity will not be allowed for service based invoice verification".
If yes please suggest the config steps.
Regards,
Raninot possible.
negative stock can be maintained for storage location for goods issue
Maybe you are looking for
-
So I plugged my ipod into my computer and even itunes does not detect my ipod. The update seems to be my download and restore did not work either. Thank you for your help.
-
Read DMS document in binary format
Hi, I have a requirement to read DMS document in binary format into internal table. and i want to print the data in internal table through SAP spool. Please let me know how to handle this requirement. Thanks Srini
-
Selection Interface for large database
I am looking for a working example of a CF selection field that fills or builds a name list as you type. The database has about 600,000 names with 400 new people being added each day. I am looking for a smart tool that watches you type and brings d
-
Point Database tutorial but using Derby Database in NetBeans IDE
Hi I am getting an error when I am trying to run the EJB Entity beans BMP example "savingsaccount" in the examples folder of j2eetutorials . I have using NEtBeans IDE + Sun APP server and the following the tutorial Netbeans + J2ee tutorials... THe pr
-
I am now installing full developer suite 101202 on Windows machine - DB and SOA suite is up and running already. Well - now I am at screen 'Thank you for choosing Oracle' with Setting up 'Oracle Developer SUite 10g OC4J Instance 10.1.2.0.2'. So - for