Setting max length of the field when using Context Model Node

I have created a model using Import Adaptive Web Service model option (a web service was a wrapper around SAP BAPI function module).
There were no dictionary types created in the Local dictionary as a result of import.
I have mapped the context of the controller to the model node.
One of the fields in the model is name     CUSTOMER_NUMBER type string;
Corresponding element in the wsdl of the web service is
<xsd:element name="CUSTOMER_NUMBER" type="tns:char10" />
I have created a view with the input filed mapped to the CUSTOMER_NUMBER field of the model node.
When I type more than 10 chars into the field and hit the search button, I get a com.sap.dictionary.runtime.Ddcheck exception that the length of the field should be less than 10 chars.
How can I set the max length of the field in design time to prevent runtime exception?
Thanks,
Julia

Thank you for your reply.
Java trim function will trim the white spaces only, not the characters.
I can code check length functionality before calling execute function (the function that call the web service).
I can also create a dictionary structure based on the model structure; create a context value node based on the dictionary structure and use WDCopyService API to move the data between value node and model node.
I was looking for the best practice...
When importing model based on Adaptive RFC, the dictionary structures are imported together with the model. This does not happen for Adaptive web service - hence there is a need to add coding for simple checks.
Julia

Similar Messages

  • Captivate 5.5 is setting a Mastery Score in the Manifest when using Slide Views

    We have encountered a problem with Captivate 5.5 where it is setting the Mastery Score in the manifest to match the Quiz score setting even though we are only using slide views to track completion.  This is a problem because if we set the score to zero, our Saba LMS will immediately grant the user credit for the course on the first slide.  If we set the score higher than zero, the user will never get credit for the course as Captivate doesn't send a score to the LMS when using slide views to track completion.  Our LMS seems to ignore the status passed by the course once the Mastery Score is set.  We have compared the manifest behavior in 5.0 and it does NOT set the Mastery Score.  We can edit the manifest prior to loading in the LMS but this is a hassle and we'd like to figure out a way to permanently change the behavior to no longer set Mastery Score when using Slide Views to track completion.

    Hi,
    I believe the easiest way to do this is to edit the manifest.xml file in the Captivate Templates folder.  I posted instructions on doing that here: http://forums.adobe.com/thread/956390?tstart=0
    Hope this solves your issue.  V

  • FB03 - Increase length of the field "Account Short Text" in FB03

    Dear Expert!
    I understand that Tcode: FB03 is SAP standard tcode. However, i just want to ask, is it possible to increase length of the field "Account Short Text" to 42 characters in FB03? Because my vendor/customer name is quite long, and when i view via FB03, the field "Account Short Text" only displays 20 characters, not full vendor/customer name. Unless, i double click on the line item, then i can see full vendor/customer name. But i want the "Account Short Text" field can display full vendor/customer name.
    Is that possible?
    Thank you very much.
    LeLinh

    Hi,
    there's a matadata table behind it RFPSD and for Account short text field KTEXT is used, which in fact has a length of 35 chars.
    But on the other hand there's also a filed KTEXT_GL (G/L Account Short text) which is maybe applied here. It has a length of 20.
    You can do some more checks on program to clear it finally
    Regards

  • Live type files look grainy and do not fill the background when used for green screen backgrounds.

    live type files look grainy and do not fill the background when used for green screen backgrounds. Ideas?

    What I want to do is somehow make my entire iMovie project smaller by compressing it somehow but without losing any footage or audio or quality. At the moment the project is a 56GB iMovie project lasting approx 1hr. I have a mixture of miniDV footage, titles created in Live Type (they are better quality than anything available in iMovie) and audio.
    The miniDV footage is automatically compressed when it transfers from my camcorder to my Mac, no worries there.
    The LiveType titles contain a motion background (imported into LT) and then text which appears and disappears at set points. The titles vary in length but are about 5 seconds each.
    The file size for the LT titles is approx 180MB per clip, the movie requires about 20 or so of these clips, making a very large file size overall.
    Is there a way that I can save something in LT so that the file size is smaller yet still keep the quality and use the clip in my iMovie ?

  • If i dont use the display when using the GPS and only listen to the voice instructions can that also makes the iphone overheat even if you dont use the display

    because when i use the gps app in my iphone 4s in the car my iphone gets overheat so
    if i dont use the display when using the GPS and only listen to the voice instructions can that also makes the iphone overheat even if you dont use the display
    will that help?

    When you use your GPS does your iPhone get hot enough to shutdown?  The reason I ask is that I have run my GPS app with the screen brightness set to near max connected to power for hours.  My iPhone got hot, but didn't shutdown.

  • Color Settings: Getting colors in PS CC to match colors of the image when used as a Windows Background

    or vice versa. I probably do not know enough to be able to ask the question properly.
    The colors of photos in PS CC are not the same when used as a desktop background in Windows 7. The colors are somewhat more saturated when as a background on the desktop and while not totally unusable, it would be nice to have matching color between my PS editing screen and the photo as viewed as a desktop background.
    The following are some conditions that may or may not be relevant to the answer of my following question.
    1.) I am a complete novice to Color Management so a presumption of knowledge and the heavy use of jargon may not penetrate my head.
    2.) I shoot with sRGB embedded in my photos.
    3.) My RAW conversions use sRGB IEC61966 - 2.1.
    4.) My PS Color Settings are North American General Purpose 2 with sRGB IEC61966 - 2.1 as the working space and Intent as Relative Colormetric
    5.) In the Win 7 Control Panel>Color Management>Device, my Device = NEC LCD2690wuxi, ICC Profile = NEC LCD2690wuxi (default), file name = nl269wui.icm
    6.) In the Win 7 Control Panel>Color Management>Advanced, Device profile = System Default sRGB IEC61966 - 2.1 and (everything else set to System Defaults too). The only difference from the PS Color Settings being that Windows is defaulted to Perceptual Intent, but a change in either PS or Win 7 has no effect on the relative color differences.
    7.) The monitor is set to the Native internal preset, but the relative differences in color remain the same even if the monitor is changed to sRGB, or any other internal preset.
    8.) I have Proof Setup set to Monitor RGB but none of the settings will match the Win 7 Background color.
    Now, my question is this. How would you set up your color settings/profile in PS and/or Windows to match color between PS and the Windows desktop of Windows 7?

    Nevermind. I didn't have Proof Colors checked.

  • How to set white spaces between the fields in dataset??

    Hi all,
    I am writing a set on information to from infotypes to a text file. Its a fixed width file. How do set white spaces in the fields for dataset?
    Example:
    TYPES: begin of header,
                    filler(40)  type c,
                    id(3)        type c,
                    filler2(7) type  c,
                    delimiter  type  c,
                 end of header.
    DATA header type header.
    header-filler1 = ' '.
    header-id       = '100'.
    header-filler2 = ' '.
    header-delimiter = cl_abap_char_utilities=>newline.   ( do it to get a new line)
    my_table = header.
    append my_table.
    DATA: out_file(256) type C,
          codepage_ref type ref to CX_SY_CONVERSION_CODEPAGE,
          out_char type c,
          size type i,
          insert_string type string,
          insert_size type i.
      out_file = filename.
      open dataset out_file for output in text mode ENCODING NON-UNICODE.
      LOOP AT my_table.
        size = strlen( my_table ).
        insert_string = ''.
        DO size TIMES.
          offset = sy-index - 1.
          try.
              out_char = my_table+offset(1).
              IF out_char = SPACE.
                CONCATENATE insert_string '' INTO insert_string SEPARATED BY SPACE.
              ELSE.
                CONCATENATE insert_string out_char INTO insert_string.
                transfer insert_string to out_file NO END OF LINE .
                insert_string = ''.
              ENDIF.
            catch CX_SY_CONVERSION_CODEPAGE.
              insert_size = strlen( insert_string ) - 1.
              insert_string = insert_string(insert_size).
          endtry.
        ENDDO.
       transfer CL_ABAP_CHAR_UTILITIES=>NEWLINE TO out_file NO END OF LINE.
      ENDLOOP.
      close dataset out_file.
    How do I get to insert the space for filler1 and filler2?
    Edited by: Siong Chao on Oct 4, 2011 4:56 AM
    Edited by: Siong Chao on Oct 4, 2011 8:27 AM
    Edited by: Siong Chao on Oct 4, 2011 8:29 AM

    problem lies in the open dataset codes
    Used:
    open dataset out_file for output in text mode encoding non-unicode message msg.
    if sy-subrc= 0.
    loop at my_table.
    transfer my_table to out_file
    transfer cl_abap_char_utilities=>newline to out_file no end of line.
    endloop.

  • How can I search the attribute including type and length of the field in the SD table or form such as sales executive table through debug?

    Some users show that  the sales docment external name is not printed completely in the form of delivery form printing, so I want to find how much length of the field is there through debugging. I am very expected to gain some suggestion from you.

    for exploding the bom if you know header material use
      CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
        EXPORTING
          CAPID                 = 'PP01'
          DATUV                 = SY-DATUM
          MEHRS                 = 'X'
          MTNRV                 = P_MATNR
          WERKS                 = P_WERKS
        TABLES
          STB                   = I_BOM
        EXCEPTIONS
          ALT_NOT_FOUND         = 1
          CALL_INVALID          = 2
          MATERIAL_NOT_FOUND    = 3
          MISSING_AUTHORIZATION = 4
          NO_BOM_FOUND          = 5
          NO_PLANT_DATA         = 6
          NO_SUITABLE_BOM_FOUND = 7
          CONVERSION_ERROR      = 8
          OTHERS                = 9.
    now check PLPO & PLKO table for routing or AFVC and AFVV for routing.
    if production order created you have to check in afvc and afvv else check in plpo and plko.
    for checking with plpo and plko you have to check MAPL table.
    for bom and material link
    MAST,STPO,STKO.
    stlnr is the common field
    regards
    shiba dutta

  • How to validate the field when i am populating the data cursor to block

    Hi,
    I am populating data cursor to multi record block.
    Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
    If user enter negative values and decimal points in quantity filed i need to display message to user item level.
    Please do the needful how to do it.

    902434 wrote:
    Hi,
    I am populating data cursor to multi record block.
    Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
    If user enter negative values and decimal points in quantity filed i need to display message to user item level.
    Please do the needful how to do it.If you want to validate at entry level then use When-Validate-Item trigger and check the input and show message. Like
    If :quentity <0 then
    message('do not enter negative value');
    message('do not enter negative value');
    raise form_trigger_failure;
    end if;Why u open same thread again ? not closing one.. check this one
    </a>
    How to validate the field when i am populating the data cursor to block
    Hopes this helps
    If someone's response is helpful or correct, please mark it accordingly.

  • Increasing of the length of the field of short text

    hai gurus
    i want to increase the length of the field while creating the purchase order is there any facility for  that plese give me the details

    Hi Rao,
    If you want to give some description in the short text you can use Purchase order text for giving complete details about your requirement to the vendor.
    Regards,
    Vijay

  • For abap-hr i need datatype and length for the fields which i selected

    hi seniors,
          I got one task for which i have to get the data type and length for the fields of a table in abap-hr. I am using dd03l table, but my team leader told me to not to use this. So, please anybody can help, i will be thankfull.
          I have to select PA30 fields in which pernr and choic, subty and whatever i have selected the infotypes fields. If there is any function module to find data type and length or else any other table.
    thanks,
    sekhar.

    Hi,
    Try using the Function Module "DDIF_FIELDINFO_GET". You can use this for fetching the complete details of a structure or, a specific field.
    Input:->
    TABNAME        PA0001
    FIELDNAME     PERNR
    Output:->
    Check the DFIES_TAB  it will contain all the details you need for the specific field.
    Sample--->
    CALL FUNCTION 'DDIF_FIELDINFO_GET'
      EXPORTING
        TABNAME              = 'PA0001'
    *   FIELDNAME            = ' '
    *   LANGU                = SY-LANGU
    *   LFIELDNAME           = ' '
    *   ALL_TYPES            = ' '
    *   GROUP_NAMES          = ' '
    *   UCLEN                =
    *   DO_NOT_WRITE         = ' '
    * IMPORTING
    *   X030L_WA             =
    *   DDOBJTYPE            =
    *   DFIES_WA             =
    *   LINES_DESCR          =
    TABLES
       DFIES_TAB            = MY_DFIES_TAB
    *   FIXED_VALUES         =
    * EXCEPTIONS
    *   NOT_FOUND            = 1
    *   INTERNAL_ERROR       = 2
    *   OTHERS               = 3.
    Hope this was of some help.
    Best regards,
    Sagar.

  • I have coloured vertical lines about a quarter of the way from the left of the picture when using my apple tv 2. Anyone got any idea what is causing it. Have done a reset but still same. ATV2 is only a month old.

    I have coloured vertical lines about a quarter of the way from the left of the picture when using my apple tv 2. Anyone got any idea what is causing it. Have done a reset but still same. ATV2 is only a month old.

    Just to make sure, try a different set of cables. If the problem persists, have the unit replaced by Apple.

  • How can i detach the video from a clip so i can only use the audio when using imovie?

    how can i detach the video from a clip so i can only use the audio when using imovie?

    First, go to iMovie/Preferences and enable the Advanced Tools.
    Import the video clip into an iMovie Event. When you get ready to use it in an iMovie Project, select the clip in the Event and drag & drop it on top of a video or photo clip in the project at the place where you want it to begin. When the pop-up menu appears, choose Audio Only.

  • Output data to txt file with full length of the field as in database

    Hi
    I have a problem related to output data I ntxt file on server
    for eg
    CONCATENATE
    wa_sagadr_outtab-seqno
    wa_sagadr_outtab-bpext
    wa_sagadr_outtab-name_org1
    wa_sagadr_outtab-country INTO wa_sagadr_text SEPARATED BY ''.
    the output is separated by single space irrespective of database length of the field , I want to display all the lenth of the database field eventhough the remaining space is blank ie if a field is 20 char in dtabase and only filled with 6 char the whole 20 char lenth should be displayed in the output file
    ouput as below
    required format ie space equvalent to as in database lenght
    000001       700006               C4 Plant AMD Export Sdn.Bhd.so on.
    my format as coming single space in between only
    000001 700006 C4 Plant AMD Export Sdn.Bhd
    pls suggest

    For this maintain an work area with the fields and structure same as the one which you want.
    ten populate the work are and write to file.
    concatenate will not work.
    e.g.
    DATA: begin of wa_sagadr_text,
              seqno like wa_sagadr_outtab-seqno,
              bpext like wa_sagadr_outtab-bpext,
              name_org1 like wa_sagadr_outtab-name_org1,
              country like wa_sagadr_outtab-country
              end of wa_sagadr_text,
    clear wa_sagadr_text.
    wa_sagadr_text-seqno = wa_sagadr_outtab-seqno.
    wa_sagadr_text-bpext= wa_sagadr_outtab-bpext.
    wa_sagadr_text-name_org1 = wa_sagadr_outtab-name_org1.
    wa_sagadr_text-country = wa_sagadr_outtab-country INTO wa_sagadr_text.
    transfer wa_sagadr_text to outputfile
    or write:/ your fields.

  • How can I force mount a dvd that isn't even seen by Disk Utility? I can see it on the Mac when using my Windows 7 partition via Boot Camp, but not in Lion, which is how I would rather be running.

    How can I force mount a dvd that isn't even seen by Disk Utility? I can see it on the Mac when using my Windows 7 partition via Boot Camp, but not in Lion, which is how I would rather be running.

    Well if there is a EFI block, then running a program in OS X isn't going to do a lick of good.
    After all EFI was designed for Trusted Computing and Digital Rights Management, to act between the OS and hardware, can read drives, contact the Internet and everything.
    Windows doesn't use EFI, will have UEFI in Windows 8 though.

Maybe you are looking for

  • Dell U2713HM doesn't work with rMBP

    Hi Guys, I've read about people with colour issues but my mid 2012 rMBP doesn't work at all with my new Dell U2713HM via a mini-DisplayPort to DisplayPort cable (though a single dvi does). When plugged in to the DP cable, the mac tries to change reso

  • -webkit-linear-gradient not working with Adobe Air 3.0

    Hi - I recently downloaded Adobe Air 3.0 after reading that gradients are now supported (http://www.adobe.com/devnet/air/ajax/articles/air_and_webkit.html), but I have not been able to successfully implement them. For example, I have the following CS

  • Adding a new partner function in va01 has to differ in item wise

    Hi all here by adding a new partner function by item level in va01 i hav a z partner table , that has some values , each values differ from item level for eg : item 1 (posnr) 10 , has a new partner called buyers1 posnr 20 has buyers 2 what i am facin

  • Very simple java project (help please)

    Hello. For a project I have to somehow use MouseListener to make something. My idea was to have a rectangle in which a circle (hockey puck) follows the user's mouse and whenever the user places the circle into a certain area the count goes up by one

  • Customising Who's Who- ESS?

    HI all,   We are using EP 6.0, mysap ERP 2004 and ESS BP 60.2. In ESS, Who's Who is working fine, but want to remove one link ( Organization Unit). My requirement is either i have to remove the Organization Unit link as a whole or just want to displa