Example / explanation for push request ?
Hi,
can someone provide me a working example of soure code which creates a push request (Header + body) to an existing SAP NetWeaver Gateway Service? My goal is to read a textfield input and transfer this information to an existing Service.
<Label text="PO number"/>
<Input id="purchaseOrderInput" type="Text" width="50%" placeholder="Enter a PO number ..."/>
<Label text="Reason" required="true"/>
<Input id="reasonInput" type="Text" width="80%" placeholder="Enter a Reason ..."/>
-<c:MatrixLayout id="matrix">
-<c:MatrixLayoutRow>
-<c:MatrixLayoutCell hAlign="Right">
<Button text="Close" press="onClose"/>
</c:MatrixLayoutCell>
-<c:MatrixLayoutCell hAlign="Left">
<Button text="Open" press="onOpen"/>
</c:MatrixLayoutCell>
</c:MatrixLayoutRow>
</c:MatrixLayout>
onOpen : function(oEvent) {
var purchaseOrder = this.getView().byId("purchaseOrderInput")
.getValue();
var reason = this.getView().byId("reasonInput").getValue();
if (purchaseOrder == null || purchaseOrder == '') {
var msgClose = 'Please enter a Purchase Order!';
sap.m.MessageToast.show(msgClose, {
at : "Center"
} else {
var msgClose = 'ok! open';
sap.m.MessageToast.show(msgClose, {
at : "Center"
Many thanks
Best regards
Dominik
Hi,
I am not sure if we have SAP NetWeaver 7.4. I will have a look. But nevertheless I am searching for a solution like discussed in both following links:
datajs - JavaScript Library for data-centric web applications - Documentation
Building a CRUD Application with SAPUI5 Using Odata Model
Up to now i have following source code implemented:
var poOpen = {poNumber: purchaseOrder, reason: reason};
var serviceURI = this.getUrl("/sap/opu/odata/sap/MY_SERVICE/purchaseOrder");
var request = { headers: {"X-Requested-With": "XMLHttpRequest",
"Accept": "application/atom+xml,application/atomsvc+xml,application/xml"
"Content-Type": "application/atom+xml",
"DataServiceVersion": "2.0" },
requestUri: serviceURI,
method: "PUT",
data: poOpen };
That is EntitySet on SAP NetWeaver Gateway. (called: purchaseOrder)
Is the starting szenation correct? I am not realy sure about the URI. Is it mandatory to add some data to the link (URI) like po number?
Many thanks.
Best regards.
Dominik
Similar Messages
-
No request for push notification
some of the apps don't show in settings -- Notification.
When I first downloaded and run the app, there is no any request asking for push notification.
I tried reinstall the app but still not working.That seems to be a recurring issue with no good answers that have worked for all
One thing that has helped some people
Delete the app
Do a reset of your phone Restart or reset your iPhone, iPad, or iPod touch - Apple Support
Re download the app -
How do I set-up my Dataset to pull data for Service Requests for a report
I am using SQL Server 2012 Report Builder 3.0.
I have my Data Source added - DWDataMart
I want to build my Dataset to query and find a very specific item. Basically I am creating a daily report that will show what each "team" or Support Group (AD Object) Closed that day. He also wants the ability to open it by date, so if he misses
a day he can get it later.
I am totally new to this report building and only got this far by following a guide on a blog, but he used incident Reports in his example, and I do not know what objects to query for service requests.
Thanks for any information you can provide.First, you will need to get the support group ID's in the warehouse before you can run reports for them. I found that putting these queries in their own stored procedure was a better path.
select IR.IncidentTierQueuesId, IR.IncidentTierQueuesValue
from dbo.IncidentTierQueues as IR
where IR.IncidentTierQueuesId != 0
select SR.ServiceRequestSupportGroupId, SR.ServiceRequestSupportGroupValue
from dbo.ServiceRequestSupportGroup as SR
where sr.ServiceRequestSupportGroupId != 0
Enter the the support group ID's into your work item query.
Incident information is in dbo.IncidentDim and Service Requests are found in dbo.ServiceRequestDim. Both incidents and service requests link to relationship data through dbo.WorkItemDim. You can INNER JOIN on BaseManagedEntityId to link the incident
or service request to the workitem entry and from there to the Assigned Users, Affected Users, or Affected Configuration Items. Each relationship has it's own separate fact views.
If you poke about in the tables, you will find it pretty easy to pull back all sorts of information from the data warehouse. -
Logon credentials for this request are missing
Hello,
we are having a probem with our Crystal Enterprise v. 10 environment, running on a Win2003 OS
When end-users Push a report to Crystal Enterprise, they sometimes get a message:
"Logon credentials for this request are missing"
In case end-users than manually logon, they can see the report, if they rerun the report again, it may show the report.
We tried to track the problem, using trace options and looking at the event viewer, but no results.
We do not have these problems on other environments, the only difference is, that this 'problem' environment, runs on a virtual server W2003.
We use CE version 10 with the latest SP (6).
Anyone has an idea?
PaulJawahar,
Thank you for your quick response. We are on version 4.0 and these are Crystal reports.
I was provided with some additional information. It does not seem that the issue is impacting all of our users in China. The IT manager there is reporting that on his machine he is able to access the reports fine, however other users (all using Chinese Windows 7) are having the issue and he is having the issue when using their machines. As you mention and also based on our initial testing, it does not appear that this is an issue with the OS language, however this is why that was provided to me as a possibility. -
I received a text from a friend that she didn't send. Is there an explanation for this?
So I was texting my friend, we both have iPhones and are both using iMessage to text each other. We got into a rather personal conversation (not that important). But in the middle of the conversation I received a text message (SMS) instead of an iMessage which we'd both been using, but then immediately back to iMessage, so I thought nothing of it. Then later it happened again, I got another text message in the middle of our iMessage conversation, and then back to iMessage. Although this time it was a strange question to which I inquired about and my friend was confused as to what I was talking about. I screenshotted the text message I received in the middle of OUR iMessage conversation and sent it to her. She said "I never sent that" and was adamant about it. I believe her, although I am not by any means ruling out that she lied to me. All the text messages came from the same number that I've always texted from previous phones and iMessage'd since we've had out iPhones. What makes me both scared (and suspicious of my friend in a way) is that in the text messages I got, they referenced the very personal conversation that her and I were having through iMessage. She swears by god that she neither told anybody about our conversation, nor let anybody see her phone. Is there a legitimate explanation for what has occurred? It has made me very paranoid as to the fact that either she lied to me, or perhaps to the even more frightening fact that our conversation is being watched and apparently intervened into by an unknown stranger, by which an explanation may help. However unlikely that is, I will not rule it out. Technology has come far and can do many things. Any insight/feedback as to a possible explanation or anything to ease my stress and paranoia would be greatly appreciated. Keep in mind, the messages I got that are in question are from her phone number, not her iMessage/apple ID address/email address. She swears she did not send then, which I trust, but they came from her phone number.
<Email Edited by Host>Gave me a URL on Apple.ie...
What was that URL? Don't post the whole thing; just the part between the double // and the first single / or ? character. For example, if it was
http://something.apple.ie.something/blahblah
or
http://something.apple.ie.something?blah=blahblah
then just post
something.apple.ie.something -
Edit HTML FORM for Travel Request in BADI
Hi Experts,
I'm trying to use the BADI FITP_REQUEST_HTML_FORM_BADIDEF to edit the HTML form for travel request.
I need to add and hide fields in tables, but I don't need to create new tables in the form.
The example is like the following:
CALL METHOD co_dd_document->add_table
EXPORTING
no_of_columns = 2
width = '350'
border = '0'
IMPORTING
table = lo_estc_table.
set estc columns
CALL METHOD lo_estc_table->add_column
EXPORTING
width = '150'
IMPORTING
column = lo_col1.
MOVE text-t04 TO lv_text.
CALL METHOD lo_col1->add_text
EXPORTING
text = lv_text.
We don't need to create new tables, we need to add fields in an existing table of the form.
Somebody knows how can I do that?
I hope you can help me.
Thanks in advance.
Oscar.work around!
-
Overlapping trips (for Travel Request - TP04)
Hi, Gurus
Is there any way so that I can create 2 or more travel requests using the same period for the same employee? It would be a desirable requirement here in our company.
I know that through 'FITVFELD' transaction I can choose, for a given travel schema, if I want to allow overlapping trips (checkbox "Overlapping Trips Allowed"). But it works only for the expense reports ("TRIP" transaction) related to the schema selected. For travel request (TP04) I can't do that.
An example: with "Overlapping Trips Allowed" checked for schema A, I am able to create 2 or more expense reports (schema A) from 11/09/2010 to 11/16/2010. But if I try to create a new travel request (TP04) within this period, the system throws an error.
PS: As we know, unfortunately schema "PL" (Travel Planning) doesn't have "Overlapping Trips Allowed" checkbox... It manages some travel request parameters.
Thank you
RobertoHi robtaboaco ,
you can create two or more overlapping trip.
it will just give u warning if u have overlap trip. but you can still save it.
here's the link, hope it helps to explain..
http://wiki.sdn.sap.com/wiki/display/ERPHCM/OverlappingTripRequest
Regards,
nz. -
Example VIs for winsock with LabVIEW 7.0
Are there any example VIs for TCP communications with winsock using LabVIEW 7.0?
I would like to join the request - I would like to know how to use WinSock from within LabVIEW to use a modem to dial a number and connect to another PC with a modem. An extra complicaiton is the fact that I need to be able to vary the number (to access numerous data acquisition stations).
Message Edited by alysko on 03-08-2006 03:57 PM
Message Edited by alysko on 03-08-2006 03:58 PM -
Examples needed for Idoc to file and IDOC to web services
Hi ,
Could any one of you give some examples which take me through step-by-step in building IDOC-TO-FILE and IDOC-TO-WEB SERVICES?
Regards,
XI Developer.Hi,
For IDOC scenario you need to first do the required configuration:
ALE configuration for pushing idocs from SAP to XI
/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
Testing purpose u can use the below method:
IDOC testing using WE19
/people/sameer.shadab/blog/2005/07/25/reposting-idocs-instead-of-recreating--for-testing-purpose-xi
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters --> For Idoc sender: IDOC -file
IDOC configuration:
Please follow the below process for configuration:
Pre-requisites for Inbound IDoc to R/3 from PI:
Configuration required at Xi side:
Go to IDX1: configure the port.
Go to IDX2: load the DOC metadata.
Go to SM59: Create RFC destination which points to R3 system this is require in the case where your IDOC is sent to R 3 system,
Configiration required at R3 side:
Maintain Logical System for PI (SALE transaction):
Maintain Partner Profile for XI system(WE20):
Pre-requisites for Outbound IDoc from R/3 to PI:
Configurations required in R/3:
Maintain Logical System (SALE)
Define RFC Destination (SM59) which points to PI system
Maintain Port (WE21)
Maintain partner profile. (WE20):
Maintain Distribution Model (BD64):
File To IDOC - Part1 (SLD and Design):
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC&
File To IDOC - Part2 (Configuration):
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part2+(Configuration)&
File To IDOC - Part3 (Steps required in XI and R3):
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part3(StepsrequiredinXIandR3)&
SOAP scenario:
YOu have to first create the WSDL through ID and import that WSDL in to IR external definition.
Refer the below thread and pdf:
How to use SOAP adapter:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40611dd6-e66e-2910-f383-e80fb44f9cd4
SAP AII - How to consume and expose webservices ?
Thnx
Chirag
reward points if it helps. -
Example Code for Routine at Data Target in Info Package.
Hi,
Can any one send the example code for writing the routines at Data Target of Info Package for Deleting the Request from Info Cube after Update.
Thanks in Advance,
Regards,
srinivasHi All,
I want to know some examples for guidance in writing the Abap Routine at Data Target of Info Package for Deleting the Request from Info Cube after Update.
In the Data Targets of Info Package for Info Cubes we can delete the previous request based on the Conditions, exceptions and also based on the Abap Routine. I just want to know how do we write the Routine.
This option is adjacent to the Maintain to Data Target in Data Targets of Info Package and will available for Info cube only.
Thanks in Advance,
Regards,
srinivas -
Custom dates for change request
Hi all,
we wanted to have a possibility where we can maintain several (to be defined and must be easily changeable) time estimates on change requests, for example:
u2022 Time estimated for development
u2022 Time spend for development
u2022 Estimated time left for development
I have tried to create a custom date. I got confused with the date rules and the entire procedure. I was not sure whether the procedure is correct or not.
Kindly advice on the exact procedure for creating custom dates for change request.
Regards,
Subhashini.Hi all,
could anyone guide on this issue pls.
Regards,
Subhashini. -
SCSM 2012 request offering templates for change requests
Good morning, i use service manager 2012 and want to publish a change request offering for web portal users to directly request for changes. But the template i have created is not available in the 'select template' options. The only available
ones are for service request and IncidentSo, I just ran into this problem, and I don't know if it's officially supported (probably not), but if you create a Request offering, and just pick whatever template, you can then export that management pack, and then change the template ID to be your Change
Request template.
<RequestOffering ID="Offering.GUID" InstanceName="Your Service Offering Title" Title="Your Service Offering Title" BriefDescription="Description of Service offering" Status="System.Offering.StatusEnum.Draft" TargetTemplate="Template.GUID" HideGotoRequestButton="false">
For example above "TargetTemplate="Template.GUID" You would change from the ID of whatever template you picked, to the ID of your change request template. Once you save this management pack, you can then re-import it, and then configure the rest
of the Request offering through the GUI. -
Dear All,
What is the command on OS level for transporting request of SAP.
what are the others command which can be used at OS level for SAP activities apart from BRTOOLS.
If you have any link please mail me.
Please guide.
ThanksHI,
following command are used to import request.
tp addtobuffer <request>.<sid> If a change request is not in the buffer then this command is used to add it to the buffer, before the import step starts.
tp import <change request> <sid>: To import a single request from the source system to target system.
you need to provide the profile path with -pf = <profile_path> at end of command
The following options are available for the R3trans program:
R3trans -d : This command is used to check the database connection .
R3trans -u <int>: Unconditional mode can be used as we have seen in the above example.
R3trans -v : This is used for verbose mode. It writes additional details to the log file
R3trans -i <file>: This command directly imports data from data file without a control file.
R3trans -l <file>: This provides output of a table of contents to the log file.
R3trans -n : This option provides a brief information about new features of R3trans.
regards,
kaushal -
How to send parameters for POST request in AJAX?
hi friends,
I am sunil. I am working on ajax.
My problem is how to send post parameters in AJAX.
For GET request. I am using bleow and it is workin fine.
var url = "GetCurrencyRateController?currid="+CurrId+"&lncurrid="+LnCurrID;
For POST Requert i am sending as
var url = "GetCurrencyRateController";
req.send("currid="+CurrId+",lncurrid="+LnCurrID);
but it is not workingCheck out the Apache HttpClient package and look for how to use the MultipartPostMethod.
Here is some sample code:
HttpClient client = new HttpClient();
MultipartPostMethod filePost = new MultipartPostMethod("http://localhost:8080/MyApp/Push");
filePost.addParameter("subName", sub.subName);
filePost.addParameter("serverName", sub.getServerName());
File file = new File("C:/dataFile.zip");
filePost.addParameter(file.getName(), file);
int code = client.executeMethod(filePost); -
Transaction code to find return code for transport request
Hi,
I want to see the return code for transport requests after importing to QAS from DEV. What is the transaction code to find return code and can you explain in brief.
Thx,
Vasuyou can check it out in STMS
wht you can do is ,,
Run Tcode STMS > Overview imports (F5) > you will find all import queues > then click on the import queue in which u want to see the status of transport (DEV , QAS , PRD )
> then find out the transport no > click on that > then click on logs or press ( ctrl + f4)
Return code
Meaning
0000
Transport performed without errors
0004
Warnings were issued. All objects were transported successfully. There were special actions for individual objects that may not have been intentional, for example, a warning is issued during the export if the request contains an object deletion.
Read the warnings.
0008
Individual objects could not be transported successfully. You must analyze and correct the errors. Examples of import errors: Original object was not overwritten, Repaired object was not overwritten
0012 or higher
A critical error has occurred, probably not caused by the contents of the request. You must inform your system administrator.
http://help.sap.com/saphelp_nw70/helpdata/en/57/38e26c4eb711d182bf0000e829fbfe/content.htm
Hope this information will help you ,,
Cheers
dEE
Maybe you are looking for
-
How to pick up file to Import from server instead of client PC??
I have this code that picks up a file from client machine and processes the file . The code works fine when deployed on local tomcat deployment. But on remote server deployment , behaves differently . its looking for the file on the server How can I
-
How to transfer images from iPhone 3gs to iPad2?
After purchasing the iPad Camera Connection Kit, will the iPad2 fail to recognize the aging iPhone 3gs?
-
I am FI consultant, I created new tax code , a new account key created for the condition type ZXXX for indentifying in separate GL account As far as FI-MM is concerned the new condition type ZXXX would be added to the ZTAXINN procedure. What effect
-
Non of my video links seem to work; bbcipalyer keeps on loading filmon goes black website news programs won't start, i downloaded puffin player and through that films and newssites work , youtube won't part etc etc. I have a ipad2
-
Captivate Tutorial for Photoshop
I'm looking for someone with excellent Photoshop skills and experience with Adobe Captivate to create a tutorial for a specific project on my Media Studies website. Anyone interested? Kind regards, Richard Gent