Set internal length for field without reference in FM REUSE_ALV_GRID_DISPLA

Hi Abapers,
Currently I use FM REUSE_ALV_GRID_DISPLAYfor my report. The problem is, my internal table contain some field which have no reference to any data dictionary.
This part of my code when set that kind of field:
   z_field_cat-ref_tabname = ''.
   z_field_cat-ref_fieldname = ''.
z_field_cat-tabname = 'T_OUT_FINAL'.
    z_field_cat-fieldname = 'ARKTX'.
    z_field_cat-col_pos = z_colpos.
    z_field_cat-hotspot = 'X'.
    z_field_cat-outputlen = '200'.
    z_field_cat-seltext_m = 'Comments'.
    z_field_cat-ddictxt = 'M'.
*{   INSERT         SRPK900238                                        1
    z_field_cat- = 'char'.
    z_field_cat-ddic_outputlen = '5'.
    z_field_cat-intlen = '5'.

Sorry, I'm just not finish typing when accidently push "Post Message".
This the full question of mine.
Currently I use FM REUSE_ALV_GRID_DISPLAYfor my report. The problem is, my internal table contain some field which have no reference to any data dictionary.
This part of my code when set that kind of field T_OUT-ARKTX into t_field_cat.
    z_field_cat-ref_tabname = ' '.
    z_field_cat-ref_fieldname = ' '.
    z_field_cat-tabname = 'T_OUT'.
    z_field_cat-fieldname = 'ARKTX'.
    z_field_cat-col_pos = 5.
    z_field_cat-hotspot = 'X'.
    z_field_cat-outputlen = '200'.
    z_field_cat-seltext_m = 'Comments'.
    z_field_cat-ddictxt = 'M'.
    APPEND z_field_cat TO t_field_cat.
t_field_cat will be exported in FM 'REUSE_ALV_GRID_DISPLAY'
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program                           = z_repid
        i_callback_html_top_of_page             = 'ALV_TOP_PAGE'
        it_fieldcat                                         = t_field_cat
        i_save                                              = 'A'
      TABLES
        t_outtab                                           = t_out_final
      EXCEPTIONS
        program_error                                   = 1
In internal table T_OUT, ARKTX length = 200. But somehow when it is displayed in ALV, it just show 128 characters.
I have tried some parameter in t_field_cat to set length to be 200. I used intlen. But it doesn't work.
Do any of you have any idea to solve this problem?
Thank you
Regards
Hadi

Similar Messages

  • UDF - Set Valid Values for Field

    I have a UDF created in Marketing Docs / row level called UOM_Ordered (alphanumeric, length 2) using Set Valid Values for Field.  Values are:
    CS
    IN
    DZ
    PC
    Above are CS abrev for Case, IN abrev for Inner, DZ abrev for Dozen .................
    If possible could I have say for example "IN" not to appear in the drop down if the value in OITM (UDF called U_Inner_Qty) is either NULL or a Zero?  It's would be a way to stop mistakes when orders are inputted.
    Any help on this would be appreciated.
    Thks - Scott

    Hello
    You could try the following:
    Insert a formatted search on the field, which contain conditions, ie whether the condition that the value is 0 or null, then bring the required data, while if it is not the case, applies the search formatted with the available data.
    On the other hand, leave the form with all the options for disabled users. The latter through additional authorizations for users
    I hope it will help
    Best regards,

  • Setting default values for field on screen.

    Hello,
    I am trying to set default value for one of the fields I have on screen when I execute the custom transaction.
    I am doing that in PBO as follows. But the default value is not set for Date field.
    PROCESS BEFORE OUTPUT.
    MODULE PBO_OUT.
    MODULE STATUS_5000.
    *&      Module  STATUS_5000  OUTPUT
          text
    MODULE STATUS_5000 OUTPUT.
      SET PF-STATUS 'NON_SAP_DOCUMENT'.
      SET TITLEBAR '001'.
    ENDMODULE.                 " STATUS_5000  OUTPUT
    *&      Module  PBO_OUT  OUTPUT
          text
    MODULE PBO_OUT OUTPUT.
      ERDAT = SY-DATUM.
    ENDMODULE.                 " PBO_OUT  OUTPUT
    Please help.
    Thanks.
    Regards,
    Rajesh.

    Works Now...

  • How to set max length for TextField ?

    how do i go about setting a max length for a TextField in jdk1.1.8 ?
    a while back there was a topic on this but it was for jdk1.0
    please help

    well if it works in 1.0 it will most likely also work in 1.1.8 if it is depricated you can use the -deprication option during compilation to see what is derpricated and what method i advised to use now.
    there may however be an easyer way in 1.1.8 but i don't know that.
    hope this helps you,
    Robert

  • Default billing type for delivery without reference (Delivery Type LO)

    Hi,
    We have copied delivery type LO to ZLO, so by default Copy control got maintained in VTFL.
    But when we do billing for this delivery in VF01 the system is picking F2 as billing type automatically.
    The system is not picking the defined billing type (ZF2- copy of F2) for which we have maintained copy control in VTFL
    The system is accepting ZLO->F2 but not accepting ZLO->ZF2
    Rgs,
    Vipin

    Hi,
    When you have a delivery document created without reference to a sales order, the system uses a defualt order type. Check that in the delivery document type definition ( LO ), the default order type is DL. If you look at the definition of DL in VOV8, the billing document type defined in F2. This is what the system uses as the proposed billing document type. If you want the system to propose ZF2, create a copy of DL and assign that to ZLO as the default order type. Change the billing document type to ZF2 in the sales order definition and you will be able to propose ZF2.
    Hope this helps.

  • Setting specific length for a line

    I'm looking for a way to enter an exact length for a line. Also, exact dimensions for a rectangle.
    I'm assuming there's a 'Properties' window or something that has the shape's properties, but I'm not seeing anything. I've searched the help site, but not seeing anything there either.
    Any assistance would be greatly appreciated.
    doug

    Look for the little downturned arrow in the tool options bar for more options for the different shape tools.
    I don't know that you can set a fixed length for the Line Tool, but could use the rectangle tool for a fixed line length.

  • Set horizontal length for Bridge display?

    As a new Bridge user, I'm finding the program potentially useful but a bit frustrating.
    When I view a file of pictures in Bridge, I'm finding that the number of pictures I can view entirely depends on the scale that I specify in the bottom slider. The pictures that Bridge doesn't have room to show simply dissapear off to the right hand side of the window.
    The only "solution" that I've been able to find is to reduce the scale of the pictures shown on the viewing screen down to such a tiny size that I can no longer see the picture (or sometimes even the entire file name).
    What I'd like to do is set some sort of a finite length for Bridge's effective viewing screen, and have the program move the pictures that don't fit at top down to the next row below. Is there some way to do this?

    This is not normal, but have seen posts on this before. My memory is dim so can not remember what the fix was.
    Things to check - is monitor set to native resouliton?
    Do you have it set up for a 2 monitor views even though you only have one screen?

  • Setting Default values for field using custom.pll

    Hi All,
    I have an rquirement to set the default values on Meterial Tranasction screen for some condition
    I tried it in both ways via Form Personalization and using custom.pll
    i m using the following code in custom.pll
    form_name      varchar2(30):= name_in('system.current_form');
    block_name varchar2(30):= name_in('system.cursor_block');
    trx_type           varchar2(30);
    subinv                varchar2(30);
    begin
    if form_name='WIPTXMAT' and block_name ='MTL_TRX_LINE' then
    if event_name ='WHEN-VALIDATE-RECORD' then
         trx_type:=name_in('WIPTXMAT.TRANSACTION_TYPE');
    if trx_type ='WIP Return' THEN
         copy(10,'MTL_TRX_LINE.TRANSACTION_QUANTITY');
              copy(10,'MTL_TRX_LINE.NUMBER_OF_LOTS_ENTERED');
              sinv:=trim(name_in('MTL_TRX_LINE.SUBINVENTORY_CODE'));
              if sinv is null then
                   copy(subinv,'MTL_TRX_LINE.SUBINVENTORY_CODE');
                   copy(fr_locator,'MTL_TRX_LINE.LOCATOR');
                   FND_MESSAGE.SET_STRING(sinv);
                   FND_MESSAGE.SHOW;
              end if;
         end if;
    end if;
    end if;
    end event;
    Problem is that default values are getting set but not for all rows . if there are 4 records then values are set for only first 2 rows and if there are 2 rows then defaults are set for 1st row only.
    Same behaviour happens when i do it via form personalization
    i couldn't understand the behaviour of WHILE-VALIDATE-RECORD event..
    Please provide some suggestion on it. its really urgent.
    Thanks in Advance
    Renu

    Works Now...

  • To display value for field without its compounded infoobject value

    Hi Gurus,
    I've added a new Navigational attribute(say A) to my report which is compounded to another object(say B).
    When i execute my report I am able to see the values of my new field as B/A.
    My requirement is to just show A in the report.
    How can I achieve this?
    Thanks in advance.
    Regards,
    Akhil Singh

    Hi Shrikanth,
    What Rajendra means is that, in the WAD template properties, you will find the property 'Standard Actions of the Web Template(WEB_TEMPLATE_ACTIONS)' .
    Check this: http://help.sap.com/saphelp_nw70/helpdata/EN/14/31fa826d0bd540899b02888bf55df4/content.htm
    In this, you'll find 'Action Before Rendering'. Here, there is an option to set the command. Here, you need to assign the command 'SET_PRESENTATION'. In that, under 'List of Member Presentations (MEMBER_PRESENTATION_LIST)', select the characteristic for which compounding value is not to be displayed and then in 'List of Member Presentations (MEMBER_PRESENTATION_LIST)', select 'DISPLAY_KEY_NOT_COMPOUND'.
    Hope this helps you..!
    -Pradnya

  • How to set dynamic value for field Month when running background job ?

    Dear guys,
    I have a Z* report in our company, in the selection screen there is a period field (Month and Year) and this report running in background job periodically. My Question is how i can set for Month field become dynamic follow month value of date when this report executed ?
    Example :
    When Z* report running in background on 16.04.2008, Month Value will be 04 and when running on 16.05.2008, Month Value will be 05.
    Please advice.
    Regards
    Gunawan

    Dear guys,
    I have a Z* report in our company, in the selection screen there is a period field (Month and Year) and this report running in background job periodically. My Question is how i can set for Month field become dynamic follow month value of date when this report executed ?
    Example :
    When Z* report running in background on 16.04.2008, Month Value will be 04 and when running on 16.05.2008, Month Value will be 05.
    Please advice.
    Regards
    Gunawan

  • Does it has some method to set Max Length on Field!

    I want to set a maximun length on textfield and jtable cell to control the number of character on the field.
    do you have any way?
    thanks!

    aaaaalmost, quizmaster.
    But your code doesnt check the result size.
    If offs = 100 and maxlength = 100, it would
    allow any String to be inserted.
    Anyway...is a detail of course.
    one other possibility, also improveable:
    public class CharacterLimitedDocument extends PlainDocument
      private int maxNumberOfCharacters = 64;
      public CharacterLimitedDocument(int maxCharacters )
        super();
        this.maxNumberOfCharacters = maxCharacters;
      public void insertString(int offs, String str, AttributeSet a) throws BadLocationException
        if( this.getLength() + str.length()  < maxNumberOfCharacters )
           super.insertString(offs,str,a);
    } // CharacterLimitedDocument

  • How to set maximum length for TextEdit

    Hi all,
        I have a TextEdit UI element in my webdynpro page and I want to set the maximum number of characters that can be entered in this TextEdit. How can I do this?
    Thanks,
    Satyajit.

    Hi Arun,
         thanks for the reply. But I also want to use the same scenario for an Inputfield. Now I used the same method here and when viewed in the browser, the entire InputField has been stretched. How can I keep the view of the InputField as default but still have a restriction on the number of characters that can be entered in this InputField? It works for TextEdit.
    Thanks,
    Satyajit.

  • Set max length for input parameter in SSRS

    I have an input parameter (@year)   to display a simple report. This input parameter taken Year from user (ex: 2015) manually. Here my problem is to restrict the user to max length of
    4. It should allow only (ex:2015) not (ex:20155) like that. Can any one please suggest me how to do this. 

    Hi SaikumarN,
    According to your description, you want to restrict the length of values which user type in the parameter box.
    In Reporting Services, it’s not supported to limit the length of the typed value in the parameter box currently. For your requirement, you could provide Microsoft a feature request at
    https://connect.microsoft.com/SQLServer, so that we can try to modify and expand the product features based on your needs.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Can I set up AirportExpress for iPad2 without needing to use MacBook

    I want to use my iPad2 with hotel Ethernet cable with out requiring my MacBook.
    Is a computer required to set up the AirPort Express or can it be done from iPad2

    Yes, that is correct.
    You will need the MacBook to configure the Express, but once it is configured, it will retain its settings.

  • Set maximum length for JFormettedtextfield

    Hi,
    how can restrict user to fill only 10 characters in JFormettedtextfield .
    thanks in advance

    Hi camickr,
    thanks for the hint................
    i had written the following code for that................is this ok.
    Here i want to allow user to enter characters other than alpha and number.
    javax.swing.text.MaskFormatter formatter;
              try {
                   formatter = new javax.swing.text.MaskFormatter("*");
                   formatter.setInvalidCharacters("0123456789ABCDEFGHHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
                   flat_file_delimiterFormattedTextField = new javax.swing.JFormattedTextField(formatter);
              } catch (ParseException e) {
                   // TODO Auto-generated catch block
                   javax.swing.JOptionPane.showMessageDialog(null,"Bad Format :","Error",javax.swing.JOptionPane.ERROR_MESSAGE);
                   //e.printStackTrace();
              }

Maybe you are looking for

  • I am unable to attach a PDF file from Documents

    I am unable to access and attach a PDF file from Documents

  • Moving house can't keep phone number

    So I'll be moving house soon and I'm trying to organise moving my phone, tv and broadband to the new place. The trouble I'm having is that when filling in the online form it says that not only will I need a new line installed and can't keep my phone

  • Verizon Registrati​on Software

    What does the "Verizon Registration Software" do ?  This is the download that is started when you go through the web dialogs starting at  http://activate.verizon.net and you choose "I ordered Verizon FiOS Internet Service."  .  You are instructed to

  • Download file on dock (? is there)

    I don't have a downloads folder next to the documents folder on the doc. There is a ? instead. I don't think my mac is keeping track of my downloads. Any suggestions would be appreciated. Gary M.

  • Eclipse beginner, work with already defined packages and folders structure

    Hi! my apologies if this is not the correct subforum, the question is about beginning Eclipse I've already compiled and run the "hello world" example but I need to run an already developed (not by me) software. I'm doing something wrong: first I crea