BAPI_MATERIAL_MAINTAINDATA_RT cannot set value to zero
I am trying to use this bapi to set a custom Marc field to zero but I cannot. I can set it to anything but zero. Any help would be GREATLY appreciated.
Here's a sample of my code:
headdata-function = '004'.
headdata-material = gv_matnr.
headdata-no_appl_log = 'X'.
plantdata-function = '004'.
plantdata-material = gv_matnr.
plantdata-plant = gv_werks.
plantdata-round_val = marc-bstrf.
APPEND tbapie1marcrt.
plantdatax-function = '004'.
plantdatax-material = gv_matnr.
plantdatax-plant = gv_werks.
plantdatax-round_val = 'X'.
APPEND plantdatax.
plantdataextrt-function = '004'.
plantdataextrt-material = gv_matnr.
plantdataextrt-plant = gv_werks.
plantdataextrt-field1 = 'ZZFIELD'.
plantdataextrt-field2 = '0'.
APPEND plantdataextrt.
plantdataextrtx-function = '004'.
plantdataextrtx-material = gv_matnr.
plantdataextrtx-plant = gv_werks.
plantdataextrtx-field1 = 'ZZFIELD'.
plantdataextrtx-field2 = 'X'.
APPEND plantdataextrtx.
CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT'
EXPORTING
headdata = headdata
IMPORTING
return = return1
TABLES
plantdata = plantdata
plantdatax = plantdatax
plantext = plantdataextrt
plantextx = plantdataextrtx.
I found the solution. Main EAN goes in MARM but when I had tried it and it failed it was actually because I forgot to set this field in X structure.
Thanks.
Similar Messages
-
Java.sql.SQLException: Invalid precision value. Cannot be less than zero
Hi,
In my portlet application have several jsf tables which bind to several oracle tables. I have tested the portlet in pluto and tried to deploy it on liferay. However, I get an exception stating:
java.sql.SQLException: Invalid precision value. Cann
ot be less than zero
What could this exception mean? Has anyone else encountered this?
Marc
P.S. The trace is shown below:
Feb 6, 2007 12:34:56 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.RuntimeException: java.sql.SQLException: Invalid precision value. Cann
ot be less than zero
at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(Cach
edRowSetDataProvider.java:343)
at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorIndex(Ca
chedRowSetDataProvider.java:300)
at com.sun.data.provider.impl.CachedRowSetDataProvider.getRowCount(Cache
dRowSetDataProvider.java:624)
at com.sun.rave.web.ui.component.TableRowGroup.getRowKeys(TableRowGroup.
java:806)
at com.sun.rave.web.ui.component.TableRowGroup.getFilteredRowKeys(TableR
owGroup.java:429)
at com.sun.rave.web.ui.component.TableRowGroup.getRowCount(TableRowGroup
.java:749)
at com.sun.rave.web.ui.component.Table.getRowCount(Table.java:307)
at com.sun.rave.web.ui.renderer.TableRenderer.renderTitle(TableRenderer.
java:400)
at com.sun.rave.web.ui.renderer.TableRenderer.encodeBegin(TableRenderer.
java:123)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.jav
a:683)I've dug deeper into this problem and am able reproduce the error in the Pluto server. To reproduce this error, I modified my Oracle jdbc driver from the JSC embedded driver (smoracle.jar) to the Oracle native driver (ojdbc14.jar). Now, I am getting the exception in my Sun Application Server:
What is the difference between ojdbc14.jar and smoracle.jar that could cause this problem? What can I do so that I can fix this problem for ojdbc14.jar?
Thanks,
Marc
P.S.
The problem is with the clob column (DOR_NOTE_TX). The stack trace is:
[#|2007-02-06T09:00:53.663-0800|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=16;|
Reader executing query ps=0 SELECT DOR_NOTE_DT, DOR_NOTE_TX FROM DOR.DOR_NOTE_DATA WHERE DOR_NOTE_CD='SECURITY' AND TO_CHAR(DOR_Note_Dt, 'mm/dd/yyyy') = '02/05/2007'
No Params|#]
[#|2007-02-06T09:00:53.679-0800|WARNING|sun-appserver-pe8.2|javax.enterprise.system.stream.err|_ThreadID=16;|
java.sql.SQLException: Invalid precision value. Cannot be less than zero
Message was edited by:
marcnikko -
Dynamic Action Set Value - PLSQL Error - cannot contain an expression
I am trying to use below in a Dynamic Action to Set Value with PL/SQL Function. The dynamic action does not update the item appropriately. I tried to run the below directly in SQL Workshop but received the error "PLS-00372: In a procedure, RETURN statement cannot contain an expression". How can I get below to return the value needed?
DECLARE
rqstdaloe number;
rqstdeloe number;
devpercent number;
rqsttarget date;
timeleft number;
PSPTime number;
DevTime number;
DevPer number;
BEGIN
SELECT SUM("TRACK_TIME_SPENT") INTO rqstdaloe
FROM "TIME_TRACKER"
LEFT JOIN "TBL_R66_TASK_TYPE" ON "TASK_TYPE_ID" = "TRACK_TYPE"
WHERE "TRACK_REQUEST_ID" = :P2_REQUEST_ID AND "TASK_TYPE_TYPE" = 'DEV';
rqstdeloe := :P2_REQUEST_ELOE;
SELECT SUM(TT1."TRACK_TIME_SPENT") INTO DevTime
FROM "TIME_TRACKER" TT1
LEFT JOIN "TBL_R66_TASK_TYPE" TT2 ON TT1."TRACK_TYPE" = TT2."TASK_TYPE_ID"
WHERE TT1."TRACK_USER" = :P2_PSP_ASSIGNED_PRIMARY AND TT2."TASK_TYPE_TYPE" = 'DEV';
SELECT SUM(TT1."TRACK_TIME_SPENT") INTO PSPTime
FROM "TIME_TRACKER" TT1
WHERE TT1."TRACK_USER" = :P2_PSP_ASSIGNED_PRIMARY;
DevPer := ROUND(DevTime/PSPTime,2)*8;
timeleft := TRUNC(((NVL(rqstdeloe,0) - NVL(rqstdaloe,0))/DevPer)+.99999,0);
rqsttarget := to_date(sysdate,'mm/dd/yyyy') + timeleft;
RETURN rqsttarget;
END;Hi Dave,
just a quick hint. If you just want to have the time part of a date/sysdate, you can use TRUNC to do that. So your existing code
rqsttarget := to_date(sysdate,'mm/dd/yyyy') + timeleft;could be changed to
rqsttarget := trunc(sysdate) + timeleft;If you perform a TO_DATE on a date variable, the PL/SQL engine will first convert that date variable with an implicit type conversion to a VARCHAR2, because the TO_DATE interface only supports VARCHAR2's and NUMBER's.
But implicit type conversions are always dangerous, because if your default date format mask isn't mm/dd/yyyy your TO_DATE will fail.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
Setting Negative Forecast Values to Zero
In 7.0 we used a option - Setting Negative Forecast Values to Zero.
But after upgrade to 7.3 this option is missing and I can find any information about this.
Can we open the option in 7.3?
AnatolyHi,
thanks for your reply.
mls qos
interface GigabitEthernet3/34
description *** DATA VLAN 35 - VOICE VLAN 34 ***
switchport
switchport trunk native vlan 36
switchport trunk allowed vlan 34,36
switchport mode trunk
mls qos trust dscp
no cdp enable
spanning-tree portfast trunk
If i don't include the global 'mls qos' command then the voice packets keep the dscp 46 value. If I add the mls qos command this causes the switch to set the dscp values to zero.
Thanks again
ps. there are some other mls commands on the switch... i don't know if these could interfere but they were already on there so i'm reluctant to remove them.. -
Setting duplicat values to zero
I have a record set like this
Prod id Raw Materiel Unit Qty on Hand Value
ABC A KG 10 100
DEF B LITER 15 150
GHI A KG 10 100
35 250
i want to restrict the duplication by setting qty on hand and value to zero
when a raw materiel repeats
e.g like this
Prod id Raw Materiel Unit Qty on Hand Value
ABC A KG 10 100
DEF B LITER 15 150
GHI A KG 0 0
25 150
Any idea how i can do it in report but not in the query???????
Looking for your Kind Response# dtpower
will start the power management GUI so you can turn off power management if you have it enabled. -
Mls qos trust dscp??? is setting my DSCP values to zero!?
Hi,
I was just doing some testing to ensure that the command 'mls qos trust dscp' is working on my 6509 switches before rolling out QoS.
Before adding any configuration I could see using wireshark that traffic from my Avaya 9608 handset was coming through with a DSCP value of 46 (as it is supposed to).
I then added the command 'mls qos' (at global level)
on examining the wireshark output this time, the DSCP value had been set to zero (i.e. it defaulted it to best effort)
I then expected by adding the commmand 'mls qos trust dscp' on the interface the phone is connected to that the DSCP value would would again be left alone?
does anybody know why this is happening?
Many thanks in advance.
AndyHi,
thanks for your reply.
mls qos
interface GigabitEthernet3/34
description *** DATA VLAN 35 - VOICE VLAN 34 ***
switchport
switchport trunk native vlan 36
switchport trunk allowed vlan 34,36
switchport mode trunk
mls qos trust dscp
no cdp enable
spanning-tree portfast trunk
If i don't include the global 'mls qos' command then the voice packets keep the dscp 46 value. If I add the mls qos command this causes the switch to set the dscp values to zero.
Thanks again
ps. there are some other mls commands on the switch... i don't know if these could interfere but they were already on there so i'm reluctant to remove them.. -
Cannot set page margins to zero
I am exporting a Crystal report using HTML 4.0 format. When the report is viewed via a browser the white space in the margins is being displayed. I have tried to zero out the margins to eliminate this issue but Crystal Reports will not let me set the margin values to zero. I am currently running 11.0.0.1282 Is this a know issue and is it fixed in any product updates?
The margins are an issue because they are the causing unnecessary white space my web pages. I am exporting this report as a single page (deselected Separate HTML Pages). So I have 2-3 lines of white space every place where there would be a page break. This has to be a bug because no one would want this white space on a web page.
In addition here is the help text that I copied directly out of Crystal regarding these margins:
Note: When you are exporting to a single file (that is, you have cleared the Separate HTML Pages check box) all blank space in headers and footers, as well as top and bottom page margins, is included. If you don't want to see blank spaces in your HTML file, suppress empty header and footer sections and set the top and bottom page margins to zero in the Page Setup dialog box.
Am I missing something here???? -
Cannot set Skillbuilder SuperLOV value
Hello,
i have a superlov item, P1_CODE which i am trying to set it's value from javascript.
$s('P1_CODE', 'AA.001');
The Enterable field is set to Enterable - Not restricted to LOV but i cannot set the field as it remains null. I can select from the popup list or enter directly a value.
If i use the same code on a e.g. TextBox it works fine.
I'm using Apex 4.2.3 and SuperLOV 2.0.2
Teo
Thank you.It does work. Don't forget that the superlov is built as a fieldset which contains a hidden item ( = return value) and the text item ( = display value). Calling either $s or apex.item.setValue with one value will set the return value of the item.
JavaScript APIs: apex.item.setValue
JavaScript APIs: $s
$s(pNd, pValue, pDisplayValue, pSuppressChangeEvent)
You can see it working as expected by inspecting the html. When you want to set the display value as well as the return value, then simply provide a third parameter.
eg
$s("P18_SLOV", "JAMES", "7900")
Now, also be aware that the superlov has some interesting methods available, as seen in the documentation:
The getValuesByReturn and setValuesByReturn methods can be used to programmatically fetch return values and set the item using the return values. getValuesByReturn will return a JSON object with the results from the fetch. setValuesByReturn goes a step further using the return values to set the display and return values for the item. Example(s):
$('#P1_ITEM_NAME').apex_super_lov('getValuesByReturn', '101');
$('#P1_ITEM_NAME').apex_super_lov('setValuesByReturn', '999'); -
Cannot convert value "......." to type
I'm running the following script on Exchange 2010. The script reads 3 text files and then removes everyone from the Distribution Group / Universal Distribution Group "Messages Delivery Restrictions - Accept Messages Only From" before adding
a new list of users
$People = gc C:\ps_scripts\Staff_Aliases.txt
$UDGroups = gc C:\ps_scripts\Universal_Distribution_Groups.txt
$DDGroups = gc C:\ps_scripts\Dynamic_Distribution_Groups.txt
ForEach ($UDGroup in $UDGroups) {
Set-DistributionGroup $UDGroup -AcceptMessagesOnlyFrom $null
Set-DistributionGroup $UDGroup -AcceptMessagesOnlyFrom((Get-DistributionGroup $UDGroup).AcceptMessagesOnlyFrom + $People)
ForEach ($DDGroup in $DDGroups) {
Set-DynamicDistributionGroup $DDGroup -AcceptMessagesOnlyFrom $null
Set-DynamicDistributionGroup $DDGroup -AcceptMessagesOnlyFrom((Get-DistributionGroup $DDGroup).AcceptMessagesOnlyFrom + $People)
and I'm getting the following error:
Cannot convert value "a.abcd h.qwerty staff-abc staff.bcd" to type "Microsoft.Exchange.Data.MultiValuedProperty`1[Microsoft.Exchange.Configuration.Tasks.DeliveryRecipientIdParameter
]". Error: "Cannot convert value "" to type "Microsoft.Exchange.Configuration.Tasks.DeliveryRecipientIdParameter". Error: "Parameter values of type Microsoft.Exchange.Configuration.Tasks.DeliveryRecipientIdParameter can't
be empty. Specify a value, and try again.
Parameter name: identity""
+ CategoryInfo : InvalidData: (:) [Set-DynamicDistributionGroup], ParameterBindin...mationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-DynamicDistributionGroup
I'm getting the content from three text files, the first contains the User Alias and the 2nd/3rd contain the Universal and Dynamic Distribution Groups.
This is an exact copy and paste from the EMC screen and I know that the script should work but I can't see what I'm doing wrong
Help or ideas please
DarrynSet-DynamicDistributionGroup $DDGroup -AcceptMessagesOnlyFrom((Get-DistributionGroup $DDGroup).AcceptMessagesOnlyFrom + $People)
Look closely at this line. Read the documentation to see how it is used.
What you h ave typed makes no sense and I cannot understand what you want to do with this.
Start here for a tutorial on how to use these CmdLets:
http://blogs.msdn.com/b/ukeducloud/archive/2011/10/05/dynamic-distribution-groups-part-1.aspx
http://blogs.technet.com/b/educloud/archive/2011/10/06/dynamic-distribution-groups-part-2.aspx
¯\_(ツ)_/¯ -
In FrameMaker 9.0.3 and 9.0.4, I cannot set tab stops for a style in the paragraph designer. Here are the steps to dysfunction:
1. In Paragraph Designer, for Tab Stops, click Edit. Edit Tab Stop dialog box opens, and the Paragraph Designer dialog box closes.
2. Type value in New Position box.
3. Click Continue. The Edit Tab Stop box closes.
4. Open Paragraph Designer. No tabs are recorded.
Discussion of a similar problem occured on this forum in June 2010. At that time, the resolution seemed to be to upgrade to 9.0.3. Has anyone else encountered this problem with these versions?
Thanks.Hi, Arnis,
Brilliant! Thanks so much. I only looked at the later discussions of that thread, which seemed to indicate the problem would be solved by an upgrade to 9.0.3.
-Trish -
How to set values in JMS Adapter using Adanced specific Message Attributes
Hi Frnds,
in my scenarios i have to add extra header information MQ Message,
using Adanced specific Message Attributes i defined 7 parameters(Transaction,Environment,shema......) all are type Interger.But i have to set values ( Transaction type,Enviroment,shema....).
Where i can set values ??
help me on this...
Regards,
Raja SekharHi Vijay,
Thanks for your replay,as per your input i creted dynamic configuration method,
i taget structure luks like this
<Data>
<Mesage>
<gl_update>
<header>
<ean1>
<ean2>
</header>
<gl_update>
<Message>
i written UDF and mapped to header element gl_update,
but i am getting below error message in MONI
SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_ ffjms_</SAP:P1>
<SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2>
<SAP:P3>on: Cannot create target element /ns0:MT_jms_ _a</SAP:P3>
<SAP:P4>sync_out/Data/Message/ GLUpdate. Values missi~</SAP:P4>
<SAP:AdditionalText />
<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_ ffjms_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns0:MT_jms_ asyncout/Data/Message/ GLUpdate. Values missi~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
i want to know i mapped to UDF to GL_Update is is correct, to which element i have to map.
i think there is no prob with UDF,its executing ,giving warning messages
help me on this,
Regaards
Raj -
Web Services from ABAP function modules return values- leading zeros
I am using several web services from SAP CRM (5.0) that were created from Function modules ( I am assuming that that they are in ABAP).
I can call the web services fine and they work as expected, but I am seeing a lot of leading zeros in the return values of fields in tables from the Web service.
The ABAP ers are telling me that they cannot see the leading zeros.
So my question is where these are appended to the values in the whole process. When I execute the Function Module in SAP CRM from transaction SE37 I can see the leading zeros. So I think that this is something that has to be handled by the ABAP ers and not in the client consuming the web service.
Are the functions in SAP CRM that can remove leading zeros for fields in a table (that is an export parameter?)
JawaharHello Jawahar
If you run your (RFC-enabled) function modules using the SAP-GUI (i.e. in dialog) then the GUI automatically replaces leading zero when the function module returns any data. However, calling the same function module remotely you will always see these leading zeros.
These so-called conversion exits are defined as attribute of domains in the ABAP dictionary. If the function module used for the WebService is a standard fm then you have little chances to get rid of the leading zero. Perhaps the WebService has some attribute to suppress conversion exits or activate them when retrieving the data.
Regards,
Uwe -
[Solved?] VLC won't play audio -- cannot set buffer duration
I can't play sound in VLC. I have tried the default and the ALSA outputs. I know ALSA works, because mpg123, speaker-test, and rdesktop's sound all work. (Saying that, I can't tell if mpg123 uses alsa or not - rdesktop does though)
Attempting to play something in VLC gives me some rather cryptic errors. What follows is the output of "vlc -v" and an attempt to play a video with sound. I have split the "code"-tag just before the actual error output for clarity and ease of scanning.
VLC media player 2.0.7 Twoflower (revision 2.0.6-54-g7dd7e4d)
[0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/audio_output/libportaudio_plugin.so' (libportaudio.so.2: cannot open shared object file: No such file or directory)
[0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/audio_output/libjack_plugin.so' (libjack.so.0: cannot open shared object file: No such file or directory)
[0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/services_discovery/libmtp_plugin.so' (libmtp.so.9: cannot open shared object file: No such file or directory)
[0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/notify/libxosd_plugin.so' (libxosd.so.2: cannot open shared object file: No such file or directory)
[0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libgoom_plugin.so' (libgoom2.so.0: cannot open shared object file: No such file or directory)
[0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libprojectm_plugin.so' (libprojectM.so.2: cannot open shared object file: No such file or directory)
[0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/codec/libtwolame_plugin.so' (libtwolame.so.0: cannot open shared object file: No such file or directory)
[0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libvcdx_plugin.so' (libvcdinfo.so.0: cannot open shared object file: No such file or directory)
[0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libaccess_jack_plugin.so' (libjack.so.0: cannot open shared object file: No such file or directory)
[0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libaccess_dv_plugin.so' (libavc1394.so.0: cannot open shared object file: No such file or directory)
[0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libaccess_mtp_plugin.so' (libmtp.so.9: cannot open shared object file: No such file or directory)
[0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/video_output/libaa_plugin.so' (libaa.so.1: cannot open shared object file: No such file or directory)
[0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/video_output/libcaca_plugin.so' (libcaca.so.0: cannot open shared object file: No such file or directory)
[0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/control/liblirc_plugin.so' (liblirc_client.so.0: cannot open shared object file: No such file or directory)
[0x8eb108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x7f1e6cc01bf8] mkv demux warning: MKV/Ebml Parser: m_el[mi_level] == NULL
[0x7f1e6cc01bf8] mkv demux warning: MKV/Ebml Parser: Up cannot escape itself
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7f1e68c068a8] alsa audio output error: cannot set buffer duration: Invalid argument
[0x7f1e68c068a8] pulse audio output error: PulseAudio server connection failure: Connection refused
[0x7f1e68c068a8] oss audio output error: cannot open audio device (/dev/dsp)
[0x7f1e68c068a8] main audio output error: no suitable audio output module
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7f1e6cc02b68] main decoder error: failed to create audio output
I have reproduced this with the same result using 'sudo vlc-wrapper' and I am added to the 'audio' group.
I have no idea where to start with this issue, I've tried googling but it seems that only one person has ever had this issue before (if Google is to be considered a reputable source), and he was running his own VLC build. I am running the build "pacman -S vlc" gave me. If anyone could point me in the right direction on this issue I'd be grateful.
Edit: This is my /etc/asound.conf. I have no idea what any of this means, at this point it's fill-in-the-blanks wiki copypasta (Edit2: The purpose of this file is to try to stop alsa from sending all my sound through a disconnected HDMI instead of the speakers)
# Use PulseAudio by default
#pcm.!default {
# type pulse
# fallback "sysdefault"
# hint {
# show on
# description "Default ALSA Output (currently PulseAudio Sound Server)"
#ctl.!default {
# type pulse
# fallback "sysdefault"
pcm.!default {
type plug
slave.pcm {
@func getenv
vars [ ALSAPCM ]
default "hw:Generic_1"
# vim:set ft=alsaconf:
Last edited by Score_Under (2013-08-02 23:23:27)Situation update:
1. I didn't need my asound.conf like that -- I should have used pulseaudio in the first place, I was unaware that ALSA does not allow more than one program to use the sound device at the same time, whereas pulseaudio is used to mix sounds.
2. VLC works fine on PulseAudio. No idea why it failed on ALSA!
Last edited by Score_Under (2013-08-02 23:22:45) -
ALC-DSC-000-000 on a "Set Value" activity
I have in my form some hidden fields I want to set in the process, before user assignement. For this, I use the Set Value activity.
But when I tried to set a field of my form with a value, I got this error:
Internal error.: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
at com.adobe.idp.dsc.util.CoercionUtil.toDOMDocument(CoercionUtil.java:683)
at com.adobe.idp.dsc.util.CoercionUtil.toDOMDocument(CoercionUtil.java:688)
at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:974)
at com.adobe.workflow.datatype.CoercionUtil.toType(CoercionUtil.java:168)
at com.adobe.workflow.datatype.runtime.impl.pojo.POJODataTypeNode.getBoundValue(POJODataTypeNode.java:71)
at com.adobe.workflow.datatype.runtime.impl.xml.XMLDataTypeNode.replaceContent(XMLDataTypeNode.java:267)
at com.adobe.workflow.dom.InstanceElement.replaceContent(InstanceElement.java:241)
at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue(PATExecutionContextImpl.java:806)
at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataWithExpression(PATExecutionContextImpl.java:374)
at com.adobe.idp.workflow.dsc.service.SetValueService.execute(SetValueService.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.java:118)
at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.invoke(WorkflowDSCInvoker.java:153)
at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor.java:140)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(TransactionInterceptor.java:74)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTransactionCMTAdapterBean.java:342)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(EjbTransactionCMTAdapterBean.java:212)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EJSLocalStatelessEjbTransactionCMTAdapter_caf58c4f.doSupports(Unknown Source)
at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvider.java:104)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInterceptor.java:72)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStrategyInterceptor.java:55)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateInterceptor.java:37)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterceptor.java:132)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:91)
at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:215)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:57)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
at com.adobe.workflow.engine.PEUtil.invokeAction(PEUtil.java:724)
at com.adobe.workflow.engine.SynchronousBranch.handleInvokeAction(SynchronousBranch.java:465)
at com.adobe.workflow.engine.SynchronousBranch.execute(SynchronousBranch.java:862)
at com.adobe.workflow.engine.ProcessEngineBMTBean.continueBranchAtAction(ProcessEngineBMTBean.java:2773)
at com.adobe.workflow.engine.ProcessEngineBMTBean.asyncInvokeProcessCommand(ProcessEngineBMTBean.java:704)
at com.adobe.workflow.engine.EJSLocalStatelessadobe_ProcessEngineBMTEJB_7d3cbd67.asyncInvokeProcessCommand(Unknown Source)
at com.adobe.workflow.engine.ProcessCommandControllerBean.doOnMessage(ProcessCommandControllerBean.java:156)
at com.adobe.workflow.engine.ProcessCommandControllerBean.onMessage(ProcessCommandControllerBean.java:99)
at com.ibm.ejs.container.MessageEndpointHandler.invokeMdbMethod(MessageEndpointHandler.java:1014)
at com.ibm.ejs.container.MessageEndpointHandler.invoke(MessageEndpointHandler.java:747)
at $Proxy0.onMessage(Unknown Source)
at com.ibm.ws.sib.api.jmsra.impl.JmsJcaEndpointInvokerImpl.invokeEndpoint(JmsJcaEndpointInvokerImpl.java:201)
at com.ibm.ws.sib.ra.inbound.impl.SibRaDispatcher.dispatch(SibRaDispatcher.java:768)
at com.ibm.ws.sib.ra.inbound.impl.SibRaSingleProcessListener$SibRaWork.run(SibRaSingleProcessListener.java:584)
at com.ibm.ejs.j2c.work.WorkProxy.run(WorkProxy.java:419)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by: ALC-DSC-119-000: com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: [B@10e410e4 of type: [B to type: interface org.w3c.dom.Document
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at com.adobe.idp.dsc.util.DOMUtil.parseDocumentFromString(DOMUtil.java:167)
at com.adobe.idp.dsc.util.DOMUtil.parseDocumentFromString(DOMUtil.java:129)
at com.adobe.idp.dsc.util.DOMUtil.parseDocumentFromStream(DOMUtil.java:235)
at com.adobe.idp.dsc.util.CoercionUtil.toDOMDocument(CoercionUtil.java:670)
... 54 more
It seems to be an xml parsing problem. Maybe a mistake in the xml schema of my form? For the moment, I don't see any mistake in my schema.
Any idea?Here is a screenshort of the part of my workflow:
In the mappings of the "Set Value" activity, I have one line with those properties:
Location: /process_data/bonusValidationForm/object/data/xdp/datasets/data/BonusValidationForm/buMan agerID
Expression: /process_data/currentUser/object/@userId
Where:
bonusValidationForm is a process variable of my workflow that point my xdp form
buManagerID is the textfield I want to set
currentUser is a process variable (type User) that was well setted by the task Find BU Manager -
How to set values to the structure containing a node with cardinality 0..n
Hello.
I 'm trying to set values for the node with cardinality 0..n. The node type is "Fields".
<xsd:complexType name="Field">
<xsd:sequence>
<xsd:element name="fieldCode" type="xsd:string"></xsd:element>
<xsd:element name="displayValue" type="xsd:string" minOccurs="0"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Fields">
<xsd:sequence>
<xsd:element name="field" type="tns:Field" minOccurs="0" maxOccurs="unbounded"></xsd:element>
</xsd:sequence>
</xsd:complexType>
I need to set several values for the element "fieldCode" but it has cardinality 0..1 and BPM does not allow it but I did not find any option about how to set values for the structure of type "Fields". Could you help me?
Best regards,
Timur SemenchukHi Marcus,
If there is no way you could change the cardinality of the node, and thus it can contain 0..n items, I think you should create-and-add a new element programmatically.
Since the collection can contain zero elements, I would add a 'new' button, which upon clicking adds one new element via:
IYourNodeElement yourNodeElem = wdContext.nodeYourNode().createYourNodeElement();
wdContext.nodeYourNode().addElement(yourNodeElem);
Hope this explains a bit!
Best,
Robin van het Hof
Maybe you are looking for
-
Income tax dedcution is not taking place on medical reimbursement .
Hi SAP-HR Experts . I am facing a issue that for few employees Medical Exemption for incomeTax is not taking place for few employees , like upto Rs. 15000/- amount annually are exempted for Income Tax . a employee whose exemption is taking place /3m1
-
The control panel will not let me activate either Cointacts or Calendar as it says I do not have a default profile active, which I do have. I have checked over and over again, but it will still NOT let me activate it. I am using Office 2010 on a PC r
-
hi, i am using UDF(user defined functions) in my mapping.i defined the function in my mapping,but i want to use the same function in my other mappings. here it is not visible in the new message mapping. i need o re-define same function for every
-
OIM 11g install error INST-07286 mw_home has wrong version weblogic
Hi gurus, I have been trying to install OIM 11g from past few days 1. I have installed Oracle 10.2.0.5 2.I installed weblogic 10.3.3 by downloading from Oracle website , wls1033_dev.zip 3.I ran Rcu utlity 11.1.1.3.3 4. I installed SOA 11.1.1.2.0. I a
-
I now have snow leopard 10.6.3
I upgraded my os to snow leopard 10.6.3 from a recommendation from here to be able to upgrade my safari. Does any one know how I upgrade my safari now? What I have now os- snow leopard 10.6.3 safari - 4.0.4 (6531.21.100