Output in bapi
hi all.
sorry i got one small doubt is here in my scenario i have to send data from 2 diferent file snders to one bapi.
i developed the interface in xi and its working
so i need to check the table in bapi and iam having acess too to check that bapi.
but that bapi table is a structure and i dont know how to check the contents of that sructure.
if that is a table then i can go to that table in bapi and click on that bapi and utulities->display but that was a strucure.
i tried for testing that structure by se37->rfcname->tables(tab)->double click on associated type but it was displayig only fields instead of data in those fields.
waitin for u r quick answer.
bye.
regards.
seeta ram.
waiting for u r quick reply.
cheers.
u need to see which table is getting updated thru bapi. the tables u se in se37 is just a defitnion refercing to a strucutre. what is the bapi name u are using. or goto se37 give the bapi name and u can find the funtion grp from the attributes. take that goto se80 give the f/n grp and display. u can find the related table for that. thru that u can check which tables are updated
Similar Messages
-
Storing the output of BAPI for further use in Webdynpro application
Hi,
In my webdynpro application, a BAPI_A is called multiple times from a backend.
All the previous outputs of the BAPI_A need to be stored in the webdynpro application as they serve as a complete set of input parameters for BAPI_B at the end.
Can anybody shed light on this temporary storage mechanism of the outputs of the BAPI_A.
Regards
MeesumHi Meesum,
Your BAPI structure
BAPI_A
--Output (0..n)
Field1
Field2
Field3
Field4
Value node structure
vnBAPI_A (0..n)
--vnResult (0..n)
vaField1
vaField2
vaField3
vaField4
1. Declare objVnBAPI_A (between begin and end)
2. Initialize in the vnBAPI_A in the wdDoInit()
3. After each execution of the BAPI (BAPI_A), create the vnResult and populate the fields of vnResult (from the BAPI_A --> output)
4. Add the vnResult object to objVnBAPI_A
Hope this should help you.
Regards,
Santhosh.C -
How to retreive and display output list from BAPI
Hello
I am making an applcation using SUP 2.0, and this application make an user to get leave history using a Mobile System from SUP.
I've created the MBO as Attributes using the BAPI: BAPI_LEAVE_HISTORY.
This BAPI has some parameters IN and OUT.
Input parameters are Employee Id and date.
The parameter OUT is a List that retreives the employee leave history.
Anyone has an Idea or example how to retreive the output from BAPI and displaying the output on a screen.
Any tips or blogs that can help me?
Thanks all!
SatishHi David Brandow,
I have tried your solution where I just created a MBO for my 'operation' and I'm using sync parameters to execute the RFC.
The problem I'm facing is, for example, if I create a record it gets saved in the MBO table and the record successfully gets created in SAP as well after a sync. But when I create another record and sync, the previously saved record in MBO table also gets executed so I'm getting duplicate entries in SAP.
Have you or anyone faced this problem?
Any response is appreciated. Please let me know if I'm not clear, I realized its a complicated scenario.
Thanks,
Sandeep -
Soap - Xi - Bapi (different)(not able to see output)
hello
Firstly thank to Tuhin & Venkataramanan
In reference to my early question dated Posted: Dec 15, 2006 7:59 AM
/people/community.user/blog/2006/10/24/exposing-bapi-as-web-services-through-sap-xi
-- web service request to XI ,than XI call a BAPI ,and the output of BAPI is sent back to web service responce.-- I am using Altova XML Spy to send a web service request ,& getting responce.I had done all configuration in IR, ID.
As i send a request,through Altova XML spy ,and getting a responce to. but in responce
the BAPI Output Data is absent ,only element tags shows zero,
ex-- <customer salary> <b>0</b> </customer salary>
it should have some value i.e. like 2300 ,which BAPI is giving
<u><b>Every thing is working</b> </u>In <b>Itegration monitering-> adapter (RFC) status green</b>
the massage is---
BAPI name is -- <b>BAPI_AR_ACC_GETPERIODBALANCES</b>
Text
BAPI_Cchannel Receiver channel 'BAPI_Cchannel' for party '', service 'account2service' (internal name 'RfcClient[BAPI_Cchannel]')
Client data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=800, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=guest, jco.client.sysnr=00, jco.client.ashost=192.168.100.21}
Repository data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=800, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=guest, jco.client.sysnr=00, jco.client.ashost=192.168.100.21}
Current pool size: 0, max pool size : 1
RFC_HISTORY
- OK: 2006-12-20 10:06:09 IST: Message processed for interface BAPI_AR_ACC_GETPERIODBALANCES
- OK: 2006-12-19 22:37:20 IST: Message processed for interface BAPI_AR_ACC_GETPERIODBALANCES
In <b>SXMB_MONI staus flag is processed succesfully</b>
there in payload ,the out put is there but with the same empty tag ,which i am getting in
as responce in Altova xml spy, as described earlier
there is no mapping exception
<b>I am not able to locate the error</b>
Might be some different mapping required for BAPI Responce to WEBservice responce or else.
Thanks & Regards
AshutoshHi,
Try to execute that BAPI in R3 first.
If u r passing input from XI to BAPI in R3 some number input fields should be preceeded by zeros(means from ur soap request message).
eg if ur vendor no is 169 then u should preceed it with 7 zeroz as vendor no. ia a 10 digit no.
eg 0000000169.
In ur bapi if u r passing any no. then preceed it with required zeros(it is required if u r passing data from XI but not in case of R3 BAPI execution).
Then test ur response message in ur response mapping.
Thanks.
And then check -
Hi Experts,
I have a BAPI with output either 1 or 0, if output of BAPI is 1 it has to navigate to one form, if output is 0 it should navigate to another form. Can any one of you please suggest me how to perform validation on BAPI output.
Regards,
LakshmiHi Prassana,
You can use 'store' to load 1 or 0 from your BAPI by drawing a line with store from your BAPI output port. And use visibility condition on your form.
On your store element, assigned your field (field @field).
Drag two forms to your board, one on top of other, and make a visibilty condition such as: @field==1
When you BAPI sends the value==1 to 'Store' form 01 is shown otherwise form 2 is shown.
Regards,
Gilson -
Output Table from one BAPI as Input Table to another Bapi
Hi
I have two BAPIs. First BAPI returned me a table, I displayed it on the view.
Then, user will select some rows and then the same Table with user selected values should be input of the Second BAPI.
Please advise how to achieve this.
Thanks,
JaiHi,
Copy the values from the output of BAPI 1 to a value Node and bind it to the table which is shown in the View. After you make the changes in the table and the user performs an action to send the table values to another BAPI as input, try the following code:
//Create an instance of the new BAPI
BAPI<name>Input bapi2Object = new BAPI<name>();
wdContext().currentBAPI<name>Input().bind(bapi2Object);
//get the size of the table from the view
int sizeOfTable = wdContext().node<tableNode>.size();
//initialize a List to hold all the records
ArrayList listOfRecords = new ArrayList();
for(int i = 0; i < sizeOfTable; i++)
//Initialize the structure which is sent as an Input to the BAPI
<structurename> structObject = new <structurename>();
//Set all the parameters required
structObject.set<attribute>(wdContext().node<tableNode>().get<tableNode>ElementAt(i).get<attributeName>);
listOfRecords.add(structObject);
//set the list to the input structure
wdContext().currentBAPI<name>Input().set<structurename>(listOfRecords);
//execute the BAPI
Hope this helps you
Regards,
Poojith MV -
Hi Gurus,
Can anyone let me know the BAPI name to be used for REM confirmation? I have inputs as Material and Quantty from a 3rd party tool. With only these two inputs, I want system to post GR and GI. All other fields can be defaulted.
Thanks in advance.
SumeetHi Vishal,
Yes. I have been trying the same BAPI since yesterday but facing some issue. In the output I can see confirmation number but not other output. BAPI is not even returing a message.
In the intervals of two attempts I also get an error "Function module MB_CREATE_GOODS_MOVEMENT cannot be executed"
Can you let me know what to check.
Sumeet
Edited by: Sumeet Vaidya on Apr 8, 2011 11:11 AM
Edited by: Sumeet Vaidya on Apr 8, 2011 11:12 AM -
Hi Friends,
i am trying to develop a java application and i need to fetch data from backend.
I understand, we can use JCo, JAVA RESOURCE ADAPTER, ENTERPRISE CONNECTOR, J2EE CONNECTOR.
Can you please let me know which is better suited for a stand-alone java application to get data and display in JSP file?
I need to validate DoB from R3 server, and the required BAPI is created.
I Understand i need to connect using one of the connector and fetch the required output from BAPI, but not sure how.
Some examples would be really of great help....
regards,
Sushil Jainhi
check this
this is standalone application to access the R3 database
http://www.vogella.de/articles/SAPJCo/article.html
let me know u need any further info
bvr -
Reg : Output determination by BAPI_PO_CHANGE
Hi,
I am using BAPI_PO_CHANGE in my user exit and I need the output to be determined and an IDoc should be created.
If I do it through ME22n transaction everything works fine.But through BAPI output is not proposed.
Is there anything I am missing here.
Please let me know how to generate the output through BAPI.
Please let me know your suggestionsHi,
Are you commit work after call that BAPI?
Insert line code commit work.
Gy -
BAPI to display open items.
Hello gurus,
In F-03 we can specify the Company Code and Account Type. Based on this input it displays the open items.
1. I want Some method either it may be BDC or BAPI to do this proces bcoz i m going to use this output in another program.
2. The program gives some output, another BAPI or FM has to take the output to the main ledger.
I want BAPIs for these two processes ... Plz help me ...I recently used the function module CUSTOMER_OPEN_ITEMS, and found it to have more fields than the BAPI.. It is also pretty easy to read. The results it returns are the same as the above BAPI.
Hope this helps.
Sudha -
BAPI_SALESORDER_SIMULATE problem with output value
Hi guys,
in ORDER_ITEMS_IN-REQ_QTY which is of type WMENGC, i passed value of 20.000 from lips-lfimg...
the output from bapi ORDER_ITEMS_OUT-REQ_QTY (TYPE KWMENG) IS 0.020...
why is this? what causes this? why the 20.000 becomes 0.020?
Thanks a lot!Hi Friend,
I faced this kind of issue in BAPI_PO_CREATE1 and other BAPI. During debug i found that in some condition quanitty/net value is either multiplying 10 or dividing by 10.
So, i can suggest what ever quantity you are passing, just pass multiplying by 10. it will be fine.
Regards
Krishnendu -
BAPI list from transaction - code
Hi all,
it's exist a way to put as input a transaction-code and have as output a bapi's list in relation with t-code entered ???
Tks a lot,
byehi,
I don't think that there is any transaction code or a table to determine the same ..
Regards,
Santosh -
Doubts in BAPI_PO_CREATE1
Hai to all,
I have doubt in the BAPI, BAPI_PO_CREATE1.
What are the mandatory fields to pass document header and PO line items and is it necessary to pass schedule items data to this Bapi.
Please help me any to slove the problem.
Thanks in advance,
ElamaranHi Elam,
Please take a look at documentation for BAPI BAPI_PO_CREATE1. It will show you detail parameters information.
Path: SE37 -> FM BAPI_PO_CREATE1 -> Display -> Click on Function module Documentation.
Also you can check this link for sample code for: Selection Screen, Data Population, BAPI Call and Output from BAPI Call.
/people/sap.user72/blog/2005/03/22/sample-code-to-create-purchase-order-using-bapi-in-r3
Hope this will help.
Regards,
Ferry Lianto -
Creation of HU in auto mode with external number range
Dear Experts,
I'm stucking in a scenario related to HUM
There are two handling units -
1. Bag
2. Pallet
through T code HU02 , it's possible to create an HU and assign it internal generated number.
But as per our requirement , we want to assign the external number to the HU (which is barcode number of bag or pallet)
Can you pls let me know the process of assigning External number range to HU.
Also we want to create the HU automatically after GR in production (MIGO,101) , instead of manually via HU02.
Pls explin the process of creation of HU automatically also...
Thanks in advance..Check with FM BAPI_HU_PACK.For packing an item into HU.
For external number range you need configure external number range
SPRO>Logistics - General>Handling Unit Management>Basics>Technical Basics-->Define Number Ranges for Handling Units.
After GR for production you need to confighre internal number range for perticular packing material type then system will automatically pack and place in HU location.
Please find some FM info
=========================
HU_BASIC_BAPIS Basic BAPIs for HUs
BAPI_HU_CHANGE_HEADER Change Handling Unit Header Data
BAPI_HU_CREATE Create Handling Unit with Items
BAPI_HU_DELETE BAPI for Deleting Handling Units
BAPI_HU_DISPLAY_HISTORY Displays HU History
BAPI_HU_GETLIST Read Handling Units from the Database
BAPI_HU_GET_LIST_MSG Select Handling Unit Output
BAPI_HU_PACK BAPI for Packing an Item into an HU
BAPI_HU_PROCESS_MSG HU Output Processing
BAPI_HU_PROCESS_MSG_DIRECT Select and Process Handling-Unit Outputs
BAPI_HU_REPACK Repack HUs and HU Items
BAPI_HU_UNPACK BAPI for Unpacking an Item from an HU
BOR_HU_DISPLAY Display an HU in Dialog Mode
=================================== -
How to display smart form stored in SAP in Webdynpro java( TLINE table)
Hi
I have a requirement where I have to display the smart form from WD Java end.
The BAPI is producing output in TLINE(TDLINE(132),TDFORMAT(2)). I am trying to concat both(TDLINE+TDFORMAT) and put in the interactive form but I am not able to get the output from BAPI.
Is it because the TLINE format is not supported in the WD java. How can I solve the issue.
Looking forward for the reply.
Regards,
PawanHi..
Try this PDF URL.... u might get useful things...
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
Web Dynpro Java
yours GS
Maybe you are looking for
-
Error in scenario "FILE to HTTP(with SSL)" - HTTP client code 110 reason.
Hi friends, Our scenario is as follows: We are trying to send XML file from our SAP-XI to external tool "COMMunix XC" (a multi-protocol EDI platform tool). We have configured " FILE TO HTTP(with SSL)" scenario (trying to connect HTTPS/port) 1. We hav
-
Unauthorised change of email address
I just received an email saying that I have successfully changed my email address, which I didnt. Please let me know how i can solve this obvious hack and allow me to cancel my account.
-
Apple - I am unable to back up using my time machine - I keep getting blocked ' an unexpected error occurred (error code -6584) can you help me?
-
Impossible to mount two drives in firewire
I have 2 external drives (500 GB and 80 GB). I bought two boxes identical thinking that i could plug them together on the same firewire port to keep the second free. The first drive mount but the second makes the first unmount and it doesn't mount it
-
RSSPACECHECK settings to properly plan for a SAP_CUST local client copy
Hi, I want to run RSSPACECHECK to properly plan for a SAP_CUST local client copy. This is the part of an effort to create a new client. Can you tell me the proper settings/inputs in program RSSPACECHECK because I don't want to use asterisk (*) when I