The source and target structure have a different number of fields

Hi,
I am new to workflow and I am trying to create an attachment in Workflow (SAP ECC 6.0) and pass it through to a User Decision (User Decision works fine) however the workflow is failing on the attachment step with u2018The source and target structure have a different number of fieldsu2019. The bindings check ok. Please see details below.
I have used document u2018Creating Attachments to Work Items or to User Decisions in Workflowsu2019 by Ramakanth Reddy for guidance. Thanks in advance.
1) Workflow containers (SWDD)
WORKITEMID (import)
ZSWR_ATT_ID (export)
SOFM (export)
2) Task Container (PFTC)
1 Import parameter defined u2013 WORKITEMID (swr_struct-workitemid)
2 Export parameters defined
- SOFM (Ref. obj. type SOFM)
- ZSWR_ATT_ID  (swr_att_id-doc_id)
Binding task -> Method
Binding for 1 parameter (import) defined
Task <- Method
Binding for 2 parameters (export) defined
3) Z  BOR object created with a Method, Method Parameters and Event (SWO1)
1 import parameter defined
2 export parameters defined
Method calls FM SSF_FUNCTION_MODULE_NAME, CONVERT_OTF, SCMS_XSTRING_TO_BINARY and SAP_WAPI_ATTACHMENT_ADD
Workflow is triggered by FM SAP_WAPI_CREATE_EVENT, Return_code = 0
Event_id = 00000000000000000001
Test results
A) Triggered by ABAP/ FM SAP_WAPI_CREATE_EVENT - SWI2_DIAG results
Work item  14791: object <z bor object name> method <method name> cannot be executed. The source and target structure have a different number of fields (this message is repeated 3 times). Error handling for work item 14791. No errors occurred -> details in long text (message is repeated 3 times).
Message no. WL821, OL383, WL050 in long text
B) Z BOR Test method <execute>
Enter workitem id.
Runtime error - Data objects in Unicode programs cannot be converted. The statement "MOVE src TO dst" requires that the operands "dst" and "src" are convertible. Since this statement is in a Unicode program, the special conversion rules for Unicode programs apply.                                        
In this case, these rules were violated.   
Program                             SAPLSWCD                
Include                                LSWCDF00                
Row                                    475                     
Module type                        (FORM)                  
Module Name                      MOVE_CONTAINER_TO_VALUE           
C) Z BOR Test method <debugging>
Enter workitem id.
SAP_WAPI_ATTACHMENT_ADD, return_code = 0, message_lines  = Attachment created            
both  swc_set_element container work ok
Runtime error occurs after end_method executed. Data objects in Unicode programs cannot be converted.
D) Workflow test
Enter workitem id <execute>
Task started> Workflow log> Status = Error
Workflow errors in Attachment step (however Office document can be viewed in details for step).

Problem has now been resolved. Problem was related to use of swr_att_id structure and swc_set_element statement in BOR program - problem resolved by only setting w/f container to swr_att_id-doc_id.

Similar Messages

  • LMDB - SLD "Source and target system have the same object server name"

    Hi,
    the system is a SM7.1 SP1
    For some reason (Object-Server-Name changed), the job that syncs the sld and lmdb cancels...
    I set the LMDB-Object-Server-Name to its original Name...
    Now i've deleted the sync-config in the solman_setup and try to start a new sync, but i get the following error, when i try to configure the source-system:
    'Source and target system have the same object server name: CISM318'
    But the names are different: 'SM3' (LMDB) and 'CISM318' (SLD)
    Any suggestions ?
    best regards
    Christoph
    Edited by: Christoph Bastian on Aug 26, 2011 9:37 AM
    Edited by: Christoph Bastian on Aug 26, 2011 11:18 AM

    problem solved...
    Apparently the sync needs some hours to finish a object-server-name-change...
    best regards
    Christoph

  • How to find the source and target systems of an imported Transport Request?

    Hello,
    How to find the source and target systems of an imported Transport Request?
    chinna.

    Hi Chinna,
    In your landscape the TMS must have configured.Let assume that you have four six systems in the land scape.
    DEV->DEV1->QUA->PRD and other two systems (TR1 ,TR2)are at different domain amd both are connected to QUA and the requests are forwarded from there.Here normally the flow willl be from DEV to DEV1, then DEV1 to QUA and QUA to PRD.For other two systems (TR1 ,TR2 )the source system will always be QUA.
    Regards
    Ashok

  • Connecting the source and target schemas to ODI

    Hi ,
    I have recently started learning ODI tool for data integration. I need to use this tool as a part of Deal Management product related work.
    I have gone thru the documentation available in OTN for ODI. they were describing everything using the demo environment.
    problem:
    Can any one please tell me how to connect source schema and target schema to the ODI ...?
    Both the source and target schema are in the Oracle database of the loaclhost.

    Hi,
    Right Click ur Dataserver , In the bottom u will have option insert physical schema.
    Click that u will have window opened........
    In the Definition Tab:
    Specify ur Schema name and Work schema .......u r going to use .
    Enable the default option also....
    In Context Tab:
    Specify ur context Name and Type in the Name u want to have for ur logical Schema, it autmatically creates the logical schema ...for u.
    and click ok .
    hope it helps u.....
    Thanks
    AK

  • Can we create the Mapping program,when source and target structures same?

    Hi Friends,
    if we have the same structure at source side and target side:
    1) Is it necessary to create the mapping program?
    2) If no need of mapping program what you will mention in the Interface Mapping?
    3) In ID part which objects no need to create when both structures are same?
    Regards,
    Naidu.

    Hi
    >1) Is it necessary to create the mapping program?
    No need to create mapping if both structure identical in all respects.
    >2) If no need of mapping program what you will >mention in the Interface Mapping?
    Dont define mapping and iterface mapping.
    >3) In ID part which objects no need to create when >both structures are same?
    You cannt assign a interface mapping as it is not defined in IR. leave that as interface mapping is not mandatory in Interface Determination Step.
    Thanks
    Gujjeti

  • I have source and target structures like thais how to map

    source structure: name
                              id
                              addr
                              description
                              details
                              dept
    target structure:   name
                              id
                              addr
                              dept

    source structure:                 target structure:
                           1...1
    name        _____________     name
                           1...1
    id              _____________     id
                          1...1
    addr          _____________    addr
    description        <no mapping>
    details              <no mapping>
                         1.....1
    dept        _____________       dept
    Thanks,
    Varun

  • No mapping for Same structure in source and target

    Hi Experts,
    I want to transfer the source structure to two receivers . Here source and target structures are same so i dont need mapping.
    My question is how many DT,MT and MI required .. mapping required or not.
    Thanks in Advance
    CS

    hi  CS,
                 here in  your  scenario as  u  have  told  that  source  and reciver  are of  same  structure . definitely you didn't need  any  mapping . and you have to create two data type(one for sender and  one for receiver) , two message  types(one for sender and one for receiver)) , and  two message  interfaces(one for sender and one for receiver).
    while creating message types it asks for data  type and while creating message interface it asks for message type only . as the structures of sender and receiver are same then inspite of having two receivers  we  have to create  ony one message interface on sender side . later the adapter will take  care of further proceedings
    but  in  case of configuration you have to import three business systems . one for sender and  two for receiver systems . and  you have to configure the communications  channels  accordingly. as per the receivers accepting the structures you have to use the relevant adaptors .

  • Can source and target tables be the same

    Hi there,
    I need to restate profit center column in the delivery fact table. Historical Profit Centers need to be populated since today is the first time we brought in Profit Center field from LIPS table. The source for the delivery fact table is SAP LIPS table. so what I did is:
    joined the LIPS and delivery fact table on (LIPS.delivery number = deliveryfacttable.delivery number & LIPS.delivery line item number = deliveryfacttable.delivery line item number) to get the profit center.
    So the source and the target delivery fact table are the same. Is this a good practice becuase Data services warns me that the source and target tables are the same.
    Please let me know a better alternative approach to this OR a better approach to restate fields for historical data. Thanks in advance.
    Regards,
    samqiue

    Arun,
    actually the LIPS resides on another server and in order to fetch data I have to write an R3 ABAP data flow, so I cant use it directly in a lookup.
    Except what Im thinking based on your reply to use a lookup table is: that I will extract 3 colums (delivery number, delivery line item number and profit center) to a table and then use the lookup.
    Thanks.
    Regards,
    samique

  • Capturing the DML changes on the source and writing to a temporary table

    Am trying to set up a change data capture where both the source and target would be the same database.
    like in my case i would like to capture changes from a table schema.xyz in a orcl database and write it to a temp table within the same database. My concern here is , the table schema.xyz is already replicating to a different database on a different server.
    Any ideas on how this can be achieved?
    I thought of setting up a different extract process and capture the changes and write to the temp table , but not sure if this is manageable.
    Thanks,
    Venky.

    Just tap into the existing trail if the change data is already there. There's no need to have a second extract in that case. So ADD REPLICAT and specify the EXTTRAIL the same as the EXTTRAIL for the redo log extract.
    OGG won't pick up truncates by default. If the row is gone before the update arrives at the target table then you can use INSERTMISSINGUPDATES. When using this parameter make sure that you add supplemental logging (ADD TRANDATA) for columns that you need but that may not be updated (e.g. target columns with NOT NULL or FK constraints).
    Good luck,
    -joe

  • R3AC1- Object Bus_Trans_Msg source and target sites missing

    Hi,
    In the Txn code: R3AC1 for the object Bus_Trans_Msg we need to enter the source- CRM and target site-R/3 under the tab Initial flow settings which is not editable.
    when we do initial download of this object in txn:R3AS if throws an error.
    Please let me know how we can enter the source and target site for the object-bus_trans_msg .
    Regards
    Prathiba

    Hi Srinivas,
    Thank you for your response.
    I have changed the object class to Customizing but not sure which Linked Bdoc needs to be selected.
    Please let me know the Linked bdoc and Object class that needs to be selected in order to edit the flow contexts.
    Regards
    Prathiba

  • File Server Migration Source and Target Data Validation

    Does anyone know of a power shell script/CLI command  or some other way to verify source and target data after a file server migration?  I want to make sure that the shares that are migrated from the source and target are an exact match. Thank
    you.

    Hi,
    An example is provided in this article:
    http://blogs.technet.com/b/heyscriptingguy/archive/2011/10/08/easily-compare-two-folders-by-using-powershell.aspx
    $fso = Get-ChildItem -Recurse -path C:\fso
    $fsoBU = Get-ChildItem -Recurse -path C:\fso_BackUp
    Compare-Object -ReferenceObject $fso -DifferenceObject $fsoBU
    And actually Robocopy could also do this job with /L and /log:file parameter. 
    If you have any feedback on our support, please send to [email protected]

  • Master Data ------  Source and Target Mapping

    I want to know the source and target mapping of some master data elements like plant,vendor,customer,workcenter.
    Where can I get it. Please provide the relevant documents or links.

    Hi,
    Check in RSOSFIELDMAP table.
    Thanks
    Reddy

  • Is it possible to have source and target schema in the same DB instance ?

    Hi All,
    I'm using Oracle 11gR1.
    I have switched source locations from other server to the one with OWB.
    During deploy I get VLD-3064 and I can't deploy mapping because of many 'table or view does not exist' warnings.
    Is it possible to have source and target schemas in the same instance ??
    How to do it ?
    Regards,
    Martin

    Hi Jörg,
    Thanks for your help and quick answer.
    I'd like to clarify a little your answer :
    1. Are the any special privilages I need to set ? Currently I have only 'RESOURCE' and 'CONNECT' (I think I didn't have to add any other privs when that schema was located on other instance...)
    2. Also VLD-3064 states that : 'Owning and referenced location of this connector are on the same database instance. Unless explicitly referenced in configuration settings no generated code will use the dataabase link resulting from deployment of this connector'. Does it mean I have to put something in configuration ?
    Thanks,
    Martin

  • Standby Database on a Source and target of different endian formats

    Hi
    I have a this well know case where the source server and target server are with different endian formats. I want to implement a Data guard 11g in this enviroment. How can I do to implementing having the issue of the different endian formats.
    Thanks

    Here is the answer.... for your learning....
    Checking the Database Before Cross-Platform Database Conversion
    As explained in "Basic Concepts of Cross-Platform Data Transportation", you can use the RMAN CONVERT DATABASE command to automate the copying of an entire database from one platform to another.
    Before converting the database, see the list of CONVERT DATABASE command prerequisites described in Oracle Database Backup and Recovery Reference. Confirm that you meet all these prerequisites before attempting the procedure in this section.
    One prerequisite is that both the source and destination platform must share the same endian format. For example, you can transport a database from Microsoft Windows to Linux for x86 (both little-endian), or from HP-UX to AIX (both big-endian), but not from HP-UX to Linux for x86 (big-endian to little-endian).
    Note:
    If you cannot use the CONVERT DATABASE command because the platforms do not share endian formats, then you can create a new database on a destination platform manually and transport needed tablespaces from the source database with cross-platform transportable tablespaces.

  • Issue in mapping the same source and target fields

    Hi All,
    I am working on PI 7.0 and currently I am connecting to PI 7.0 via citrix desktop . Problem here is : in the mapping , direct mapping option that is available to map the same source and target fields is disabled . I do know that this is due to some java version issue .
    What I want to know is there any possibilty of solving this issue without installing an updated java version ?
    Regards
    Vinay P.

    I've faced the same for many times and all of that were due to Java version.
    1st of all, you have to check the authorizations you have. If you have enough (DEVELOPER_J2EE, CONTENT_ORGANIZER_J2EE, and so), and - obvious but very often forgotten - you have to assure you're trying to change it in the message mapping change mode On.
    Then, last shot should be downgrade your Java version.
    The 1.4.2 JRE version allow you to use not only the Mapp the Identical field but also Dependencies, Clear Mapping and some other tools/buttons. As mentioned above, if there's a fix in the new Java releases, I do not know (hope so) and would appreciate if you could let us know.
    Tks.

Maybe you are looking for

  • How to Install Oracle 10g in SLES 10 32 bit

    Hello Guys, I was intalling oracle 10g in SUSE LInux Enterprise Server 10, but i always have an error.. Is there someone who can have and give a manual on how to install oracle 10g in SLES10? ANd some linux shell scripting manual..?

  • CDATA

    hello i have a problem with parsing a CDATA inside XML SELECT t.EXTRACT('//COMMENT/text()') .GETSTRINGVAL()  COMMENT INTO COMMENT_TEST FROM TABLE(XMLSEQUENCE(EXTRACT(ac_XML_INPUT, '/RECSET/REC'))) t;I have <RECSET>       <REC>                  <COMME

  • Why not use notifyall

    now I'm reading this book "Java Threads 2nd edition" by Scott Oaks and Henry Wong. Writer provide a class called BusyFlag to simulate the mutex. I wonder why not use notifyall() to replay notify(). public class BusyFlag {      protected Thread busyfl

  • Switching between LinkedList and Array

    Hi, I'm new to OOP and Java so please bear with me. I've been given an assignment to code my own collection similar to the Java Collection. It has to have sorted arrays, unsorted arrays, sorted linked lists and unsorted linked lists. Basically, the u

  • Odd Date Picker Error.

    I have a program that is going out into production, and on any of the date pickers, I'm getting the error: The requested URL /apex_030200.wwv_flow_utilities.show_as_popup_calendar was not found on this server Let me give two pieces of back story on t