Business Method API - Javascript Array not saving
Hello. I am building a business method that stores a list of URLs in an array. I followed the sample documentation for "using_arrays" at https://streamwork.com/api/methods/com.streamwork.using_arrays.zip.
The insert, update, delete calls work while my method is on screen. However, nothing seems to save. As soon as I switch to a different activity and back, my method returns to its initial state.
Here are my handlers:
var handlers = {
data_inserted: function(data) {
arrSAPLaunch.push(data);
RenderTable();
data_updated: function(data) {
for(i=0;i<arrSAPLaunch.length;i++) {
if(arrSAPLaunch<i>.id==data.id) {
arrSAPLaunch<i> = data;
break;
RenderTable();
data_deleted: function(data) {
for(i=0;i<arrSAPLaunch.length;i++) {
if(arrSAPLaunch<i>.id==data.id) {
arrSAPLaunch.splice(i,1);
break;
RenderTable();
// RUNS ONCE THE MODULE IS LOADED
started: function() {
BuildSAPLiterals();
RenderControl(Control_Area, initialData.myData);
... and here are my calls....
handlers.clientChannel.publish({type: "delete_array_item", data: {path: "arrSAPLaunch", id: arrSAPLaunch<b>.id }});
handlers.clientChannel.publish({type: "insert_array_item", data:{path: "arrSAPLaunch", value: GetLaunchItem()}});
handlers.clientChannel.publish({type: "update_array_item", data: {path: "arrSAPLaunch",id: arrSAPLaunch[vIndex].id, value: GetLaunchItem()}});
... where GetLaunchItem is a function that returns a javascript object with three properties.
Any idea why this code is not saving to the SAP Streamwork server?
Glen
I changed the calls to use the array named in the initialData object (originally specified in the bundle.xml file). It appears that this is one way to declare the persistent array to the Streamwork system (there may be others but I did not see this in documentation).
handlers.clientChannel.publish({type: "delete_array_item", data: {path: "arrSAP", id: arrSAPLaunch<b>.id }});
handlers.clientChannel.publish({type: "insert_array_item", data:{path: "arrSAP", value: GetLaunchItem()}});
handlers.clientChannel.publish({type: "update_array_item", data: {path: "arrSAP",id: arrSAPLaunch[vIndex].id, value: GetLaunchItem()}});
Glen.
Similar Messages
-
Business Method API: Response to remote request
hi i am making a call to a remote sysytem using the streamwork.io.makeRequest(URL, callback, params) api
after the call the it comes to the handler (callback) but i am uable to read the response.
Can somebody provide some sample code as how to read the response?
I am new to javaScript.
Thanks a lot.
Regards,
Saurav.
Edited by: Saurav Das on May 18, 2011 1:31 PMi am setting the params
params[streamwork.io.RequestParameters.CONTENT_TYPE] = streamwork.io.ContentType.TEXT;
params[streamwork.io.RequestParameters.METHOD] = streamwork.io.MethodType.POST;
The response:
Response Headers
HTTP/1.1 200 OK
Cache-Control: no-store, private
Expires: -1
Vary: *
X-Runtime: 172
Etag: "3ff8f761623515bf4332c069949463c8"
Set-Cookie: _12sprints_srv=m13; path=/; secure; HttpOnly
_cstar_session=2522584b6b4767c7bda5874daaf3884f; path=/; secure; HttpOnly
Content-Type: application/json;charset=utf-8
Content-Length: 30
Date: Mon, 30 May 2011 06:28:23 GMT
Connection: close
Server: SAP LJS 1.0.0
Request Headers
POST /methods_api/send_request HTTP/1.1
Host: streamwork.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: https://streamwork.com/activities/Tsf_0wMwgz28fI0zuFkF2m?seasip=sap
Content-Length: 661
Cookie: __utma=70185938.1752167080.1306733193.1306733193.1306735710.2; __utmc=70185938; __utmz=70185938.1306733193.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _12sprints_srv=m13; _cstar_session=2522584b6b4767c7bda5874daaf3884f; BIGipServerstage.streamwork.com-443-pool=200941484.20480.0000; COMETCOOKIE=comet1; __utmb=70185938.8.10.1306735710
Pragma: no-cache
Cache-Control: no-cache
Post
Parameters application/x-www-form-urlencoded
authenticity_token I16ZDSQVeWwqQz3Ywo67jfZtB8B3J45y2MCNarr+QBg=
authorization basic ZGFzc2F1Om5lb2RlaGV4NA==
http://streamwork.io.Requ... [object Object]
method POST
post_data <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header/><soap:Body><n0:ZTestService xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style"><IvName>test</IvName></n0:ZTestService></soap:Body></soap:Envelope>
url http://uxai1b1d.wdf.sap.corp:50018/sap/bc/srt/scs/sap/ztestservice?sap-client=001
Response
{"error":"Connection failed."}
I believe the problem is with the content type.
The service expects a content type of text/xm, but the request content-type is application/x-www-form-urlencoded
I tried setting the content-type as text/xml in the params but it does`nt change.
Thanks and Regards for the help,
Saurav -
Business Rule Run Time Prompts not saving last values entered
Hello all,
We've had an SR open with Oracle support for several months in regards to this issue and they have yet to give us any constructive feedback. I'm hoping that someone out there has run into this and maybe found a resolution to the issue. We're running EPM Planning/Calc Mgr 11.1.1.3.04.
Our Planning end users are trying to "use last entered value" to get the prompts to default to users last used values, in Calc Mgr for a variable which has limits idesc(dim) and is limited to the planning application scope. The variable has no default value set.
However when they run the rule with a given value in the prompt, when they relaunch the rule later the prompt is not defaulting back to the last used value. We tried to redeploy the rule, just to see if it makes any difference but that seems to have no effect.
Thanks in advance,
-BobSpoke to my EPM Analyst who is working this issue with support and has more functional knowledge of what is going on.
She checked the members/member selection and this did not change the results.
While working with Oracle support they did try to select "Use Members in Form" and this also did not change the results.
No matter what they select with the business rules, it is not retaining that value the next time that it is run. The BR's require that you select a value when running so there is no way to use nothing as the default. My apologies if my description was misleading.
Our analyst has been logging on and off using just her credentials and sees this behavior.
The Global Variables checkbox for save last value is selected.
Regards,
-Bob -
Load CF varibales into javascript array without outputing to source code
I have a javascript array for dynamic dropdowns - Automobile, makes,models, etc.
The javascript arrays are populated by by cf queries
Everythign works and functions fine - but it also loads the entire array (hundreds of lines of code) into the browser source code.
I would like to have the javascript arrays hidden from the browser source code by calling it:
<script language="JavaScript" type='text/javascript' src='../js/super.js'></script>
But when I code like this, the js file 'super.js' does not run the cf variables.
The only way I can get it to function right now is to save a cf file called 'super.cfm' and have it run the cf query, then list the javascript code under the query on this cf template.
THis works - but again, it causes the entire javascript code to be visible to the browser source code...
any ideas? - I am on cf 7
thanks in advancethanks for your idea
I ended up rethinking the whole process and realized that I only update my vehicle make/model list about once a week
So what I ended up doing was creating the the dynamic javascript arrays through cf - and rendered them in a browser, then took the browser source code (the fully rendered javascript arrays) and saved them as a static js file
My website uses this js file on every page, so I no longer need to call queries on every single page to populate the javascript arrays - they are already built and I am guessing cached by the browser (browsers cache js files right?)
SO this runs more efficiently.
The only draw back is that when I add a new vehicle to the list in my database, I will need to manually do the same process of rendering the new js code, then cutting and pasting it into my static js file that gets called by all pages.
So it loses the realtime updates - but this only happened once a week anyway - and it only takes me five minutes to create the new file.
We'll see if I get sick of manually creating a new js file each week - probably, but this seems better than making the server re-render the code on each page.
Does this make sense? - would this be less overhead on the server than implimenting your concept?
thanks. -
REST API StartUpload method - "The method or operation is not implemented"
Hi,
I've been looking at using the following to upload large files to SharePoint Online/OneDrive for Business.
http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx#bk_FileStartUpload
According to the documentation "This method is currently available only on Office 365."
When I try to use the StartUpload Method I get the following exception returned
{"error":{"code":"-1, System.NotImplementedException","message":{"lang":"en-US","value":"The
method or operation is not implemented."}}}
What I want to do is be able to upload large files to SharePoint online using a console application and the REST API.
At the moment I can upload a 512mb using the below, the problem I get with this is I don't get a response from the API. I get a timeout exception after 2 hours only when get a response on this line WebResponse response = request.GetResponse()
http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx#bk_FileCollectionAdd
Any help or pointers would be much appreciated. I've posted on a number of forums and had no success. ThanksHi,
We can do as follows:
1. If you have a large list, please look at the links below:
http://blogs.technet.com/b/speschka/archive/2009/11/13/large-list-throttling-for-external-lists-in-sharepoint-2010.aspx
http://akanoongo.blogspot.com/2011/02/how-to-resolve-2000-items-resolution-in.html
2. Also please check the steps about create an external list.
http://msdn.microsoft.com/en-us/library/office/ee558778(v=office.14).aspx
3. Create a new Table in Database and create a new external list to check whether the issue still exists.
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support -
Storage location Data is not saving in table MARD using BAPI method.
Hi Experts,
TABLES: T001L, "Storage Locations
MARA, "General Material Data
MAKT, "Material Descriptions
MBEW, "Material Valuation
MARC, "Plant Data for Material
MARD. "Storage Location Data for Mate
DATA: BAPI_HEAD LIKE BAPIMATHEAD, "MATERIAL
BAPI_MAKT LIKE BAPI_MAKT, "Material Description
BAPI_MARA1 LIKE BAPI_MARA, "Client Data
BAPI_MARAX LIKE BAPI_MARAX,
BAPI_MARC1 LIKE BAPI_MARC, "Plant View
BAPI_MARCX LIKE BAPI_MARCX,
BAPI_MBEW1 LIKE BAPI_MBEW, "Accounting View
BAPI_MBEWX LIKE BAPI_MBEWX,
BAPI_MARD1 LIKE BAPI_MARD, "Storage location
BAPI_MARDX LIKE BAPI_MARDX,
BAPI_RETURN LIKE BAPIRET2.
DATA: BEGIN OF INT_MAKT OCCURS 100.
INCLUDE STRUCTURE BAPI_MAKT.
DATA: END OF INT_MAKT.
DATA: BEGIN OF INT_MAT OCCURS 100,
WERKS(4), "Plant
LGORT(4), "Storage location
MTART(4), "Material type
MATNR(18), "Material number
MAKTX(40), "Material description
MATKL(9) , "Material group
MBRSH(1), "Industry sector
MEINS(3), "Base unit of measure
GEWEI(3), "Weight Unit
SPART(2), "Division
EKGRP(3), "Purchasing group
VPRSV(1), "Price control indicator
STPRS(12), "Standard price
PEINH(3), "Price unit
SPRAS(2), "Language key
BKLAS(4), "VALUATION CLASS
VERPR TYPE VERPR_BAPI, "MOVING PRICE
BWTTY(1), "Valuation Catogory
MLAST(1), "Price determination
MLMAA(1), "Material Ledger
EKLAS(4), "Valuation Class for sales order stock
QKLAS(4), "Valuation Class for Project Stock
ZKPRS TYPE DZKPRS, "Future price
ZKDAT TYPE DZKDAT, "Valid From Date
BWPRS TYPE BWPRS, "Tax price 1
BWPS1 TYPE BWPS1, "Tax price 2
VJBWS TYPE VJBWS, "Tax price 3
ABWKZ TYPE ABWKZ, "Devaluatin indicator
BWPRH TYPE BWPRH, "Commercial price 1
BWPH1 TYPE BWPH1, "Commercial price 2
VJBWH TYPE VJBWH, "Commercial Price 3
XLIFO(1), "LIFO/FIFO revelant
MYPOL(4), "Pool no for LIFO
MMSTA(2), "Plant specific material status
AUSME TYPE AUSME, "Unit of issue
QMATA(6), "Material Authorization group
RBNRM(9), "Catalog Profile
WEBAZ TYPE WEBAZ, "Goods reciept processing time in days
PRFRQ TYPE PRFRQ, "Recurring Insepction
SSQSS(8), "QM Control key
QZGTP(4), "Certificate Type
QSSYS(4), "Required QM system for vendor
END OF INT_MAT.
DATA: V_MATNR TYPE MARA-MATNR.
SELECT-OPTIONS:
PLANT FOR MARC-WERKS OBLIGATORY MEMORY ID PLT,
S_LGORT FOR MARD-LGORT MEMORY ID STL,
MATERIAL FOR MARA-MATNR MEMORY ID MAT,
MATLTYPE FOR MARA-MTART MEMORY ID MTY,
DIVISION FOR MARA-SPART MEMORY ID DIV.
PARAMETERS: F_FILE LIKE RLGRAP-FILENAME
DEFAULT 'C:\DATA\ZMATERIAL.XLS' MEMORY ID F_FILE,
GETDATA AS CHECKBOX, "Tick to download materials data to local harddisk
UPDDATA AS CHECKBOX. "Tick to update date to Materials Master
IF GETDATA = 'X'.
PERFORM DOWNLOAD_DATA.
PERFORM DOWNLOAD_FILE.
ENDIF.
IF UPDDATA = 'X'.
PERFORM UPLOAD_FILE.
PERFORM UPDATE_MM.
ENDIF.
FORM DOWNLOAD_DATA.
SELECT * FROM MARC WHERE LVORM EQ ' '
AND WERKS IN PLANT
AND MATNR IN MATERIAL.
CLEAR MARA.
SELECT SINGLE * FROM MARA WHERE MATNR = MARC-MATNR.
CHECK MATLTYPE.
CHECK DIVISION.
CLEAR MBEW.
SELECT SINGLE * FROM MBEW WHERE MATNR = MARC-MATNR
AND BWKEY = MARC-WERKS.
CLEAR MAKT.
SELECT SINGLE * FROM MAKT WHERE SPRAS = 'EN'
AND MATNR = MARC-MATNR.
CLEAR MARD.
SELECT SINGLE * FROM MARD WHERE WERKS IN PLANT
AND LGORT IN S_LGORT.
WRITE:/ MARC-WERKS, "Plant
MARD-LGORT, "Storage location
MARA-MTART, "Material type
MARA-MATNR, "Material number
MARA-MATKL, "Material group
MARA-MBRSH, "Industry sector
MARA-MEINS, "Base unit of measure
MARA-GEWEI, "Weight Unit
MARA-SPART, "Division
MARC-EKGRP, "Purchasing group
MBEW-VPRSV, "Price control indicator
MBEW-STPRS, "Standard price
MBEW-PEINH, "Price unit
MBEW-BKLAS, "VALUE CLASS
MAKT-SPRAS, "Language key
MBEW-BKLAS, "Valuation Class
MBEW-VERPR, "Moving price
MAKT-MAKTX, "Material description
MBEW-BWTTY, "Valutaion Catogorey
MBEW-MLAST, "Price Determination
MBEW-MLMAA, "Material Ledger
MBEW-EKLAS, "Valuation class for Sales order stock
MBEW-QKLAS, "Valutaion Class for Project Stock
MBEW-ZKPRS, "Future Price
MBEW-ZKDAT, "Valid From Date
MBEW-BWPRS, "Tax price 1
MBEW-BWPS1, "Tax price 2
MBEW-VJBWS, "Tax price 3
MBEW-ABWKZ, "Devaluatin indicator
MBEW-BWPRH, "Commercial price 1
MBEW-BWPH1, "Commercial price 2
MBEW-VJBWH, "Commercial Price 3
MBEW-XLIFO, "LIFO/FIFO revelant
MBEW-MYPOL, "Pool no for LIFO
MARC-MMSTA, "Plant specific material status
MARC-AUSME, "Unit of issue
MARC-QMATA, "Material Authorization group
MARA-RBNRM, "Catalog Profile
MARC-WEBAZ, "Goods reciept processing time in days
MARC-PRFRQ, "Recurring Insepction
MARC-SSQSS, "QM Control key
MARC-QZGTP, "Certificate Type
MARC-QSSYS. "Required QM system for vendor
INT_MAT-WERKS = MARC-WERKS. "Plant
INT_MAT-LGORT = MARD-LGORT. "Storage Location
INT_MAT-MTART = MARA-MTART. "Material type
INT_MAT-MATNR = MARA-MATNR. "Material number
INT_MAT-MAKTX = MAKT-MAKTX. "Material description
INT_MAT-MATKL = MARA-MATKL. "Material group
INT_MAT-MBRSH = MARA-MBRSH. "Industry sector
INT_MAT-MEINS = MARA-MEINS. "Base unit of measure
INT_MAT-GEWEI = MARA-GEWEI. "Weight Unit
INT_MAT-SPART = MARA-SPART. "Division
INT_MAT-EKGRP = MARC-EKGRP. "Purchasing group
INT_MAT-VPRSV = MBEW-VPRSV. "Price control indicator
INT_MAT-STPRS = MBEW-STPRS. "Standard price
INT_MAT-PEINH = MBEW-PEINH. "Price unit
INT_MAT-SPRAS = MAKT-SPRAS. "Language key
INT_MAT-BKLAS = MBEW-BKLAS. "VALVATION CLASS
INT_MAT-VERPR = MBEW-VERPR. "MOVING price
INT_MAT-BWTTY = MBEW-BWTTY. "Valutaion Catogorey
INT_MAT-MLAST = MBEW-MLAST. "Price Determination
INT_MAT-MLMAA = MBEW-MLMAA. "Material Ledger
INT_MAT-EKLAS = MBEW-EKLAS. "Valuation class forS.O Stock
INT_MAT-QKLAS = MBEW-QKLAS. "Valutaion Class for Project
INT_MAT-ZKPRS = MBEW-ZKPRS. "Future Price
INT_MAT-ZKDAT = MBEW-ZKDAT. "Valid From Date
INT_MAT-BWPRS = MBEW-BWPRS. "Tax price 1
INT_MAT-BWPS1 = MBEW-BWPS1. "Tax price 2
INT_MAT-VJBWS = MBEW-VJBWS. "Tax price 3
INT_MAT-ABWKZ = MBEW-ABWKZ. "Devaluatin indicator
INT_MAT-BWPRH = MBEW-BWPRH. "Commercial price 1
INT_MAT-BWPH1 = MBEW-BWPH1. "Commercial price 2
INT_MAT-VJBWH = MBEW-VJBWH. "Commercial Price 3
INT_MAT-XLIFO = MBEW-XLIFO. "LIFO/FIFO revelant
INT_MAT-MYPOL = MBEW-MYPOL. "Pool no for LIFO
INT_MAT-MMSTA = MARC-MMSTA. "Plant specific material
INT_MAT-AUSME = MARC-AUSME. "Unit of issue
INT_MAT-QMATA = MARC-QMATA. "Material Authorization group
INT_MAT-RBNRM = MARA-RBNRM. "Catalog Profile
INT_MAT-WEBAZ = MARC-WEBAZ. "Goods reciept processing
INT_MAT-PRFRQ = MARC-PRFRQ. "Recurring Insepction
INT_MAT-SSQSS = MARC-SSQSS. "QM Control key
INT_MAT-QZGTP = MARC-QZGTP. "Certificate Type
INT_MAT-QSSYS = MARC-QSSYS. "Required QM system for
APPEND INT_MAT.
CLEAR INT_MAT.
ENDSELECT.
ENDFORM.
FORM DOWNLOAD_FILE.
call function 'WS_DOWNLOAD'
EXPORTING
FILENAME = F_FILE
FILETYPE = 'DAT'
FILETYPE = 'WK1'
tables
data_tab = INT_MAT
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC = 0.
FORMAT COLOR COL_GROUP.
WRITE:/ 'Data Download Successfully to your local harddisk'.
SKIP.
ENDIF.
ENDFORM.
FORM UPLOAD_FILE.
call function 'WS_UPLOAD'
EXPORTING
FILENAME = F_FILE
FILETYPE = 'DAT'
FILETYPE = 'WK1'
tables
data_tab = INT_MAT
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC = 0.
FORMAT COLOR COL_GROUP.
WRITE:/ 'Data Upload Successfully from your local harddisk'.
SKIP.
ENDIF.
ENDFORM.
FORM UPDATE_MM.
LOOP AT INT_MAT.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
INPUT = INT_MAT-MATNR
IMPORTING
OUTPUT = INT_MAT-MATNR
EXCEPTIONS
LENGTH_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Header
BAPI_HEAD-MATERIAL = INT_MAT-MATNR.
BAPI_HEAD-IND_SECTOR = INT_MAT-MBRSH.
BAPI_HEAD-MATL_TYPE = INT_MAT-MTART.
BAPI_HEAD-BASIC_VIEW = 'X'.
BAPI_HEAD-PURCHASE_VIEW = 'X'.
BAPI_HEAD-ACCOUNT_VIEW = 'X'.
Material Description
REFRESH INT_MAKT.
INT_MAKT-LANGU = INT_MAT-SPRAS.
INT_MAKT-MATL_DESC = INT_MAT-MAKTX.
APPEND INT_MAKT.
Client Data - Basic
BAPI_MARA1-MATL_GROUP = INT_MAT-MATKL.
BAPI_MARA1-BASE_UOM = INT_MAT-MEINS.
BAPI_MARA1-UNIT_OF_WT = INT_MAT-GEWEI.
BAPI_MARA1-DIVISION = INT_MAT-SPART.
BAPI_MARAX-MATL_GROUP = 'X'.
BAPI_MARAX-BASE_UOM = 'X'.
BAPI_MARAX-UNIT_OF_WT = 'X'.
BAPI_MARAX-DIVISION = 'X'.
Plant - Purchasing
BAPI_MARC1-PLANT = INT_MAT-WERKS.
BAPI_MARC1-PUR_GROUP = INT_MAT-EKGRP.
BAPI_MARC1-PUR_STATUS = INT_MAT-MMSTA.
BAPI_MARC1-ISSUE_UNIT = INT_MAT-AUSME.
BAPI_MARC1-QM_AUTHGRP = INT_MAT-QMATA.
BAPI_MARC1-GR_PR_TIME = INT_MAT-WEBAZ.
BAPI_MARC1-INSP_INT = INT_MAT-PRFRQ.
BAPI_MARC1-CTRL_KEY = INT_MAT-SSQSS.
BAPI_MARC1-CERT_TYPE = INT_MAT-QZGTP.
BAPI_MARC1-QM_RGMTS = INT_MAT-QSSYS.
BAPI_MARCX-PLANT = INT_MAT-WERKS.
BAPI_MARCX-PUR_GROUP = 'X'.
BAPI_MARCX-PUR_STATUS = 'X'.
BAPI_MARCX-ISSUE_UNIT = 'X'.
BAPI_MARCX-QM_AUTHGRP = 'X'.
BAPI_MARCX-GR_PR_TIME = 'X'.
BAPI_MARCX-INSP_INT = 'X'.
BAPI_MARCX-CTRL_KEY = 'X'.
BAPI_MARCX-CERT_TYPE = 'X'.
BAPI_MARCX-QM_RGMTS = 'X'.
Accounting 1
BAPI_MBEW1-VAL_AREA = INT_MAT-WERKS.
BAPI_MBEW1-PRICE_CTRL = INT_MAT-VPRSV.
BAPI_MBEW1-STD_PRICE = INT_MAT-STPRS.
BAPI_MBEW1-PRICE_UNIT = INT_MAT-PEINH.
BAPI_MBEW1-MOVING_PR = INT_MAT-VERPR.
BAPI_MBEW1-VAL_CLASS = INT_MAT-BKLAS.
BAPI_MBEW1-VAL_CAT = INT_MAT-BWTTY.
BAPI_MBEW1-ML_SETTLE = INT_MAT-MLAST.
BAPI_MBEW1-ML_ACTIVE = INT_MAT-MLMAA.
BAPI_MBEW1-VM_SO_STK = INT_MAT-EKLAS.
BAPI_MBEW1-VM_P_STOCK = INT_MAT-QKLAS.
BAPI_MBEW1-FUTURE_PR = INT_MAT-ZKPRS.
BAPI_MBEW1-VALID_FROM = INT_MAT-ZKDAT.
*ACCOUNTING 2
BAPI_MBEW1-TAXPRICE_1 = INT_MAT-BWPRS.
BAPI_MBEW1-TAXPRICE_2 = INT_MAT-BWPS1.
BAPI_MBEW1-TAXPRICE_3 = INT_MAT-VJBWS.
BAPI_MBEW1-DEVAL_IND = INT_MAT-ABWKZ.
BAPI_MBEW1-COMMPRICE1 = INT_MAT-BWPRH.
BAPI_MBEW1-COMMPRICE2 = INT_MAT-BWPH1.
BAPI_MBEW1-COMMPRICE3 = INT_MAT-VJBWH.
BAPI_MBEW1-LIFO_FIFO = INT_MAT-XLIFO.
BAPI_MBEW1-POOLNUMBER = INT_MAT-MYPOL.
BAPI_MBEWX-VAL_AREA = INT_MAT-WERKS.
BAPI_MBEWX-PRICE_CTRL = 'X'.
BAPI_MBEWX-STD_PRICE = 'X'.
BAPI_MBEWX-PRICE_UNIT = 'X'.
BAPI_MBEWX-MOVING_PR = 'X'.
BAPI_MBEWX-VAL_CLASS = 'X'.
BAPI_MBEWX-VAL_CAT = 'x'.
BAPI_MBEWX-ML_SETTLE = 'X'.
BAPI_MBEWX-ML_ACTIVE = 'X'.
BAPI_MBEWX-VM_SO_STK = 'X'.
BAPI_MBEWX-VM_P_STOCK = 'X'.
BAPI_MBEWX-FUTURE_PR = 'X'.
BAPI_MBEWX-VALID_FROM = 'X'.
BAPI_MBEWX-TAXPRICE_1 = 'X'.
BAPI_MBEWX-TAXPRICE_2 = 'X'.
BAPI_MBEWX-TAXPRICE_3 = 'X'.
BAPI_MBEWX-DEVAL_IND = 'X'.
BAPI_MBEWX-COMMPRICE1 = 'X'.
BAPI_MBEWX-COMMPRICE2 = 'X'.
BAPI_MBEWX-COMMPRICE3 = 'X'.
BAPI_MBEWX-LIFO_FIFO = 'X'.
BAPI_MBEWX-POOLNUMBER = 'X'.
*Storage Locations
BAPI_MARD1-PLANT = INT_MAT-WERKS.
BAPI_MARD1-STGE_LOC = INT_MAT-LGORT.
BAPI_MARDX-PLANT = INT_MAT-WERKS.
BAPI_MARDX-STGE_LOC = INT_MAT-LGORT.
WRITE:/ BAPI_HEAD-MATERIAL, BAPI_MARC1-PLANT ,BAPI_MARD1-STGE_LOC.
call function 'BAPI_MATERIAL_SAVEDATA'
exporting
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_MARA1
CLIENTDATAX = BAPI_MARAX
PLANTDATA = BAPI_MARC1
PLANTDATAX = BAPI_MARCX
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
<b> STORAGELOCATIONDATA = BAPI_MARD1
STORAGELOCATIONDATAX = BAPI_MARDX</b>
VALUATIONDATA = BAPI_MBEW1
VALUATIONDATAX = BAPI_MBEWX
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA = BAPI_MVKE1
SALESDATAX = BAPI_MVKEX
STORAGETYPEDATA =
STORAGETYPEDATAX =
IMPORTING
RETURN = BAPI_RETURN
TABLES
MATERIALDESCRIPTION = INT_MAKT
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
IF BAPI_RETURN-TYPE = 'E'.
WRITE:/ 'Error Message ', BAPI_RETURN-MESSAGE.
ENDIF.
ENDLOOP.
ENDFORM.
<b>i am using this bapi method to copy materials from one plant to another plant using storage location so here what happenig is everyting is going correct but only the storage location data is not saving in table mard so any body faced this kind of problem please tell me.... and one more dbt
bapi_marcx-pur_status = 'x' what is 'X' here??? is that mandatory field or required field ???
points wil be rewarded.
reagrds,
sunil k airam.In the HEADDATA structure, STORAGE_VIEW should also be set as 'X' , in order to update storage location data
for example
BAPI_HEAD-STORAGE_VIEW = 'X'.
Also, PUR_STATUS corresponds to field MARA-MSTAE whose domain has value table T141, therefore values in the field are checked against T141
Edited by: Harris Veziris on May 12, 2008 12:37 PM -
Adobe Acrobat 9: Javascript array populated combo box - Selected answer will not save
I have a combo box on one of my forms that is populated using a Javascript array. The combo box is populating just fine, but when an item is selected from that combo box, the selected item does not save when the user saves the document. Any suggestions as to what the problem is and how it can be corrected? I am a loss as to where to even begin looking. Any help is greatly appreciated.
Thank you.
LisaYou might also want to check the Scripting forum
http://forums.adobe.com/community/acrobat/acrobat_scripting -
New Business Method in EJB not available in Webdynpro Model
Hi,
I am using EJBs for Business Logic in my webdynpro java application. I have added a new Business Method in one of the session bean. But I am not able to see the new method in webdynpro model. I am following the below procedure -
1. Select the Session bean.
2. Add New Business Method. It automatically adds the method in Remote and Local Interface.
3. Implement thie new method.
4. Build EJB project
5. Add it to EAR
6. Build EAR Project
7. Deploy EAR Project
After following above steps, when I am trying to create a model in my webdynpro project, it does not reflect the changes (context returned by new business method).
Can any one help me on this ?
Thanks in advance,
GauravThe issue is resolved. This is the case where methods in beans returns collections. For such scenario, relations have to be created manually, it does not come automatically. For details refer the blog at below link --
/people/balaramnaidu.bankuru/blog/2006/04/23/importing-complex-javabean-model-into-webdynpro-by-creating-relationships-for-the-model-classes
Thanks everyone.
Gaurav -
Why javascript is not able to call signed appet method ?
I am trying to call signed applet method from JavaScript. The html page run but when try to call applet method by clicking the button it's not performing the required action. I am really stacked there. It's also don't give any error, please anybody could give me few suggestion that why is it so. It will be great help for me.
Thanking youPlease put a System.out.println("Here I am") right at the begining of your java method that is supposed to be called from javascript.
Redo your scenario and post here the contents of the Java console. -
Why we should not declare a business method as final in EJBs - THX
Why we should not declare a business method as final in EJBs - THX
'cause it makes no sense at all and doesn't boost performance.
regards
dan
scpj2 -
Not Saving Edit business components configration
Dear All,
i am trying to modfiy the jbo.ampool.sessioncookiefactoryclass to custom class value in jdeveloepr 11g p2 when i save and reopen jdeveloper displys original class which is oracle.jbo.common.ampool.DefaultSessionCookieFactory and discards new modfication.
it looks like a bug.
Any help will be appreciated.
Thanks in Advance,
Regrds,
rakyI had simply coiped company code from in01.
after copied company code I am facing problem's like i had posted a few documents and I was trying to see that documents in fb03
and doing drill down for line item display,
system saying that data is not in system,
it is showing me in fb03 but it is not showing in fb10n.
Secondly, I am using taxinj and in ftxp
I am trying to create tax code and putting tax percentage in tax code and save,
if once again I see that tax code system is not saving tax percentage.
any other clarifications plz ask
regards. -
Q: What is the command to verify the configuration that are not saved or sent to local controllers?
A: We can execute the command that is shown in below image to check the status of the configuration that has been made.
Note: For example I made changes to the default VAP profile and executed the command "show master-configpending" which shows the pending configuration to be saved/sent to local controllers.But that jar file loads without images and icons when it is in other directory.Images should be accessed via a URL rather than using a filename because they will exist as entries in the jar archive not as files. Typically this URL would be obtained by using the Class method [getResource()|http://java.sun.com/javase/6/docs/api/java/lang/Class.html#getResource(java.lang.String)]. There are details in this [Java World article|http://www.javaworld.com/javaworld/javaqa/2002-11/02-qa-1122-resources.html].
-
How to call jpf controller method from javascript
Can any one help me how to call pageflow controller method from JavaScript.\
Thanks.Accessing a particular pageflow method from Javascript is directly not possible unless we do some real funky coding in specifying document.myForm.action = xyz...Heres what I tried and it did not work as expected: I found another workaround that I will share with you.
1. In my jsp file when I click a button a call a JavaScript that calls the method that I want in pageflow like this: My method got invoked BUT when that method forwards the jsp, it lost the portal context. I saw my returned jsp only on the browser instead of seeing it inside the portlet on the page of a portal. I just see contents of jsp on full browser screen. I checked the url. This does make the sense. I do not see the url where I will have like test1.portal?_pageLabe=xxx&portlet details etc etc. So this bottom approach will notwork.
document.getElementById("batchForm").action = "/portlets/com/hid/iod/Batches/holdBatch"; // here if you give like test1.portal/pagelable value like complete url...it may work...but not suggested/recommended....
document.getElementById("batchForm").submit;
2. I achieved my requirement using a hidden variable inside my netui:form tag in the jsp. Say for example, I have 3 buttons and all of them should call their own action methods like create, update, delete on pageflow side. But I want these to be called through javascript say for example to do some validation. (I have diff usecase though). So I created a hidden field like ACTION_NAME. I have 3 javascript functions create(), update() etc. These javascripts are called onclick() for these buttons. In thse functions first I set unique value to this hiddent field appropriately. Then submit the form. Note that all 3 buttons now go to same common action in the JPF. The code is like this.
document.getElementById("ACTION_NAME").value = "UPDATE";
document.getElementById("batchForm").submit.
Inside the pageflow common method, I retriev this hidden field value and based on its value, I call one of the above 3 methods in pageflow. This works for me. There may be better solution.
3. Another usecase that I want to share and may be help others also. Most of the time very common usecase is, when we select a item in a drop bos or netui:select, we want to invoke the pageflow action. Say we have 2 dropdown boxes with States and Cities. Anytime States select box is changed, it should go back to server and get new list of Cities for that state. (We can get both states and cities and do all string tokenizer on jsp itself. But inreality as per business needs, we do have to go to server to get dynamic values. Here is the code snippet that I use and it works for all my select boxes onChange event.
This entire lines of code should do what we want.
<netui:anchor action="selectArticleChanged" formSubmit="true" tagId="selectPropertyAction"/>
<netui:select onChange="document.getElementById(lookupIdByTagId('selectPropertyAction',this )).onclick();" dataSource="pageFlow.selectedArticleId" >
<c:forEach items="${requestScope.ALL_ARTICLE}" var="eachArticle">
<%-- workshop:varType="com.hid.iod.forms.IoDProfileArticleRelForm" --%>
<netui:selectOption value="${eachArticle.articleIdAsString}">${eachArticle.articleItemName}</netui:selectOption>
</c:forEach>
</netui:select>
See if you can build along those above lines of code. Any other simpler approches are highly welcome.
Thanks
Ravi Jegga -
Business Methods written in Flex 4
Hello all,
We have a flash plugin which was developed using Flex Builder 4.0. The plugin loads properly in the Streamwork but only in FireFox browser and not in IE7 or IE8.
Could you please tell is there an compatibility issue with IE.
Secondly the Flashvars itemUuid are not getting to the Business method. Is it because of using Flex 4.0.
Could you please clarify this.
Thanks
Kind Regards
ChandanHi Chanda
There shouldn't be a problem with IE. It seems like more of a compatibility issue between your Flex app and the browsers.
Unless there is some problem with the Flex API.
Can you give a good example of the call that's not working for you. -
Java Vector to Javascript Array
Hi all, im facing a potential problem and would be very grateful for any help on the following
I want a Vector (rather several Vectors) comprising of serializable plain old java objects. I will have a JSP or plain HTML (probably JSP) page containing, amongst other things, a javascript array or set of arrays i want to have populated with the contents of the vectors . . .
Is this possible? not after code really just a feasible way of implementing this . . .it mi9ght turn out that it cann all be done via JSP / Java.
P.S. Asan after thought, when writing this,anyone know where i can find information regarding java accessing manipulating HTML DOM please
Thanks in advance for the help people.Cool Thanks for your replies. At least i know that it cant be done i wont look for anything on HTML DOM .....
I dont believe i didnt see that method of implementation for the vector problem it seems so straight forward .. thats what I get for being a newb at both JSP and Javascript :)
Thanks again gus much appreciated
Maybe you are looking for
-
Crénage fautif en Adobe MinionPro avec glyphes localisés
Bonjour, J'utilise Adobe MinionPro inclus en Adobe Acrobat Reader v. 9.4 sur Ubuntu 10.10. D'abord je voudrais remercier Adobe d'avoir rendu gratuiciel cette merveilleuse police (d'autant plus qu'elle supporte plein de fonctions OpenType! ). Donc pas
-
What can SCOM 2007 do for me?
I realize this is an abstract question but at this point I don't know what I don't know so bear with me. Here is my situation; I have just been asked to make SCOM 2007 "work". I have SCOM 2007 installed with SQL 2008 in a Server 2008 R2 domain of app
-
I want to be prepared for my new iPad
iPad will be on sale here in 3 days and can't wait to get it but have the following questions: 1. I read here many issues on 3.2.1; will my new ipad be on 3.2 or 3.2.1? 2. If it is on 3.2 and I connect it to my MB, will it automatically install 3.2.1
-
I can't delete the Pages trial version.
Hello, I have a problem. A time ago I downloaded the iWork trial version pack (for 30 days free), I decided to buy Pages quicker then in those 30 days. So now I have the real pages version and the trial version on my computer. The problem is now, tha
-
HT4859 how do i back up documents from my laptop
I have no idea how to back up my documents on to icloud. I see I have the storage but how do I actually drag the files to it?