Idoc to String field

Hello everybody,
I want to map the content of an Idoc to one String field, but I don't know how to do this. Can anybody help me?
Best regards
Martin

Hello everybody,
thanks for your advices, but I have a general problem. My Mapping is IDOC to StringField. But when I start testing the Message Mapping by loading an IDOC as XML-File, I have no values when I display the Queue. I did the mapping as mentioned in the Blog.
What is my error?
Thanks and best regards,
Martin

Similar Messages

  • Add a carriage return in a Unbound String Field

    Post Author: Razzle00
    CA Forum: Formula
    Hi,
         How can I add a carriage return to an unbound string field in a crystal report.  I am using the bundled version of CR with MS Visual Studio 2003 & 2005.  My formula needs to look something like this....
    'Heading One:' + CARRIAGE RETURN + trim({tablename.fld_1}) + CARRIAGE RETURN + 'Heading Two:' + CARRIAGE RETURN  + trim({tablename.fld_2})
    this code all needs to be in 1 unbound string field.  Is this possible?
    Thanks,
    Razzle

    Post Author: SKodidine
    CA Forum: Formula
    To add a carriage return, add CHRW(13)
    For example:
    'Heading One:' & chrw(13) & 'sample text';
    will result in:
    Heading One:
    sample text

  • A record selection problem with a string field when UNICODE database

    We used report files made by Crystal Reports 9 which access string fields
    (char / varchar2 type) of NON-UNICODE database tables.
    Now, our new product needs to deal with UNICODE database, therefore,
    we created another database schema changing table definition as below.
    (The table name and column name are not changed.)
        char type -> nchar type
        varchar2 type -> nvarchar2 type
    When we tried to access the above table, and output a report,
    the SQL statement created from the report seemed to be wrong.
    We confirmed the SQL statement using Oracle trace function.
        SELECT (abbr.) WHERE "XXXVIEW"."YYY"='123'.
    We think the above '123' should be N'123' because UNICODE string
    is stored in nchar / nvarchar2 type field.
    Question:
    How can we obtain the correct SQL statement in this case?
    Is there any option setting?
    FYI:
    The environment are as follows.
        Oracle version: 11.2.0
        ODBC version: 11.2.0.1
        National character set: AL16UTF16

    With further investigating, we found patterns that worked well.
    Worked well patters:
        Oracle version: 11.2.0
        ODBC version: 11.2.0.1
        National character set: AL16UTF16
        Report file made by Crystal Reports 2011
        Crystal Reports XI
    Not worked patters:
        Oracle version: 11.2.0 (same above)
        ODBC version: 11.2.0.1 (same above)
        National character set: AL16UTF16 (same above)
        Report file made by Crystal Reports 2011 (same above)
        Crystal Reports 2008 / 2011
    We think this phenomenon is degraded behavior of Crystal Reports 2008 / 2011.
    But we have to use the not worked patters.
    Anything wrong with us? Pls help.
    -Nobuhiko

  • Edirectory ldap, what do I put in the DN String field?

    Experts,
    I am trying to configure LDAP authentication. I've done this many, many times against Active Directory. In AD it is usually DOMAIN_NAME\%LDAP_USER%.
    This has been driving me nuts today. We are running eDirectory. I have my server's IP address and port.
    What do I put in the DN String field? I've tried many combinations of TREENAME\%LDAP_USER%, nothing seems to work.
    If it is more complicated than that, where do I look in NDS to figure out what I need to put in the DN String field?
    Thanks!
    Dan

    Dan,
    I'm actually surprised you had success with that on AD as I never did. I recommend you get a little lower level and use DBMS_LDAP. Here's a little sample code to get you started:
       FUNCTION ldap_authenticate (
          p_username IN VARCHAR2
        , p_password IN VARCHAR2
          RETURN BOOLEAN
       AS 
          l_dn      VARCHAR2(256) := p_username || '@domain.com';
          l_bind    PLS_INTEGER;
          l_session DBMS_LDAP.SESSION;
       BEGIN
          IF p_username IS NULL
          THEN
             RAISE_APPLICATION_ERROR(-20001,'A username must be supplied');
          END IF;
          IF p_password IS NULL
          THEN
             RAISE_APPLICATION_ERROR(-20002,'A password must be supplied');
          END IF;
          dbms_ldap.use_exception := TRUE;
          l_session := dbms_ldap.init(
             hostname  =>  'server.domain.com'
           , portnum   =>  389
          l_bind := dbms_ldap.simple_bind_s(
             ld      =>  l_session
           , dn      =>  l_dn
           , passwd  =>  p_password
          l_bind := dbms_ldap.unbind_s(l_session);
          RETURN TRUE;
    EXCEPTION
       WHEN OTHERS
       THEN
          RETURN FALSE;
    END;Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • Purpose of using string field

    how to use string field and its purpose...

    STRING: Character string with variable length This data type can be used only in types (data elements, structures, table types) and domains. In the dictionary a length can be specified for this type (at least 256 characters). It can be used in database tables only with restrictions. For a description of them, refer to the documentation of the ABAP statement 'STRING'. In ABAP, this type is implemented as a reference to a storage area of variable size. The system proposes 132 characters as default for the output length. You cannot attach search helps to components of this type.
    SSTRING: Short character string with variable length. In the Dictionary the number of characters can be specified for this type (from 1 to 1333). This data type can be used only in types (data elements, structures, table types) and domains. It can be used in database tables. To do so, refer to the documentation of the ABAP statement 'STRING'. In ABAP, this type is implemented as a reference to a storage area of variable size. String fields of this type can be used in indexes and in the WHERE condition of a SELECT statement. You cannot use them in table keys

  • String Field rendering as Number Field in CR Basic for VS2008

    I recently migrated from CR for VS2005 to CR Basic for VS2008 and am creating my first report using CR 2008. The SQL result set returns rows containing strings (nvarchar), integers and decimal (7,2) fields.
    The report is getting all rows in the result set, but the string fields as defined in the SQL are 1) rendering in the report as numbers, and 2) showing as empty. The non-string fields render fine. I tried reformatting the report field to string, but only the Number tab appears in the formatting dialog. I also tried converting the SQL field result into an unbound string field, as well as tried the ToText function, but the results were the same. I suspect the field appears empty because of the formatting issue.
    How can I get CR Basic for VS2008 to render a string (nvarchar) field as a string?

    Try placing the field inside a formula field or inside a text field.  That should cause the field to be shown no matter what type of data it is.  If the data is still not showing, then perhaps it is not being returned properly. 
    Things to check:
    -Are you connecting directly to the tables - or are you connecting to a stored procedure?  If you are connecting to a stored procedure and you are using Temp Tables, then make sure you add the line "SETNOCOUNT ON" to your stored proc.
    -Run SQL profiler - see what query is being made, then try running that exact same query through the SQL admin console (Or some other utility that lets you run SQL queries)
    Thanks
    Shawn

  • Updated to CR 2008 - now have new problem with truncated String fields.

    Hi there
    I'm hoping someone has a simple answer for this one...  notice there's a lot of it on forums but I haven't found an answer.
    Since updating to Crystal 2008 (Crystal 12), we have found that some reports are suddenly truncating string fields at 255 characters, despite the field value being much longer in the database.
    Does anyone know what to do to allow these fields to print in completion?
    Database connection is ODBC RDO.
    regards
    -Karen

    What is the database Oracle, SQL server etc.
    Can you query the database directly with another query tool, eg SQL Server Management Studion or SQL developer/Toad for Oracle.
    You can then run the Crystal query directly and see if its your ODBC connection that is truncating the datafield or Crystal.
    I have memo fields on SQL server with up to 2000 characters and these display in Crystal 2008 without any problem. We use ODBC (RDO) too.
    Ian

  • IDOC filter at Field / Segment Level

    Hi
    Can you please tell me how to set an IDOC filter at field and segment level in short?
    Thanks

    Hi,
    There are two filtering in IDoc.
    Segment Filtering:
    Segment filtering can be achieved using T/Code BD56. Here you can suppress a whole segment irrespective of data inside it . You have to give Message Type / Sender Prrtner / Receiver Partner.
    Data Filtering:
    Data filtering can be done in dustribution model (BD64) where you can restrict whole IDOCS or partials IDOCS to be send based on data in fields inside IDOC depending on whether the segment in which you filter is at the highest level or at a lower level. For example in MATMAS if you put a filter of E1MARCM for a particular plant , only data for this plant will go and other plants will be ignored.
    Please check this link for detail information.
    http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Impossible to get a String field with GetFieldID !!!!!!

    Hi, I write here my classes and explain my problem :
    ------------------------- Class Lexicon.java ---------------------------
    package SlpTkJava.JavaCode;
    public class Lexicon {
    public native void next(SearchReturn search);
    static {
    System.loadLibrary("slptkjava");
    --------------------------- Class SearchReturn.java --------------------
    package SlpTkJava.JavaCode;
    public class SearchReturn {
    public LexItem access;
    -------------------------- Class LexItem.java --------------------------
    package SlpTkJava.JavaCode;
    public class LexItem {
    public int lemma;
    public String graphy;
    --------------------------- File Lexicon.c -----------------------------
    * Class: SlpTkJava_JavaCode_Lexicon
    * Method: next
    * Signature: (LSlpTkJava/JavaCode/SearchReturn;)V
    JNIEXPORT void JNICALL Java_SlpTkJava_JavaCode_Lexicon_next(JNIEnv *env,
                                       jobject obj,
                                       jobject search){
    jfieldID accessFID, graphyFID, lemmaFID;
    jclass searchReturnCls, lexItemCls;
    jobject access;
    searchReturnCls = (*env)->FindClass(env, "SlpTkJava/JavaCode/SearchReturn");
    if ((*env)->ExceptionOccurred(env)){
    (*env)->ExceptionDescribe(env);
    (*env)->ExceptionClear(env);
    accessFID = (*env)->GetFieldID(env, searchReturnCls, "access", "LSlpTkJava/JavaCode/LexItem;");
    if ((*env)->ExceptionOccurred(env)){
    (*env)->ExceptionDescribe(env);
    (*env)->ExceptionClear(env);
    access = (*env)->GetObjectField(env, search, accessFID);
    if ((*env)->ExceptionOccurred(env)){
    (*env)->ExceptionDescribe(env);
    (*env)->ExceptionClear(env);
    lexItemCls = (*env)->FindClass(env, "SlpTkJava/JavaCode/LexItem");
    if ((*env)->ExceptionOccurred(env)){
    (*env)->ExceptionDescribe(env);
    (*env)->ExceptionClear(env);
    lemmaFID = (*env)->GetFieldID(env, lexItemCls, "lemma", "I");
    if ((*env)->ExceptionOccurred(env)){
    (*env)->ExceptionDescribe(env);
    (*env)->ExceptionClear(env);
    graphyFID = (*env)->GetFieldID(env, lexItemCls, "graphy", "LJava/lang/String;");
    if ((*env)->ExceptionOccurred(env)){
    (*env)->ExceptionDescribe(env);
    (*env)->ExceptionClear(env);
    When I run this function in a testFile, I get this exception :
    Exception in thread "main" java.lang.NoSuchFieldError: graphy
    at SlpTkJava.JavaCode.Lexicon.next(Native Method)
    at TestLexicon.main(TestLexicon.java:58)
    I can't understand because the system can load the int field from the "access" object and not the String field !
    I can precise that I'm on Solaris.
    Please help me it's urgent !
    Thank you.
    Zigune

    I think your problem is:
    graphyFID = (*env)->GetFieldID(env, lexItemCls, "graphy", "LJava/lang/String;");
    should be
    graphyFID = (*env)->GetFieldID(env, lexItemCls, "graphy", "Ljava/lang/String;");
    i.e. java/lang/String - java is lower case.

  • How to set a string field with people picker control group

    Hi Guys
    I have a problem with a form list, when I need to set a string field with de content of people picker control that have more than one "user".
    Is there any way to put in string a list of user like the people picker control shows in a form?
    The really problem is I don't know how to read an array of user in a formula rule.
    any example or idea should be appreciated.
    tnks.

    Hi ,
    Please try out in following way :
            /// <summary>
            /// Set value to people picket control
            /// </summary>
            /// <param name="key"></param>
            /// <param name="ppl"></param>
            /// <param name="item"></param>
            private void SetDatatoPeopleEditor(string key, PeopleEditor ppl, SPListItem item)
                try
                    if (item[key] != null)
                        string users = string.Empty;
                        SPFieldUserValueCollection userCol = new SPFieldUserValueCollection(web, item[item.Fields.GetField(key).Id].ToString());
                        foreach (SPFieldUserValue usrItm in userCol)
                            users += usrItm.User.ToString() + ",";
                        ppl.CommaSeparatedAccounts = users.Remove(users.LastIndexOf(","), 1);
                catch (Exception ex)
                    lblErrorMessage.Text = ex.Message;
    private SPUser GetAccountName(PeopleEditor accountPE)
                SPUser user = null;
                string strAccountName = String.Empty;
                try
                    for (int i = 0; i < accountPE.ResolvedEntities.Count; i++)
                        PickerEntity objEntity = (PickerEntity)accountPE.ResolvedEntities[i];
                        user = web.AllUsers[objEntity.Key];
                    return user;
                catch (Exception ex)
                return user;
    It works for me .

  • Removing last 2 characters from string field

    I am trying to remove the last 2 characters of a string field.
    there is no consistant length in the field
    316R1
    12364R1
    i want to remove everything after R
    i tried instrrev but i that didnt do it.
    is there a way to say
    start position1 and go the R
    thanks

    formula,
    left (field, length_formula) is the solution
    the length_formula is the number of chars form left
    f.i
    left(field, length (field)-2)
    left (field, InstrRev, field,"R")
    of course a combination with Right is also possible

  • Remove leading numbers in string field

    I have a string field "01-Submitted" and wold like to remove the "01-".  How can this be done?

    Hi Create a formula:
    split(field,"-")[2];
    place this in the detail and see if prints the values.
    Regards,
    Vinay

  • Random Characters insterted into Crystal Reports string fields

    I'm having a problem where random characters are being inserted into string fields in my crystal reports, I talked to a representative and they are unable to fix the problem, so I'm asking here if someone has a workaround.  The characters are always outside of the normal set of characters, so I'd like to know if there is a way to only allow certain characters in a given field using formulas.  (for example, at a very simple level, i would input a list of "legal characters" and the field in crystal wouldn't display anything but those characters)
    thanks for your time and help

    Sorry, i think I've been a bit imprecise so far
    So these characters ONLY appear when printing the report and not when previewing the report in Crystal Reports?
    They appear when previewing, when actually printing, everything after the characters is cut off
    Are you printing directly from CR or from Enterprise/Infoview or another custom application?
    From CR (both to PDF and paper)
    When did you update your print driver last?
    Not sure, although this may be moot since it also shows up in the preview?
    Have you printed on another printer and does it too exhibit the same behavior?
    Same as above?
    Was the report created by you in CRXI? Are your regional settings set to English (language)?
    Yes I created the report in CRXI, and in terms of the regional settings, I'm not sure but would assume so, how do I check/change this?

  • How to Aggregate String Fields

    Hi
    I have a Query in which i Use Sum to aggregate fields , now i have some new fields on the table which are String, i want to add those to same existing queries where Sum is happening. and i want those string values to get aggregated as well like for rows
    where sum is  happening  for same rows i want a concatenated value for string field
    like i have  two rows
                 Field 1 (int)  -- Field 2(string) 
    Row 1:     1                    'abc'
    Row 2:      2                    'xyz'
    When I aplly Sum(Field1) it returns 3 and i want to get back 'abc,xyz' for Field 2  is there a function there SQL which i can use ?
    or any work around in SQL

    Hi,
    This concatinates all the rows , i need only those rows concatinated which sumed up toagather basesd upon group by caluse, so if have a group by  clause on Field 3 then i would like to see result as  Two resultant rows
    Row 1:  Field1 = 3 and Field2 = 'abc,xyz'
    Row 2:  Field1 = 7 and Field2 = 'JGG,AA'
    is there a way to do this
    Field 1 (int)  -- Field 2(string)       Field3 
    Row 1:     1                    'abc'        1
    Row 2:      2                    'xyz'        1
    Row 3:      3                    'JGG'        2
    Row 4:      4                    'AA'        3

  • Need help with string field formula

    Post Author: dshallah
    CA Forum: Formula
    What I am trying to accomplish:
    The report has item numbers and each item number has the
    potential to be associated with up to three u2018binsu2019. So the fields are u2018item
    numberu2019, u2018bin1, u2018bin2u2019 and u2018bin3u2019.
    I tried to write a u2018if thenu2019 statement that would only show
    records that had a value of less than 1 in each u2018binu2019 field. When I try to
    write the statement I get a message that says u2018A string is required hereu2019 and
    it highlights the number 1 in my statement. I have a feeling itu2019s because the u2018binu2019
    fields are string fields and not number fieldsu2026? So I am not sure the proper
    procedure to correct this. Thus help is needed and appreciated.
    Here is what I wrote:
    if {IC_LOC_HIST.BIN_NAME_1} < 1 then
    {IC_LOC_HIST.BIN_NAME_1}
    What is correct way to write a statement that will show me
    the zero values in each column of bin fields?
    Thanks!

    Post Author: bettername
    CA Forum: Formula
    You must have a non-numeric value in there somewhere - up in the top left of the formula editor window, it'll show you the variables you've passed to the formula, which should help track down what's going on.
    You could try and check that the value is a number first by using something like:
    if isnull({IC_LOC_HIST.BIN_NAME_1}) = false and isnumeric({IC_LOC_HIST.BIN_NAME_1}) = false and then "Error - Should be a Number!"
    else
    if isnumeric({IC_LOC_HIST.BIN_NAME_1}) = true and tonumber({IC_LOC_HIST.BIN_NAME_1})<1 then {IC_LOC_HIST.BIN_NAME_1})

Maybe you are looking for