FM BAPI purchase order to check if is invoiced
Hi,
I've got to migrate PO to a new comp code, is there any bapi or FM thats show's if the po as been invoiced.
Thzs in advanced to all
Jaime Cordeiro
Hi,
Thzs for the anserw, the solution pass by the reading of that table and a combination of the quantitys.
Regards
Jaime Cordeiro
Award point given
Similar Messages
-
Purchase order at item level in Invoice Tab 'GR-Bsd IV' want default
Dear Friends
While making Purchase order at item level in Invoice Tab 'GR-Bsd IV' should be came by default . what is its configuration setting.
Regards,
MahesHi Mahesh try ME21N t-code
-
Hy Gurus,
Are there a Bapi with input the purchase order number and output the purchase order open quantity and delivery date?
Thanks.
JosyHi
Use this bapi BAPI_PO_CREATE1 it has those fields you want..
thanks
Edited by: Sharada.Dhulipala on Oct 12, 2011 4:33 PM -
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. -
Sp Transaction Procedure For Purchase Order Item Checking
Hello All,
I need to create a sp_Transaction notification for Purchase Order where system will check that the document to be added
with Vendor 'A' and ItemCode 'ERT' should not be be previously added for the same vendor 'A.
Example:-
Doc No. Vendor Item Code
1 A ERT
Is added
Next if the Purchase Order is added with same vendor and same Item then system should block the entry and throw a message
'Purchase Order Already Entered for Vendor 'A' with Item Code 'ERT'"
This checking will be done for each line item of currently entered Purchase Order Document.
Thanks ,
AmitHello Amit,
You don't need post identical thread twice. This SP related discussion is usually posted on main forum.
Please close this one.
Thanks,
Gordon -
Sp_Transaction Notification For Purchase Order Item Checking
Hello All,
I need to create a sp_Transaction notification for Purchase Order where system will check that the document to be added
with Vendor 'A' and ItemCode 'ERT' should not be be previously added for the same vendor 'A.
Example:-
Doc No. Vendor Item Code
1 A ERT
Is added
Next if the Purchase Order is added with same vendor and same Item then system should block the entry and throw a message
'Purchase Order Already Entered for Vendor 'A' with Item Code 'ERT'"
This checking will be done for each line item of currently entered Purchase Order Document.
Thanks ,
AmitHi Amit,
i found this on forum. Try this,
if @object_type = N'22' and @transaction_type in (N'A', N'U')
begin
declare @line1 int
declare @lin1 int
declare @out1 int
Set @out1 = 0
SET @lin1 = 0
Declare @Vend as varchar(200)
Declare @ItemCode as varchar(200)
Select @Vend = CardCode From OPOR Where DocEntry = @list_of_cols_val_tab_del
Select @line1 = Max (LineNum)FROM POR1 WHERE POR1.DocEntry = @list_of_cols_val_tab_del
While @lin1 < @line1
Begin
Select @ItemCode=ItemCode From POR1 Where DocEntry=@list_of_cols_val_tab_del and LineNum = @lin1
if (SELECT COUNT(T0.DocEntry) FROM POR1 T0 inner join OPOR T1 on T0.DocEntry = T1.DocEntry
WHERE T0.ItemCode = @ItemCode and T1.CardCode = @Vend)> 1
Begin
Set @Out1 = 1
Break;
END
Else
Begin
Set @lin1 = @lin1+1
Continue
END
END
Set @lin1 = @lin1 + 1
if @out1 = 1
begin
Set @error = 1
Set @error_message = 'Item Code in line ' + CONVERT(nvarchar(4), @lin1) + N'already Exists For This Vendor!'
End
END
Check this too Stored procedure in purchase order for duplicate item for a vendor
Thanks,
Joseph
Edited by: Joseph Antony on Jan 11, 2011 1:37 PM -
Purchase order history not updated when invoice is posted for framework POs
Hi,
We've created a framework PO and now posted an invoice against it. The invoice was posted in the following way:
1. Go to transaction MIRO
2. Enter the PO number in the PO reference field.
3. Select the "G/L Account" tab and enter the value manually and also enter the amount at the header level and then post it.
But when I go back to the PO, I don't see the PO history tab and hence, the PO history is not visible.
Does anybody have an idea on any config that may be missing?
Any clues will be appreciated.
Regards,
LakshmiHi
Did you refer to the same Framework purchase order while posting the invoice?
Invoice has been posted succesfully and number generated? If yes then check in MIR5/MIR6 the purchase order reference for that Invoice.
If everything is correct then you can see the IV number in PO history tab.
Thanks -
Purchase order document type wise park invoice creation authorization
Dear Experts,
at present our purchasing person is creating park invoice against all type of purchase order,we want to restrict him for certain purchase order type for creation of park invoice,is it possible what is procedure,please advice
Regards,
Shyam ShindeShyam,
As said by varma, if you looking for FB60/FV50?then u need to search before you post.
Thanks,
Sri -
Import Standard Purchase Orders and matching to the invoice
Hi Experts,
Can we import standard purchase orders into oracle from 3rd party systems.
And also there's a requirement to match the relevant invoice in AP to the purchase Order automatically when the PO is transferred.
We are on 11.5.10.2
Regards,
Migara
Edited by: user11337190 on May 13, 2010 1:52 AMEnsure you pass every parameter for the request. As far as a know it has 16 parameters.
fnd_request.submit_request (application
=> 'PO',
PROGRAM
=> 'POXPOPDOI',
argument1
=> <Default Buyer>,
argument2
=> <Document Type>,
argument3
=> <Document SubType>,
argument4
=> <Create or Update Items>,
argument5
=> <Create Sourcing Rules>,
argument6
=> <Approval Status>,
argument7
=> <Release Generation Method>,
argument8
=> <Batch Id>,
argument9
=> <Operating Unit>,
argument10
=> <Global Agreement>,
argument11
=> <Enable Sourcing Level>,
argument12
=> <Sourcing Level>,
argument13
=> <Inv Org Enable>,
argument14
=> <Inventory Organization>,
argument15
=> <Batch Size>,
argument16
=> <Gather Stats>
Regards, Andrei -
BAPI purchase order create (subcontracting)
Hi,
Is it possible to create subcomponents for PO item when it is not BOM related? I checked BAPI_PO_CREATE and CREATE1 (with ALE messages assigned) but cannot find how to use standard way to accomplish this (ver. 4.6C).
Is there a better way to do this than batch input with ME21?
Best regards,
MaciejThat's the first thing I checked...
CREATE1 is used only once in 4.7 (idoc_input..) and not in 4.6C, there should be new interface generated. The problem is all BAPIs interfaces have no container for subcomponents at all (only items general, schedule lines, service lines, conditions etc.).
Note 197958 says BAPI_PO_CREATE can be used for creating subcontracting items only when BOMs exist and most probably it is the last answer to this issue;)
Br,
Maciej -
EDI Outbound Purchase Order Please check
Hi,
My requirment is i have one outbound IDOC, i have to change some data inthe segment E1EDKA1 form some coustam tables
The Basic type is Orders05, i should do some changes in the segment E1EDKA1 based on E1EDKA1-PARVW in the exit EXIT_SAPLEINM_011,
i have written the code in the exit EXIT_SAPLEINM_011, Can any body pls check my code
TYPES:BEGIN OF ty_ztsd_ilnpurorg,
bbbnr TYPE ztsd_ilnpurorg-bbbnr,
bbsnr TYPE ztsd_ilnpurorg-bbsnr,
bubkz TYPE ztsd_ilnpurorg-bubkz,
END OF ty_ztsd_ilnpurorg,
BEGIN OF ty_ztsd_ilnplant,
bbbnr TYPE ztsd_ilnplant-bbbnr,
bbsnr TYPE ztsd_ilnplant-bbsnr,
bubkz TYPE ztsd_ilnplant-bubkz,
END OF ty_ztsd_ilnplant,
BEGIN OF ty_kna1,
bbbnr TYPE kna1-bbbnr,
bbsnr TYPE kna1-bbsnr,
bubkz TYPE kna1-bubkz,
END OF ty_kna1.
*& WORK AREA
DATA: lw_ztsd_ilnpurorg TYPE ty_ztsd_ilnpurorg,
lw_ztsd_ilnplant TYPE ty_ztsd_ilnplant,
lw_kna1 TYPE ty_kna1,
lw_edidd TYPE edidd,
lw_e1edka1 TYPE e1edka1.
*& VARIABLES
DATA:l_bbbnr TYPE ztsd_ilnpurorg-bbbnr,
l_bbsnr TYPE ztsd_ilnpurorg-bbsnr,
l_bubkz TYPE ztsd_ilnpurorg-bubkz,
l_ilnnr TYPE e1edka1-ilnnr,
l_kna1_bbbnr TYPE kna1-bbbnr,
l_kna1_bbsnr TYPE kna1-bbsnr,
l_kna1_bubkz TYPE kna1-bubkz,
l_kna1_partn TYPE e1edka1-partn,
l_e1edka1_we TYPE e1edka1-ilnnr.
*& CONSTANTS
CONSTANTS:lc_orders05(8) TYPE c VALUE 'ORDERS05',
lc_eledka1(7) TYPE c VALUE 'E1EDKA1'.
Clearing the workarea
CLEAR:lw_ztsd_ilnpurorg,
lw_ztsd_ilnplant,
lw_kna1,
lw_edidd,
lw_edidd_1,
lw_e1edka1,
lw_e1edp19.
*Checking for the Idoc type ORGERS05
IF control_record_out-idoctp = lc_orders05.
*Reading the EDIDD table for the segment E1EDKA1
READ TABLE dint_edidd INTO lw_edidd WITH KEY segnam = lc_eledka1.
IF sy-subrc = 0.
MOVE lw_edidd-sdata TO lw_e1edka1.
ENDIF.
*checking the segment E1EDKA1-PARVW
CASE lw_e1edka1-parvw.
WHEN 'AG'.
*Selecting the data required for conversion of E1EDKA1-ILNNR to Campina ILN number
SELECT SINGLE bbbnr bbsnr bubkz
INTO lw_ztsd_ilnpurorg
FROM ztsd_ilnpurorg
WHERE ekorg = lw_e1edka1-paorg.
IF sy-subrc = 0.
l_bbbnr = lw_ztsd_ilnpurorg-bbbnr.
l_bbsnr = lw_ztsd_ilnpurorg-bbsnr.
l_bubkz = lw_ztsd_ilnpurorg-bubkz.
ENDIF.
CONCATENATE l_bbbnr l_bbsnr l_bubkz INTO l_ilnnr.
*Conversion of E1EDKA1-ILNNR to Campina ILN number
CLEAR dint_edidd.
CLEAR lw_e1edka1.
lw_e1edka1-ilnnr = l_ilnnr.
MOVE lw_e1edka1 TO lw_edidd-sdata.
MODIFY dint_edidd FROM lw_edidd TRANSPORTING sdata.
Clearing the workarea
CLEAR:lw_ztsd_ilnpurorg,
lw_edidd,
lw_e1edka1,
l_bbbnr,
l_bbsnr,
l_bubkz,
l_ilnnr.
WHEN 'SP'.
*Selecting the data required for conversion of E1EDKA1-ILNNR to Plant ILN number
SELECT SINGLE bbbnr bbsnr bubkz
INTO lw_ztsd_ilnplant
FROM ztsd_ilnplant
WHERE werks = lw_e1edka1-lifnr.
IF sy-subrc = 0.
l_bbbnr = lw_ztsd_ilnplant-bbbnr.
l_bbsnr = lw_ztsd_ilnplant-bbsnr.
l_bubkz = lw_ztsd_ilnplant-bubkz.
ENDIF.
CONCATENATE l_bbbnr l_bbsnr l_bubkz INTO l_ilnnr.
*Conversion of E1EDKA1-ILNNR to Plant ILN number
CLEAR dint_edidd.
CLEAR lw_e1edka1.
lw_e1edka1-ilnnr = l_ilnnr.
MOVE lw_e1edka1 TO lw_edidd-sdata.
MODIFY dint_edidd FROM lw_edidd. "TRANSPORTING sdata.
Clearing the workarea
CLEAR:lw_ztsd_ilnplant,
lw_edidd,
lw_e1edka1,
l_bbbnr,
l_bbsnr,
l_bubkz,
l_ilnnr.
WHEN 'WE'.
*Selecting the data required for conversion of E1EDKA1-PARTN to ILN number from customer master KNA1
SELECT SINGLE bbbnr bbsnr bubkz
INTO lw_kna1
FROM kna1
WHERE kunnr = lw_e1edka1-partn.
IF sy-subrc = 0.
l_kna1_bbbnr = lw_kna1-bbbnr.
l_kna1_bbsnr = lw_kna1-bbsnr.
l_kna1_bubkz = lw_kna1-bubkz.
ENDIF.
CONCATENATE l_kna1_bbbnr l_kna1_bbsnr l_kna1_bubkz INTO l_kna1_partn.
FREE:lw_ztsd_ilnplant.
*Selecting the data required for conversion of E1EDKA1-LIFNR to Plant ILN number
SELECT SINGLE bbbnr bbsnr bubkz
INTO lw_ztsd_ilnplant
FROM ztsd_ilnplant
WHERE werks = lw_e1edka1-lifnr.
IF sy-subrc = 0.
l_bbbnr = lw_ztsd_ilnplant-bbbnr.
l_bbsnr = lw_ztsd_ilnplant-bbsnr.
l_bubkz = lw_ztsd_ilnplant-bubkz.
ENDIF.
CONCATENATE l_bbbnr l_bbsnr l_bubkz INTO l_ilnnr.
*Checking PARTN and LIFNR for data
IF l_kna1_partn IS NOT INITIAL.
MOVE l_kna1_partn TO l_e1edka1_we.
ELSE.
MOVE l_ilnnr TO l_e1edka1_we.
ENDIF.
*Conversion of E1EDKA1-PARTN to ILN number from customer master KNA1
E1EDKA1-LIFNR to Plant ILN number
*Check and Convert PARTN and LIFNR and copy the field contents to ILNNR
CLEAR dint_edidd.
CLEAR lw_e1edka1.
lw_e1edka1-partn = l_kna1_partn.
lw_e1edka1-lifnr = l_ilnnr.
lw_e1edka1-ilnnr = l_e1edka1_we.
MOVE lw_e1edka1 TO lw_edidd-sdata.
MODIFY dint_edidd FROM lw_edidd. "TRANSPORTING sdata.
*Free the work area and local variables
FREE:lw_e1edka1,
lw_edidd,
l_bbbnr,
l_bbsnr,
l_bubkz,
l_ilnnr.
ENDCASE.
It would be very help full if any body can quickely check the code and reply back,
Thanks in advance,
sai.Dear
Please check setting in IMG SAP Supl.Rel.Management>SRM Server>Technical Basic Setting>Define Back end system for Product category.
Thanks & Regards
Rajendran -
BAPI for updating tax code for purchase order..
Hi friends,
I have one requirement to change tax code for multiple Purchase order but the
thing is they should not go for release.So what should I prefer BDC or BAPI.
I am thinking to implement it through BAPI, but I don't know what procedure to follow.
If somebody can provide me a small guiding steps or code then it will be very helpful for me..
Thnaks in advance..
Useful answers will be rewarded with points....
Regards,
Rajesh AkarteHi Friend,
BAPI_ACC_PURCHASE_ORDER_CHECK Accounting: Check Purchase Order
BAPI_ACC_PURCHASE_ORDER_POST Accounting: Post Purchase Order
MEWP BAPIs Purchase order
BAPI_PO_CREATE Create Purchase Order
BAPI_PO_GETDETAIL Display Purchase Order Details
BAPI_PO_GETITEMS List Purchase Order Items
BAPI_PO_GETITEMSREL List Purchase Orders for Release (Approval): New as of 4.0A
BAPI_PO_GETRELINFO Display Detailed Release (Approval) Information on Purchase Order
BAPI_PO_GET_LIST List Purchase Orders - Only up to 4.0A
BAPI_PROCOPERATION_GETCATALOGS Determine Valid Catalogs as Value Help
BAPI_PROCOPERATION_GETINFO Analysis of Objects to be Generated in Purchasing
<b>AND</b>
Use condition type NAVS with access sequence 0003 to default the taxcode in the purchase order item using conditions. Materials Management -> Purchasing -> Purchasing order processing ->define screen layout at document level. Search for the transaction ME21.Double click on ME21. Then search for TaxCode
Use condition type NAVS with access sequence 0003 to default the taxcode in the purchase order item using conditions.
A2: Go to IMG.
Materials Management -> Purchasing -> Purchasing order processing ->define screen layout at document level.
Search for the transaction ME21.Double click on ME21. Then search for TaxCode. It is advisable to configure also the info record. The tax code should be a required entry, and whatever you specify here will be the default value in the Purchase order.
Materials Management -> Purchasing -> Purchasing info record -> define screen layout.
When you get here you search for the transaction ME12 ,double click here; search for Input VAT indicator.
Regards ,
Kumar. -
GR Message Check Box in Purchase Order
Hi MM Experst,
While making Purchase Order in Header data Delivery/Invoice Tab GR Message is Checked by User1.
Same Goods Receipt is done through MIGO by User2.
But once the Goods Receipt is done there is no message is triggering to the User1.
Please give your suggestion to clear this problem.
Regards,
Prabhakaran MHI.
Sathya
We are required this same scenario
Can u please know how to do GR message setup..
How u did it.
Regards
Sk -
Bapi : Is there any BAPI to CANCEL / BLOCK a Purchase Order
hello everybody,
can anyone tell me if there is any BAPI to cancel or block a Purchase order.
Note : blocking of purchase order is done on item level of the PO.
Regards
SwanandHello,
in BAPI_PO_CHANGE:
Field DELETE_IND in structures POITEM and POITEMX.
It's reference is to data-element ELOEK: Documentation to this:
<i>Text
Deletion indicator in purchasing document
Definition
Determines whether the item in the purchasing document is deleted or blocked.
Use
You can set the deletion indicator by choosing Edit -> Delete if:
You want to cancel an item
An item is closed and can be archived
You can set the blocking indicator by selecting the item and then choosing Edit -> Block if you do not want to allow subsequent functions for the item. Note that you must manually remove the indicator as soon as subsequent functions are allowed again.
Examples
You have entered a purchase order item by mistake. You cancel it by setting the deletion indicator.
A purchase order item has been delivered, invoiced, and paid for, and can now be archived. You can set the deletion indicator.</i>
Regards Wolfgang -
Payment history made against PO(Purchase Order)
Does anyone know of a BAPI or standard SAP FM that will provide me with a list of payments made against an Purchase Order .
DeepakHi,
Check with the Bus 2012 u will be getting the List of Function module rel;ated to the Purchase order.
Check out the table EKET.
Regards,
Naresh
Maybe you are looking for
-
I have just upgraded to an Iphone 5 and cant get my contacts to sync. My 4s Contacts default account was from my Mac - but I dont seem to ahve this option on my 5? How do I sync them?
-
Yesterday's Acrobat 7.1.1 won't run and destroys Acrobat
I'm running Vista Home Premium and trying to upgrade Acrobat Pro 7.0.0 to Acrobat Pro 7.1.1. The update supposedly fixes a security hole and was released yesterday, 03/18/09. Every time I try to run the update, I get "Error 1304: Error writing to fil
-
Create SQL tables from dbf files
I have hundreds of dbf files that I need to import into SQL Server. I have created a foreach loop container and have a data task within the loop that will import the data. However, it will only work if the tables are already in SQL Server. These t
-
Safari 6.0 broke my bank's online bill pay
Is this a bug in Safari 6.0 or bank?
-
MD5 PLS-00307: too many declarations of 'MD5' match this call
Hi I wonder if any one can help, I am trying to write an equlivent of mysqls MD5 function. When I compile the following I get this error message: PLS-00307: too many declarations of 'MD5' match this call function MD5(str varchar2) RETURN VARCHAR2 IS