Problem on dynamic assignment?

As you know, we can use statement like var1 = '(program)objectname', and assign  (var1) to <fs>,
I tried, and succeed in function module, but when I use it in prog2, and in prog1, I submit prog2, it does not work.
can this usage only be available in function module?

The addition AND RETURN starts the executable program in a new internal session. The session for the calling program is retained. Once program access is completed, program execution for the calling program continues after the SUBMIT statement.
The label in name can also have the form (PROG)DOBJ for internal use only, where PROG is the name of an ABAP program and DOBJ is the name of a global data object of this program. If the program PROG is loaded during execution of the statement ASSIGN in the same internalmode as the current program, the data object (PROG)DOBJ is searched for in this program, and the field symbol points to this data object after the object has been successfully assigned.
Conbine the two part, I can get the answer.
So thanks all your information.

Similar Messages

  • In human task, dynamically assign group doesn't work

    Oracle SOA 11.1.1.4
    My bpel process invokes a human task.
    On the human task Assignment tab, I assigned 3 users (by name), 1 group (by expression).
    The group is configured in LDAP
    When I tested the bpel process, I entered the group and other data required.
    From the worklist app, I see the task listed. It is assigned to the 3 users, but not the dynamically passed-in group.
    From the Audit trail, I saw all data I entered (include the group). Everything seems correct, but I still can’t make the dynamically-pass-group work.
    If I assign the group by name in human task, it works fine.
    The problem is: dynamically assign group doesn't work.
    Please kindly advice.

    Yes, it is possible assign a group as participant of some human task, passing the group name as parameter.
    I have tested just now.
    It works pretty well in SOA 11.1.1.4 (BPEL or BPM).
    Make sure add a data parameter in your human task definition and pass a valid group name to it.
    At the Assignment tab, in the participants' list, add a group, data type by expression, and set the value to the right xpath expression to the corresponding parameter.
    For example: /task:task/task:payload/task:group
    If it is not working look the SOA log files, probably you'll find some information about the error there. Maybe there is some problem with your jazn.com configuration.
    You can also test if there is something wrong related to the group name, trying to transfer some task to the same group by the worklist.

  • Error message "ABAP/4 error during dynamic assign" on Contact Log creation.

    Hi,
    We are getting an error message "ABAP/4 error during dynamic assign beyond program bounds" displayed while creating contact log using transaction "BCT0".
    Please suggest what can be the cause of the error message and how we can remove this.
    Regards,
    Ankur

    Dear Andrea,
    The problem should be caused by obsolete entry in table TFAWX.
    Please use the following report for deleting this entry (test before in your TEST System) :
    report ztfawx_delete.
    tables tfawx.
    select single * from tfawx where prog = 'SAPLBAS0'
                                and bldgr = '0110'
                                and mnum  = 23
                                and bfeld = '$GENERAL'.
    if sy-subrc = 0.
      delete tfawx.
    endif.
    Buona Giornata
    Mauro

  • Dynamically assigning variable in xml loop

    I am trying to dynamically assign a variable name so I can
    build an accordian nav from and XML doc. the code looks like this:
    ACnav['depthChild0']._alpha = 0;
    ACnav.setStyle("color", 0x0ffffff);
    ACnav.setStyle ("openEasing",
    mx.transitions.easing.strong.easeout);
    ACnav.setStyle ("selectionDuration",
    mx.transitions.duration.slow);
    navXML = new XML();
    navXML.ignoreWhite = true;
    navXML.load("menu1.xml");
    oY=5;
    var currentSection = 0;
    function buildNav () {
    DisposableXML = new XML();
    TempXML = new XML();
    button = new Array();
    //buttonNum = new Array();
    subitem = new Array();
    menuItem = new Array();
    o = new Array ();
    subitemlocation = new Array();
    DisposableList = new Array();
    buttonList = navXML.firstChild.childNodes;
    i = 0;
    sectionLength = buttonList.length;
    while (i<=buttonList.length) {
    if (buttonList
    .nodeName.toLowerCase() == "button") {
    DisposableXML = buttonList;
    DisposableList = DisposableXML.childNodes;
    buttonName = buttonList
    .attributes.name;
    set ("buttonNum", "buttonNumber"+i);
    trace(buttonNum);
    ii = 0;
    //trace(buttonName+"-"+buttonNum);
    //ACnav.createChild("View", buttonNum, {label: buttonName,
    icon: "mainNav"});
    button = ACnav.createChild("View", buttonNum, {label:
    buttonName, icon: "mainNav"});
    oY=5
    while (ii<=DisposableList.length) {
    TempXML = DisposableList[ii];
    if (DisposableList[ii].nodeName.toLowerCase() == "subitem")
    subitem = TempXML.attributes.name;
    //subitemlocation = TempXML.attributes.location;
    subitemNum="subitemNum"+[ii]+
    //trace(buttonNum+"-"+subitemNum+"-"+subitem);
    menuItem = ACnav.buttonNum.createChild("subNav",
    subitemNum, {childText: subitem});
    menuItem
    .move(0, oY);
    oY=(oY+25);
    //trace(buttonNum);
    ii = Number(ii)+1;
    i = Number(i)+1;
    //trace(button);
    trace(menuItem);
    redraw();
    //gotoAndPlay('reload');
    The problem lies with this line: button =
    ACnav.createChild("View", buttonNum, {label: buttonName, icon:
    "mainNav"});
    If I quote the "buttonNum", it works, but jumbles the subnav
    items together vs in the proper node. I need to have that declared
    dynamically so that each parent node has a differentID and then
    createchild goes under that. Anyway, I've tried alot of stuff over
    the last few days and its getting frustrating.
    Thanks for the help if anyone contributes!

    You shouldn't need to do a concat within the XQuery path parameter. Try the following:
    bpws:getVariableData('inputVariable','payload','/ns1:Request/ns1:instance[bpws:getVariableData(&quot;j&quot;)]')

  • ABAP/4 error during dynamic assign beyond program bounds

    Hi experts,
    after an Upgrade from 4.7 to Ecc 6.0, launching transaction AC03 an error (green light) occours "ABAP/4 error during dynamic assign beyond program bounds".
    Is there anyone who find a solution?
    regards
    andrea brescia
    Edited by: andrea brescia on Nov 30, 2010 1:42 PM

    Dear Andrea,
    The problem should be caused by obsolete entry in table TFAWX.
    Please use the following report for deleting this entry (test before in your TEST System) :
    report ztfawx_delete.
    tables tfawx.
    select single * from tfawx where prog = 'SAPLBAS0'
                                and bldgr = '0110'
                                and mnum  = 23
                                and bfeld = '$GENERAL'.
    if sy-subrc = 0.
      delete tfawx.
    endif.
    Buona Giornata
    Mauro

  • Why is my Verizon air card treated as a dynamically assigned IP, which labels me as a spammer?

    Why is my Verizon air card treated as a dynamically assigned IP, which labels me as a spammer? I'm blocked from sending email to folks with a Verizon address, and support blows me off. Is my only solution to through out my air card?

    RIPPLES wrote:
    The problem was not with forums, it was having emails sent through my Verizon Wireless air card to Verizon Online customers with verizon.net addresses rejected. They were rejected because of Verizon's spam filter, and Verizon repeatedly refused to white list my dedicated IP address saying I was a spammer and that I was using a dynamic IP address--which was not true. After three months of effort and countless hours on the phone with tech support in India, Verizon resolved the problem--but only after I threatened to drop my air card and three phones which were due for renewal.
    ironically... People in India often speak better english than people in the states.  More than likely unless you live on the East Coast you more than likely not going to get a call center overseas.  Pretty sure India doesn't work late hours as a country IIRC the last time I was there it was almost vacant at like 8pm.

  • Dynamically assign value to a column in ALV LIST Display

    Hi all,
    How can I dynamically assign value to a column in ALV LIST Display without using classes and methods?
    Thanks,
    Ridhima

    Hi Vikranth,
    I am displaying one ALV list say with columns A and B.
    I have value in A but not in B. Now at runtime user selects one row, clicks on push button in application toolbar, then i have to display value in column B in the already displayed list.
    I searched and came to know it can be done with oops concept. but i am not using classes and methods.
    so how can i do this?
    Thanks,
    Ridhima.

  • Problem in dynamic file configuration

    Hi All,
    I am working on a scenario for which different files must be generated for each recorset.
    The file name should be generated dynamically based on the input fields.
    I am able to generate different files but with same file name for all the files.
    I have used the blog "/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 as reference..
    please help me out .

    Hi Rajesh,
    In the Michal's blog that you are following, the FileName attribute is selected. And if you select it the file name of the source and the target will be the same. To avoid such a situation, you deselect the check box and then create an UDF. Using the UDF you can assign different dynamic names to ur files.
    In the blog he has used get function to access the variable. Similarly you can use set function to dynamically assign the names to the files.
    Thanks and Regards,
    Sanjeev.
    Award points if helpful.

  • How to dynamically assign Display Pattern using FormCalc in Adobe PDF Form

    I am using Adobe PDF Form Designer. I am trying to dynamically assign a display pattern like MM/DD/YYYY to the Field tab - Display Pattern property. May I know how to do that?
    I am using FormCalc scripting.

    hi,
    After placing the date field in layout from data view, u will get tabs like field,layout,border etc..
    In field tab under the edit pattern specify the pattern in which you want to display the date field.
    hope this works.
    Reward points if helpful.

  • Dynamically assigning field name and field value

    Hi all,
    logic:
    select field1 field2 from table into workarea.
    workarea-field1 will have value as 'MATNR' or 'BUKRS'  or  'KUNNR'  or............etc
    workarea-field1 will have values as '10000025' or  '2010'  or  '102536' or  ............etc
    Now i need to dynamically assign MATNR = 10000025
                                               or   BUKRS =2010
                                               or  KUNNR = 102536
    HOW CAN WE DO THIS.

    Hi,
    Use the ASSIGN COMPONENT statement.
    Regards,
    Ankur Parab

  • Regarding  dynamically assigning the where clause to select query

    hi,
      Please send the code regarding how to dynamically assign the where clause to select query.
    thanks in advance

    SELECT <fileds>
            INTO TABLE itab
            FROM dbase
            WHERE  condition.

  • Problem during number assignment cause record in iw51

    Hi,
    I am getting this error message in my BAPI(BAPI_SERVNOT_CREATE).Kindly suggest me what am I supposed to do.
    I am getting the error message while assigning the cause code "Problem during number assignment cause record "
    Please have a look at my code link.
    http://selectoptions.blogspot.in/2012/03/report-zbapiservnot.html#!http://selectoptions.blogspot.com/2012/03/report-zbapiservnot.html
    Edited by: dhinesh on Mar 8, 2012 5:05 AM
    Edited by: dhinesh on Mar 8, 2012 5:08 AM

    Hi
    The problem seems to be with the number range given for the document type you are using for posting the rentals.  When you simulate it, no posting happens that is why the problems does not come fore.  But when the tick is removed, the system is trying to post the document and at the same time, since the number range of internal type, the number you are giving (hope you might be giving some number for your document or something like that..I am not sure about your module), the system throws the error.  Please check your entry.

  • Problem in dynamically generating the file upload field

    Hello all
    I am using netbeans 5.5 and visualwebpack for my jsf project.
    i have a problem in dynamically generating the file upload field and using it.
    I have a panel say "panelA" which holds file upload fields.
    Depending upon the count value i generate the file upload field using following code snippet:
    Upload upload1 = new Upload();
    upload1.setId("upload1");
    getPanelA.getChildren().add(upload1);
    The page successfully shows up the file upload fields. While the user clicks the submit button, i have used following logic to perform upload:
    List components = getPanelA().getChildren();
    for(int i = 0; i<components.size(); i++){
    if(components.get(i) instanceof Upload){
    UploadedFile uploadedFile = ((Upload)components.get(i)).getUploadedFile();
    I am getting this UploadedFile object null.
    How can i solve this problem.

    Anyway,
    I solved the problem.
    Actually i was using label property of the upload field due to which i got null pointer exception.
    I removed the label property of the upload field and things worked as i wanted.

  • Dynamically assigning digital signature strategy

    Hi Experts,
      I have a requirement where I need to dynamically assign different signature strategy to document approval based on the number of approvers.
    In our case for the same document based on the level of changes number of approvers might be different ( 3 - 12). We are planning to achive this by allowing document owners to select the approver using a approval workflow
    I also know that there is a limition of 8 approver slots on the default signature strategy.
    Please advise what is the best strategy in this case.
    Thank You
    Regi

    Hi,
    You can refer Note 700495 for digital signatures.
    Thank You,
    Manoj

  • Dynamic assign in field symbols

    dynamic assign in field symbols

    Hi,
    DYNAMIC ASSIGN:
    If you do not know the name of the field that you want to assign to the field symbol when you write a program, you can use a dynamic ASSIGN statement:
    ASSIGN (<f>) TO <FS>.
    This statement assigns the field whose name is contained in the field <f> to the field symbol <FS>. You cannot use offset and length in a dynamic ASSIGN.
    At runtime, the system searches for the corresponding data object in the following order:
    If the ASSIGN statement is in a procedure, the system searches first in its local data.
    If it cannot find the object in the local data (or if the ASSIGN statement is not in a procedure), it then looks in the local data of the program.
    If the field does not exist in the global data of the program, the system looks in the table work areas declared with the TABLES statement in the main program of the current program group. A program group consists of a main program and all of the programs that are loaded into the same internal session as a result of other program calls.
    If the search is successful and a field can be assigned to the field symbol, SY-SUBRC is set to 0. Otherwise, it is set to 4, and the field symbol remains unchanged. For security reasons, you should always check the value of SY-SUBRC after a dynamic ASSIGN to prevent the field symbol pointing to the wrong area.
    Searching for the field in this way slows down the program. You should therefore only use the dynamic ASSIGN statement when absolutely necessary. If you know when you create the program that you want to assign a table work area to the field symbol, you can also use the following variant of the dynamic ASSIGN statement:
    ASSIGN TABLE FIELD (<f>) TO <FS>.
    The system then only searches within the table work areas in the main program of the current program group for the data object that is to be assigned to the field symbol. This addition is forbidden in ABAP Objects, since the latter does not support table work areas.
    Suppose we have three programs. The main program:
    REPORT demo_field_symbols_dynami_as_1.
    TABLES sbook.
    sbook-fldate = sy-datum.
    PERFORM form1 IN PROGRAM demo_form1.
    The other two programs are:
    REPORT demo_form1.
    FORM form1.
      PERFORM form2 IN PROGRAM demo_form2.
    ENDFORM.
    and
    REPORT demo_form2.
    FORM form2.
      DATA name(20) TYPE c VALUE 'SBOOK-FLDATE'.
    FIELD-SYMBOLS <fs> TYPE ANY.
      ASSIGN (name) TO <fs>.
      IF sy-subrc EQ 0.
        WRITE / <fs>.
    ENDIF.
    ENDFORM.
    The output looks something like this:
    02.06.1998
    The program group in the internal session now consists of the programs DEMO, MYFORMS1 and MYFORMS2. The field symbol <FS> is defined in MYFORMS2. After the dynamic ASSIGN statement, it points to the component FLDATE of the table work area SBOOK declared in the main program DEMO.
    REPORT demo_field_symbols_dynami_as_2 .
    TABLES sbook.
    DATA: name1(20) TYPE c VALUE 'SBOOK-FLDATE',
          name2(20) TYPE c VALUE 'NAME1'.
    FIELD-SYMBOLS <fs> TYPE ANY.
    ASSIGN TABLE FIELD (name1) TO <fs>.
    WRITE: / 'SY-SUBRC:', sy-subrc.
    ASSIGN TABLE FIELD (name2) TO <fs>.
    WRITE: / 'SY-SUBRC:', sy-subrc.
    The output is:
    SY-SUBRC:      0
    SY-SUBRC:      4
    In the first ASSIGN statement, the system finds the component FLDATE of the table work area SBOOK and SY-SUBRC is set to 0. In the second ASSIGN statement, the system does not find the field NAME1 because it is declared by the DATA statement and not by the TABLES statement. In this case, SY-SUBRC is set to 4.
    Reference: http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb38d5358411d1829f0000e829fbfe/content.htm
    reward points if helpful.
    Regards,
    Ramya

Maybe you are looking for

  • To back up data in Time capsule to external hard drive...

    I have Time Capsule 500gb connected with Seagate external USB hard drive. My iMac and Time Capsule are connected wirelessly. I've stored my music data in Time Capsule, and I want to back up this data to Seagate hard drive. First I turned on Time Mach

  • Cant get include file to work

    hello, i am trying to get a include file to work but it wont seem to work propperly. if i change it to a shtml it works but i dont want nto have to do this. any help greatly appreciated thanks. http://www.sickstudentgames.com/familyguyseason2.html is

  • How to make a label

    I need to make a label that is 2.062 inches in diameter. I want to add a small picture to this and text. Every attempt over several days has failed. Is there a tutorial that would help or how can I do this?

  • What is the book key (F) in MSI GT70 to boot from CD/DVD?

    Hello, What is the book key (F) in MSI GT70 to boot from CD/DVD? I tried all F keys but nothing.

  • I want to cancel my account in creative cloud. How?

    I want to cancel my account in creative cloud. How?