How to create a bapi to update and add record 2 abap r3 table created by me
i have created a abap r3 table and i now want to insert records into it through SAP netweaver(Web-Dynpro). So i need a bapi to udate and insert records in the abap r3 table.if someone can please tell me how to create the bapi..coz i handel the EP part and dont know much about abap.
BAPIs are defined as API methods of SAP business object types.
A BAPI is implemented as a function module, that is stored and described in the Function Builder.
To create BAPI you are supposed to do following steps :
1) create package in SE80.
2) create function group in SE80.
3) create function module in SE37(REMOTE ENABLE) & relased it .
write your logic in that FM.
4) Go in SWO1 to create Object type / object name (write the program name which is SE38 program generated in background )
5) Then go to SWO1
Utilities -> Api methods -> ADD method
write the name of FM which you have created & continue.
6) select your method
a) EDIT -> change release status -> object type -> implement
-> released
b) EDIT -> change release status -> object type component-> implement
-> released
7) go in BAPI & you will get your BAPI.
Similar Messages
-
How can i use BAPI to insert a few records into standard table
Can anyone help me with how can i use BAPI to insert some records into a standard table from an internal table?
Hi,
First of All try to Explain your Question first.
This is a general question without mentioning the Table you want to Update.
Please give the details before posting a question so it will help people to understand your Problem.
Regards
Sandipan -
How can i use BAPI to insert a few records into standard table usobt_c
I needed to compare the records of this table on two different systems and update the records that were in system A but not in system B into system B. Please give your inputs.
Hi,
First of All try to Explain your Question first.
This is a general question without mentioning the Table you want to Update.
Please give the details before posting a question so it will help people to understand your Problem.
Regards
Sandipan -
Error in bapi while changing and add items in transparant table
data : t_poitems type standard table of bapimepoitem,
t_poitemx type standard table of bapimepoitemx,
w_poitems type bapimepoitem,
w_poitemx type bapimepoitemx,
t_return type standard table of bapiret2,
w_return type bapiret2.
loop at t_modify_detail into w_modify_detail-ebeln. * populating changing data
*--&modifying fields
w_poitems-po_item = w_modify_detail-ebelp.
w_poitems-material = w_modify_detail-matnr.
append w_poitems to t_poitems.
w_poitemx-po_item = w_modify_detail-ebelp.
w_poitemx-po_itemx = 'X'.
w_poitems-material = 'X'.
append w_poitemx to t_poitemx.
endloop.
call function 'BAPI_PO_CHANGE'
exporting
purchaseorder = w_header-ebeln
POHEADER =
POHEADERX =
POADDRV
tables
return = t_return
poitem = t_poitems
poitemx = t_poitemx
POADDRDELIVERY =
call function 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT
ERROR IS:
giving error : cl_po_item_handle_mm.................cp
function in which error showing: mepo docitem_getCheck this sample code
http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm
BAPI PO CHANGE with MENGE
Hope it helps to identify your requirement and fix accordingly.
ashish -
How to update multiple records in a table created in view (web dynpro)
Here is my coding......
*coding to get the district value
DATA lo_nd_district TYPE REF TO if_wd_context_node.
DATA lo_el_district TYPE REF TO if_wd_context_element.
DATA ls_district TYPE wd_this->element_district.
DATA lv_district_txt LIKE ls_district-district_txt.
navigate from <CONTEXT> to <DISTRICT> via lead selection
lo_nd_district = wd_context->get_child_node( name = wd_this->wdctx_district ).
get element via lead selection
lo_el_district = lo_nd_district->get_element( ).
get single attribute
lo_el_district->get_attribute(
EXPORTING
name = `DISTRICT_TXT`
IMPORTING
value = lv_district_txt ).
*coding to diplay records when clicking a button(Submit)
DATA lo_nd_table TYPE REF TO if_wd_context_node.
DATA lo_el_table TYPE REF TO if_wd_context_element.
DATA ls_table TYPE wd_this->element_table.
DATA lv_district LIKE ls_table-district.
navigate from <CONTEXT> to <TABLE> via lead selection
lo_nd_table = wd_context->get_child_node( name = wd_this->wdctx_table ).
get element via lead selection
lo_el_table = lo_nd_table->get_element( ).
get single attribute
lo_el_table->set_attribute(
EXPORTING
name = `DISTRICT`
" IMPORTING
value = lv_district_txt ).
The above coding updates only one record to that
table created in view.
If i enter 2nd district value means then the first record
in the table is overwritten.
So my need is the record should not be overwritten.
it(2nd record ) should be displayed after the 1st record.
Any one can help me and send the coding plz....instead of using set attribute you should use bind table method to display/update the records in table view.
step1 ) collect all the data in a local table
step2 ) and the bind that lacal table with your node
search1 = wd_context->get_child_node( name = `TABLE1` ).
search1->bind_table( lt_detail)
here lt_detail is your local table and TABLE1 is node which is bound with table ui element. -
I am making an iMovie Trailer on my iPad 3 (updated) and I recorded a few clips using my iPad Camera but they are not being detected on the iMovie Videos scetion. How can I make them appear so I can use them in my trailer?
Hi Stuck-in-NY,
If you are looking to transfer your purchases to your computer, you may find the following article helpful:
Apple Support: Downloading past purchases from the App Store, iBookstore, and iTunes Store
http://support.apple.com/kb/HT2519
Regards,
- Brenden -
I HATE THE NEWEST ITUNES UPDATE. how can i uninstall this latest update and just use the previous version??
I have same prob as Mizz Gibbs.
itunes = 11.1.3.8
OS = Win 7 Home Preimum Service Pack 1 (with latest updates applied)
thx for any help you can offer ... -
HT4623 How to switch Philippines store to update and purchase some of my application
How to switch Philippines store to update and purchase some of my application
Change App Store
1. Tap "Settings"
2. Tap "iTunes & App Stores"
3. Tap on your Apple ID
4.Tap "View Apple ID"
5. Enter your user name and password.
6. Tap "Country/Region."
7. Tap "Change Country/Region"
8. Select the country/region where you are located; re-select country/region even if it is correct
9. Tap "Done".
Note: If the change doesn't take effect, sign out of account and sign in again. -
Unable to see video & audio tracks as shown in "Create a sequence or timeline and add audio"
hi,
I'm on the https://helpx.adobe.com/creative-cloud/learn/start/premiere.html page trying to work through the Create a sequence or timeline and add audio tutorial
And cannot see the Video & Audio, as shown in the bottom right sub-window
I'm using a trial version of Premier pro CC downloaded yesterday. On my mac mini running 10.9.2
does anyone know how to fix this problem?
thanks
david
I am able to hear the audio.
Message was edited by: spottedsilvertabbyHi,
Error 7 is when a router or the connection to the router is broken in some way.
Some devices have features such as Denial Of Service protection (DoS) that cut a particular Internet Port when it thinks too much data is coming (Presuming it is an attack.)
iChat 5 in Leopard is not capped by the System Preferences > Quicktime Streaming speed (which we used to suggest was set at 1.5Mbps)
It now sees your whole Connection speed and your Upload may be much faster than this.
Your Download is likely to be much faster. However iChat will tend to operate at the lower figure of your Upload.
DoS features are threshold based.
You may now be bumping in to this Threshold where you were not before.
SPI (Stateful packet Inspection) does a different job but has the same effect when it is overloaded by the speed of the data.
If you have either of these features, turn them Off (Disable them)
7:25 PM Friday; October 2, 2009 -
How can i extended attribute of user and add attribute to ldap
how can i extended attribute of user and add attribute to ldap
1.
i use spe to modified "Default User Library":add Field like
title:nation name:accounts[Lighthouse].nation
2.
modified "IDM Schema Configuration"
add <IDMAttributeConfiguration name='nation' description='default attribute from UserExtendedAttributes/UserUIConfig' syntax='STRING'/>
in <IDMAttributeConfigurations>
and
add <IDMObjectClassAttributeConfiguration name='nation' queryable='true' summary='true'/> in<IDMObjectClassConfiguration>
there is extended attribute when i create new user
3.
i create new resource to ldap,and i add nation in "Account Attributes" tab
but the new attribute not add to ldap
i am beginner,how to extended attirbute add add to ldap attribute?So, if I want to fill in blanks on a form where I need to add more pages to fill history, what program do I need? In Adobe Reader, I can edit and fill in blanks, but I cannot duplicate more blank pages.
-
Why won't FireFox 4 play mp3 files that have been created since the FF update? It will play mp3 files created prior to the FF update. All of the mp3 files have been created in the same manner, as bounces from Logic Pro 9. Thank you.
Hi David,
Thank you for your detailed question. It sounds like the real issue is pdf files. Are there any antivirus/firewalls that might be blocking this specific file type? or are there any preferences in your control panel that might be blocking this?
Do you have any stored preferences for PDF files in Firefox?
*[[Applications panel - Set how Firefox handles different types of files]] -
FM'S or BAPI to update the condition records in VB22 transaction
Hi,
I need your help in getting the FM'S or BAPI to update the condition records in sales deal.
The transaction is VB22.
If you can send me a smaple code it will be really helpful.
Regards,
SasiCheck this:
http://www.sapnet.ru/viewtopic.php?p=1644
Bapi for VK11 & VK12
Reddy -
Nsert/Update and Add Column at the same Table and at the "same" Time
Hello,
I want Insert/Update and Add Column at the same Table and at the "same" Time but in different sessions.
Example:
At first the "insert/update" statement:
Insert into TestTable (Testid,Value) values (1,5105);
After that the "add" statement:
Alter table TestTable add TestColumn number;
- sadly now I get the message: ORA-00054: resource busy and acquire with NOWAIT specified
"insert/update" statement:
Insert into TestTable (Testid,Value) values (2,1135);
After that the execute commit.
I don't know when the first session set the commit statement so I want that the DB the "Alter Table..." statement execute if it's possible.
If it's possible I want to save a repeat loop with the "Alter Table..." statemtent.
Thanks for ideasWell I want to walk in the rain without and umbrella and still stay dry, but it ain't gonna happen.
You can't run a DDL statement against a table with transactions pending. Session 2 has to wait until session commits or rollbacks (or until the session is killed). That's just the way it is.
This makes sense if you think about it. The data dictionary has to be consistent across all sessions. If session 2 was allowed to change the table structure whilst session 1 has a pending transaction then the database is in an inconsistent state. This is easier to see if you consider the reverse situation - the ALTER TABLE statement run by session 2 does a DROP COLUMN TESTID rather than adding a column: now what should happen to session 1's INSERT statement? You have retrospectively invalidated a statement that was perfectly legal when it was executed.
If it's possible I want to save a repeat loop with the "Alter Table..." statemtent.Fnord.
Cheers, APC -
How can I ignore an app update and delete it from list?
iPad 2 16GB 3G -- iOS 6.1.3 (not jailbreaked)
SInce few weeks i have an update in App Store/Updates for the AVPlayerHD app. I never want to apply and install this update, because it is remove a feature from the app (Removed DTS audio decoding due to patent trouble). I need the DTS audio decoding, so i ignored this update, but how can i remove it from updates list without apply?You can't delete it off the list but you can ignore it.
-
How to create a new cell attribute and add adorner to the cell
Hi
I am relatively new to InDesign and wanted to do the following
I want to add a new boolean attribute to a selected table cell. When this attribute is set, I would want to draw one line vertical and one line across the selected cell ( kind of like a "Plus" sign over the cell). I am wondering how to go about doing this.
PS: I read the snippet snpManipulateTableStyle and can see how to change a cell style using existing attribute (kcellAttrFillColorBoss). However in my case, i want to create a entirely new boolean attribute and based on it being true or false, I would want to draw the adornment on the cell
Any help with this would be greatly appreciated..
thanks!
SamI would create the new site first, then promote the new domain controllers and add them to the site. You can do this during the dc promote process.
There's step by step guides already available for creating a site so I don't see any point reinventing one.
Here's one:
http://www.petri.co.il/create-active-directory-sites-windows-server.htm
You may have to adjust the site links part since it looks like Site 3 will only be linked to Site 1.
Of course, the IP addresses for the domain controllers in Site 3 have to be in the IP subnet configured for that site.
Using the example above, you'll of course have to enter the information that makes sense for your netwrok.
I doubt anyone will create a custom step by step for you using the information you provided (they'd also have to know your subnets for one thing) but then, who knows.
Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.
Maybe you are looking for
-
Sound Blaster Play! on Ubuntu 8.04
Hi, anyone knows the compatibility of Sound Blaster Play! with Ubuntu 8.04. Is it possible to get it installed? As my laptop has only one internal sound card, I'm planning to buy this USB sound card to use with some DJ applications. Thanks! Guilherme
-
Report item value carried over to Form page
Hi all I have a dynamic LOV (form a table) on a report. To redirect to a new entry page, I want the selected LOV column (consultants name) to show as a default in the Dynamic LOV of the new page. The reason for the dynamic LOV on the new page is so t
-
Hi, I have a member procedure calc_discount in a type body of a subtype. this procedure takes in a parameter id and calculates the discount that the particular satff member has based on their years in service. I'm trying to create a pl/sql block that
-
Invalid Plug In causes Adobe to Close
I have used Adobe 7.* and prior for years. I down loaded the latest version of Adobe, I think 8.1.2, and am unable to open PDF files with it. I get the following message: "An invalid plug in was detected. Adobe Reader will close.. I hit OK. Then I ge
-
how do i create a contact list in adobe send from my email contact list and how do avoid typing individual email adresses