BAPI for Add an item in a requisition
Hi,
Do you know which BAPI can be used to add a new item in an existing requisition? We already trie to use BAPI_PR_CREATE and BAPI_PR_CHANGE but didn't work. Can you help us?
Thanks and best regards.
Sílvia
Hi there,
It woiuld be BAPI_REQUISITION_CHANGE.
Hope this helps.
Regards,
Matthew
Similar Messages
-
BAPI for clear open item in FI module
Hiu2026
Anybody knows if there is a BAPI for clear open item in FI module?
Manually we can use F-03 or F-04 for clearing open item.http://www.se80.co.uk/sapfms/b/bapi/bapi_ctraccontractaccount_clr.htm
-
Best way for add thousans items to listbox without freezing ui in wpf
Hello guys.
What is the best way for add thousands items (or even more) to Listbox without freezing UI.
I search many post in the web but I don't understand how this posts writer wrote that code.
I realized that ObservableCollection can contain 1000 items or even more and show that items to listbox just for few second without freezing UI but I don't Know how can I use that!
Can you guys give me an example.
thanks.If you bind an observablecollection you can add items to that from a background thread. Then bind that to the itemssource. I usually new up an observablecollection, add the items then set the bound property to that.
But I avoid thousands of items.
You should provide some sort of filter mechanism the user chooses a category or whatever and then fill with a maximum of 300 items.
Users simply can't work with thousands of items.
It is usually reading the data out a database which takes the time rather than creating objects to bind.
Hence this:
protected async override void GetData()
ThrobberVisible = Visibility.Visible;
ObservableCollection<CustomerVM> _customers = new ObservableCollection<CustomerVM>();
var customers = await (from c in db.Customers
orderby c.CustomerName
select c).ToListAsync();
foreach (Customer cust in customers)
_customers.Add(new CustomerVM { IsNew = false, TheEntity = cust });
Customers = _customers;
RaisePropertyChanged("Customers");
ThrobberVisible = Visibility.Collapsed;
That's making an asynchronous entity framework call.
A list of customers is obtained.
These are then wrapped in a customer viewmodel each.
Finally the observablecollection Customers is set to this new collection and propertychanged raised to notify the view.
The itemssource of a datagrid is bound to Customers.
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML -
Service entry sheet creation thru bapi for multiple line items
HI All,
WE are using BAPI_ENTRYSHEET_CREATE bapi for the creation of service entry sheet against service PO.
We are able to create the service entry sheet successfully with single sevice line item using this bapi,but when we are going for multiple service line items in item services tab in aPO, we are able to create the service entry sheet with only one service line item although there are 4 service line items in the item service tab in the po.
We know that this bapi cannot support more than one po line item as it has provision for only one line item at the header leavel in the bapi
will be rewarded for the best solution.
Regards,
veluHi,
Do you know the note 420334?. There you have very useful information.
Best Regards,
Arminda Jack -
BAPI for reset cleared items ie for transaction FBRA
Hi all,
Is ther any BAPI for trasaction FBRA ?
Ther are 2 BAPIS REVERSE_CLEARING or FM_REVERSE_CLEARING
but are not released .
Kindly do the needful.Hi ,
You should use FM CALL_FBRA AND CALL_FB08 function modules one by one.
CALL_FBRA is for clearing items
CALL_FB08 is for Reversing items
Regards,
Imran -
I'm looking for BAPI, which returns all items for sales order.
Returned items must have included all information, which we can see in transaction va02 on card Item Overview
I'll reward with points for good BAPI.
BR TomekIn the i_bapi_view structure, populate which tables you would like to have returned by using a value of X.
Use the sales documents table to pass which documents you want information on.
So if you wanted item details:
i_bapi_view-item = 'X'.
sales_documents-vbeln = '0000012345'.
append sales_documents.
call function 'BAPISDORDER_GETDETAILEDLIST'
exporting
i_bapi_view = i_bapi_view
tables
sales_documents = sales_documents
order_items_out = order_items_out. -
Bapi for clearing reversed items of invoices
Hi,
Is there a BAPI for clearing invoice against its reversed item and down payment against its invoice.
I know we can do it using BDC but was looking for a BAPI.
I greatly appreciate feedback.Hi,
Use this
BAPI_PAYIT_POST_CLEARING
<b>Reward points</b>
Regards -
Post with Clearing: BAPI for clearing open items
Hi,
I'm looking for a way to use the logic of transaction F-30 (Post with Clearing) in an external application. I want to clear open items. Is there a BAPI or something else for it? While debugging transaction F-30 I found the function module POST_DOCUMENT together with function module FI_DOCUMENT_PROCESS which are used to actually clear the selected open items. But there is lot more coding around these function modules that might be needed/important. So, is there a BAPI that puts all together? Or what's the best way to do it at all?
Regards,
RobertHi,
BAPI_CR_ACC_GETOLDESTOPENITEM BAPI/BUS1010: Determine Oldest Open Item .... BAPI_AR_ACC_GETBALANCEDITEMS Customer account clearing transactions
thanks
abdul -
Hi Experts,
I want to select all sales order items in my ABAP-Program like in Ta VL10C. Any idea ? BAPI ? Funktion ?
Thanks for support.
Regards,
DavidHello,
You can try the below BAPIs.
BAPI_SALESORDER_GETLIST
BAPI_SALESORDER_GETSTATUS
BAPI_SALESORDER_GETDETAILBOS
BAPI_SALESORDER_GETLISTBOS
Thanks and Regards,
Venkat Phani Prasad Konduri -
BAPI for Sales Order item availability check
hi all !!!!!!!!!
May I know how to force SO item to perform AV check?
What BAPI or function should I use (In custom program, not user-exit)?
I use BAPI_SALESORDER_CHANGE to insert or update schedule lines but the confirm qty is always zero!!!! When I go into the SO to click the "Item Availability" manually, the AV check is run and qty is confirmed
I am using product allocation
thanksHi,
Could you please tell me how to use ISM_ITEM_FCODE_AVAILABLE_CHECK?
I can't find any document of it
I am using BAPI_SALESORDER_CHANGE in Z-program.
I need to call ISM_ITEM_FCODE_AVAILABLE_CHECK after calling BAPI_SALESORDER_CHANGE???
Thanks in advance -
FM or BAPI for Add Material to an Equipment Bill of Materials
Hi ,
Instead of going to transactin IB02 and adding Material to an Equipment Bom .
Is any FM or bapi exist for doing the same ?
Thanks in advance
Regards
Jinesh.Hi all,
What about modifying one component that it was created before?
Is it possible with this FM too?: BAPI_MATERIAL_BOM_GROUP_CREATE
Thanks from now, -
Hi
I need a BAPI for creation of item proposal and fetch data at the time of sales order creation through bapi. Please help me out to solve.
thanks
Hemant ghiyaFI_WT_F110_SAVE_ITEM_PROPOSAL
thanks
G. Lakshmipathi -
BAPI_PR_CHANGE : Add line items
I've read some contradicting posts regarding bapi: BAPI_PR_CHANGE. I was under the impression you could add line items to a requisition using this BAPI? Can it be said for certain it can not be done? The documentation is rather lacking.
Thanks!
Enrique Leonit's very easy to do this with this BAPI.
If you have experiences with BAPI_PO_CHANGE you have done this within some minutes.
Here's some sample-coding. Maybe this will help you:
LOOP AT it_change_pr INTO wa_change_pr.
ADD 10 TO lv_pr_counter.
wa_pritem-preq_item = lv_pr_counter. "Item Number of Purchase Requisition
wa_pritem-material = wa_change_pr-orig_matnr. "Materialnumber
wa_pritem-plant = lv_plant. "Plant
wa_pritem-pur_group = lv_pur_group. "Purchasing Group
wa_pritem-store_loc = lv_store_loc. "Storage Location
wa_pritem-quantity = wa_change_pr-menge. "Purchase Requisition Quantity
wa_pritem-unit = wa_change_pr-meins. "Purchase Requisition Unit of Measure
wa_pritem-del_datcat_ext = lv_del_datcat. "Date type (day, week, month, interval)
wa_pritem-deliv_date = lv_deliv_date. "Item Delivery Date
wa_pritem-fixed_vend = wa_change_pr-lifnr. "Fixed Vendor
CLEAR: temp_matnr.
CONCATENATE '0000000000' wa_change_pr-matnr INTO temp_matnr.
SELECT SINGLE * FROM mbew
WHERE matnr = temp_matnr
AND bwkey = wa_change_pr-werks.
IF sy-subrc = 0.
wa_pritem-preq_price = mbew-stprs. "Price in purchase requisition
wa_pritem-price_unit = mbew-peinh. "Price Unit
ENDIF.
wa_pritem-purch_org = lv_purch_org. "Purchasing Organization
** wa_pritem-po_unit = wa_change_pr-meins. "Purchase Order Unit of Measure
wa_pritem-vend_mat = wa_change_pr-matnr. "Material number used by vendor
wa_pritemx-preq_item = lv_pr_counter.
wa_pritemx-preq_itemx = 'X'.
wa_pritemx-material = 'X'.
wa_pritemx-plant = 'X'.
wa_pritemx-store_loc = 'X'.
wa_pritemx-pur_group = 'X'.
wa_pritemx-quantity = 'X'.
wa_pritemx-unit = 'X'.
wa_pritemx-del_datcat_ext = 'X'.
wa_pritemx-deliv_date = 'X'.
wa_pritemx-fixed_vend = 'X'.
wa_pritemx-preq_price = 'X'.
wa_pritemx-price_unit = 'X'.
wa_pritemx-purch_org = 'X'.
wa_pritemx-vend_mat = 'X'.
APPEND wa_pritemx TO it_pritemx.
APPEND wa_pritem TO it_pritem.
ENDLOOP.
CALL FUNCTION 'BAPI_PR_CHANGE'
EXPORTING
number = lv_banfn
* PRHEADER =
* PRHEADERX =
* TESTRUN =
* IMPORTING
* PRHEADEREXP =
TABLES
return = it_change_return
pritem = it_pritem
pritemx = it_pritemx
* PRITEMEXP =
* PRITEMSOURCE =
* PRACCOUNT =
* PRACCOUNTPROITSEGMENT =
* PRACCOUNTX =
* PRADDRDELIVERY =
* PRITEMTEXT =
* PRHEADERTEXT =
* EXTENSIONIN =
* EXTENSIONOUT =
* PRVERSION =
* PRVERSIONX =
* ALLVERSIONS =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN = -
New items to purchase requisitions
Hi all,
I want to add new items to purchase requisitions, which bapi or function can I use?
I tried BAPI_PR_CHANGE and BAPI_REQUISITION_CHANGE, but these functions didn't work for new items..
Thanks..Hi,
You can use FM ME_UPDATE_REQUISITION for updating the purchase requisitions.
You have to pass XPREXT-KZ = 'U' as import paramter along PR number as import paramter.
Rest data can be passed to corresponding tables.
Hope this solves your query.
Regards,
Brajvir -
Creating a PO Using BAPI For Multiple PLants Or Multiple Line Items
Hi All
Can you please suggest me how to create a Purchase Order Using BAPI_PO_Create1 for Multiple Plants Or for Multiple Line items. The Requirement is like the PO is for single material for single vendor but for mulple stores i.e plants
NOte: Suggest me the Creation of PO for MUltiple Line items or for multiple plants Using BAPI . Hope you people will give me the needful.
Regards
Shivakumar BandariHi,
Here is the sample code to do that...
*---> po header data
wa_poheader-vendor = your vendor..
wa_poheader-doc_type = Your doc type..check with Functional contact....
wa_poheader-purch_org = Purchasing Org..
wa_poheader-pur_group = Purchasing Group
*---> po header data (change toolbar)
wa_poheaderx-vendor = 'X'.
wa_poheaderx-doc_type = 'X'.
wa_poheaderx-purch_org = 'X'.
wa_poheaderx-pur_group = 'X'.
*---> poitem data
data: item like ekpo-ebelp.
item = '0010'.
loop at t_parts.
it_poitem-po_item = '00010'.
IT_POITEM-PLANT = Plant..
IT_POITEM-STGE_LOC = Sloc...
*---> poitemx (item data change toolbar)
it_poitemx-po_item = '0010'.
it_poitemx-po_itemx = 'X'.
IT_POITEMX-PLANT = 'X'.
IT_POITEMX-STGE_LOC = 'X'.
*---> add record's to internal table
APPEND: it_poitem,
it_poitemx.
endloop.
*call bapi_po_create1
CLEAR v_ebeln.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = wa_poheader
poheaderx = wa_poheaderx
IMPORTING
exppurchaseorder = v_ebeln
TABLES
return = it_return
poitem = it_poitem
poitemx = it_poitemx.
*---> check the return table for error message
READ TABLE it_return WITH KEY type = 'E'.
IF sy-subrc NE 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
endif.
Thanks,
Murali
Maybe you are looking for
-
My old computer died. Luckily, my iTunes library is stored on an external drive. My new machine is Windows 8 and my old machine was Vista, but I don't think that should cause any problem. When I run iTunes, it comes up like a fresh install on a new m
-
Calendar no longer sends data to iphone since I got a new PC with Outlook 2010
My iphone 4 used to happily sync with my old PC (Windows XP) but I've got a new PC with Outlook 2010 and the calendar no longer sends data from the PC to the iphone. I've used the Help questions here and created a new event on my phone which has now
-
Cannot update 6th gen iPod nano.
Hi all, I am trying to update music and software but I get the following message .... "The iPod ....... cannot update because it contains files that are in use by another application". I have done a couple of resets and have tried the restore in iTun
-
Ringtone shows up under iPhone in iTune but cannot be found in phone...help
I have created some ringtones via Audiko.net and subsequently sync them into Iphone. After sync, in iTunes, I can see the ringtones are there under Devices. However, the ringtones cannot be located anywhere in the phone. What have I done wrongly? Ple
-
How to install two Application Servers with shared Portal DB?
I currently am supporting a 9ias 1.0.2.2.2 server that has an existing Portal database on another 9i RDMBS server. Everything runs well in this environment, but now management wants to add another 9ias server (different IP address and DNS Name), and