How to create a SOAP body based on a Serializable Object?
Hello,
I have a serializable object such as this one
HeaderSection header = new HeaderSection();
RequestName requestName = new RequestName();
requestName.setActivityName("this is an activity");
NNSVMessage nnsvMessage = new NNSVMessage();
nnsvMessage.setHeaderSection(header);
nnsvMessage.setRequestSection(request);
nnsvMessage.setResponseSection(response);I create a SOAP message using SAAJ API
SOAPMessage message = messageFactory.createMessage();
SOAPPart soapPart = message.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPBody body = envelope.getBody();
...How can I stuff this object into the SOAP body?
Thanks,
Mustafa
Hi Saleem,
Herewith an example:
Dim oDoc As SAPbobsCOM.Documents
oDoc = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
oDoc.CardCode = "530010"
oDoc.DocDate = Date.Now
oDoc.DocDueDate = Date.Now
oDoc.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Service
oDoc.Lines.ItemDescription = "Line 1"
oDoc.Lines.Price = 100
oDoc.Lines.VatGroup = "O1"
oDoc.Lines.AccountCode = "0000090000"
oDoc.Lines.Add()
oDoc.Lines.ItemDescription = "Line 2"
oDoc.Lines.Price = 200
oDoc.Lines.VatGroup = "O1"
oDoc.Lines.AccountCode = "0000090201"
If oDoc.Add <> 0 Then
MessageBox.Show(oCompany.GetLastErrorDescription)
Else
MessageBox.Show("Added")
End If
Hope it helps,
Adele
Similar Messages
-
How to creat a Data provider based on different fields in SAP BW ?
Hi,
Experts,
There are 20 fields of Plant Maintainace like :
SWERK
BEBER
STORT
TPLNR
EQUNR
INGRP
QMDAT ---peroid
STTXT
QMDAT - Date of Notification
QMNUM
QMTXT
QMART
AUSVN
AUZTV
AUSBS
AUZTB
AUSZT
ERNAM
QMDAB
AUFNR
I want to creat a Report based upon these fields ?
For that I h'v checked the relevant Fields to the existing standard Datasource in Bw side &
Checked cubes created based upon these Datasource in Bw side !
i h'v found some fields are existing different cubes & some are missing .
How to creat a Data provider based on different fields in SAP BW ?
plz suggest !!!!!!!
Thanx,
Asit
Edited by: ASIT_SAP on Jul 15, 2011 6:25 AM
Edited by: ASIT_SAP on Jul 15, 2011 6:27 AM
Edited by: ASIT_SAP on Jul 15, 2011 12:37 PMHi Lee, Please see below..
DECLARE @Machine2 TABLE
DispatchDate DATE
INSERT INTO @Machine2 VALUES ('2014/02/01'), ('2014/02/02'), ('2014/02/03')
DECLARE @DateFrom DATE
SELECT @DateFrom = DATEADD(D,1,MAX(DispatchDate)) FROM @Machine2
SELECT @DateFrom AS DateFrom
Please mark as answer, if this has helped you solve the issue.
Good Luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles. -
How to create a new table based out of old data rows
Hi All,
How to create a new table based out of old data rows. Also how can we find out the DBF for different users in a database?
SaqibNot very clear what you need. I'll try to interpret...
How to create a new table based out of old data rowsIf this means how to create a table from an existing one, then you can do :
SQL> create table <new table> as select * from <old table>;
if you need a subset of rows you can add a where clause.
how can we find out the DBF for different users in a database?Here I need some more clarification. What do you mean exactly ? -
How to create the change document functionality for a dependent objects?
May I please know how to create the change document functionality for a dependent objects?
I have done it follow the same process as for business process objects. But when i try to test it in BOBT, there is no records under "FIELD_CHANGE_WITH_FILTER". It seems the change hasn't been recorded.
If the way I did to create change document for dependent object is correct, please also kindly advise the possibilities for why there is no record during testing.
thanks in advance.I also have some doubts about the business object.In this case,one abstract BO hase a subnode wihich is root extended.I added the change document for this node under the category "root_extended" and then tested the function in BOBT.I got some error message "can't find the root key".Shall i redefine the method /BOFU/IF_CDO_CREATION~IS_CDO_CREATION_ACTIVE so as to solve the problem?
Thx. -
How to create Inbound SOAP With Attachments
Hi All,
Does someone know how to create an Inbound SOAP Message (from SAP XI to a Business System) with attachments?
We get an Idoc from a SAP R/3 system and transform this Idoc to an other XML format messages, but we want this message as an attachment and not as the payload in the SOAP Envelope.
We tried the PayloadSwapBean module, but we don't have an attachment to swap with, but maybe we used the wrong paramaters.
Thanks,
FrankHi Stefan,
Does this quick response mean I challenged you?
Our scenario is that we send an IDoc (ORDERS05) from our R/3-backend-system to XI (3.0/SP15). In an integration process (A/S-bridge) we transform this IDoc to an UBL-Order XML-message, and we want to send this XML-message as an attachment to a (synchronous) SOAP-call to a vendor. Like I said, despite the SAPHelp-content, we don't get this working. Whatever we try, the UBL-Ordermessage is contained in the SOAP-body.
What makes it even more strange, is that XI itself is based on the SOAP-with-attachments-standard...
So, any help is much appreciated!
Regards, Fred -
Question: How to create a SOAP service?
I am working on a POC for evaluation of Aqualogic Service Bus 2.5. I am facing a difficulty in the following aspects.
1. I have a client on my system which reads a data service from DSP and gives a custom object in return.
2. There is a client on another system which has to use the returned custom object through a remote procedure call to my function.
3. I dont want to create a web service just for this purpose.
4. So I want that the object will be communicated to the other client in the form of a SOAP message and generate a response SOAP message which my first client will receive
I believe that Aqualogic Service Bus configuration of SOAP service will help me out in this case but i am not finding a way of doing this. I have been able to successfully communicate with web services configured in ALSB.
I went throught the document
http://e-docs.bea.com/alsb/docs20/consolehelp/businessServices.html
But it doesnt have the information of how to go about creating a soap service and configuring it in ALSB and then consuming it in a step by step manner. Please give me some techniques to achieve this.First, try using the documentation here instead.
http://e-docs.bea.com/alsb/docs25/consolehelp/index.html
I did something similar with SOAP xml.
1) I had to create a wsdl file based on the incoming xml and
2) import it into ALSB (admin console). Creating the wsdl was the most difficult part for me.
3) Then you can create a proxy service (admin console) that uses the wsdl, and it'll allow accessing the proxy service as a web service. -
How to create internal table dynamically based on a table entry
hi Experts,
I have table yprod_cat. It has product categories.
In my ABAP program I need to create internal table dynamically based on the number of entries in the table.
For example:
If the table has 3 entries for product category
1. Board
2. Micro
3. Syst
Then create three (3) internal tables.
i_board
i_micro
i_syst
How can we do this? Any sample code will be very usefull
Thanks & Regards
Gopal
Moderator Message: No sample codes can be given. Please search for them or work it!
Edited by: kishan P on Jan 19, 2011 4:22 PMOur APEX version is 4.2We are using below SQL query to display radio groups dynamically..
SELECT APEX_ITEM.RADIOGROUP (1,deptno,'20',dname) dt
FROM dept
ORDER BY 1;
Created a form using SQL type and given abouve SQL query as source.. But when we run the page, there were no radio groups displayed in the page..
Below is the output of the query..
<input type="radio" name="f01" value="10" />ACCOUNTING
<input type="radio" name="f01" value="20" checked="checked" />RESEARCH
<input type="radio" name="f01" value="30" />SALES
<input type="radio" name="f01" value="40" />OPERATIONS
>
If Tabular Form:
Edit Region > Report Attributes > Edit Column > Change the Column type to "Standard Report Column"
If normal Page Item:
Edit Page Item > Security > Escape special characters=No.
Pl read the help on that page item to understand the security risk associated with =NO.
Cheers,
Edited by: Prabodh on Dec 3, 2012 5:59 PM -
How to create one soap interface with two soap action?
Hi,
I need to create one SOAP Interface with two or more webmethods (soap action), for example:
Interface: MI_Outb_User
Webmethods: createUser, searchUser, deleteUser.
Can anybody helpe me?Hi Santos,
I assume you will use one action at a time and depending upon certain condition you want to invoke the webservice and the corresponding action. If this is yes, then please check michaels reply in this thread:
How can I handle serveral soap actions
or see stefans reply:
Re: Is SOAP Adapter Action field can contain 2 or more "SOAP Actions"
If this is not, then please ignore it.
Regards,
---Satish -
How to create a flash quiz based on circling the correct answer?
Hi all,
I am quite new to actionscripting and need to create a flash based quiz.
The user will have to circle the correct answer in the quiz.
I do know of drag and drop function but didn't know how to create circling function.
Please advise how should I get started.
Thank you in advance.
Regards,
ChewyHi all,
I am quite new to actionscripting and need to create a flash based quiz.
The user will have to circle the correct answer in the quiz.
I do know of drag and drop function but didn't know how to create circling function.
Please advise how should I get started.
Thank you in advance.
Regards,
Chewy -
How to create new calculated column based on filtered columns?
Dear All,
I'm using Oracle Analysis.
I have two column, each one have different formula.
My Formula based on filter.
Column1
FILTER("DW"."SUM_PLAN_MONTH_AMOUNT" USING ("DW"."PLAN_YEAR" BETWEEN YEAR(DATE'@{P_BEGIN_DATE}') and YEAR(DATE'@{P_END_DATE}')))Column2
FILTER("PAYMENTS"."SUM_PAY_AMOUNT" / 1000 USING ("PAYMENTS"."PAY_DATE_PAID" BETWEEN DATE'@{P_BEGIN_DATE}' AND DATE'@{P_END_DATE}'))How to add new calculated column based on those two column?
For example:
Column1 | Column2 | NewColumn
5 | 10 | 10 / 5 * 100
7 | 12 | 12 / 7 * 100
Regards,
Eba
Edited by: Erdenebayar on Apr 19, 2012 1:42 PM
Edited by: Erdenebayar on Apr 19, 2012 3:37 PMHello MK,
I have a tried following formula. It is working, but result is not filtered.
I filtered "PAYMENTS"."SUM_PAY_AMOUNT" and "DW"."SUM_PLAN_MONTH_AMOUNT" columns.
"PAYMENTS"."SUM_PAY_AMOUNT" / "DW"."SUM_PLAN_MONTH_AMOUNT" * 100Can you share me some tutorial?
BR,
Eba
Edited by: Erdenebayar on Apr 19, 2012 3:43 PM
Edited by: Erdenebayar on Apr 19, 2012 3:43 PM
Edited by: Erdenebayar on Apr 19, 2012 3:43 PM -
How to create characteristics in BW based on generic datasource fields
hi ALL,
Actually, i created generic datasource based on database view in SAP R/3
Database view is created based on table LFA1.
Replicated the the datasource in SAP BW
Now, I have to create characteristics (master data) based
on generic datasource fields
Thanks in Advance.
Best Regards
M A MubeenHi Abdul,
for that you just create one charecterstic of Info object (with the same technical charecterstics of R/3 field).. and maintain master data..
now create one data source in BW side.. and select your data source and replicate data with your generic datasource...
and load the data..
regards
@jay -
How to create an account w/o having to specify object owner_names
Hi,
Do you know how to create an account, that, when logged in wouldn't need to use the following syntax when referring to objects: select * from <owner_name>.<object_name>.
When the owner of the account creates an object, then obviously, it's not necessary to specify the owner_name (syntax: select * from <object_name>;), but, I'd like an account with ie: (username: joey) to not have to specify the owner_name for all the objects owned by another owner (ie: bob).
Is this possible?
Thanks.
ToddThis is one use for SYNONYMs. You can create a private synonym for JOEY:
create synonym joey.table_a for bob.table_a; or a public synonym:
create public synonym table_a for bob.table_a;public synonyms mean everybody can seen the table without prefixing it with the owner; but PUBLIC synonyms, like PUBLIC grants, make fine-grained security access harder to achieve.
In the first case the account creating the synonym must have rights on BOB's tables and (unless the account creating the synonym is JOEY) the CREATE ANY SYNONYM privilege. In the second case they must have rights on Bob's tables and CREATE PUBLIC SYNONYM privilege.
In both cases the account must either be BOB or have been granted access to BOB's tables: if the creating account is not JOEY they must have been granted the privileges WITH ADMIN option: it's no good having a synonym on BOB's table_a if you don't have the privilege to select from it. This is important because it is possible to create a synonym for an object you don't have rights on or indeed that doesn't exist.
I hope that's clear.
rgds, APC
null -
How to Create an Input Form using a Transient View Object?
I would like to use a Transient View Object to store data from input forms across a multiple-page enrollment process.
My question is how to I create the input form using the Transient View Object on the .jspx page? Do I drag/drop an ADF creation form onto the page? Or, use a regular ADF form? Do I need to create the initial row progammatically?
Just looking for some general directions or set of instructions? I've looked at the SRDemo example (Globals Transient View Object), but I'm not sure how they created the page at design time?
thanksWell following the SRDemo example, this seems to work:
1. Create Transient View Object
2. Add to Application Module as a Data control
3. Add to .jspx page as an ADF Form (not as an ADF Create Form)
4. Add following code to Application Module containting Transient VO instance:
protected void prepareSession(Session session) {
super.prepareSession(session);
insertTransientViewObjRows();
private void insertTransientViewObjRows() {
ViewObject transientvo = getViewObj1();
transientvo.clearCache();
transientvo.insertRow(transientvo.createRow());
} -
How to create universe for sap bw cubes in Business objects
Hi all,
can anybody tell me the steps to create universe for SAP BW CUBES from Business objects software.
Thanks.
Cheta.Hi,
In a SAP-BW and BO environment using Business Object Universe generator, it appears that BO requires direct data base connectivity to read data from BW.
In XI/XI R2 , it use an RFC connection (MDX driver, which makes BAPI, SAP API calls) to SAP BW to obtain the details of the BW Query or Info Cube for building the Universe using the XI/XIR2 Business Objects designer application. The request for the query or cube details is done VIA BAPI function calls. For the SAP BW Query we must have allow External Access to this query checked under the Query Property window.
Our Integrated Solution Kits do not access the SAP BWs data source.
Hope this helps,
Regards
CSM Reddy -
How to create dynamic Invoice report based on Tax calculations
Hi Ppl,
I have an invoice report requirement. There are multiple line items in invoice and each line item will have a tax % and discount associated with it. Discount has to be applied at line item level. Tax will be applicable on resultant amount which respect to tax share on total amount. Below is example
Part# Tax Qty UnitPrice Amount Discount Net Value
1 12.5% 40 10 400 100 300
2 12.5% 50 20 1000 200 800
3 4% 10 30 300 50 250
SubTotal 1350
VAT 12.5% on 1100(300+800) 137.50
VAT 4% on 250 10
Total Amount 1497.5
I have created a static rtf which does all calculations correctly. I have hardcoded 12.5 and 4 % tax values for calculations. But issue is that taxes are changeable in future so I want to create dynamic template which takes care for tax calculations. I thought of to create an array to store distinct tax values from XML data and then to perform calculation but don’t know how to do that.
Can some body help me out as this is very critical and urgent?
Note: Tax calculation can be done at line item level itself but there are some scenarios where additional discounts are there so tax calculation can not be done at line item level.
Below is the sample XML data
<?xml version="1.0" encoding="UTF-8" ?>
- <ListOfBipActionTest>
- <Action>
<AccountId>1</AccountId>
<PartName>17211KCC900LS</PartName>
<TAX>12.5</TAX>
<QTY>40</QTY>
<UNITPRICE>47.06</UNITPRICE>
<DIS>15.00</DIS>
<TaxType>CST</TaxType>
</Action>
- <Action>
<AccountId>2</AccountId>
<PartName>17213KCC900LS</PartName>
<TAX>12.5</TAX>
<QTY>50</QTY>
<UNITPRICE>19.53</UNITPRICE>
<DIS>8.00</DIS>
<TaxType>CST</TaxType>
</Action>
- <Action>
<AccountId>3</AccountId>
<PartName>28302KAG900S</PartName>
<TAX>12.5</TAX>
<QTY>50</QTY>
<UNITPRICE>59.49</UNITPRICE>
<DIS>15.00</DIS>
<TaxType>CST</TaxType>
</Action>
- <Action>
<AccountId>4</AccountId>
<PartName>2830AKAG900S</PartName>
<TAX>12.5</TAX>
<QTY>10</QTY>
<UNITPRICE>168.7</UNITPRICE>
<DIS>15.00</DIS>
<TaxType>CST</TaxType>
</Action>
- <Action>
<AccountId>4</AccountId>
<PartName>91001GF6000S</PartName>
<TAX>4.00</TAX>
<QTY>60</QTY>
<UNITPRICE>115.34</UNITPRICE>
<DIS>17.00</DIS>
<TaxType>CST</TaxType>
</Action>
</ListOfBipActionTest>
Thanks
AshishDear Efstratios Kara,
I installed SAP Integration Kit 3.1. Yes I installed the integration kit after installing CR.
I have uninstalled the earlier version and i have reinstalled CR with (12.3.0.601) version.
But still i cant view the SAP connectivity. can u tell me from which version they have included this connectivity option in CR.
If CR going to support SAP Table connectivity on specific version, what is that version.
Waiting for your reply.
Regards,
Suman
Maybe you are looking for
-
Hi All, I am using below code to transfer the asset from one location to another and stuck the error message as below. Can any one help me out of this. TRANSFER failed!. Error: ORA-01403: no data found Error: Error: function FA_DISTRIBUTION_PVT.units
-
Added google email and want to take it off
We have Verizon for email and phone service. I started a Google email account for my son's lacrosse team and linked it to my blackberry. Someone else is handing the correspondence now. I went on to gmail to figure out how to un-link it to my black
-
[SOLVED] What is this sorting algorithm? (or a new one?)
Hello everyone! Just before starting, i apologize for my grammar mistakes. I found a new sorting algorithm but i'm not sure if i really found it. There are too many sorting algorithms and mine is a really simple one; so, i belive that it can be found
-
How to read IDOC in flafile structure into SAP to create PO
HI, We have a requirement like, we will be provided with IDOC PO flatfile structures(Exactly same as IDOC,but in Dlafile format) . We have to read those flafiles and create POs in our SAP system. how can we do that?what are the necessary configuratio
-
I have 2 hard drives. The first drive is my main arch linux install. The second drive I use to install various operating systems. My school was selling windows7 for $30...I couldn't resist the cheap price...now I'm paying for it >< I unplugged the ha