How to execute create BAPI Wrapper
Hi Samantha!<br>
<br>
I can't provide a link to a blog or something similar. But in my experience, you can try the following:<br><br>
- create an instance of the DO which is related to the create BAPI
coding:<br>
<yourModel> model = (<yourModel>)OcaRoot.getInstance().getModel(<yourModel>.class)<br>
<yourDO>ETop header = model.create<yourDO>ETop();<br>
<set the attributes for the DO header><br>
<yourDO>T010 item = header.create<yourDO>T010s();<br>
<set the attributes for the DO children>
header.addToT010s(item);<br>
OcaRoot.getInstance().commit();<br><br>
- sync the application with DOE<br><br>
- check if created instance is now in backend table<br>
<br>
I hope that this is understandable and helps you.<br>
<br>
Best regards,<br>
<br>
Christoph
Hi,
Creating is not working. Besides, I now get the following error when other BAPI wrappers are executed:
Caused by: com.sap.dbtech.jdbc.exceptions.ObjectIsClosedException: SAP DBTech JDBC: Object is closed.
at com.sap.dbtech.jdbc.ResultSetSapDB.assertNotClosed(ResultSetSapDB.java:2764)
at com.sap.dbtech.jdbc.ResultSetSapDB.next(ResultSetSapDB.java:374)
at com.sap.dbtech.jdbc.trace.ResultSet.next(ResultSet.java:919)
at com.sap.tc.mobile.cfs.pers.jdbc.core.JDBCObjectIterator.hasNext(JDBCObjectIterator.java:144)
I have looked for the reason for this error. I really do not understand why now close method is called before finishing the execution.
Any idea?
Thanks in advance,
Samantha.
Similar Messages
-
How to pass table values in Create Bapi Wrapper
Hi All,
Am using create BAPI Wrapper in that how to map the fields inside BAPI Import Structure .
Thanks&Regrads,
ArunHi,
Am using standard RFC " QIBP_INSPCHAR_SETRESULT " for creating result recording in SAP QM. And BAPI_INSPOPER_GETDETAIL for getdetail i want to create BAPI wrapper for these 2 i already created BAPI wrapper for get detail . I dont know how to create Create BAPI wrapper.
In QIBP_INSPCHAR_SETRESULT am passing inupt
INSPLOT LIKE QALS-PRUEFLOS
INSPOPER LIKE QAPO-VORNR
INSPCHAR LIKE QAMV-MERKNR
INSPSAMPLE LIKE QASV-PROBENR
CHAR_RESULT LIKE BAPI2045D2
so i want to know how i can pass 1 . CHAR_RESULT structrue values
2. INSPLOT,INSPOPER,INSPCHAR again repting inside CHAR_RESULT so how to map these
in SDOE_WB
Pls explain how to create BAPI Wrapper for this and how to map details. -
To create BAPI Wrapper for Sales Order Creation
Hi Experts,
I'm working upon MI 7.1 to create mobile application for creation of sales order.
I've to create Sales Order BAPI Wrapper (Getlist, Get Detail & Create) using Standard BAPI's (BAPI_SALESORDER_GETLIST & BAPI_SALESORDER_CREATEFROMDAT2).
Kindly guide me for how to proceed with the above. Which all other BAPI's do I require except above?
PS: I was trying to call standard BAPI's but while executing the BAPI Wrapper it asks about Customer No. & Sales Org. then only I'll get the output.
my requirement is I should get list of all the sales order's existing in the Back-end, once I execute the BAPI Wrapper.
RomiHi,
if it comes to bapis on the backend, there are not so many changes from MI7.0 to MI7.1 as in the UI for example. So you still need the backend adapters like GETLIST/GETDETAIL/CREATE as they where necessary in 7.0.
If you need an example on how these should look like - do you have a full blown backend available? Have a look if you can find the following BADIS in SE37 in the backend: MAM30_050_GETLIST. If you can find this one, have a look how it is working. That one should help you to get an idea on how the replication is working and how the complete stuff works. The create should be straight forward development then.
You furthermore can have a look into the URL mentioned aboveand as well in the complete MI7.0 dokumentation if you take it just to get a general idea on how the stuff works. But the URL mentioned above should be enough in a normal case.
Regards,
Oliver -
Hello SAP guys,
I had interview.
I was asked these questions.
1) how do u create BAPI....
2) how u handle upgrade issues...
Let me know the answers.
thanks.
Regards,
Naveen.Hi,
It is like how you created ZBAPI_ORDER_STATUS_IMPORT..
Go to SE11.
Choose data type, give the structure name and press create..
Choose structure..
And then give the components mentioned in the link..
Please remember to award points for helpful answers..
Thanks,
Naren -
How to execute create PDF menu item
hi all,
I need to bind two pdf files.
I did that by using File->Create PDF->From Multiple Files option.
I want to automate this work using javascript.
How can i do this?
How can i execute the menu item Create PDF?
Thanks in advance and urgent please....For the Acrobat SDK, no, it is not possible because there is no API to allow developers to do so via AppleScript. Now on to the world of "unsupported".
It "might" and I do stress the word *MIGHT* be possible via AppleScript System Events, but this is in all worlds is a VERY BAD way to do things. It requires that no other applications running in the foreground and if your application loses focus for another applications dialog box (i.e. Adobe Updater, Mac OS X Software Update, etc...) you are, what some might say "hosed" because then your AppleScript no longer can execute properly. Surely NOT something to be used in a production environment.
Sabian -
Hi all,
Can any one guide me how to run BAPI in LSMW.
Thanks,
VENKATHi,
Please find the links to various threads on the same.
Re: LSMW - Using a BAPI
BAPI, IDOC in LSMW
Upload the data in LSMW using BAPI
This one is the most complete document for the same
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
http://service.sap.com/lsmw.
Reward points if this Helps.
Manish -
How to execute created function in query wizard or query generator
Hi to all
i create a function in sql and i want to use this in a query wizard or query generator, I tried to include this function in my query to create a report . but i im receiving a error saying 'invalid build function',
running the query with the created function in sql server produce the expected result..
I would like to know if is possible to used this created function in the query wizard or function?
thanks
LorenHi Owen
Thank you for your reply
The function falls on scalar valued function , Here is my code
start of code -
USE [gk]
GO
/****** Object: UserDefinedFunction [dbo].[SalesForThisDate] Script Date: 01/19/2009 12:42:24 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER FUNCTION [dbo].[SalesForThisDate]
( @vItemCode nvarchar(20),
@FrmDate DateTime,
@ToDate DateTime
Returns Real
AS
BEGIN
RETURN (SELECT ISNULL(SUM(T1.[Quantity]),0)
FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
WHERE T0.[DocDate] Between @FrmDate and @ToDate
and t1.[ItemCode]=@vItemCode
GROUP BY T1.[ItemCode])
END
end of code -
then i tried to run this function on the query manager with this statement
SELECT T1.[ItemCode],
ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2008-10-1','2008-10-8'),0) Value1,
ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2008-11-1','2008-11-8'),0) Value2,
ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2008-12-1','2008-12-8'),0) Value3,
ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2009-1-1','2009-1-8'),0) Value4
FROM OITM T1
ORDER BY T1.[ItemCode]
executing this statements pop a error
"SalesForThisDate is not recognized build-in function name"
Thanks
Loren -
To create BAPI Wrappers for Sales Order Creation
Hi Experts,
I'm working upon MI 7.1 to create mobile application for creation of sales order.
I've to create Sales Order BAPI Wrapper (Getlist, Get Detail & Create) using Standard BAPI's (BAPI_SALESORDER_GETLIST & BAPI_SALESORDER_CREATEFROMDAT2).
Kindly guide me for how to proceed with the above. Which all other BAPI's do I require except above?
PS: I was trying to call standard BAPI's but while executing the BAPI Wrapper it asks about Customer No. & Sales Org. then only I'll get the output.
my requirement is I should get list of all the sales order's existing in the Back-end, once I execute the BAPI Wrapper.
RomiHi,
if it comes to bapis on the backend, there are not so many changes from MI7.0 to MI7.1 as in the UI for example. So you still need the backend adapters like GETLIST/GETDETAIL/CREATE as they where necessary in 7.0.
If you need an example on how these should look like - do you have a full blown backend available? Have a look if you can find the following BADIS in SE37 in the backend: MAM30_050_GETLIST. If you can find this one, have a look how it is working. That one should help you to get an idea on how the replication is working and how the complete stuff works. The create should be straight forward development then.
You furthermore can have a look into the URL mentioned aboveand as well in the complete MI7.0 dokumentation if you take it just to get a general idea on how the stuff works. But the URL mentioned above should be enough in a normal case.
Regards,
Oliver -
Hi,
I'm facing a new problem concerning Bapi wrapper when i try to insert new data.
Actually, i get a message from the DOE, telling me that the bapi wrapper does not return any header key.
The problem is that, the primary key in the backend table is a composite primary key. Therefore, no primary key is generated while datas are inserted.
Is there any way to dodge this problem ?
ThanksHi,
I understand that you are trying to create a new entry in backend via DOE.
Create BAPI wrapper is invoked passing these keys generated in custom service.
Is this data getting inserted correctly in the BE table?
The create BAPI wrapper's Exporting parameterlist will be containing the header keys (multiple keys in your case).
I suppose these keys given there will be available when Create BAPI is executed(even if they are generated in custom service and given to BE)
These keys in exported parameter list should be filled in proper values..
Are you seeing these filled already?
Regards,
Liji -
Regarding MAM25_001_GetList BAPI wrapper
Hi,
We are configuring MAM 2.5 on ECC 5.0
We have created work orders for a work center.
We then created a operation variant with the work center as a parameter and assigned it to the order profile in MAM 2.5 configuration
When I execute the variant independently, it shows the list of orders being retrieved.
But when I execute MAM25_001_Get_List Bapi wrapper for the same user manually in R/3, it doesnt display any data.
I could see that the BAPI wrapper is executing a report program RIAFVC20 and passing the order selection variant as a parameter.
I even tried executing this report program manually and selected the variant. The report program displays the data when run independently.
Do we need to apply any SAP Notes for MAM 2.5 component in ECC 5.0
Regards
Raja SekharHi Raja,
In assignment profile, you kept user->workcenter for order..right
In the transaction alm_me_user, you need to give the workcenter. Otherwise the system will consider that as empty work-center and since all the orders selected in operation have workcenter, none of the orders are selected and downloaded to client.
A Customer scenario.
1. Assume Daily 100 order are created in R/3 system. They should be selected by variant.
2. 10 work-centers are used for processing the orders. In assignment profile, we keep user->workcenter(Assume 10 order for each work-center)
3. So, generally we keep a work-center value in alm_me_user. So, when you execute getlist for this user, he will get 10 orders.
Regarding
2. What does the User -> Work Center + Employee + Planner Group option mean in the Order assignment criteria.
Does it mean that orders will be downloaded to the user only if he satisfies all the conditions like
1. He belongs to work center mentioned in the order
2. His employee number is mentioned in the order
3. He belongs to the planner group mentioned in the order
>> If you keep above option in assignment profile, in alm_me_user, (in order section), you need to give all the values (i.e., work-center, employee, planner group). The user given need not belong any work-center or planner etc.
Hope I am clear.
Best Regards,
Subhakanth -
How to create a wrapper BAPI?
I have to create an Interface between Delivery (Dealer) Consignment issue Delivery (Supplier)
As soon as Delivery happened (for dealer), the following data is to be retrieved from Delivery as input for further action
1.Material no
2.Quantity
3.Supplying plant (to identify order no of specific location).
4.Equipment no
Using 1st three inputs BAPI wrapper to identify the order no (Order type ZVKE) & shipping point and trigger Delivery (for the respective PGIed qty & Equipment nos), PGI & Invoice in supplier using the following BAPIs.
To create delivery:
BAPI_OUTB_DELIVERY_CREATE_SLS. (The inputs needed for the creation of delivery are order no & shipping point).
To create PGI:
BAPI_GOODSMVT_CREATE Post Goods Movements with MB_CREATE_GOODS_MOVEMENT
To create Billing:
BAPI_BILLINGDOC_CREATEHi,
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/59ef6011-0d01-0010-bfb0-b51381e00509
http://www.erpgenie.com/abap/bapi/example.htm
Hope this helps u,
Regards,
Arunsri -
How to execute BAPIs by getting the input from the user through the browser
Hi,
I have created a simple xMII transaction using BAPI. It is a simple BAPI with one input. Now i want the transaction to be executed by getting the input from the user through browser. Once the user enters the value and clicks on a button, I want the result of the BAPI to be displayed in the grid. How to link the BAPI/transaction with applet/Javascript coding.
Thanks.The first thing I would recommend would be for you to collaborate with your colleague Vinodh, since his/her recent thread is very similar to yours: Calling a BAPI from web page
In your case, the iGrid applet will run the Xacue query template and automatically display the results from your output parameter.
I would encourage you to take a look at the sticky thread at the top of the forum entitled "MII Manufacturing Templates Updated" since this MII project is full of samples for you and your colleague to learn from. -
How do I create an Event Handler for an Execute SQL Task in SSIS if its result set is empty
So the precedence on my entire package executing is based on my first SELECT of my Table and an updatable column. If that SELECT results in an empty result set, how do I create an Event Handler to handle an empty result set?
A Newbie to SSIS.
I appreciate your review and am hopeful for a reply.
PSULionRPDepends upon what you want to do in the eventhandler. this is what you can do
Store the result set from the Select to a user variable.
Pass this user variable to a Script task.
In the Script task do whatever you want to do including failing the package this can be done by failing the script task, which in turns fails the package. something like
Dts.TaskResult = Dts.Results.Failure
Abhinav http://bishtabhinav.wordpress.com/ -
How can i create slaes order using BAPI
hi all,
i didnt work on BAPIS .how can i create sales order using BAPI here i should pass Z values.
Moderator message : FAQ, search for available information. Thread locked.
Edited by: Vinod Kumar on Sep 13, 2011 12:22 PMHi!
There are a lot of answered threads regarding your question. Try searching first. Below is a sample link.
BAPI_SALESORDER_CREATEFROMDAT2
Regards,
Steph
Edited by: stephquion on Sep 13, 2011 8:25 AM -
How to create Bapis step by step
Hi.
Can u tell me how to create Bapi step by step with a sample program..Copy-paste from http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm
has been reported to SCN Moderators, along with all those who are providing links.
pk
Maybe you are looking for
-
Function module to upload excel to internal table in SAP 7.0 version system
<<Question has been asked and answered many times - please search before asking for function modules for common tasks>> currently i am using SAP Netweaver7.0 version, i need a Funtion Module to upload an Excel sheet data to an internal table. please
-
Vendor evaluation in purchase order (vendor unknown)
Hi! I created 2 new evaluation criteria for vendor evaluation. When i go to tcode ME25 "create PO vendor unknown", I assign the source of suplly and click on "vendor evaluation" my 2 new criterias do not appear in the "Ranking list of vendors". Any i
-
ITunes & Quicktime fail to start
I am getting the error message "This application has failed to start because QTCF.dll was not found. Re-installing the application may fix this problem." I have already looked in the system folder and it's not there. My system will not let me uninsta
-
Why my iTunes said my sync session cannot start?
I started the itunes to back up the phone and suddenly it said my sync session could not start? What is that mean? How to fix it?
-
NYT Article:Sending an S O S for a PC Exorcist
hey there all, i read this article in the New York Times & just had to share the comment of John C. Dvorak, of PC Magazine. the writer's new Dell quit after 72 hours.... it took one week, 3 techs & $800.00 to fix his issues. that's nuts!! but i LOL'd