External field name

In our implementation we have the info object for the article to be 40 as the characteristic string length, the actual length of the article is 11 digits so when we see the article in the MPOS (as a part of the CVC)  in the internal format it is getting the 11 digits and adding the leading zeros for completing the 40 characteristic length.
when we look at the external format of the article it just shows me the 11 digits in the MPOS, it is not a problem when the article number is starting from a number that is non zero but it is a problem when the article number starts with 0 because then it is taking it as the leading zero and only showing the 10 digits in the external format in the MPOS.
FOR EXAMPLE:
case1:
article number is 12345600000
internal format is 00000000000000000000000000000012345600000
external format is 12345600000
case2:
article number is 01234500000
internal format is 0000000000000000000000000000001234500000
external format is 1234500000
is there a way to ensure that we can have the external field name of the article for 11 digits for sure because that would allow me to see the 01234500000 as 01234500000 and not as 1234500000
Thanks in advance

Hello APO APO,
I think your InfoObject was set to use conversion exit ALPHA. I believe this conversion exit is not suitable for your case (as you described). One possible solution is to create your own conversion exit which will make sure that the 11 characters in your article will be kept. You can then assign this conversion exit to your InfoObject in transaction RSD1.
To create a custom conversion exit, simply create two function modules in SE37:
1) CONVERSION_EXIT_Zxxxx_INPUT
2) 1) CONVERSION_EXIT_Zxxxx_OUTPUT
You can replace "xxxx" with any string you like. You can see some sample coding by  looking at CONVERSION_EXIT_* functions in SE37.
Hope this helps.

Similar Messages

  • External manufacturer name in the External Manufacturer field in the contr

    hI,
    I cant fing  external manufacturer name in the External Manufacturer field in the control data of the vendor master
    i already activate the field as required in account group setting, but still I can't find it
    anyone could help?
    thanks

    hi
    are you abel to see the external manufacturer in LFA1 table??
    LFA1 - EMNFR
    Regards

  • I am getting error Field name RT_CUSTPL of segment 1 exists multiple times

    Hi,
    While i was try to activate Datasource where i am getting the error     Field name RT_CUSTPL of segment 1 exists multiple times
    BIC/ZCSTCRTDT ( Position 23 ): External length specification will be ignored     
    Regards
    Krish

    One more error "Error when activating DataSource ZSTORE_TXT                    WEBSERVICE"

  • Records and Field Names

    The table structure for the system can be changed through the front-end, so I am using a record structure with the %ROWTYPE functionality to pick up these changes. Data is received from an external source which has to update this data. What I would like to do is assign a value to a field name within the record that matches a particular pattern rather than stating the exact field name (which I will not necessarily know at the time of writing the code as it is a constantly changing table strucure) so for example I would like to write, something to this effect:
    SELECT utc.columnname
    FROM user_tab_columns utc
    INTO v_team
    WHERE utc.columnname like '%TEAM%';
    myrecord.v_team = 'SomeValue';
    Currently this won't compile as v_team does not exist it is the value within v_team I want to use. Is there a solution to this or does anyone have any alternative methods?
    Thank you
    Emma

    Is the following your requirement. I have created tableA as a source of data.
    SQL> select * from tableA;
    TEAM       AREA
    red        A
    blue       B
    green      C
    SQL> select * from tableB;
    no rows selected
    SQL>   declare
      2    str1 varchar2(50) := 'insert into tableB ( ';
      3    str2 varchar2(300) ;
      4    str3 varchar2(20) := ' ) values (';
      5    str4 varchar2(200);
      6    str5 varchar2(10) := ')';
      7    begin
      8    for rec in (select * from tableA) loop
      9     str2 := str2||rec.team||'_area ,';
    10    str4 := str4||''''||rec.area||''',';
    11    end loop;
    12   str2 :=  substr(str2,1,length(str2)-1);
    13   str4 := substr(str4,1,length(str4)-1);
    14   dbms_output.put_line(str1||str2||str3||str4||str5);
    15   execute immediate str1||str2||str3||str4||str5 ;
    16   end;
    17  /
    insert into tableB ( red_area ,blue_area ,green_area  ) values ('A','B','C')
    PL/SQL procedure successfully completed.
    SQL> select * from tableB;
            ID RED_A GREEN BLUE_
               A     C     B
    SQL>

  • Can I get field name of Selection screen ?

    Hi, experts.
    I'd like to manage PGM's screens & fields of screens. I need to know field names of selection screen in  external PGMs to manage input values of those fields.
    For values, I'll use 'Dynp_values_read', but what should I use for getting field names of selection screen?
    Is there any functions, classes or tables for PGM's fields of selection screen?
    I've found tables&functions for this and I found D020S, D020T, D021T for PGM's screen. But I counld't see proper field names that shows on a selection screen when I excuted PGM. I guess there's a conversion routine between data that saved in repository and field name on screen.
    Please let me know what should I use a function, tables or else.
    Thanks.

    Hi
    Use Read text pool syntax
    READ TEXTPOOL program name
    INTO T_TPOOL
    LANGUAGE 'NL'.
    within TB_TPOOL all select option field namees will be stored under field ID with type S
    Edited by: Lavanya K on Apr 22, 2009 10:02 AM

  • Internal Customer Name vs. External Customer Name

    Is there somewhere in Customer Master information where I can store an internally used customer name vs the actual shipping name/invoicing name?
    We have customers that do not want their official name on shipping labels because the boxes will get stolen based on the name of thier company.  So we want to have the official name in our system to search on and work with, but ship with some abbreviation or alias. 
    Example:
    Internal Name: Jim Smith's Fine Jewelery Shop  (the real name)
    External/Shipping Name: JSFJS Inc  (alias to hide the shipped contents)

    Hi Brian,
    I do not know if somebody already helped you on your question or you did, but here is a possible solution.
    You can solve this problem by comple the NAME 1 field when you create your customer with the "real name" of the customer, and in NAME 2 with the "alias" name.
    Then when you define your shipping and invoice documents, you must take the name of your customer from NAME 2 in the form.
    Hope this may helps.
    kindly regards!
    Bea.

  • What are the field names for below mentioned

    Hello Friends
    What are the fields names for below tables
    in EKKO
    Purchase Document Date
    Net Value of the purchase document.
    In EKPO
    Item Description
    From which place We bought it. (It means in Sales Items there we can know from which plant we sold the goods, like in EKPO, there is any field like this)
    Please let we are defining the report to find out the stock availability for perticular storage location using select Options plant, company code, material no.
    How many tables involve her to build this report. and also field names, they come under which table.
    Please send me this information ASAP. PLz Plz Plz..........
    Regards
    Praveen

    You can check the fields of these tables via SE11
    Purchase Document Date  -  EKKO-BEDAT
    Item Description  -  EKPO-TXZ01
    Net price per item - EKPO-NETPR.
    Regards,
    Rich Heilman

  • Capture field name in table control on double click

    Hi,
    How can I capture the field name of internal table passed to table control on double click?
    I have set function code as 'PICK' and applied 'Respond to double click' and used GET CURSOR statement. Here I can get the values like row number (line number), field value also. But I would like to capture on which field the cursor is (or on which column the cursor is)?
    Thanks in advance.
    Regards
    Ramesh.

    Got it.
    We can capture it by using the statement GET CURSOR only.
    GET CURSOR field <field xx> .
    Here the <field xx> is the field name where we have said double click.

  • Field names Missing in the (Excel) Mail attachment

    Hi ,
    I am trying to send my ALV Grid Output as Excel Email attachment using the below code
    The problem is that the field names are missing in the receivers Mail.
    i.e
    *Name*   *Emp Code*   * Branch*         "this is missing
    abc         123                 ukp
    I searched many threads but unable to find the solution for this.
    Kindly suggest me regarding this issue.
    loop at p_eadd.
        if p_eadd-low <> space.
          clear reclist.
          reclist-rec_type = 'U'.  "Internet-adress
          reclist-receiver = p_eadd-low.
          reclist-express = 'X'.
          append reclist.
        endif.
      endloop.
    * endif.
    * Send the document
      call function 'SO_NEW_DOCUMENT_SEND_API1'
         exporting
              document_type              = 'RAW'
              document_data              = doc_chng
    *         PUT_IN_OUTBOX              = 'X'
         tables
              object_content             = objcont
              receivers                  = reclist
         exceptions
              too_many_receivers         = 1
              document_not_sent          = 2
              operation_no_authorization = 4
              others                     = 99.
      ld_aplstat = '4'.
      case sy-subrc.
        when 0.
          loop at reclist.
            if reclist-receiver = space.
              name = reclist-rec_id.
            else.
              name = reclist-receiver.
            endif.
            if reclist-retrn_code = 0.
              write: / name, ': succesfully sent'.
            else.
              write: / name, ': error occured'.
            endif.
          endloop.
          ld_aplstat = '0'.
        when 1.
          write: / 'Too many receivers specified !'.
        when 2.
          write: / 'No receiver got the document !'.
        when 4.
          write: / 'Missing send authority !'.
        when others.
          write: / 'Unexpected error occured !'.
      endcase.
    *.Tell workflow to go on
      clear ls_scma_event.
      ls_scma_event-wf_event = cs_wf_events-finished.
      ls_scma_event-wf_witem = wf_witem.
      ls_scma_event-wf_okey  = wf_okey.
      call function 'KPEP_MONI_CLOSE_RECORD'
        exporting
          ls_key        = gs_key
          ls_scma_event = ls_scma_event
        changing
          ld_aplstat    = ld_aplstat
        exceptions
          no_id_given   = 1
          others        = 2.
    call function 'SAP_CONVERT_TO_XLS_FORMAT'
          exporting
           i_field_seperator          = ' '
           i_line_header              = 'X'
            i_filename                 = p_file
    *   I_APPL_KEEP                = ' '
          tables
            i_tab_sap_data             = it_final
    * CHANGING
    *   I_TAB_CONVERTED_DATA       =
         exceptions
           conversion_failed          = 1
    *   OTHERS                     = 2
        if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        endif.
    Thanks in Advance,
    Mr. Ben

    Hi Ben,
    Follow the code below....
    Your internal table it_final will have the attachment data. After you got the attachment data do the following
    gc_ret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
    lt_attachment        TYPE TABLE OF  solisti1 ,
    gt_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0 WITH HEADER LINE,
      CLEAR:gs_attach.                      <this will have your attachment, declare a structure which contains fields of your  excel sheet>
    <before this you have to copy all the fields from your final internal table which should be attached to email to gs_attach>
    For attaching field names
        CONCATENATE gc_ret gs_attach INTO gs_attach.
        gs_attach = gs_attach+1.
        APPEND gs_attach TO gt_attach.
    CLEAR:lt_attachment.
          lt_attachment[] = gt_attach[].
    SORT  lt_attachment .
          DELETE ADJACENT DUPLICATES FROM lt_attachment COMPARING ALL FIELDS.
          CLEAR gs_attach.
          CONCATENATE <field names >
          INTO gs_attach SEPARATED BY gc_tab.
          INSERT gs_attach INTO lt_attachment INDEX 1.
    <field addition ends>
    call function 'SO_NEW_DOCUMENT_SEND_API1'
         exporting
              document_type              = 'RAW'
              document_data              = doc_chng
            PUT_IN_OUTBOX              = 'X'
         tables
              object_content             = objcont
              receivers                  = reclist
            contents_bin               = lt_attachment
         exceptions
              too_many_receivers         = 1
              document_not_sent          = 2
              operation_no_authorization = 4
        if sy-subrc  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        endif.
    Regards,
    Aravind.

  • Unable to get Field Names from Archived File

    Hi All,
    We have a ECC 6 Ehp4 system. When i retrieve Idocs archived using SARA, the data only contains application data. There is no field names available - eg: posting date, tax code etc. Please find below the background on this issue.
    I configured archiving of process idocs (status 52,12,03) from EDIDC tables. I set up the settings for Archive Object IDOC and archived the data for 15 days.
    Both archiving and deletion of data from the table was successful.
    I tried reading the Idoc data from Archive File using the Information System option -> Info structure (available as default for Idoc).
    But the data retrieved only shows the Application data for all the segments of the IDoc. The fields for the segments like Tax Code, Posting Date etc are not available in the data. Functional teams will not be able to make sense with just the application data.
    Am I missing some setting? Is there any way to retrieve the related field values also ?
    Please help.
    Thanks and Regards,
    Raghavan

    Hi All,
    There is tcode WE10. You could choose if the data source is archive and also the archive session. You will get the list of segments provided. click on the segment number and you will get the data.
    Thanks and Regards,
    Raghavan

  • Can field names not start with a single letter camel case?

    I am using Hibernate 3.6, JPA 2.0, and Spring 3.0.6. I have fields in my objects like the following:
    class PersonContact {
    Long eAddressCpId;
    ElectronicAddress eAddress;
    I use field access (in my orm files) and queries/inserts/etc work without an issue. The fields are both in the class as well as in the orm files. But on startup of the application, the JPA configuration load spits out warnings:
    2011-02-22 15:38:10,785 [[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] WARN org.hibernate.cfg.annotations.reflection.JPAOverridenAnnotationReader - Property com.foo.model.contactpoint.ElectronicAddress.eAddress not found in class but described in <mapping-file/> (possible typo error)
    2011-02-22 15:38:10,801 [[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] WARN org.hibernate.cfg.annotations.reflection.JPAOverridenAnnotationReader - Property com.foo.model.person.PersonContact.eAddressCpId not found in class but described in <mapping-file/> (possible typo error)
    2011-02-22 15:38:10,801 [[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] WARN org.hibernate.cfg.annotations.reflection.JPAOverridenAnnotationReader - Property com.foo.model.person.PersonContact.eAddress not found in class but described in <mapping-file/> (possible typo error)
    2011-02-22 15:38:10,817 [[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] WARN org.hibernate.cfg.annotations.reflection.JPAOverridenAnnotationReader - Property com.foo.model.person.PartyContact.eAddressCpId not found in class but described in <mapping-file/> (possible typo error)
    2011-02-22 15:38:10,817 [[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] WARN org.hibernate.cfg.annotations.reflection.JPAOverridenAnnotationReader - Property com.foo.model.person.PartyContact.eAddress not found in class but described in <mapping-file/> (possible typo error)
    If I change my field names to be from eAddress to electronicAddress and eAddressCpId to electronicAddressCpId , then I don't get these warnings.
    Is there requirements around the field names?
    Thanks..jay

    Hi,
    If you have this PersonContact.eAddress in your mapping file, Hibernate will look in PersonContact for
    1 a public field called eAddress
    2 a public member method called getEAddress (Or geteAddress).
    3 a public member method called isEAddress(Or isAddress)
    Your fields aren't public, so my guess is that getEAddress is found. From this "get" is stripped away and the rest is "decapitalized".
    This decapitalize method has these lines:
    if (name.length() > 1 && Character.isUpperCase(name.charAt(1)) &&
          Character.isUpperCase(name.charAt(0))){
                 return name;
    }So yes, I think there is a requirement with fields names. (Or rather getter names, since fields aren't decapitalized)
    You could try and change your mapping file into PersonContact.EAddress to see if I'm right.
    Btw, I am not a Java programmer, so this is what I could manage from a poor mans view at this (Open) source of Hibernate's.
    Regards
    Peter

  • Getting an object's field name

    In the snippet of code shown below, 'parent' represents a UI dialog, and 'child' represents one of the components of the dialog. What I would like to know is the field name of 'child'. The variable 'fieldName' would contain the name I am seeking, if I knew how to determine the value of 'ii' that corresponds to the object 'child'.
    I hope you can help.
    Thanks,
    Miguel
    String getFieldName(Object parent,Component child) {
    Class cl = parent.getClass();
    Field [] fields = cl.getDeclaredFields();
    String fieldName = fields[ii].getName();
    // problem: how to get 'ii' that corresponds to 'child'?
    return fieldName;
    }

    Is there a way to get the
    corresponding array of component objects? It depends on the way the "parent" class is defined.
    For example (a BAD example, but an example):
    I could have the parent keep it's components in a HashMap, with a key of the component type and a value of an ArrayList that contains each component matching the component type.
    This would be very annoying to deal with, and hard to find any given component (whether reflectively or with normal code).
    If I can get
    the value of a field (Object val =
    field.get(parent);), there must be a way to get the
    reference to the object that correspond to the pair
    'field','parent'.
    Thanks.Huh?
    What do you think field[1].get(parent) returned?
    It's the value that the field is referring to (e.g. the actual object refered to by the field).
    I think dubwai's questions about "what are you trying to do" are very relevant. Using reflection like this usually means the design is lacking some important functionality

  • Field names are not coming in file when dloaded frm apserv to prserv

    Here i'm dloading data to Appserver..frm there data is dloading to pre server..but fieldnames are downloading...i am working in 4.6c version.same code is working in ECC version...Plzz give me a suggestion...
    FORM dload_file_from_server  USING     p_srfname            "#EC *
                                           p_fname              "#EC *
                                           p_psfile             "#EC *
                                           p_flag.
      DATA: lv_fname TYPE string.
      CASE p_flag.
        WHEN 'MSEG'.
          ASSIGN it_fn TO <fn>.
          ASSIGN wa_fn TO <fn_wa>.
          ASSIGN it1_mseg TO <fs>.
          ASSIGN wa1_mseg TO <fs_wa>.
          ASSIGN p_srfname TO <fs_fname>.
          CONCATENATE p_psfile p_fname INTO lv_fname SEPARATED BY '\'.
        WHEN 'MKPF'.
          ASSIGN it_fn TO <fn>.
          ASSIGN wa_fn TO <fn_wa>.
          ASSIGN it1_mkpf TO <fs>.
          ASSIGN wa1_mkpf TO <fs_wa>.
          ASSIGN p_srfname TO <fs_fname>.
          CONCATENATE p_psfile p_fname INTO lv_fname SEPARATED BY '\'.
         WHEN OTHERS.
      ENDCASE.
      OPEN DATASET <fs_fname> FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      READ DATASET  <fs_fname> INTO <fn_wa>.
      APPEND <fn_wa> TO <fn>.
      DO.
        IF sy-tabix GE 1.
          READ DATASET <fs_fname> INTO <fs_wa>.
          IF sy-subrc = 0.
            APPEND <fs_wa> TO <fs>.
          ELSE.
            EXIT.
          ENDIF.
        ENDIF.
      ENDDO.
      CLOSE DATASET <fs_fname>.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                  = lv_fname
          filetype                  = 'ASC'
          trunc_trailing_blanks     = 'X'
          trunc_trailing_blanks_eol = 'X'
        TABLES
          data_tab                  = <fs>
          fieldnames                = <fn>.
      IF sy-subrc <> 0.                                         "#EC
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CLEAR: <fn>, <fn_wa>.
    ENDFORM.                    " dload_file_from_server
    Please use code tags - it makes your code easier to read
    Edited by: Rob Burbank on Dec 6, 2010 4:00 PM

    Hi,
        I think for 4.6 C <fn> must be declared as an internal table and the field names should be given as records and not as one single record.
       the fieldnames internal table should contain records as :
       Field1
       Field2 ....  and not as Field1 Field2 ....
    Regards,
    Srini.

  • How to return all field names in a table

    How do you write a report to return all field names in a table? I prefer the field names in a column.
    Thanks
    Wayne

    Hi,
    In Oracle it is,
    Select column_name from user_tab_cols where table_name  = 'Table_Name';
    Note: Table_Name should be in capital letters
    In MS SQL Server it is,
    SELECT Column_Name + ', '
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE TABLE_NAME = 'Table_Name'
    Hope this helps!
    Thanks
    -Azhar

  • How to rename the column field names

    hello guys,
    i am retrieving my field names from the database and i view it thru HTML.
    When i view it,the column names are those which are given while creating tables.
    Ex..
    fname,lname,phno,
    i want it as First Name,Last Name,Phone Number etc ...<%
    try {
         stmt = con.createStatement();
         sql="SELECT fname, lname, gender, email,phnum,sartweblink, sartaddress1, sartaddress2,sartcounty, country,sartpostcode,dob FROM Artist where artistid='" + sartid + "'";
         rs=stmt.executeQuery(sql);
         rsmd=rs.getMetaData();
         int colcount=rsmd.getColumnCount();
         for(i=1;i<=colcount;i++)
    %>
              <tr><td width="200"><FONT face=verdana size=2><%= rsmd.getColumnName(i)%>
    <%
    %>               </FONT>
        <font face=verdana size=2>
          <% while(rs.next())
              fname=rs.getString("fname");
              lname=rs.getString("lname");
              gender=rs.getString("gender");
              email=rs.getString("email");
               phnum=rs.getInt("phnum");
              weblink=rs.getString("sartweblink");
              address1=rs.getString("sartaddress1");
              address2=rs.getString("sartaddress2");
              county=rs.getString("sartcounty");
              country=rs.getString("country");
              postcode=rs.getString("sartpostcode");
               dob=rs.getString("dob");
          %>i make use of metadata..
    can anyone tell me how to do this..
    thanks in advance

    why not use alias:
    your query is
    SELECT fname, lname, gender, email
    and will be:
    SELECT fname FIRSTNAME, lname LASTNAME, gender GENDER, email EMAILADDRESS

Maybe you are looking for

  • First Play drop down menu not working

    I have DVD Studio Pro 2. I created a DVD for my sister's school assignment and it worked fine then. Now I need to create a DVD for my client. The First Play selection menu goes blank when I click on it as well as the Title, Menu, and Return selection

  • Disp+work.exe is yellow!!

    Hi,everyone: I met a problem. In MMC  the status of disp+work.exe is yellow. I restarted the service but not work. Will I have to uninstall the system?If so,I will have to redo the post-installation,and it is terrible. The deloper trace of disp+work.

  • How to use Runtime execute DOS command?

    Hello, I can not use Runtime class execuste Dos command such as copy and dir. Is there any suggestion? Thanks in advance.

  • Resolving PS enqueue waits

    Hi All, I find the following in statspack report. Enqueue activity for DB: FCRLIVE Instance: fcrlive Snaps: 8318 -8319 -> Enqueue stats gathered prior to 9i should not be compared with 9i data -> ordered by Wait Time desc, Waits desc Avg Wt Wait Eq R

  • Init: can't exec /bin/sh for single user.....

    Has anyone come across this gem during start-up? it's outputting init: can't exec /bin/sh for single user: No such file or directory init: can't exec /bin/sh for single user: No such file or directory init: can't exec /bin/sh for etc/rc: No such file