IMporting Container Value

Hi,
My requirment is to show the description on workflow task ,I have to add Plant in Description for one of the Task ,I created a Z method and write a select query to get the Plant .I Created a new container with the IMport parameter and assign SWC_set_element container 'PLANT 'PLANT and in Step I did a Binding &PLANT& -> &PLANT&.
I check in debug mode I can see the Plant value ,but when I checked the container in workflow log it shows not set .
Help will be appreciated by deserve points.THanks

Hi Vinod,
I think the steps seems fine.
Just check if you have missed on one of the following:
1. Create a BO method, and add an output parameter 'Plant'.
2. Add a data statement in the method and create a parameter 'lv_Plant'.
3 . Fetch the value of Plant from the database table / FM into the parameter 'lv_Plant'.
4. Then use the code:
swc_set_element container 'Plant' lv_Plant
to set the value of the output parameter in the code.
5. In the workflow task create an input output parameter 'tk_Plant'.
6. In the binding between the task container and method pass the value of 'Plant' to 'tk_Plant'
7. Create an input output parameter in workflow container 'wf_Plant'.
8. In the binding between the workflow container and task container pass the value of 'tk_Plant' to 'wf_Plant'
Hope this helps!
Regards,
Saumya

Similar Messages

  • Import UDF values  in DTW

    Hi Experts
    I want to import UDF value using DTW. I am importing PO that has some udf also. I want to import thes udf value in the new database. Please suggest me how can I do?
    Thanks
    Best Regards
    Jitender

    Hi Jitender,
    In DTW window, you can see the 'Customize template' menu. Using this menu you can create a new template. In that template, the UDF will be available at the last cloumn. Standard template didn't contains the UDF's!
    Regards,
    Bala

  • Error msg, "Maximum selection does not contain value 9999999999.

    Hi, I am getting this error wile doing Reclassification of HFM Movement.
    Error msg, "Maximum selection does not contain value 9999999999 of subassignment HFM CD2 & Asset Type "                                         
    in the Data Monitor, ( in Reclass Net Reserve). While running BCF task for a company for period 16/2009     
    Actually, We have converted the consolidation area from XX(2009) to YY(2010).
    Before this task, user has performed the balance carry forward.
    My Analysis is as follows:-
    Method Used in this Reclassification                                         
    RECYX (Reclassify HFM Movement at YE lvl 10)                                        
         TRIGGER                                   
         Items : 100-299, 9900-9999                                   
         HFM Movement Type : O200 to O300                                   
         Posting Level : 10                                   
         TARGET                                   
         Items : 100-299, 9900-9999                                   
         Move : O100C                                   
         Posting Level : 10                                   
         HFM CD2 and Asset type : Ticked                                    
    After TEST run in UCMON, the error message comes :-                                        
    The "HFM CD2 & Asset Type value 9999999999" is not maintained in Breakdown Categories Y500, Y700  etc.                                        
    Breakdown categories in Workbench                                        
    Maintained as "OPTIONAL, Initialized value allowed".                                        
    Single Selection                                         
    1A                                        
    1B                                        
    AR                                        
    GA                                        
    Default Selection                                        
    99999999999                                        
    BCS CUBE                                         
    HFM CD2 & Asset Type - coming blank               
    LOTR                                        
    HFM CD2 & Asset Type - Coming blank     
    Please help to go forward.
    In Anticipation,
    Deepankar Jain

    Thanks a lot Dan for the reply.
    Yes, the single selection is 1A, 1B etc, I agree that including this default value 9999999999 in single selection will resolve this issue, but the BREAK DOWN TYPE is OPTIONAL, that means It will also consider a blank value, right?
    Also, In the method defined for RECLASSIFICATION in workbench, in the TARGET parameters, the" HFM CD2 and Asset Type"  is blank but the "DEFAULT is TICKED" which makes it a mandatory derivation rule.
    Please correct me if I am wrong.
    Your replies on it are highly appreciated.
    Thanks and Regards,
    Deepankar

  • Maximum selection does not contain value 600 of subassignment Subitem-error

    Hi All,
    I'm getting the following error when i tried to load the file through data stream.
    Maximum selection does not contain value 600 of subassignment Subitem
    Message no. UCD1038
    Diagnosis
    The posting item 11100100 has breakdown category BR01 for which a maximum selection was maintained for subassignment Subitem. The current posting value, however, is not in this maximum selection.
    System Response
    The posting is not possible.
    Procedure
    Check the maximum selection and the posting.
    I have already refered the earlier threads but its of no use for me. I have checked my setting w.r.t to FS item breakdown category, Max selection in breakdown category and  sub items all the setting are fine, even i applied the OSS notes no-1074599 still i'm facing the same issue.
    Can any one help me with this regards, thanks in advance.
    Regards,
    Magesh

    Hi Dan,
    Yes, breakdown category has been assigned with a sub item category which in turn assigned to subitems and this sub item is a part of the sub item category which is assigned in max. selection.
    Let me know if you want any more information on the same.
    Regards,
    Magesh

  • Container values not appearing in alerts - SAP CRM 7.0

    Hi Experts,
    I have 2 issues:
    1. I am calling an alert on lead creation by calling an action with processing type as TRIGGER ALERT.
    The alert appears on the home page but the container values defined in the long text are not appearing. The containers defined are as follows:
    OBJECT_ID - Object type - BUS2000108 - business transacton number
    Call later date - Z field in CRMD_ORDERADM_H - structure - CRMD_ORDERADM_H - Field Zabcd
    Please let me know if there is something i'm missing or if i need to define these values in the Method TRIGGER ALERT???
    2. If i want to call this action on a particular date (call later date as above), is it possible to take the reference of this date in the start condition?
    Regards
    Nitin Sehgal

    Dear Nitin,
    The first I am not sure, so hopefully someone else can help you with that.
    For the second, If you want a Z-field to be used in the action conditions, you should add an attribute to your BOR-object in SWO1.
    How to do this can be found here.
    [http://sapcrmweblog.blogspot.com/2011/01/adding-attributes-to-bor-object.html|http://sapcrmweblog.blogspot.com/2011/01/adding-attributes-to-bor-object.html]
    Hope it helps...
    Regards,
    Pieter Rijlaarsdam

  • Change document  - Workflow Event Container value not passed

    Hi Iam working on a customer create notification scenario where in we are sending a notification to SAP Inbox whenever a customer is created.We are checking industry key(KNA1-BRSCH) value through a check function module.When the customer is created in the system the system triggers the corresponding even it gets in to check module and an exception is raised saying Industry key does not have any value.
    Problem is Industry key value is not passed on to the container.
    Where might be the problem...?
    Is anything missing in SWEC(Events for change document)
    -but the event is trigerred...container value for industry key not passed...
    Please advice...
    Thanks in advance!

    Refer to link below.
    Sandy

  • Checking Multiline Container Value in BPM

    Hi ,
    We have scenario where we need to check the container value in BPM.
    Could you please anybody let me know how we check the conditions for a conatiner.
    Madhu

    Hi Madhusudhan,
    You can use the following threads and see if it helps:
    Accessing container variable of BPM in Message Mapping function
    Copy value of container (abstract interface) to an other container
    Container object in Message Mapping
    Specially check out the Michal's blog mentioned in the last thread. It might be useful.
    PS : Please reward points if useful.
    Thanks and Regards,
    Sanjeev.

  • Import Container contains Error

    Hi,
    when i'm using in QAR, i didnt found any error in PO release strategy. But now, i'm facing the error Import container contains errors (are any obligatory elements missing?). I've checked workflow definition, it doesn't shows any error. And the import parameters are enabled.
    If anyone knows what is the problem, kindly let me know what i have to do...

    Hi,
    check, wether there are some obligatory container elements, wich are not filled when calling the workflow.
    The problem may be the data formats of the elements during runtime. If you try to assign elements, wich have different data-types may cause errors during runtime even the definition of the containers reports no problmes.

  • Import container contains errors issue for Release Strategy workflow

    Hello Experts,
    I have copied the standard workflow WS20000075 for PO approval on Release step.
    the copied workflow works fine in sandbox system, but in the test system I get an error saying 'import container contains errors (are any obligatory elements missing?)' I guess 'ReleaseCode' is not getting passed to the Workflow from the PO creation T-code.
    I went thru few SCN post, did check all the Linkages as said, everything seems to be ok. but still cannot trigger the workflow.
    need guidance as to where I may be going wrong.
    Regards,
    Jibran

    Hi Jibran
    If the WF is working in sandbox, it means that your definition, linkages etc are correct.
    Please check if the following note is relevant for you or not:
    1770720 - PO workflows run into error SFW_RUN594 - Import container contains errors
    It's about correcting the settings in SWEC and SWE2 (correct for your custom workflow definition)
    If not, then confirm with your MM consultant if the release strategy is configured correctly or not....take hints from the following SCN thread:
    http://scn.sap.com/message/14682486#14682486
    Regards,
    Modak

  • Is there a function module to import a value to abap memory

    Hi,
    My requirement is as follows.
    I have the following inputs.
    Input 1 = some value
    Input2 = ABAP Memory
    If I pass the above inputs to a function module it should import the value in Input1 to the ABAP Memory given in Input2.
    Is there any standard function module in SAP to fulfill the above requirement?
    Thanks,
    Indira

    Not sure if my grammar is correct, but you don't "import to" rather you "export to" & "import from".
    First things first. Why do you need a FM for this purpose ? A simple [EXPORT|http://help.sap.com/abapdocu_70/en/ABAPEXPORT_DATA_CLUSTER_MEDIUM.htm#&ABAP_ALTERNATIVE_3@3@] statement will do this for you.
    May be i don't get your question correctly, else you're too much obsessed with using FMs.
    Cheers,
    Suhas

  • How to import multi-value reference with Granfeldt PowerShell MA?

    Hi,
    I am trying to import multi-value reference into FIM (Group object).
    I can import all attributes from source SQL, except Multivalue reference (into members attribute on Group object).
    I have defined schema like this:
    $obj = New-Object -Type PSCustomObject
    $obj | Add-Member -Type NoteProperty -Name "Anchor-axs_profid|String" -Value ""
    $obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "role"
    $obj | Add-Member -Type NoteProperty -Name "name|String" -Value ""
    $obj | Add-Member -Type NoteProperty -Name "member|Reference[]" -Value ""
    $obj
    On source attribute I have members defined in one attribute, divided by ",". 
    Import script:
    $Obj = @{}
    $Obj.Add("objectClass", "role")
    $Obj.Add("[DN]", "Role_"+$Object.$("axs_profid"))
    $Obj.Add("axs_profid", $Object.$("axs_profid").ToString())
    $Obj.Add("name", $Object.$("name").ToString())
    if($Object.$("member").ToString() -ne "")
    [string[]]$members = $Object.$("member").ToString().Split(',')
    $Obj.Add("member", $members)
    $Obj
    When Full import is triggered, I get following error for roles with multiple users:
    FIM Sync = staging-error
    Event log = 
    The server encountered an unexpected error in the synchronization engine:
     "BAIL: MMS(9588): d:\bt\32669\private\source\miis\shared\utils\libutils.cpp(7045): 0x8023040e (The distinguished name is invalid)
    BAIL: MMS(9588): d:\bt\32669\private\source\miis\server\sqlstore\utils.cpp(229): 0x8023040e (The distinguished name is invalid)
    BAIL: MMS(9588): d:\bt\32669\private\source\miis\server\sqlstore\nscsimp.cpp(5348): 0x8023040e (The distinguished name is invalid)
    BAIL: MMS(9588): d:\bt\32669\private\source\miis\server\sqlstore\nscsimp.cpp(5753): 0x8023040e (The distinguished name is invalid)
    BAIL: MMS(9588): d:\bt\32669\private\source\miis\server\sqlstore\nscsimp.cpp(686): 0x8023040e (The distinguished name is invalid)
    BAIL: MMS(9588): d:\bt\32669\private\source\miis\server\sqlstore\csobj.cpp(12876): 0x8023040e (The distinguished name is invalid)
    BAIL: MMS(9588): d:\bt\32669\private\source\miis\server\sqlstore\csobj.cpp(13976): 0x8023040e (The distinguished name is invalid)
    BAIL: MMS(9588): d:\bt\32669\private\source\miis\server\sqlstore\csobj.h(1252): 0x8023040e (The distinguished name is invalid)
    ERR_: MMS(9588): d:\bt\32669\private\source\miis\server\sync\syncstage.cpp(2018): ERR_: MMS(9588): d:\bt\32669\private\source\miis\server\sync\syncstage.cpp(612): ERR_: MMS(9588): d:\bt\32669\private\source\miis\server\sync\syncstage.cpp(647): Staging failed
    0x8023040e: [21]ERR_: MMS(9588): d:\bt\32669\private\source\miis\server\sync\syncmonitor.cpp(2528): SE: Rollback SQL transaction for: 0x8023040e
    Forefront Identity Manager 4.1.3559.0"
    If I change the script to return only first member:
    $Obj.Add("member", $members[0])
    import is successfull and I can see referenced member in Group.
    I have also tried to specify DN for both users and roles with the same outcome.
    $Obj.Add("[DN]", "Role_"+$Object.$("axs_profid"))
    I am using the latest version of  PSMA: 5.5
    Thanks for your help guys!

    I managed to solve this issue.
    The problem was in string array (I always appended "," at the end of each value). MA then expected another value after the last comma.
    The wrong approach:
    [string[]]$members = $Object.$("member").ToString().Split(',')
    The right approach:
    [string[]]$members = $Object.$("member").ToString().TrimEnd(',').Split(',')

  • Import parameter value for FM RH_OM_ATTRIBUTES_READ

    Hello SRM Gurus
    What is the import parameters values for the function module RH_OM_ATTRIBUTES_READ to read Org.Structure parameter values in SRM 7.0 system?
    Is below parameter value is correct?
    PLVAR = u201801u2019
    OTYPE =u2019Ou2019
    OBJID = userid
    SCENARIO = u2018BBPu2019
    SELDATE = SY-datum
    I am not able to  read any data.
    Kindly share your experience.
    Thanks.
    Preethi.

    Hi
    Under Object Type(OTYPE) you are entering as "O" - means Org Unit
    So you need  to enter Org Unit under Object ID (OBJID) and not the user Id
    Hope this is clear to you now

  • Example program for returninng and importing with value addition

    HI ,
    I want few example programs on how to use the abap oops with returning addition and importing with value addition as Im getting syntax error for the Program when Im declaring them with these additions
    Thnaks .

    Hello,
    This statement declares a general instance method meth. Use additions ABSTRACT and FINAL to make the method abstract or final.
    The additions IMPORTING, EXPORTING and CHANGING define the parameter interface of the method. After every addition, the corresponding formal parameters are defined by a specification of the list parameters.
    The other additions determine which exceptions the method can propagate or trigger and determine whether the method is abstract or final.
    Note
    Within a method, you can use the logical expression IS SUPPLIED to check whether an actual parameter was assigned to an optional formal parameter at the call.
    Addition 1
    ... IMPORTING parameters PREFERRED PARAMETER p
    Effect
    IMPORTING defines input parameters. When calling the method, you need not specify an appropriate actual parameter for every non-optional input parameter. During the call, the content of the actual parameter is passed to the input parameter. The content of the input parameter - for which the reference transfer is defined - cannot be changed in the method.
    Use PREFERRED PARAMETER to identify an input parameter p1 p2 ... of list parameters after IMPORTING as a preferred parameter. This specification makes sense only if all input parameters are optional. When calling the method with the syntax
    CALL METHOD meth( a ).
    the actual parameter a is assigned to the preferred parameter if you have appropriate use of a functional method at an operand position.
    Addition 2
    ... EXPORTING parameters
    Effect
    EXPORTING defines output parameters. When calling the method, you can specify an appropriate actual parameter for every output parameter. The content of the output parameter - which is defined for value transfer - is passed to the actual parameter at the call after the method has been completed successfully.
    Note
    An output parameter that is defined for the reference transfer is not initialized when the method is called. Therefore, no read access to it should take place before the first write access.
    Addition 3
    ... CHANGING parameters
    Effect
    CHANGING defines input/output parameters. When calling the method, you must specify an appropriate actual parameter for every non-optional input/output parameter. The content of the actual parameter is passed to the input/output parameter at the call, and after the method has been completed, the content of the input/output parameter is passed to the actual parameter.
    Example
    The method read_spfli_into_table of this example has an input and an output parameter, which are typed fully by reference to the ABAP Dictionary.
    CLASS flights DEFINITION.
      PUBLIC SECTION.
        METHODS read_spfli_into_table
           IMPORTING VALUE(id)  TYPE spfli-carrid
           EXPORTING flight_tab TYPE spfli_tab.
    ENDCLASS.
    Addition 4
    ... RAISING exc1 exc2 ...
    Effect
    Use addition RAISING to declare the class-based exceptions exc1 exc2 ... that can be propagated from the method to the caller.
    For exc1 exc2 ..., you can specify all exception classes that are visible at this position and are subclasses of CX_STATIC_CHECK or CX_DYNAMIC_CHECK. You must specify the exception classes in ascending order corresponding to their inheritance hierarchy.
    Exceptions of the categories CX_STATIC_CHECK and CX_DYNAMIC_CHECK must be declared explicitly, otherwise a propagation results in a violation of the interface. An interface violation results in a treatable exception CX_SY_NO_HANDLER. Exceptions of category CX_NO_CHECK are always implicitly declared.
    Notes
    The declaration of exceptions of category CX_STATIC_CHECK is checked statically at the syntax check. For exceptions of category CX_DYNAMIC_CHECK, the check is executed at runtime.
    In a method in which class-based exceptions are declared with the addition RAISING, you cannot use the statement CATCH SYSTEM-EXCEPTIONS. Instead, handle the relevant treatable exceptions in a TRY control structure.
    Example
    In class math, you can propagate all exceptions represented by class CX_SY_ARITHMETIC_ERROR and its subclasses from within method divide_1_by. If, for example, the input parameter operand is filled at the call with the value 0, then the exception CX_SY_ZERODIVIDE is triggered, propagated, and can, as shown in the example, be handled by the caller in a TRY control structure.
    CLASS math DEFINITION.
      PUBLIC SECTION.
        METHODS divide_1_by
           IMPORTING operand TYPE I
           EXPORTING result  TYPE f
           RAISING   cx_sy_arithmetic_error.
    ENDCLASS.
    CLASS math IMPLEMENTATION.
      METHOD divide_1_by.
        result = 1 / operand.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
    DATA oref TYPE REF TO math.
    DATA exc  TYPE REF TO cx_sy_arithmetic_error.
    DATA res  TYPE f.
    DATA text TYPE string.
    CREATE OBJECT oref.
    TRY.
        oref->divide_1_by( EXPORTING operand = 4
                           IMPORTING result = res ).
        text = res.
      CATCH cx_sy_arithmetic_error INTO exc.
        text = exc->get_text( ).
    ENDTRY.
    MESSAGE text TYPE 'I'.
    Addition 5
    ... EXCEPTIONS exc1 exc2 ...
    Effect
    Use addition EXCEPTIONS to define a list of non-class-based exceptions exc1 exc2..., which can be triggered with the statements RAISE or MESSAGE RAISING in the method. You specify identifiers exc1 exc2 ... for the exceptions to be defined at will and directly. Exceptions defined in this way are bound to the method - similar to formal parameters - and cannot be propagated.
    If such an exception is triggered in a method and no return value has been assigned to it in the addition EXCEPTIONS of the CALL METHOD statement in the method call, then a runtime error occurs.
    Note
    The additions RAISING and EXCEPTIONS cannot be used simultaneously. For new developments starting at release 6.10, we recommend to use class-based exceptions, which are independent of the respective method.
    Example
    In the class math, for method divide_1_by an exception arith_error is defined, which is triggered in the method with the RAISE statement if an arithmetic error occurs. If, for example, the input parameter operand is filled with value 0 at the call, the exception arith_error is triggered in the method-internal handling of exception CX_SY_ZERODIVIDE and handled after the call of the method by evaluating sy-subrc.
    CLASS math DEFINITION.
      PUBLIC SECTION.
        METHODS divide_1_by
           IMPORTING  operand TYPE I
           EXPORTING  result  TYPE f
           EXCEPTIONS arith_error.
    ENDCLASS.
    CLASS math IMPLEMENTATION.
      METHOD divide_1_by.
        TRY.
            result = 1 / operand.
          CATCH cx_sy_arithmetic_error.
            RAISE arith_error.
        ENDTRY.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
    DATA res  TYPE f.
    DATA oref TYPE REF TO math.
    CREATE OBJECT oref.
    oref->divide_1_by( EXPORTING  operand = 4
                       IMPORTING  result  = res
                       EXCEPTIONS arith_error = 4 ).
    IF sy-subrc = 0.
      WRITE res.
    ELSE.
      WRITE 'Arithmetic error!'.
    ENDIF.
    Regards.

  • Import container contains errors

    hi experts
    my Obj Type : BUS2012
    task :TS20000166
    workflow :WS2000075
    my workflow for PO is working fine.in outbox one mail which shows no errors in work flow log & everything is fine.
    but still am getting error mail in my inbox as
    still my workflow is working properly
    what will be the efffect for this
    Error processing following event linkage:
    BUS2012 RELEASESTEPCREATED WS20000075
    Following error occurred:
    SWF_RUN 594
    Message text:
    Import container contains errors (are any obligatory elements missing?)
    Event container appended as attachment.
    Event linkage not changed.
    Event stored temporarily.
    Events can be redelivered via event queue
    administration (transaction SWEQADM).
    nani

    hi balaji
    i did same config for both PR, PO
    both are working properly
    but for PO only y am getting this message in my inbox
    Error processing following event linkage:
    BUS2012 RELEASESTEPCREATED WS20000075
    Following error occurred:
    SWF_RUN 594
    Message text:
    Import container contains errors (are any obligatory elements missing?)
    Event container appended as attachment.
    Event linkage not changed.
    Event stored temporarily.
    Events can be redelivered via event queue
    administration (transaction SWEQADM).
    nani

  • Importing multiple values to drop-down list

    Hello is it possible to past or import multi values to a drop-down menu when creating a form?

    Here's a simple demo that demonstrates populating a dropdown with items pasted in a text field: https://workspaces.acrobat.com/?d=sIJoabh12oYOY19AuTZ9yw
    You are meant to copy & paste the resulting dropdown so it can be used in different form.

Maybe you are looking for