Dynamic " to " in assign not allowed?

I am doing an assign that essentially looks like this:
<assign>
<copy>
<from expression="some other value"/>
<to variable="var" part="payload" query="/ns1:list/ns1:listElement[@myValue=bpws:getVariableData('123')]/@myOtherValue/>
</copy>
</assign>
I get the following build error (para-phrasing):
ORABPEL-09707
Failed to initialize variable. Could not initialize variable "var" @ line (whatever)
I looked at the spec and it only states that it the query is XPath 1.0 and resolves to a single node.
I validated my xpath in XMLSpy...so either this is a limitation or I am doing something else wrong?
Cheers,
-Dustin

Again, sorry for not describing my problem well enough...I gave the impression that the "Assign_2" is happening synchrounously and a single time. The use case is:
1. Process A is orchestrating many synchrounous/asynchrounous activities with several other processes (XX,YY,ZZ, etc.) as part of its request to perform an operation.
2. process A (which is long-running) is maintaining an in-flight data structure representing the result bits of the various completed services. Other services/processes are invoked based on results of intermediate service steps (or combination of intermediate results).
3. For each service completed, the inflight data is updated, but which part of the update depends on the service result (as A will have many instances of a single process to do work).
This results in the need for dynamically updating the list. In reference to your sample, I do not know the value '123' in Assign_2. That is why I was using the getVariableData function. I can do this in the <from> part but not the <to> part.
I am building a sample now to send to you. Hopefully that will clarify.
-Dustin

Similar Messages

  • "ASSIGN not allowed for substrings" error in CONVERSION_EXIT_MATN1_INPUT

    Hi,
    I have a custom function module Z_CONVERT_VALUE_TO_INTERNAL that converts an external value to an internal value - it has a data-element parameter.
    When I use this function module for the data element MATNR, it calls the standard function module CONVERSION_EXIT_MATN1_INPUT, which then causes a short dump at this line of code:
    ASSIGN INPUT(LNG_E) TO <E_PTR>.      "->Eingabe
    The short dump says "ASSIGN not allowed for substrings", and the runtime error is ASSIGN_SUBSTRING_NOT_ALLOWED.
    Any explanation?  Does this line of code work in some circumstances?
    Thanks,
    John

    I've found the explanation.
    For both the function modules above, the input parameter for the external value has no type specified.
    It appears therefore that the type is inherited from the calling program.
    As my calling program was passing the external value in a variable of type STRING, the value was also being passed to CONVERSION_EXIT_MATN1_INPUT as type STRING.
    Hence the error "ASSIGN not allowed for substrings".
    When I changed the type of the variable to character (TYPE C), that solved it.

  • SAP MII 14.0 SP5 Patch 11 - Error has occurred while processing data stream Dynamic Query role is not assigned to the Data Server

    Hello All,
    We are using a two tier architecture.
    Our Corp server calls the refinery server.
    Our CORP MII server uses user id abc_user to connect to the refinery data server.
    The user id abc_user has the SAP_xMII_Dynamic_Query role.
    The data server also has the checkbox for allow dynamic query enabled.
    But we are still getting the following error
    Error has occurred while processing data stream
    Dynamic Query role is not assigned to the Data Server; Use query template
    Once we add the SAP_xMII_Dynamic_Query role to the data server everything works fine. Is this feature by design ?
    Thanks,
    Kiran

    Thanks Anushree !!
    I thought that just adding the role to the user and enabling the dynamic query checkbox on the data server should work.
    But we even needed to add the role to the data server.
    Thanks,
    Kiran

  • Document type ZD does not allow you to assign to object MARA

    hi ppl,
             I have created a Z document type.but its not allowing me to assign in mm02.what might be the problem..? its throwing an error message Document type ZD does not allow you to assign to object MARA.

    You need to enable object linking to mara on your new document type. Go to Tcode DC10, select the document type and then go to the object links area. Create a new object link for your document type.

  • Valuated GR not allowed in case of multiple account assignment

    Hi Friends,
    While creating Asset PO with multiple account assignment categories from SC
    i received the following error message in RZ20.
    PO 0030065837: No instance of object type PurchaseOrder has been created. External reference:
    PurchOrder 0030065837: Purchase order still contains faulty items
    PO 0030065837: Valuated GR not allowed in case of multiple accoun t assignment
    PurchOrder 0030065837: Transfer failed
    Now the PO status is error in process
    Can any one help on this issue...
    Thank You
    Shrinivas

    Hi shrinivas,
    When you are having the multiple account assignment, then the system will force you to have GR-non valuated indicator being flagged which results in the fact there is not any FI document at GR posting stage and this is the standard feature of SAP
    can you tell me whether you have that option of selecting or deselecting the GR nonvaluated in PO creation(EBP).If it is there falg it and reprocess the Sc
    hope this will help
    regards
    subbu

  • This construct is not allowed as the origin of an assignment

    Please help..
    create or replace package testins as
    x number;
    y number;
    z number;
    end;
    create or replace procedure p5 as
    begin
    for i in 1..5 loop
    testins.x(i):=i;
    testins.y(i):=i+1;
    testins.z(i):=i+2;
    end loop;
    execute immediate
    'begin
    forall i in 1..:n
    insert into test (a,b,c) values
    (testins.x(i),
    testins.y(i),
    testins.z(i));
    end;' using 5;
    end;
    Error:
    *4/1 PLS-00308: this construct is not allowed as the origin of an assignment*
    *4/1 PL/SQL: Statement ignored*
    *5/1 PLS-00308: this construct is not allowed as the origin of an assignment*
    *5/1 PL/SQL: Statement ignored*
    *6/1 PLS-00308: this construct is not allowed as the origin of an assignment*
    *6/1 PL/SQL: Statement ignored*

    Hi,
    try this ...
    create or replace procedure p5 as
    begin
      for i in 1 .. 5 loop
        testins.x := i;
        testins.y := i + 1;
        testins.z := i + 2;
      end loop;
      execute immediate 'begin
    for i in 1..n
    loop
    insert into test (a,b,c) values
    (testins.x,
    testins.y,
    testins.z);
    end loop;
    end;'
        using 5;
    end p5;You have the package variables as numbers, not collections which is why you cannot use them with an array index viz.
    testins.x(i):=i;Hope it is clear.
    PS : code not tested

  • OKB9 Profit center wise assignment is not allowing.

    Dear Experts,
                           Here iam facing problem like, In OKB9 setting valuation area wise allowing for cost center assignment, Profit Center wise not allowing for cost center assignment.It means it will allow to assign cost centers, but while transacting error troughing like co object missing, if we make setting like valuation area, it not throughing any error.
    We can think why cant we go for assignment with valuation area.But we have number of profit centers under one plant, Plant is equal to valuation area, Here iam suppose to go by profit center wise only, please give me a better solution to come out of this issue at the earliest.
    Thanking u in advance
    Chinni

    Hi,
    Select 3 in account assignment i.e. Profit Center Mandatory and then give profit center in combination of Cost Center.
    May also I know why do u have multiple Profit Centers in a single plant?  Generally u can create one profit center for one plant and there by u assign for material and plant combination this profit center. If u follow this process then u can use 1(Valuation area) as mandatory and assign the profit centers/cost centers for each plant.
    Regards
    Sudhakar Reddy

  • System not allowing to assign the master batch in Equipment

    Dear PM Guru's,
    I am trying to rotables managment process through installation and dismantling process. Material created with different valuation types and serial number profiles. Stock updated for valuation type REPAIRED & NEW. For TOBE REPAIRED, there is no stock updation. Now i want to update the stock by dismantling the equipment from superior equipment through IE4N. In IE4NCGP, i maintained the movementy types are 261(For installation) 262 (Dismantlation) and i am trying to execute IE4N transaction code. When i am trying to save the business transaction system throw following message "material document batch differ from equipment master batch". How we can assign the master batch? if its not in stock and its already installed in equipment i want to bring that one into stock as "TOBEREPAIRED" with movement type "262". I am requesting all the PM experts who ever done this process earlier please share the documents if possible.

    We want to enter only PAN number in XK01/ XK02. But the system is not allowing us to save until we enter all the details.
    Its not necessary that all Vendors will have CS, LST no. or Excise details. This is the reason I am looking for a way how to make these fields optional and I am fine with it as long as system does not give any error. Because system is not allowing us to save the Vendor master, I wanted to deactivate CIN in Vendor Master.
    Kindly suggest how to make the CIN fields optional. Your temporary solution (DOT) is working fine, still we want a permanent solution.

  • 'Prefix not allowed' error in assignment SOA 10.1.3.1 GA

    When performing an assignment assembled via the assign activity I get the run-time error of:
    [2006/11/10 13:33:58] "XMLDOMException" has been thrown.less
    prefix not allowed on nodes of type DOM Level 1.0 element
    Here is the actual assignment source:
    <assign name="Assign_2">
    <copy>
    <from expression="bpws:getVariableData('sp_out','OutputParameters','/ns4:OutputParameters/IDWKFLASG')"/>
    <to variable="inputVariable" part="payload"
    query="/payload/ns1:assignee"/>
    </copy>
    Any ideas? If this is some kind of programming error I don't understand why the assign doesn't catch it.

    hi all,
    i am facing follwing issue while applying this patch.
    i followed these steps
    1) > perl changeNamesWindows.pl home
    -it works fine
    2) > opatch apply
    While running this i got following message.
    Oracle Home : C:\product\10.1.3.1\OracleAS_Prod
    Oracle Home Inventory : C:\product\10.1.3.1\OracleAS_Prod\inventory
    Central Inventory : C:\Program Files\oracle\inventory
    from : N/A
    OUI location : C:\product\10.1.3.1\OracleAS_Prod\oui
    OUI shared library : C:\product\10.1.3.1\OracleAS_Prod\oui\lib\win32\oraInsta
    ller.dll
    Java location : "C:\product\10.1.3.1\OracleAS_Prod\jdk\jre\bin\java.exe"
    Log file location : C:\product\10.1.3.1\OracleAS_Prod/.patch_storage/<patch
    ID>/*.log
    Creating log file "C:\product\10.1.3.1\oracleas_prod\.patch_storage\5659094\Appl
    y_5659094_02-01-2007_13-55-49.log"
    Backing up comps.xml ...
    unbundling the rar file.
    OPatch detected non-cluster Oracle Home from the inventory and will patch the lo
    cal system only.
    Please shut down Oracle instances running out of this ORACLE_HOME
    (Oracle Home = c:\product\10.1.3.1\oracleas_prod)
    Is this system ready for updating?
    Please respond Y|N >
    y
    Executing the Apply pre-patch script (C:\Documents and Settings\277717\Desktop\A
    BHI\5659094\custom\scripts\pre.bat)...
    'C:\Documents' is not recognized as an internal or external command,
    operable program or batch file.
    The pre patch script returned an error.
    Do you want to STOP?
    Please respond Y|N >
    Is not this a major bug.? i mean in many cases u have to access database objects
    & have to assign outputvalues to some other BPEL variables.
    Anybody Plz help me out..?
    /Mishit

  • Activity 0010 has been assigned material components - Deletion not allowed

    HI friends,
    Even after deleting the material from the activity, the system is giving the following error message
    Activity 0010 has been assigned material components - Deletion not allowed 
    The status of the activity is REL.
    One purchase order already created for this WBS element.
    The material found deleted from the activity but why it is giving the same  message.
    Activity 0010 has been assigned material components - Deletion not allowed
    Edited by: M.Alagesan on Sep 13, 2010 1:15 PM

    Is that material already consumed?
    Generally when you try to delete the operation, it also deletes the dependencies of the activity, i.e., it deletes the components associated to that activity, if it is not issued to the order.
    Check the details in your system.
    Praveen

  • Error in Creation of Object ID 00000000 is not allowed

    Hi all,
    When I am Hiring an employee using PA40, I am getting an error as "Creation of Object ID 00000000 is not allowed", when I save it.
    In the NUMKR Feature, the return value has been assigned to the Personnel Sub Area.
    Pls. can anybody explain, how can I solve this problem. 
    This is urgent requirement of client.
    Thanks,
    HR User.

    Hi Hr user
    Now listen carefully.
    1. If you have defined your feature NUMKR according to PSA then while running hiring action does PSA comes or it just gives you the Position, PA, EG and ESG fileds only.
    2. If the first condition is true then you will get the error, now the question is why
    Answer, you have defined the feature through PSA and once you try to save the IT0000 there is no PSA mentioned there thats why the system gives you the error.
    If this explnanation is understood by you than reply , i will tell you how you can bring the PSA field also in hiring action at IT0000.
    Do reply
    Regards,
    Bhupesh Wankar

  • Promotion action run - payroll run - Chng in payroll area in IT1 not allowe

    Hi Friends,
    My client has the following query:
    "One of the employee has been promoted from employee group 2 (Workmen) to employee group (Management Staff).  We have run promotion action now, that is after running pay roll for the month of May 2011.  Now it is not allowing to change the pay roll area in orga. assignment effective from 01.04.2011,  please do the needful on priority to run pay roll for the month of May 2011."
    Can anyone please help me and let me what needs to be done in such cases.
    Eagerly awaiting your reply.
    Thanks in advance.
    Regards,
    Evangelist@

    Hi,
    As you said that you have already configured ABKRS feature for defaulting payroll area based on your employee group.
    So when you run the promotion action it should actually pick up the default payroll area according to new employee group.
    Are you able to do that? or did you manually change it on IT 0001 screen.
    If you want it to be automatically defaulted then check your feature DFINF it should have value X if you want it from customising or leave it blank if it should be copied form the previous record
    cheers
    Ajay

  • Promotion action - payroll run - not allowing to change payroll area in IT1

    Hi Friends,
    My client has the following query:
    "One of the employee has been promoted from employee group 2 (Workmen) to employee group (Management Staff).  We have run promotion action now, that is after running pay roll for the month of May 2011.  Now it is not allowing to change the pay roll area in orga. assignment effective from 01.04.2011,  please do the needful on priority to run pay roll for the month of May 2011."
    Can anyone please help me and tell me what needs to be done in such cases.
    Eagerly awaiting your reply.
    Thanks a ton..
    Regards,
    Evangelist@

    Hi,
    As you said that you have already configured ABKRS feature for defaulting payroll area based on your employee group.
    So when you run the promotion action it should actually pick up the default payroll area according to new employee group.
    Are you able to do that? or did you manually change it on IT 0001 screen.
    If you want it to be automatically defaulted then check your feature DFINF it should have value X if you want it from customising or leave it blank if it should be copied form the previous record
    cheers
    Ajay

  • Inspn For 103 Movnt Type UD Not allowing without Batch

    Hi Experts
    We have one scenario : For Incoming materials we are doing 103 GR Block stock and system
    not asking  any batch during MIGO.And after quality inspection (RR) 105 Block stock to unrestricted
    (Here we are entering the batch). But before this we need to take UD for the lot
    but system is not allowing me to do UD without Batch. For time being we are doing stock posting only.
    Kindly advise me how can I take UD without Batch for 103 inspection lots.
    Inadvance Thanks
    Shiva Patil

    Hi Vishal / Sanil,
    The problem is QM don't want create this batch we have suggested this they want system should assign automatically. In 103 there is no such a way that MM can enter this batch. QM is asking we haven't entered the batch in 103 so we want this lot need to be close without Batch.
    1) Which sap note is suitable for this kindly suggest me
    Thanks
    Shiva Patil

  • System should not allow to delete PO line Item after GR/IR

    Hi,
    I am working on a SAP Retail Implementation project.
    Currently the system is allowing us to delete the PO line items after doing GR or IR against that PO line item. But the clients requirement is that the system should not allow to delete PO line item after doing GR/IR.
    We are using Account Assignment Category-N, Item Category-S.
    Please let me know if you have the solution for this requirement.
    Thanks in advance
    Thanks & Regards,
    Suresh

    Hi,
    Standard SAP will not allowed the PO to be deleted once it was GR done. The controlled is on the attributes of message to set as "E"
    Message no. 06115
    But if invoiced takes place, the is the point that PO can be deleted.
    You have to do have a Enhancement using MM06E005, insert you logic here to check PO history tables like EKBE, then check if invoice " Q" (BEWTP) exist, the PO cannot be deleted once the user delete the PO line and SAVE it. Ask you developer to help you on the following coding.
    Use MM06E005 and EXIT_SAPMM06E_012
    IF SY-TCODE = 'ME22N'.
    IF sy-ucomm = 'MESAVE' OR SY-UCOMM = 'YES'..
    LOOP AT TEKPO.
    IF TEKPO-LOEKZ = 'L'.
    SELECT SINGLE BELNR FROM EKBE INTO BELNR1 WHERE EBELN = TEKPO-EBELN AND EBELP = TEKPO-EBELP AND BEWTP = 'E'.
    IF SY-SUBRC = 0.
    SELECT SINGLE BELNR FROM EKBE INTO BELNR2 WHERE EBELN = TEKPO-EBELN AND EBELP = TEKPO-EBELP AND BEWTP = 'Q'.
    IF SY-SUBRC = 0.
    Regards,

Maybe you are looking for

  • How to create SR Queue and Custom User Role for technician only see which SR assigned Him/Her and Resolve

    Hi  I have created workitem SR advance and Criteria with ID [Assigned To ME] and created user role in Advance operators. But in technician Console showing which SR he/she created not service desk assigned to him/her. Please suggest... Regards Sheetla

  • Not a win32.exe file

    i can not run itunes because i get not a win.32.exe file, someone please help me i want to use my new ipod

  • Can't enable disk protection

    I have a new install of Windows Multipoint Server 2012. I would like to enable the disk protection feature, but when I do, I get the following message: Multipoint Manager The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

  • Fade background image

    Is it possible to add a fade effect to a background image with spry?

  • Help with graphic skipping!!!

    I just built my own computer and i am having problems with my new graphics card. It is a GeForce4 Ti4200. When i first completed my new PC, it was working fine. All of a sudden, I started having graphic problems. Whenever I run a screen saver, play a