Required Data Elements

Hi
I am working on a Proxy to Web service scenario in PI 7.1 Version
I have SAP Pre defined message on Source side, and External Parter Message on the target side,
Some of the data elements on the Target side are required fields, I am passing the values to Required Data elements based on the certain condition,
For example: If Category code which is on the source side is 2 then I am passing the Organization First name:Second name to Commerical name which is required Data element on the target side, If the Category code is other than 2 then I am moving the Blanks to Required field, and eventually I am receing the following error
Please let me know what value I can assign to the required fields in the exceptional Case, (i.e if the category code is other than 2)
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Request Message Mapping
  -->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
  <SAP:Category>Application</SAP:Category>
  <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
  <SAP:P1>com/sap/xi/tf/_MM_ECC_Claimsinfo_to_ISO_</SAP:P1>
  <SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2>
  <SAP:P3>on: Cannot create target element /ClaimInvestigati</SAP:P3>
  <SAP:P4>onAddRq/ClaimsParty/GeneralPartyInfo/NameInfo/Com~</SAP:P4>
  <SAP:AdditionalText />
  <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_ECC_Claimsinfo_to_ISO_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ClaimInvestigationAddRq/ClaimsParty/GeneralPartyInfo/NameInfo/Com~</SAP:Stack>
  <SAP:Retry>M</SAP:Retry>
  </SAP:Error>
Thanks a lot for the inputs
PR

I am using Blanks in the Constant Map (  ). Not any values, If I assign any constant value then the error will not occur
Without assigning any Values how can I get rid of this error 
Thanks
PR

Similar Messages

  • How to control required and optional data elements

    I am developing a web service using a stateless EJB. By default, when I use servicegen, the WSDL contains nillable="true" for all elements. How can I modify my EJB code so I can specify which elements are required vs optional?
    Thanks.

    Hi,
    Use Function Module READ_TEXT to retrive the long text.
    Pass below values for parameters
    text name - <data element name>
    text id - 'TX'.
    text object - 'DOKU'.
    <b>Reward points for helpful answers</b>
    Satish
    Message was edited by:
            Satish Panakala

  • Adding new data elements to Org Modeler.

    We are trying to add 4 fields to the org Modeler. However it is nowhere to be found like in the orgchart.
    Org Modeler 3.0 SP2
    PA0001, PA0008, HRP1005 and HRP1008. (also linking to the texts in T001P, so we will require a table inner join)

    Hi Wade,
    In order to get the fields in OrgModeler scenarios you need to make sure that your hierarchy data element in the Source OrgChart contains all fields that you want. For this I recommend creating a NakisaRFC function for the additional data, creating a data element for it and then creating a linked data element to link together the new data element and the existing hierarchy data element. There is no data center in OrgModeler so you will need to do this manually.
    Best regards,
    Luke

  • How to make BI Info obj Data element in-herit source DE documntn?

    Say I am in ECC. I go to SE11, give table name MARA and then doubleclick on the dataelement 'MATNR'. Then I click on documentation. I get a popup with Short text " Material Number" and Definition "Alphanumeric key uniquely identifying the material'.
    I am interested in the latter information that is 'Definition' - & in general whatever documentation comes up for data element in ECC.CRM.SCM,SRM.
    Now I log into SAP BI. I find that under characteristic 0Material, the data element is /BI0/oimaterial. When I double-click this datamaterial and press the documentation button, the system says 'No documentation'.
    My Questions:
    1. IS there a switch we could turn on in source ECC/SRM/CRM/SRM so that the data element in SAP BI inherits the original source field data element documentation.
    { I am not too convinced of the argument- that in BI we have info objects in ECC we have fields - since I am talking of data element level information- I would tend to think of this as an oversight of the designers or de-prioritization !!}.
    2. Could we have an ABAP workaround? That is, in BI we identify the tables that house the mapping between the source and destination data elementsa and take out this information. Then we extract the dataelement documentation by function DOCU_GET (from eCC) and use the mapping info above to link SAP BI data element with source data element documentation.
    WHY do I want to punish myself as above? My use case is, we take out SAP BI Table, field, metadata etc and create a model in a modeling tool and physical implementation in a 3rd party DW database as our own canonical, application-agnostic corporate datawarehouse. I would want the source data element documentation to flow to this last system as well as the modeling tool.
    Regards
    Sasanka

    That is, in BI we identify the tables that house the mapping between the source and destination data elementsa and take out this information. Then we extract the dataelement documentation by function DOCU_GET (from eCC) and use the mapping info above to link SAP BI data element with source data element documentation.
    1) SAP don't supply this, I would imagine, because R/3 isn't the only possible source of data.  I'm currently working on an app that extracts from R/3, an Oracle database and APO.  From whence should I take the documentation for my MATERIAL info object?  While being able to transfer the documentation of data elements might be very useful for your app, I can't see that generally it would be of interest to clients - I've certainly never heard of such a requirement.  So, my opinion at least, it isn't a design flaw.
    2) As you've pointed out, you can get the tables that do the mapping, so you know the source data elements, so you can get the documentation.  I'm not sure of how to store the documentation, but the obvious candidate for a link between infoobject and dataelement would be master data of an own infoobject.  You could wrap DOCU_GET in an RFC (if it isn't RFC enabled), and do a direct call between your 3rd party app and r/3 to get the documentation.  For information about the mapping tables, I'd suggest asking that question specifically in one of the BI forums.
    matt

  • How to make use of adjacent data elements within the same buffer

    Hi,
             Does anyone know how to make use of adjacent data elements within the same buffer? To make my question clearly, I would like to give you an example. In my application, I set "sample to read" as 10 which means at each loop 10 data samples will be taken into a buffer. Now, what I would like to do is to do some calculations on adjacent data samples in same buffer. I tried to use "shift register" for this, but it seemed to me that it only can deal with the calculation between data from adjacent loops. In other words, it skips 9 data elements and take the 10th one for the calculation.
             Here I also attach my VI showing what I did.
        Thank you very much in advance,
                            Suksun
    Attachments:
    wheel_encoder_1.vi ‏98 KB

    Hi Suksun,
          I hope you'll forgive me for distilling your code - mainly to understand it better.  I tried to duplicate your logic exactly - which required reversing the "derivatives"-array before concatination with the current samples array.  As in your code, the last velocity is being paired with the first position.  If first velocity is really supposed to be paired with first position, just remove the "Reverse 1D Array" node.
    cheers
    Message Edited by Dynamik on 01-07-2006 03:17 AM
    Message Edited by Dynamik on 01-07-2006 03:19 AM
    When they give imbeciles handicap-parking, I won't have so far to walk!
    Attachments:
    encoder2.GIF ‏14 KB
    encoder2.vi ‏102 KB

  • Getting error while using the data element in ztable

    though i specified the length as 20 in dataelement when i am entering the dataelement i am getting this error
    while i used help i got the following information
    Number of positions < minimum number (1) for data type CHAR
    Message no. DO253
    Diagnosis
    A minimum length is required for the specified data type.
    This minimum length is not reached by the specified number of positions.
    Procedure
    Increase the number of positions or select a more appropriate data type with the possible entries help F4.

    This is strange, you shouldn't even be able to activate the dataelement type char with a length of 0. Revisit your data element and make sure that the length shows to be greater than 0 and reactivate your data element to make sure the newest version is active. In case you are referencing a domain in your data element do the same with the domain after validating that everything is correct (you can also use the check function). Then go back to your table and reenter the data element before activating your table.
    Hope that helps,
    Michael

  • Requirements date for VSF "backdating" itself in two months

    Please help me understand this peculiar system behavior.
    MD04 routinely displays the plant/materialu2019s planned independent requirement as a u201CVSFu201D having a requirements date of the first work-day of the period.  What I cannot explain is why the October 2012 VSF has a requirements date of September 21, 2012. Why would the date not be October 1, 2012? The factory calendar assigned to the plant has October 1, 2012 as a work-day.
    Same situation for December 2012. The VSF for December has a requirements date of November 21, 2012.
    For the rest of 2012, and for the first three months of 2013, the VSF elements are dated on the first work-day of the month. What would cause the requirements to fall a week and a half early for October and December 2012?
    I should add that this peculiarity is not limited to one material. It happens over many materials and across all plants. The common thread among the materials is that we plan them into info structure S608 and then disaggregate among the active warehouses / shipping points.
    By the way, I am not very fluent in MRP, so please do not assume that I have ruled out something obvious.
    Regards,
    zKen

    Well, we figured it out.  The problem was the fiscal year variant. 
    A few years ago, we were a nine-to-five, Monday-thru Friday kind of company.  As such, the accounting periods were carefully managed so that a period never ended over a weekend or on a holiday.  Nowadays, we are a 24-7 operation, and accounting periods correspond to calendar months.
    But when we changed over the fiscal year variant, it was only set up thru 2011.  2012 still had the old period strategy. 
    On the MRP3 tab of the material master record, material/plants are assigned the period indicator u201CPu201D, Period according to fiscal year variant.  We forecast by periods in S608. 
    MRP was just doing its thing and determining requirements according to our accounting periods and setting the requirements date accordingly.
    Solution:  correct the fiscal year variant out for a few more years.  Transport, reload the forecast data, transfer to demand management, and run MRP. 
    All is well in the stock/requirements list.

  • Data Element reterival

    hi,
    i am making a report in which i want to reterive dat from data element and display the text field...(using cdpos text_field) plzz help me by providing d solution for it.

    Hi Ric,
    If you want the description of the data element, then use function module DDIF_FIELDINFO_GET
    The return table DFIES_TAB contains fields SCRTEXT_S, SCRTEXT_M and SCRTEXT_L which is the text retrieved from data element.
    E.g.
    DATA: WA TYPE DFIES, itab type standard table of dfies.
    CALL FUNCTION 'DDIF_FIELDINFO_GET'
      EXPORTING
        TABNAME        = 'MARA'
        FIELDNAME      = 'MATNR'
      TABLES
        DFIES_TAB      = itab
      EXCEPTIONS
        NOT_FOUND      = 1
        INTERNAL_ERROR = 2
        OTHERS         = 3.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ELSE.
      READ TABLE ITAB INTO WA INDEX 1.
      WRITE:/ WA-SCRTEXT_M.
    ENDIF.
    You can create a subroutine of the above code and call it as and when required. Pass to it the table and field name (from CDPOS) and subroutine will return the text.
    Cheers,
    Aditya
    Edited by: Aditya Laud

  • Finding data element

    hi
       i m new to idoc.i m trying to create the segment.in that i have 5 fields but i m not getting how to find data element for those fields.In y requirement they have just given fields like 
    Idoc   field                         XT01 message                          Description      
    FUNLOC_OWNER     C069_StockOwnerFunloc     STOCK OWNER FUNLOC
    M, 1      Format          Value
    M     N6     fixed value '000000'
    so how to find the data element of this field..plz help me...
    thnx

    Hi,
    Go to se11 -> give any datatype name > Press F4> serach for dataelements --> popup will come 'Press Information system and give datatype and length. --> you can find your dataelement.
    Regards
    Bhupal Reddy

  • Dynamic text in Data elements

    Hi all,
              Can we populate the data element text dynamically.
             For eg: we have field  TXT whose data element is ZTEXT and the short text that appears in the table is TEXT.
            Now we want to create two other fields TXT1 and TXT2 and the text that needs to appear should be other than TEXT (could be TEXT1 & TEXT2) is it possible to do such kind of modifications..
          To boil down, we want to use one data element across different fields but that text needs to be diffferent.
    Thanks in Advance,
    Regards,
    Kishore Yerra.

    The text is inherited from the data element. While creating tables you have 2 options 'Data Elements'   OR  'BUILT-IN  / PREDEFINED' see the button next to SEARCH HELP button in the table - toolbar.
    In such case why you want to use the Text element, you can use th BUILT-IN  / PREDEFINED Types, You can direcly give the field name and type along with required texts.
    Hope it will help.
    Regards,
    Vishal

  • How to convert amount data element to number data element

    Dear Gurus,
    I have a requirement to get the data by calling BRF+ and then pass them to BAPI 'BAPI_ASSET_ACQUISITION_POST', in the BRF+ export structure, there is a field 'AMOUNT', I bind it to DDIC element 'BF_ANBTR', the type is Number.
    In BRF+, I call another global function to calculate the value, I define a local variant LV_VALUE to get export value from this function, this local variant's type is Amount, now I need to move this local variant value to the export field 'AMOUNT'.
    But BRF+ doesn't allow to convert amount data element to number data element directly, and I find there is no formula function available. Only there is a function 'TO_AMOUNT' to convert number data element to amount data element.
    Please help to get a solution for above solution.
    Thanks.

    Hi,
    within the formula expression within the category "Mathematical functions" you will find the function "TONUMBER". This converts a data element of type currency to a number. According to the help of this function:
    "The following conversion rules apply:
    <Amount>: The number part is returned. The currency unit is omitted."
    This is what you are looking for.
    For the other way round you already mentioned the correct function "TO_AMOUNT"
    BR
    Christian

  • Need new description for Data Element based on Company Code.

    Hi,
    Requirement: The data element AUFNR which has the description "Order Number" needs to have description as "Engagement Number" for a specific company code. All other company codes to retain the description "Order Number".
    Example: There are three company codes: AAAA, BBBB and CCCC. The company code CCCC wants the description of data element: AUFNR as "Engagement Number" while AAAA and BBBB wants to retain the standard description: "Order Number".
    Pre-Work: Before posting this question, i did search however have not found a solution for this.
    In SAP i tried to create an Implicit Enhancement at:
    Program: RADBTDDF
    Sub Routine: SE_DD04T_ROLLNAME_ROLLNAME
    However, as the program is SAP Basis program, i was not successful.
    Any hints are appreciated and solution is rewarded.
    Thanks for your time.
    With Regards,
    Goutham.

    Dear Matthew,
    Thank you for the reply.
    I am giving some more details into the requirement.
    If a user assigned to company code: CCCC (may not be directly, relationship will be drawn) has logged into the SAP system. If he opens the transaction related to Internal Order, like KO01, KO02, KO03 etc. He should be able to see the description of field: "Order Type" as "Engagement Type".
    Similarly in the next screen the field "Order" needs to be displayed as "Engagement Number".
    However, for users who belong to company codes: AAAA and BBBB the SAP Standard Descriptions will be shown.
    Please let me know if this is possible or any inputs in that direction are highly appreciated.
    Let me know if further details are required.
    Best Regards,
    Goutham.
    P.S: As far as i know, Anees Jawad proposal would work if it is required to change the description at the system level.

  • Changing size of standard data element.

    Hello here,
    I need some clarification.
    I have standard data element TIDNR - Technical identification number (Used in PM tables).
    It has Data Type - CHAR and Length  25.
    Is it possible to increase his length to 35?
    Maybe, it is possible to create new data element ZTIDNR and make reference to TIDNR?
    Or easily is to add some user field to equipment time segment?
    Thank You in advance.
    Edited by: andriy.hulyk on Nov 1, 2011 3:23 PM
    Edited by: andriy.hulyk on Nov 1, 2011 3:24 PM

    Hi andriy,
    always be careful.
    Check what the where-used-list says: It's not only the use in programs and database tables, all input/output fields are also affected and must be changed manually (which is a modification).
    You may create an own translation table: If i.e. you allow only 96 characters as defined ind [CDC display code|http://en.wikipedia.org/wiki/CDC_display_code] , this can be reduced to 8 characters in 6 bytes or 33 chars in the original data element. Some bit&byte operations required for the conversion. If you define your own code with, say only A-Z, 0-9 and space and some more you can reduce to 5 bits having 8 characters in 5 bytes and so forth.
    If you are on unicode with 2 bytes per char, possibilties are even more...
    Yes, it's kind of a challenge - but at least an idea.
    Regards,
    Clemens

  • Updating exist FI document BSEG-ZUONR data element.

    Hi there,
    We're trying to update ZUONR field on an FI document  (BSEG) after it has been posted.   I looked for a "change  fi document" BAPI and have not been able to do so.  Is a BDC for FB02 the only choice for such a requirement or is there a FM suitable for this task?

    First, thanks for the replies, second my apologies for not being more specific.
    Here is the scenario: I have new custom data element added to MIRO, which is eventually stored in the RBCO table (at the line item level.)   Our requirement is have this data element moved into the BSEG-ZUONR field.
    I am aware of BTEs and have attemped to do so using the 1120 process, but the problem is I don't have access to the original data as entered in MIRO in the tables available in that BTE.  It appears that the RBCO table is not even update until after 1120 process is executed.
    Once again, thanks for responses.

  • Authorization at data element level

    Hi all,
    I have a requirement where i have to put a authorization check at data element BANKN .
    In all the transactions which use BANKN data element( e.g FK01 , FK02, FK03 etc) , i need to put an auth check for Bank number .
    Only those users who are authorized will be able to see the Bank number, other wise the field will be masked by ******* .
    I tried with field exit , howerever , it gets triigerrred only at Change (that too not completely satisfying the requirement.)
    Please provide me a solutiion for the same.
    Also , how to mask a particulat field based on a condition
    Thanks
    Supriya Murudkar

    As I said, most of the time, you should do modification of the standard. In 4.7, you only have SSCR.
    I don't know FK* transactions, so I can't tell you if there is a BTE for that.
    You should have better mentioned them in the title of your post to get more chance to have an answer, and do not mention "authorization at data element" (people wouldn't read it as it makes no sense in SAP).
    By the way, another solution would be to use authorizations at transaction level: authorized people would use FK* transactions where bank field would be displayed, while some other people would use ZFK* transactions where bank field is NOT displayed, using transaction and screen variants

Maybe you are looking for