UDF to truncate some characters in the source field

Hi all,
  My source field is 18 characters , the target field is 15 characters.Si i need to drop the 3rd, 4th and 5th character from the source file.Can any body help me with the UDF to be written during the mapping

Hi Priya,
UDF is not required. Do The Mapping as suggested by RAJA..
Do It Like This
Input ------> subString(0,2) -----\
                                   -------->Concat[]----->output
input ------->subString(5,13)-----/
Regards
Jyothi A

Similar Messages

  • How to transfer trailing spaces in the source field type c

    Hello,
    I have to splitt a string key of 120 characters into two InfoObjects (CHAR). The problem is, that the trailing spaces are lost in the character Field.
    Has anybody an idea to avoid the lost?
    Thank you.
    Conversion Table for Source Field Type c
    The characters in the source field are inserted in the target field, left-aligned. Trailing spaces in the source field are not transferred. If the target field is longer than the number of characters transferred, it is filled with blank characters to the right. If the target field is shorter, the number is truncated from the right.

    Hi ,
    Create two Characteristic InfoObjects in BW With length 60 Char  and then in the Transfer Rules of this two InfoObjects write the Formula using Left() and right() function present in the Formula Builder .
    That is First infoObject Contains the Left 60 Char and next one Contains the right 60 Char.
    Regards,
    Vijay.

  • How to identify the source field you jumped off in rri-exit

    Hello Forum,
    I need your expertise regarding the following problem:
    We want to fill target fields in the RRI-Exit depending on the source field you called a report.
    When we jump from report 1 to report 2 in BEx Analyzer, we'll get the mdflag in the i_thx_sender table.
    Is there any way to get the same information by calling rri in web? Or is there any workaround to get the information from which field the rri started?
    Many thanks in advance for any idea.
    Kind regards,
    Tobias

    Hi,
    One simple way is goto CMOD and give project names with Z* or Y*. First findout the naming convensions following in  your project and see.
    Then gibe projects one by one and select COMPONENTS option and click on Display, if you find the following Function Exits means it is our DataSource project
    EXIT_SAPLRSAP_001
    EXIT_SAPLRSAP_002
    EXIT_SAPLRSAP_003
    EXIT_SAPLRSAP_004
    Thanks
    Reddy

  • LSMW - The source field is longer than the target field in MEK2

    Hi,
    I tried to create a simple LSMW script to end date condition records using MEK2 transaction.
    I provide Condition type, Plant, Material, Start Date and default Valid from and Valid to dates.
    When the program is generated, it defines just 1 character for Start date and when I try to map the date field from source, it gives following error message.
    Attention: The source field is longer than the target field.
    Message no. /SAPDMC/LSMW_OBJ_040013.
    Not sure why it is happening. I am on 46C.
    Please let me know if anybody come across such situation. I have checked all aspects, tried recreating in different systems but ended up with the same problem.
    You help in this regard will be highly appreciated.
    Regards
    Kasi

    It is a standard error, and I have not found any OSS note to fix it. In order to solve it, you can use this workaround:
    - Export the recording into a txt file
    - Edit the file, and modify the information correspondent to domain, data element and lengths (internal and external) fields, and save it
    - Import the recording
    For example, I had problems in a recording with the field SEL_DATE of the transaction VB02. Then, I changed these values:
    Values before changes:
    /SAPDMC/LSGBDC                ZTEST          ZVB02_ZA01     0018                                        0000 SEL_DATE                                                                                DATE_ON                       Valid on                                                    CHAR1                         CHAR1                          SEL_DATE                                                    0000000000                              000001000001000001CHARC
    Values after changes:
    /SAPDMC/LSGBDC                ZTEST          ZVB02_ZA01     0018                                        0000 SEL_DATE                                                                                DATE_ON                       Valid on                                                    DATUM                         DATAM                          SEL_DATE                                                    0000000000                              000010000010000010CHARC
    (values 01 has been replaced by values 10)
    The values changed correspond to fields:
    /SAPDMC/LSGBDC-PARDOMAIN
    /SAPDMC/LSGBDC-PARDATAELEMENT
    /SAPDMC/LSGBDC-LENG
    /SAPDMC/LSGBDC-INTLEN
    /SAPDMC/LSGBDC-OUTPUTLEN
    The information that you have changed should be updated in table /SAPDMC/LSGBDC, where all the information of the recordings is stored. Check this information has been updated after recording import.
    I hope this solution be useful for anyone...
    Regards.

  • How to SQL*loader to skip some columns from the source file?

    I am using oracle9i sqlldr to load some .csv files into db.
    If I want to skip the first two columns in the source file, can I do that?
    If yes, how should I specify it in the ctl file?
    Thanks
    Wendy

    Hello Dave,
    Here is a sample of what you'll need to have in your control fileLOAD DATA
    APPEND
    INTO TABLE <target_table>
    FIELDS TERMINATED BY ','
    ( column_1  FILLER
    , column_2
    , column_3
    , column_4  FILLER
    )Hope this helps,
    Luke

  • Rule file design need to reject some members in the same field

    Hi,
    I'm working on Essbase vrsn11.1.1.3.I'm building dimensions through rules file. I have a .dim file with parent child reference that have 5 fields(parent-child-alias1-alias2-property).
    The requirement is as such that the fourth field (alias2) is to be needed only for some members,Let say i have four members to load(A,B,C,D)Alias1 is required for all four members but alias2 is to be loaded only for B & D members.
    Is there any possibility to full fill this requirement, if so then kindly let me know
    thanks in advance
    Edited by: hyperion on Jan 12, 2012 4:01 PM

    create second rule file and load alias2 only with your select/reject criteria.
    Essbase rule file will reject entire record if at least one column matches up reject condition.

  • APEND the file depending upon the source field length

    Dear ALL,
    Scenario is IDOC to FILE(using File Content Conversion in receiver side)
    *Requirement:*
    Payment Id is the field from IDOC.
    1st time data for the field length is 6 digit that always end with '0' that is 6th character or 6th position '0'(this for the 1st transaction in a Day)
    2nd time data for the same field length is 5 digit(this is the 2nd transaction in the same day.this can be many times)
    End of the day the last transaction always the same field length should be 6 digit and end of the digit always 1.when the last transaction is over then appended files should be merged and send to target folder.
    All this transactions always same file and should append.
    Could you please give some idea.
    Note: with out BPM.
    thanks and regards
    walter stephen

    Hi Suraj
    R3 TO File using file content conversion.
    1st transaction to till last transaction all the file will store in local folder.As soon as the last transaction completed then the appended file file move to target folder using command line(DOS command)
    Note:
    all the transaction should be the same file.
    File construction mode will be append.
    this not merging using   partner profile.
    thanks and regards
    walter stephen

  • Deleting the source field in the mapping sector in LSMW....

    hi experts...
    i ve mapped two souce field in same target str...but i cannot delete the one souce field...how i can delete the one source field....
    regards,
    velu...

    IF you have two different Software Component versions.
    Then in SLD , you should Create Dependencies/ PreRequesties.
    By assigning appropriate depencies and Prerequesties , you can see the object of one SWCV in Other SWCV also.
    Lets Say .
    A SWCV has
    DT
    MT
    SI
    ACTION
    B SWCV has
    MM
    as MM on B SWCV needs to access the Objects(DT,MT,SI,Action) from A SWCV ,
    Now on SLD, SWCV A should be add on prerequesties of B SWCV.
    or
    Now on SLD , SWCV B Should add dependent A SWCV.
    Regards
    PS

  • Mail acting ery oddly with repeating characters in the to field

    When composing a message I enter the first few characters of the person I would like to email and mail.app completes the rest of the entry for me - great
    If I then want to put in another name (as I often want to!) then the characters seem to repeat themselves. For example if I want to get my own email [email protected] and I type "j" then "o" and then "n" then this is what I get
    "jjojon"
    as if this were not bad enough when I press the delete 3 times then this is what the display shows
    "jjojonjonjonjon"
    so I have to do a ctrl X to cut everything out of the to field and start again.
    This is the same for the TO, CC and BCC fields
    this problem also exists in the address book when entering in a n email address and also iCal when inviting / notifying guests for a meeting
    Any ideas ?
    Very odd
    Cheers for the help
    Jonathan

    any ideas anyone 10.5.3 update did not fix this - cheers

  • Customize Basic Search iView with some text above the Search field

    Hello *,
    we are using the sap.km.cm.basicsearch iView for searching some things. Is it possible to write some text for description above the search field inside the iview?
    Regards,
    Björn,

    Hi Adam,
        U can add a description to the search field in the search iView by customizing the sap.km.cm.basicsearch iView.Download the PAR file from the server machine or from System Administration>support>Portal Runtime>Browse Deployment>Save the PAR file in local machine and import the same to NWDS and customize according to ur requirement.
    Hope this Helps.
    Regards,
    Vinoth.M

  • Null characters in the source file

    Hi frnds,
    We have a file to file scenario, where in R/3 system will generate the flat files and put in the some folder of R/3 system itself. XI needs to pick this file and process but the problem here is the file contains every alternate character as null character i.e., 1st,3rd,5th.. and so on. Whic is failing during mapping.
    Following is the error message displayed:
    *com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x0(:main:, row:4, col:12) at java.lang.Throwable.<init>(Throwable.java:56) at com.sap.aii.utilxi.misc.api.BaseRuntimeException.<init>(BaseRuntimeException.java:58) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:187) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:174) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) a.............t *
    Please can any one help how to handle this file with null characters.
    Regards,
    Shiva.

    HI,
    On source side make all those fields as optional i.e. occurance will be 0..1 or 0...Unbounded.
    Also while mapping with Receiver fields make those also optional or use DefaultValue Node to pass default value as blank space.
    Actually the node is unable to generate due to Null value so that might be the problem
    Thanks
    Swarup

  • Export pdf and save as using digits.pdf eliminating all the text characters from the source file.

    Hi all,
    Usually when we export pdf from indesign or whatever software,,, the pdf file naming will be as per source file...
    eg.,  123456_dfdfjljf_ULCC.indd will be exported and saved as 123456_dfdfjljf_ULCC.pdf.
    my request is "the pdf should be saved as 12345.pdf avoiding all the characters following first digits.
    hint: first digists may be more or less than 4 digits....
    My request is any number of digits should be saved as 23232.......pdf and avoding the following characters.
    please help me... i have hell lot of pdf to export from indesign.......
    thanks
    bobylon.

    There is no "whatever" here - when you export from InDesign or other software each piece of software makes its own naming decisions. It isn't an Acrobat or JavaScript thing at all.

  • Truncate 4 characters from the end of a field

    How would I go about trimming the last for characters in a field.

    If you are truncating it using the Picture, it should always work. If you are doing it via the !format event, does your data file have a field with the same name as where you put the code?
    I have to admit I dont have a need for truncation so Ive not done any testing besides Test Presentment. The SSN sample came from an actual production form. There isnt anything Im aware of that has to be added to jfpreamble we dont have any form (out of 100s) that has custom jfpreamble coding.
    FYI: We almost exclusively use global field definitions in our data files. If you are using field field definitions that might make a difference. For example, this is a sample from the end of a data file:
    >...
    ^global Authorized_Rep_Name
    G KOCH
    ^global TimeRequested
    11:54:21
    ^global DateRequested
    12/05/2006
    ^global 12_Address_lines
    MRS BARBARA PRODUCTION
    MODIFIED 5606 MARK
    ADDRESS LINE3
    SEATTLE WA 98679-8816
    ^global CP_IA_Record_No
    9
    ^global CP_Address_lines_REC
    9
    ^global DAT_File_Name
    PF_0020_20061205_115421
    ^global DoNotMail
    ^FORM _base_page_v1r3.mdf
    ^field MannerOfServiceImage
    C:\JetForm\Forms\FirstClass.jpg
    ^FORM f-01-115-v1r4.mdf
    ^FORM f-01-115-v1r4-s.mdf
    ^FORM sep-pg9-v1r3-cso.mdf
    ^FORM f-01-115-v1r4-cso.mdf
    If we used field definitions it would look more like:
    >...
    ^form 1111111
    ^field AAAA
    DATA-AAAA
    ^field BBBBB
    DATA-BBBBB
    ^form 222222
    ^field CCCCC
    DATA-CCCCC
    ^field BBBBB
    DATA-BBBBB
    In the first example the data is only defined once, followed by the forms it is to be applied to. In the second example if the data appears on two forms it has to be defined for each form.
    I dont know if this would cause a difference in your truncation problem.

  • Display some constant in the input field and allow the user to change it.

    Dear All,
    I have a requirement in WDA to display inputfield with some constant initially and allow
    the user to change that value according to his wish.Currently I am using UI Element
    InputField for this,but I am not able to show the constant initially.
    How can I achieve this pls suggest.
    Thanks,
    Reddy.

    Hi sudhir,
    To display with default values, you need to write your code in wddointi method.
    Check this code..
    * navigate from <CONTEXT> to <INPUT> via lead selection
      lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
    * get element via lead selection
      lo_el_input = lo_nd_input->get_element( ).
      lv_ship_point = '1001'.
    * set single attribute
      lo_el_input->set_attribute(
        name  =  `SHIP_POINT`
        value = lv_ship_point ).  // Now ship_point have initial value 1001.
    Cheers,
    Kris.

  • I open facebook login page on my android phone, enter email Id and when i enter a character in the password field. Few characters get entered automatically.

    When i enter something in the email id field, and then shift the focus to password field and press any character. Some characters get being displayed automatically in password field( equal to the no. of characters entered in the email id field) . For example, i have entered below id in the email id field:
    Username: [email protected]
    And moved the focus to the password field and press h. Following will be displayed in the password field. Few characters(equal to the no. of characters in the username field .i.e. 9 in this case) are shown before 'h'.
    Password: .........h

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    The Firefox cache temporarily stores images, scripts, and other parts of websites while you are browsing. <br>
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies, do the following:
    #Tap the menu icon located at the top right corner. This is the icon with 3 bars. On older Android devices you'll have to press the hardware menu key and then tap More.
    #Tap '''Settings'''.
    #After that, you will be taken to the settings screen. In the settings screen, look under the section '''''Privacy & Security''''' and select '''Clear private data'''.
    #You will then be taken to a list of what can be cleared. Select the following 2 for deletion:
    #*Cookies & active logins
    #*Cache
    #After those have been selected, tap the '''Clear data''' button to actually clear the cache and cookies.
    Did this help you with your problems? Please let us know!

Maybe you are looking for

  • ** URGENT: ** MEDIA IS OFFLINE for Mp4 files after updating Premiere Pro CC to 8.1

    Hi there, I upgraded recently to Premiere pro CC 2014 and I am working on a project that is already late.  I was having some small issues then I thought that after upgrading to latest version everything would be fine. I just started Premiere and open

  • Application errors occured in ccBPM not restartable?

    hello experts, We are using ccBPM for some of the integration scenarios and synchronously posting data to SAP R/3. When an BAPI returns an application error code (e.g. material locked by an user), we are unable to restart these messages from SXMB_MON

  • Oracle Sql Developer Installation

    Hi Guys, I will be using oracle sql developr at my place and currently installed it at my personal pc.I am very new to the Oracle Sql Developer. I am not able to connect to the Oracle sql Developer.I have Oracle 9i db and oracle forms 10G running and

  • Invoking Applet methods from Javascript for Netscape 6

    Hi, I am trying to invoke an applet method from javascript, but it is failing with Netscape 6 browser: I am doing it the following way- function test(form) var i = document.myapplet.getname(); where myapplet is the name of the applet and getname is a

  • Share photos over iphone problem - possible improvement to iOS.

    Hi,  I haver an ipad mini and usually Share photos to a friend iphone. I found out that the sync of shared photos over icloud uses 3G/data plans and it is not possible to disable this (or is it? How?). This is a problem because when several friend sh