Fields Lengths (Mapping)

Hi,
My cenario is: POS calls RFC enabled function module from SAP trough EAI.
So a function module Z* is called. When this function is Tested in SAP with transaction SE37 everything seems to be fine. There are one table returned and all the data is in correct fields.
But, when this function is called trough EAI data is misaligned accordingly to difference of field lengths. For example ITEMS_OUT (used in my FM) table fields DOC_NUMBER in xml has 20 characters in function module 10, and so on.
Do you have any idea? Where should be the problem? In mapping or should be a function module problem?
Example:
In xml file i get this:
HEADERS_OUT>
- <item>
<DOC_NUMBER>00000007030040000000</DOC_NUMBER>
<SOLD_TO>Test client Sales</SOLD_TO>
<NAME1 />
<NET_VAL_HD>0.000000000</NET_VAL_HD>
<TAX_AMOUNT>0.000000000</TAX_AMOUNT>
<BR_VAL_HD>0.000000000</BR_VAL_HD>
<_FILLER />
<CURRENCY />
</item>
</HEADERS_OUT>
Regarding the DOC_NUMBER for example. In my RFC i have '0000000703', SOLD_TO = 0040000000; NAME1 = Test client Sales, and in xml is totally misaligned.
Thanks
BR

Hi
I think there is only 1 solution
1) you will have to edit the XML structure so as to ristrich the field lengths to that needed by FM . As SAP will simply truncate the value if the length of the field is more than the required.
The changes can be made in SAP FM also if the altered length is valid as per the SAP data type for that certain field.
hope this helps
Regards
Nikhil

Similar Messages

  • ANSI X12 EDI 850 V4010 - REF Field length Increase

    Hi,
    The standarad EDI V4010 definiation contains Segment:REF, Field:127, MaxLength:30 (ISA.GS.ST.REF:127), partner sending a EDI data with more than 30 characters for this field. As per their EDI guide lines the MaxLength allows upto 50 chars for this field.
    Have changed the field length from 30 to 50 chars in ANSI X12 850 V4010 message structure and re-generated EDI To XML mapping.When test the mapping in BIC tool, the EDI file is getting converted to EDI XML when the field value is more than 30 chars i.e upto 50 chars. Also Tested by giving more than 50 chars value for this field and it's failed to convert in BIC mapping tool saying 'The length of the field value is too big'.
    As the change working in BIC tool, generated sda file and deployed on PI QA system. While test the change after .sda file deployment the change of Field Length is not reflecting and it's only allowing upto 30 chars only., and more than 30 chars data for this field EDI files are failing.
    As the change working alone in BIC tool fine and not reflecting thefield length after sds file deployment. Any ideas about this issue and how to handle this requirement.
    Thanks
    Veera

    Hi John,
    If you see the documentation what you have given :
    Parameters:
    on: delimiters at the end do not appear
    off: delimiters at the end appear
    it clearly says the parameter is used for the delimiters, but not for truncating length of the fields in Seeburger.
    I'm not sure if you've ever used the BIC Mapping tool and what I'm really looking for is someone with experience in this area to give a solution that works for this question:
    By the way I have used the seeburger and this requirement we have done within XI because we have done all the rules within XI not in seeburger. But I will give a try with this requirement and will try to update you. Until unless I work with any of the issue I will not suggest. Even If I didnt I will try and then will suggest. Dont get me wrong.
    Cheers,
    John.

  • Signon user name field length

    Folks - this might be a VERY simple question, but here goes.
    We have been trying to confirm the userid length available in ECC6/etc. Knowing that this has been constrained in previous releases to a shorter field length, i.e.?12? chars...we want to be able to use a firstname.lastname login format via SAP GUI, which for many of our users exceeds that character count. 
    Can someone confirm that the permissable field length has been extended?
    thanks in advance,
    Al

    Hi Al,
    the username field in ABAP systems has still 12 character length. The username is stored in upper case.
    However, if you are running a SAP NetWeaver Portal you have another option:
    - You use an LDAP directory as the user store for the portal -> The username is not limited anymore.
    - You add an additional LDAP attribute (e.g. SAPusername) to map the entries to the ABAP username (which still is limited to 12 character upper case)
    - You use LDAP syncronization in the ABAP system to keep the users in the directory and in the ABAP in sync.
    - Finally you use the Single Sign-On capabilities to call ABAP applications using the portal.
    Kind regards
    Frank
    P.S. The ITS is able to use the alias-field in the ABAP user master record, too. See Online Help for details:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/52/67119e439b11d1896f0000e8322d00/frameset.htm

  • UDF for Splitting the nodes based on the field length

    HI All,
    Target records Record1 to Record4 must be created based on the length of the source field length i.e, if the source field length is only 90 then only 3 records must be created.maximum length of the source field is 120.The source and the target structure are as shown
    Source                                  Target
    Record                                Record(30)
          Field(120)    ------------->          Field1(10)
                                                     Field2(10)
                                                     Field3(10)
    After mapping:-
            Source         ----------->        Target
    Record                                Record1(0 to30)
          Field(120)    ------------->          Field1(0 to 10)
                                                     Field2(10 to 20)
                                                     Field3(20 to 30)
                                               Record2(30 to 60)
                            ------------->          Field1(30 to 40)
                                                     Field2(40 to 50)
                                                     Field3(50 to 60)
                                               Record3(60 to 90)
                            ------------->          Field1(60 to 70)
                                                     Field2(70 to 80)
                                                     Field3( 80 to 90)
                                               Record3(90 to 120)
                            ------------->          Field1(90 to 100)
                                                     Field2(100 to 110)
                                                     Field3(110 to 120)
    Can any one provide me the code to get this done.
    Thanks ,
    Vikram

    You need no UDF. You can use the substring function, but you should check the length of the string to prevent mapping errors due to the substring function.

  • How to add field length constraints when using an existing JavaBean model

    Within our current project we used a O/R mapping tool to generate our JavaBean model. For e.g.
    <b>public class Person{
      private String name; ...getName() ...setName(...)
    }</b>
    The whole model is used within our Web Dynpro project. Now it's a requirement to implement field length constraints. Normally this is no problem using ISimpleType like the following:
    <b>attributeInfo = wdContext.nodePerson().getNodeInfo().getAttribute
    (IPrivate...IPersonElement.NAME);
    ISimpleTypeModifiable type = attributeInfo.getModifiableSimpleType();
    type.setLength(60);</b>
    But we've got an runtime exception that it is not allowed to modify the models datatype:
    com.sap.tc.webdynpro.progmodel.context.ContextException: AttributeInfo
    <b>(Basics.Person.name): must not modify the datatype of a mapped attribute</b>
        at
    com.sap.tc.webdynpro.progmodel.context.AttributeInfo.getModifiableSimpleType
    (AttributeInfo.java:337)
    The question is how could a workaround look like. Or is there nothing like that and we have to build a dictionary type tier upon our JavaBean model. Any ideas ?
    thx,
    s.w.

    Sabine,
    You may:
    1. Import JavaBeans model
    2. Create DDIC type with necessary constarints (string-based, max. length 60)
    3. Open editor for target model class and change type of property.
    See my blog /people/valery.silaev/blog/2005/06/29/apojo--almostplain-old-java-objects-as-model (section "Tweaking model classes") for details.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Field length was changed in R/3 was this effect in BW

    Hi ,
    Field  length of one Field  was incresed in the data source.
    the same data source/table is used for extracting the data from R/3 to BW.
    will it effect these changes in BW side.
    Thanks
    Ram

    Hi Ram,
    It Affects 100%.for the Data.
    If the field in the data source is suppose 15 and if the Info Object In BW is 12 the there are chances of missing 3 characters which might be crucial for the client.
    <i>But there will not be any effect on Transfer Rules mapping or data load</i>.
    Regards,
    RK.

  • Fex fields length, align right

    In file receiver with content conversion and fixed field length is there a way to align the data to he right of the fields?
    Default the values are being aligned left so that if a field has length 10 and input is "1234" it becomes "1234______", i want to align left so it becomes" ______1234"

    Hi,
    >>Default the values are being aligned left so that if a field has length 10 and input is "1234" it becomes "1234______", i want to align left so it becomes" ______1234"
    You need to handle this in the mapping itself, if the length is less than required length then append space in the beginning
    Regards
    Suraj

  • Increase of Field length. & vendor data @ sales documents

    Dear all,
    a. I want to increase the Sales employee - Remarks (field) length from 50 characters to 200 characters.
    Can we increase the length of standard field's without using SDK? If yes, tell me how to do?
    b. I am creating 2 UDF's @ marketing documents. - Title level
    At first UDF - I want to see all the vendor master data (vendor codes) by formatted search
    At the secound field  - the address of the relevant Ship to r bill to address of vendor has to be filled down - as soon as i selected the vendorcode on the above field.
    Can we map the UDF's as per the above requirement - with out using SDK & by using formatted search.
    If - we can do with formatted search - help me of how to do & send me the query.
    Thanks & Regards
    ganesh

    Ganesh,
    The SAP database field lengths cannot be changed.
    Reg the Formatted Search of Vendor Codes for the first UDF.  The SQL would be like
    SELECT T0.CARDCODE FROM [DBO\].[OCRD\] T0 WHERE T0.CARDTYPE = 'S'
    YES, it is possible to trigger the FMS on the second UDF when the Vendor Code is filled in the firt UDF.
    I am not clear with what you mean by the following
    At the secound field - the address of the relevant Ship to r bill to address of vendor has to be filled down - as soon as i selected the vendorcode on the above field.
    The Address information is in CRD1 table and you can use the first UDF's values in the WHERE clause of the SELECT statement in your second FMS
    example:
    SELECT T0.STREET, T0.CITY, .... FROM [DBO\].[CRD1\] T0 WHERE T0.CARDCODE = $\[ORDR.U_USERFIELD] AND T0.ADRESTYPE = 'B'
    CHANGE U_USERFIELD1 with the name of your Vendor Code UDF
    T0.ADRESTYPE = 'B' ..........FOR BILLING ADDRESS
    T0.ADRESTYPE = 'S' ..........FOR SHIPPING ADDRESS
    Suda

  • Regarding Field Lengths

    Hi All,
    Suppose My Scenario is to Send the Vendor Details From SAP ECC To File.
    Here In ECC we have the Fields with  Field Lengths with 20 Char , But in the File We have the Fields with Field Lengths with 10 Char.
    So in this case Is the Data will be Posted to File Successfully OR Any Error will Come
    How To do this in Mapping Time
    Regards
    Vamsi

    Hey,
    Don't complicate.
    Just in FCC  set  NameA.fixedLengthTooShortHandling
    = Ignore / Cut. Depending on the requirement.
    <b>Ignore</b>:Ignore means that the system applies the value completely, regardless of it being too long.
    <b>Cut</b>:Cut means that a value is shortened to the maximum permitted length
    Further reference.
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    <b>Cheers,
    *RAJ*</b>

  • Field length change in Web Dynpro Components iView

    Hi,
    We are using SAP MDM Web Dynpro Components - Configuration Manager (NW7.3) to develop the UI. One of the issue while disply field is, Though field maintained in MDM has only 2 charaters UI that displays a full-screen-width field.
    I would like to display actual field length maintained in reposiroy for each field. Is it possible??
    Cheers,
    Rc

    This is closed.
    By mistake Raised Twice....I guess I need break

  • Changing field length of a standard field in standard table VBEP

    Hi,
    Please advice the possibility and the possible repercussions of changing field lengths in a standard table. Table in concern is VBEP.
    Thanks & Rgds,
    Pradeep

    No you cannot change the field length
    thanks
    G. Lakshmipathi

  • Type conflict when calling a function module (field length)

    Dear All,
                I am getting this following error while executing:  Type conflict when calling a function module (field length)
    This is piece of coding i have writern in my action button.
    method SEARCH_MATERIAL .
      data:
            node_mat_input TYPE REF TO  if_wd_context_node,
            node_mat_output TYPE REF TO if_wd_context_node,
            material TYPE BAPIMATDET-MATERIAL,
            itab TYPE TABLE OF BAPIMATDOA.
      node_mat_input = wd_context->get_child_node( 'NODE_MAT_INPUT' ).
      node_mat_output = wd_context->get_child_node( 'NODE_MAT_OUTPUT' ).
      node_mat_input->get_attribute( EXPORTING name = 'MATERIAL'
                                     IMPORTING value = material ).
      CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL'
        EXPORTING
          material                    = material
        PLANT                       = plant
        VALUATIONAREA               =
        VALUATIONTYPE               =
        MATERIAL_EVG                =
       IMPORTING
         MATERIAL_GENERAL_DATA       = itab
        RETURN                      =
        MATERIALPLANTDATA           =
        MATERIALVALUATIONDATA       =
      node_mat_output->bind_table( itab ).
    endmethod.
    Attributes are:
    Node name = INPUT its structure is BAPIMATDET
    INPUT attributes = MATERIAL of type BAPIMATDET-MATERIAL
    Thanks,
    Gopi.

    Hi Amit,
               I have used service call to fetch records from that bapi..
    The following is the code generated by service call:-
    METHOD execute_bapi_material_get_deta .
    declarations for context navigation
      DATA:
        node_bapi_material_get_de   TYPE REF TO if_wd_context_node,
         node_exporting   TYPE REF TO if_wd_context_node,
         node_material_general_dat   TYPE REF TO if_wd_context_node,
         node_importing   TYPE REF TO if_wd_context_node,
          lri_element    TYPE REF TO if_wd_context_element.
    declarations for fuba parameters
      data:
        stru_c_material_general_dat    TYPE if_componentcontroller=>element_material_general_dat.
      DATA:
        attr_material    TYPE bapimatdet-material,
        attr_plant    TYPE bapimatall-plant.
    get all involved child nodes
      node_bapi_material_get_de = wd_context->get_child_node( `BAPI_MATERIAL_GET_DE` ).
      node_exporting = node_bapi_material_get_de->get_child_node( `EXPORTING` ).
      node_material_general_dat = node_exporting->get_child_node( `MATERIAL_GENERAL_DAT` ).
      node_importing = node_bapi_material_get_de->get_child_node( `IMPORTING` ).
    get input from context
      node_importing->get_attribute(    EXPORTING      name = `MATERIAL`
                                                         IMPORTING      value = attr_material ).
      node_importing->get_attribute(  EXPORTING       name = `PLANT`
                                                              IMPORTING       value = attr_plant ).
    the invocation - errors are always fatal !!!
      CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL'
        EXPORTING
          material =                        attr_material
          plant =                           attr_plant
    "      valuationarea =                   wd_This->Valuationarea
    "      valuationtype =                   wd_This->Valuationtype
    "      material_Evg =                    wd_This->Material_Evg
        IMPORTING
          material_general_data =           stru_c_material_general_dat
    "      return =                          wd_This->Return
    "      materialplantdata =               wd_This->Materialplantdata
    "      materialvaluationdata =           wd_This->Materialvaluationdat
      node_material_general_dat->bind_structure( stru_c_material_general_dat[] ).
    ENDMETHOD.
                                 but the problem is I  am getting the following error while compiling...
    " stru_c_materialplantdata " is not an internal table - the " OCCOURS n"  specification is missing.
    Thanks,
    Gopi.
    Edited by: Yegalaivan on Nov 18, 2009 8:30 AM

  • How to create an infotype with one of its field length eq 1000.??

    hi ,
    i need to create a infotype where one of the field length is 1000 characters how do i achieve this. if i give more than 255 in the PS structure it will not allow. then how do i get a text field of 1000 chars in the screen ( which is an input field)

    You can use those function calls even inside a PA Infotype.. they just invoke the text ediotr table control.. I gave you the reference of the PD infotype 1002 just for an idea. I don't think you will able to meet your 1000 char reqt without using the text editor.
    ~Suresh

  • R/3 Field length 80, BW field max allowed 60

    Hi all,
    Field ABC is in R/3 production system.
    Its length is 80(CHAR).
    This field data is now to be extracted to BW.
    It is used in extract program and updated to an extract table(R/3), then this has be loaded into a master load(BW).
    But in BW the field length allowed is 60(Max).
    So how to get in this 80 char data into BW??
    Please let me know in detail.
    Also please share links pertaining to this if possible.
    Thanks,
    Sowrabh

    Hi Sowrabh,
    Create two Infoobjects one with length 60 and one with length 20.
    Now in transfer rules write routines for both.
    IOB1 = <r/3 field>+0(60)
    IOB2 = <r/3 field>+60(20)
    Regards,
    Mansi
    Edited by: mansi dandavate on Apr 23, 2009 6:23 PM

  • CATT - vendor/customer master address field length over

    Dear all,
       when use CATT to record vendor/customer master,the address some fields length are over recorded field length(ex. ADDR1_DATA-NAME4,ADDR1_DATA-STR_SUPPL3...etc)
    is there any config in CATT to solve this kind of problem?

    When you are doing your LSMW batch input recording, on selection screen (where you specify the sales org, distribution channel, division, account group, etc) please put a flag on "Use central address management" checkbox (SAPMF02D 0100 >  USE_ZAV).
    In this case you should be able to see and fill the desired fields.

Maybe you are looking for

  • Background jobs

    Hi,         We can schedule the programs or transactions in background through SM36 and we can see the status through SM37.Then what is the use of FM's JOb_open,Job_submit and Job_close.When we will use these FM's. Can anybody tell me the difference

  • Windows 8.1 to 8.1 Pro

    I have purchased a laptop with Windows 8.1 pre-installed. I also purchased a Windows 8.1 Pro disc and license but every time I run a custom install it reverts back to the 8.1 Home edition with the OEM license and never allows me to install the 8.1 Pr

  • InetAddress and hostname containing pause(s)

    Hi! I have a problem to get real host name which contains pause. On Windows NT 4.0 is possible to set NETBIOS name containing pause after a lot of warnings :) It is not good idea to do so, but if some user do it, I'll have to find a way to understand

  • Trying to install presets but can't find presets folder

    I just upgraded to Lion AND purchased Lightroom 4. I'm trying to install a set of presets by going to lightroom preferences, presets and clicking on the "show lightroom presets folder" but when I click the button nothing happens at all. In fact, I ca

  • GRC AC 5.3 | CUP Request Type = Information

    Hello All, We have recently deployed GRC 5.3 and have seen in many demos by different partners that GRC CUP has request Type: "Information" which is used to search and view information about request types. During our implementation of CUP we didn't r