How to give Container Elements for FM EWW_WORKFLOW_START

hi experts,
i am new to workflow,
i am using the FM EWW_WORKFLOW_START to start a workflow.
my issue is that i am using the std BO BUS2017
i am not getting the element name that i need to pass to the container.
When i see in SWDD it shows
Import Parameter BUS2017 in the list of workflow container elements. but when i pass the OBJKEY: materialDocument and matdocumentyear like
concatenate '5000000305'  '2009 ' into text1.
swc_set_element   t_cont  'BUS2017' text1 .
its not getting passed to the workflow.
but i added 2 new elements mblnr and year to the container and i pass it , it gets passed.
how can i know the exact Element name?
or where could i be wrong?
thanks and regards,
Gunj M.

Hello,
Here's some sample code of how to pass an object:
INCLUDE <CNTN01>.
data: lv_rc like sy-subrc.
data: lt_messages type standard table of SWR_MESSAG.
data:
begin of lv_object_instance,
  objtype type swo_objtyp,
  objkey  type swo_typeid,
end of lv_object_instance.
* Define the container
swc_container lt_wf_cont.
* Create the container
swc_create_container lt_wf_cont.
* Clear the container (not necessary here)
swc_clear_container lt_wf_cont.
lv_object_instance-objtype = 'FORMABSENC'.
lv_object_instance-objkey = '0000000088'.
lt_wf_cont-element = 'ABSENCEFORM'.
lt_wf_cont-value = lv_object_instance.
append lt_wf_cont.
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
   TASK                     = 'WS30000015'
*   LANGUAGE                 = SY-LANGU
   DO_COMMIT                = 'X'
*   USER                     = SY-UNAME
*   START_ASYNCHRONOUS       = ' '
*   DESIRED_START_DATE       =
*   DESIRED_START_TIME       =
*  IMPORTING
   RETURN_CODE              = lv_rc
*    WORKITEM_ID              = lv_wfid
*    NEW_STATUS               = lv_wistat
TABLES
   INPUT_CONTAINER          = lt_wf_cont
   MESSAGE_LINES            = lt_messages
*   MESSAGE_STRUCT           =
*   AGENTS                   =
regards
Rick Bakker
Hanabi Technology

Similar Messages

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • How to determine worklfow container element  for BUS2031?

    Hai,
    I am new to W/F. I would like to know how to detemine workflow container element  for Customer Quotation generated(BUS2031)- [event] created.ie based on what?
    Example :&Jquotation&,&JtransactionCode& etc.....
    any screen shot docu for binding/import/export purpsoe.
    Points will be given.
    With Regards,Jaheer

    Hai Aditya,
    Thanks for your reply.
    yes . I want to know what base we can create container element.
    Flow is like this :somebody create quotation , it will for manager approval & finally goes(mail) to customer.
    For this I am using object type BUS2031. Now I want to create w/f container element(in workflow template).From BUS2031(customer quotation), I understand that I need to create one w/f container as &Quotation&.what are others container element I have to create. This is my questions.
    I hope now it is clear.
    If you have any workflow documents/sample please send it to me [email protected]
    With Regards,Jaheer.
    -Jaheer

  • Container element for Count in Parallel Approval Workflow

    Hi Gurus,
    We are using ECC 6.0 and I have this below requirement. Please share your thoughts on how we can achieve this.
    We are using a User decision step in parallel workflow to generate and send individual work items to multiple approvers. that is, we generate multiple work items and send to individual approvers for the same step in the workflow and get the combined result (Approve or Reject) to proceed further. I understand that individual result for each work item is stored in container element '_RESULT' (0001 for Approve, 0002 for Reject) and combined result of all the sub-work items is stored in '_WI_RESULT' (0001 for Approve, 0002 for Reject). Also, we can see the index # of work items generated for the same step (node) from container element ''_WF_PARFOREACH_INDEX'.
    My requirement is to set work item to COMPLETED status after we obtain a certain # of APPROVE (_RESULT = 0001) decision. Let's say, after 2 of the approvers say Ápproved', then I'd like to close all the other relevant work items and set the Combined result '_WI_RESULT'to APPROVE and Complete the relevant work item. I was wondering if there is a container element that holds the (count) # of work items generated in individual work item container so that I can keep reading this value to see how many decisions have been made. That is, for example, If there are 3 parallel work items generated and 1st user said Äpproved',  is there a way to know out of a total of 3 approvals (to get the combined result '_WI_RESULT'), one is completed and 2 approval decisions are still pending. I'm trying to use step-level Pgm Exit (After_execution Method) to read this container element for # of approvals done and if the combined result '_WI_RESULT'is '0001'(Approve), i'll try to end other work items. One way of doing is to have a custom table to capture this and keep reading this table after each decision. But, I don't want to have all this customization and I believe there should be a way the SAP is storing somewhere this # of completed or Pending approval work items that got originated from a single step/node. One way of doing could be, after each decision, read the dependent work items (having same node # and Parent Work item etc.,) and get the other relevant work items and read their status etc., But I think this is a lengthy process and may be there is an easier way, perhaps some container element that holds this information.
    Please let me know if you need any clarification on my requirement and share your thoughts on how I can achieve easily.
    Appreciate and thank you in advance for your help.
    Regards,
    Venu

    Hi Karri,
    Thank you for your reply. I was actually doing the same with having an APR_COUNT and passing that for each of individual work items and bind it back to task--> wflow container. And keep checking this counter in wf container.
    Once, we obtain certain # of approvals, then I guess I'll have to complete or cancel the other work items.
    I was thinking may be there is some container element already exists that keep track of this, I guess not .
    Thanks for your input
    Regards,
    Venu

  • Workflow: check multiline container element for emptiness

    Hi!
    Please suggest how to check multiline workflow-container element for emptiness in condition block.
    Regards,
    Maxim.

    Hi Max,
    One way to do this is to add a process step which calls a function module passing the multiline container as the import parameter. In this function mod, you can check for emptiness and set a variable which will be the export parameter. Map this export parameter of the step to a workflow container field. Finally in the next step (control block) you can check the above workflow field.

  • How to give  Value set for model attribute?

    Hi all,
           How to give value set for model attribute?
           plz explain me with some sample code.
    Regards,
    Srinu

    Hi Srinivasulu,
    An attribute (of basic data types like integer , string etc) holds a single values.
    Please clarify by what you mean value set ?
    Also, share the structure of context.
    Regards,
    Kartikaye

  • HOW TO GIVE EXTERNAL NUMBER FOR ORG UNIT

    HOW TO GIVE EXTERNAL NUMBER FOR ORG UNIT
    Regards,
    Kumar

    HAI..
    External number assignment
    If you want the user to assign the numbers, enter "EX" in the 'NR' field. The number ranges are then indicated by the letters "EX".
    Number assignment for plan version 10 / object type S: Subgroup 10S

  • How to give user authorizations for a Program or an ICF service

    Hi,
       1)How to give user authorizations for a report program or an ICF service.
       2)How to create an user authorization object.
    Regards,
    Vinay.

    check this online help for more info on authorization object creation
    http://help.sap.com/saphelp_nw04/helpdata/en/52/67168c439b11d1896f0000e8322d00/frameset.htm
    for question no1.
    ICF - you either maintain the auth obj relevant at the icf service level itself or you can code call authority object and block access
    for abap programs:
    you maintain auth object at the tcode or code the call authority object within the program
    Regards
    Raja

  • How to Initialize Container Element in BPM..No Payload found

    Hi All,
    How do we initialize a container element in BPM if that container element is a message Interface.
    I am doing exception handling in BPM, so whenever a exception occurs i need to send a mail.
    So in the exception box i have a transformation step and a send step.
    In the transformation step what will be my source message?
    How do i initialize that source message?
    What i have done right now is created a dummy interface(abs) for source and then mapped with the target abs interface.
    When i execute the schenario,in the monitor i find in the Transformation step the following error
    <i>No payload found.</i>
    Regards,
    Sumit

    Hi Pinto,
    I too agreee. Lemme try to explain witha example.
    In my first transformation, MI_MAIL_TEMP_ABS is there along with 3 other interfaces. Each one is getting mapped i can see that in monitoring.
    Now in the exception branch in transformation step,
    i am mapping MI_MAIL_TEMP_ABS to MI_MAIL_ABS.
    Now in the send step im giving MI_MAIL_ABS as the interface name.
    Do you see anything wrong with this?
    <i>>>>>>>>Did you try to do outbound interface -> inbound interface mapping in the exception branch? Just to try to make your scenario work. Then you can investigate further on why the abs message is not being carried away.</i>
    Which outbound interface & inbound are you talking about?
    Regards,
    Sumit
    Message was edited by: Sumit Khetawat

  • How do I install Elements for Windows 7 PC with 64 bit? Get error message - file archive part missing

    We purchased Elements 12 and Premiere Elements 12 on September 7, 2014 and have tried a variety of things including searching through FAQs on the Adobe site, etc. etc. and cannot get our downloads to work. We are avid computer users and have never had problems downloading software before.
    From our account under "orders" - I have tried clicking on the Akamai download manager and the Alternate Download Method on for each application with the same results.
    We have a Windows 7 PC with a 64 bit operating system and Internet Explorer 11.
    On all attempts we get an Adobe screen with 2 links – 1 for a file ending in .7z and a 2nd file ending in .exe.
    I click on the first file and confirm the download completes at 100% (not paused, etc.) and is in the downloads folder for my user name on the PC.
    I click on the 2nd link for .exe and I receive the error message below – 2nd screen shot – “file archive is missing” all folders/files must be in same folder.
    So I see it’s a winzip file (as a winzip pop up folder had come up also) so I download the free version and unzip the files in the same downloads folder under my user name to try that.
    I click on .exe file link again and same message. I tried copying the files directly to the downloads folder (as they all unzipped into a subfolder called PSE 12 and tried clicking on .exe again but get the same message.
    For Premiere I tried the same and got same results on the 64 bit version download.
    I do not know how to access the software we purchased.
    Any help or advice is appreciated.
    Also - if anyone knows how I can contact Adobe for a full refund so I can just buy the boxed software instead - that would be helpful as well as that is not easy to find online either.
    Thanks!
    Ariel

    I get an error message saying that the quicktime installer will only work on 32 bit
    The QuickTime player works on 64-bit systems. (It's a 32-bit application, but it should run fine using the standard 32-bit-on-64-bit Windows-on-Windows emulation.)
    What's the precise text of your installation error message, dc? (There one or two different ones I can think of that might mention 32-bit)

  • How to get Cost element for a component in co03 cost analysis report

    Hi,
    I'm using table COSP to find the quantity for a production order component.  However, I need to identify the cost element first to get the unique data.  In CO03 cost analysis report, there is cost element for the component.  Does anyone know how to get it ?
    Thanks.

    CSKA stores the basic info about the cost element
    There is no data in CSKB.
    I'm trying to use different tables to get the cost element.
    AUFK, AFKO, AFPO, RESB, ...but no luck...

  • Container element for number of deadlines missed

    Hi,
    Is there a container element already available in which the number of deadlines missed is registered for a dialog step ?
    Meaning if deadline is kept for 2 days then container will increment every two days ?
    thanks
    Dipti

    Not unless you create one and make sure it gets populated.
    Regards,
    Martin

  • How to give validity period for tax codes

    In fv12 menu the validity period in display mode how to change and give validity period for a tax code

    in fv12 you can change the validity period and for the new validity period maintain another record in fv12
    Validity from and  to by changing the old validity period upto when that is applicable

  • How to give valid period for tcodes

    Hi all,
             i have a question how to give a valid period for tcodes.
    Thanks&regards,
    rani.

    You can't.
    You can set validity dates for roles - you do this in the roles section of the user master record
    If you need a t-code to be locked for <b>everyone</b> for certain periods then you can look into a custom prog that uses tx SM01, though it usually is not a worthwhile control to mitigate the particular risk.

  • How to give "SubclassInformation" property for item

    Hi,
    How to give "SubclassInformation" property value for an item.Please help me to resolve this problem.Thanks in advance.
    Regards,
    Tharini.

    Hi Tharini,
    To set a subclass information to an item in its property pallet, create a property class local to the form, or subclass/copy an existing property class from an Object group to the form and make use of it.

Maybe you are looking for

  • Nokia update PR1.1 - Nokia N8

    Hi guys! Does anybody can tell me if the update PR1.1 is available for every countries? My N8 can not find new updates (still on PR1.0) and I would like to know if this is a problem of my phone settings. Thanks for the info. Regards Solved! Go to Sol

  • Start clusterware (CRS) without starting instance in a node

    version ==> 11.2.0.1 os : Solaris 5.10 Using #$GRID_HOME/bin/crsctl start crsI can start CRS in a node. But , i don't want to start the instance in this node. I just want to start the clusterware and ASM instance in this node. Any idea how i can do t

  • Will installing PS4 and ACR 5 wreck my current PS3 and ACR 4?

    If I installed PS4 (and of course ACR5) into a separate directory in my hard drive, will that stop my current copy of PS3 and ACR4 from working? I don't mind if new versions takes over the file extension associations, but will it totally corrupt my c

  • NiFgen Close.vi function call error

    I'm trying to use my PXI-5411 with a fresh install of NI-FGEN 2.0 in LabVIEW 6.1 on Windows 2000. I'm getting an error in "niFgen Close.vi", though: "The function name specified for this node cannot be found in the library." It appears that the funct

  • Airport Assigning wrong IP's sorta

    Alrighty, I have a powerbook, airport extreme, and a XP service pack 2 PC. My airport is set to distibute the IP addys on the 10.x scheme. What was happening at first was my laptop was getting assigned 10.0.1.2 and working fine. The PC though was say