How to check position and length of a field in a structure

Dear All,
DATA :  P_DEST TYPE ANY.
Assuming that the structure (P_DEST ) conatins a field called 'ROUTE', how to find the position and length of field 'ROUTE'.
Please help!!
Thank you in advance.
Sravan.

Hi,
you may need to find out the type of a generic interface parameter in a subroutine. To do this, you would use the statement:
DESCRIBE FIELD <f> [LENGTH <l>] [TYPE <t> [COMPONENTS <n>]]
                   [OUTPUT-LENGTH <o>] [DECIMALS <d>]
                   [EDIT MASK <m>] [HELP-ID <h>].
The attributes of the data object <f> specified by the parameters of the statement are written to the variables following the parameters.
Regards
Sudheer

Similar Messages

  • Slow imac, how to check status and clean up disc?

    slow imac, how to check status and clean up disc?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • How to use same Data Type and Length for two fields

    How to use same data type and length for two fields when using 'FOR ALL ENTRIES IN' in a select statement? For instance the select queries are :
    SELECT bukrs gjahr belnr lifnr budat bldat zlspr dmbtr waers shkzg
    FROM bsik
    INTO TABLE it_bsik
    WHERE bukrs = p_bukrs
    AND lifnr IN s_lifnr.
    IF it_bsik IS NOT INITIAL.
    SELECT belnr gjahr awkey awtyp
    FROM bkpf
    INTO TABLE it_bkpf
    FOR ALL ENTRIES IN it_bsik
    WHERE belnr = it_bsik-belnr
    AND gjahr = it_bsik-gjahr.
    IF it_bkpf IS NOT INITIAL.
    SELECT belnr gjahr lifnr xblnr
    FROM rbkp
    INTO TABLE it_rbkp
    FOR ALL ENTRIES IN it_bkpf
    WHERE belnr = it_bkpf-awkey+0(10)
    AND gjahr = it_bkpf-awkey+10(4).
    ENDIF.
    ENDIF.
    Here it gives an error in the 3rd select query that 'When you use the addition "FOR ALL ENTRIES IN itab", the fields "GJAHR" and "IT_BKPF2-AWKEY+10(4)" must have the same type and the same length.'
    Kindly clarify.

    Hi Saurabh,
    Please see the example code that I have developed for you. It will help you solve the problem.
    REPORT ZTEST_3 .
    tables : BKPF.
    data : begin of it_bkpf occurs 1,
             belnr type RE_BELNR,
             awkey type awkey,
             awtyp type awtyp,
             gjahr type GJAHR,
           end of it_bkpf.
    data : begin of it_bkpf1 occurs 1,
             belnr type RE_BELNR,
             awkey type gjahr,              " change the data type
             awtyp type awtyp,
             gjahr type GJAHR,
           end of it_bkpf1.
    data : begin of it_rbkp occurs 1,
             belnr type BELNR_D,
             gjahr type gjahr,
             lifnr type LIFRE,
             xblnr type XBLNR,
           end of it_rbkp.
    select belnr
           awkey
           awtyp
           gjahr
           from bkpf
           into table it_bkpf
           where BUKRS = 'TELH'.
    loop at it_bkpf.
    it_bkpf1-belnr = it_bkpf-belnr.
    it_bkpf1-awkey = it_bkpf-awkey+10(4).           "Here only append the required length.
    it_bkpf1-awtyp = it_bkpf-awtyp.
    it_bkpf1-gjahr = it_bkpf-gjahr.
    append it_bkpf1.
    clear it_bkpf1.
    endloop.
    select  belnr
            gjahr
            lifnr
            xblnr
            from RBKP
            into table it_rbkp
            for all entries in it_bkpf1
            where belnr = it_bkpf1-belnr
    This is just an example. Change the fields according to your requirement.
    Regards
    Abhii
    Edited by: Abhii on Mar 9, 2011 9:08 AM

  • 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.

  • Length of a field in a structure

    Hi,
    Is there any restriction on the length of the field in a structure which is CHAR type ??
    Thanks.

    Sample
    report zrich_0001
           line-size 1023.
    data: begin of s,
          a(65510) type c,
          b(25) type c,
          end of s.
          s-a = 'This is field 1 asdfkljas;dfkja;sldkjf;aslkdjf;alskdjfa' &
                'asdfkajsd;kfjas;dlkfj;aslkdjf;alksjdf;lkasjdf;lasdfasdf' &
                'asdfkljas;dlkfj;askdjf;askjdf;lkasdjf;lkasj  thd end'.
          s-b = 'This is field 2'.
          Write:/ s-a.
          write:/ s-b.
    Regards,
    Rich Heilman

  • 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 check Licence and what comes with original cd?

    Hello DBA,
    how to check licence in installed oracle database?
    and if we purchase oracle database from oracle then what comes with the kit(like original cd and other things)?
    Thanks,
    DBA

    Hi Nikunj,
    Licensing information are not stored in the database but you can get list of components installed using the query below:
    select COMP_NAME, VERSION, status from dba_registry;
    I hope this is what you are looking for?
    Cheers,
    Adams

  • How to check when and who uses my account?

    I need to check if someone used my account in some particular days and hours. is it possible and how. thank you

    Nikoline wrote:
    How to see when and who made changes in some table?
    Some makes me problems and I want to see who are the usernames.
    ThanksEither you need to implement Oracle Audit, or use Logminer Utility to read archived redo log files

  • How to check ABAP and Portal connections

    Hi
    I was told to check ABAP and Portal connections. What does that mean? And what and where to check?
    Thanks
    Annie

    Hi
    Thanks for your reply.
    We are on BI 7. SP16.
    When i run that in se38, i am getting the following information: No default in RSPOR_T_PORTAL and no user parameter RSPOR_DEFAULT_PORTAL" when i clicked on yes(tickmark), view BI_Content of web template 0ANALYSIS_PATTERN(A) is displayed
    There are two options with check box are present 1. 30 template present (Unchecked) 2. BI- Template Present (checked), and a big XML code is displayed.
    When i executed in browser mode, it says Windows cannot find'/irj/servlet/prt/portal............... make sure you typed the name correctly and then try again. to serch for a file, click the start button, and then click search"
    What does that mean?
    Regards
    Annie
    Edited by: Annie on Nov 17, 2008 5:38 AM

  • How to fix the output length of a field

    Hi!
    I want to 'allocate' the full length of the field while smartform printing even if it is initial.
    How can I do this? I tried the &field(*)& &field(F<' '>)& output format, but nothing.
    Thanks

    Hi!
    I have only one text element, and in that I have two variables separated only with one space. In the printed form the starting place of the second variable depends on the length of value in the first variable.
    like this:
    The first variable has the dictionay type 'VBELN', despite this fact, the &FIELD(*)& does not work.
    The template doesn't work here too. because I have only one text element.
    Or can I print two text element in one row? It could be a solution probably.

  • How to Check the total value of a field

    Hi,
    I want to check the total value of a field (this total is obtain by using property of that field thru personalization).
    that means , in a table 3 columns are there (col 1, col2 & col3). I personalized the total property as true for col3.
    now i'm getting the total for that field.
    I want to check that total whether it crossed 100 or not.
    How to do this?
    Thanks in advance,
    SAN

    Hi San,
    You can achieve by using OATotalRowBean, search for OATotalRowBean in this forum you should be able to get some sample code.
    public class OATotalRowBean
    extends TotalRowBean
    implements OAWebBean, OAWebBeanConstants
    A special row rendered at the bottom of a table which lets users see totals for columns which are designated for summing.
    Note The total is calculated and displayed only for visible rows.
    When you indicate that you want to total one or more columns, the OA Framework creates an OATotalRowBean and designates it as the columnFooter named child of the OATableBean. If the OATableBean is also configured to insert rows (so it has an "Add Another Row" button), then the total bean becomes an indexed child of the add table row bean (see OAAddTableRowBean), which the OA Framework in turn designates as the table's columnFooter object.
    If you need to access the table's column footer object for any reason, call the OATableBean's getColumnFooter() method. If row insertions are enabled, this method returns an OAAddTableRowBean; otherwise it returns an OATableRowBean.
    For detailed information about creating and working with tables, see OA Framework Developer Guide: Tables.
    With regards,
    Kali.
    OSSi.

  • How to check non-numeric value in a field

    Hi all,
    I have a field 'MVALUE'. HOw can I check if I have a non-numeric value in my field. Let us say if I have a value '<25' in this field. How can I check if the value in this field is non-numeric. The field MVALUE is of CHAR datatype.
    Please help. Waiting.........

    Might have to add a space in the string...
    if not mvalue co ' 0123456789'.
    * error
    endif.
    if you allow decimals and commas...
    if not mvalue co ' .,0123456789'.
    * error
    endif.

  • How to Identify a table name of a field in the structure

    Hi Guys,
    I have to identify a application table name of a field , the  field is directly mapped with the structure.
    please guide me where the physical data is stored.
    regards
    Vasanth

    HI Vasanth,
    You can select Data Type radio button in SE11 and click on search help F4) ..and provide field name or structure name and then select where Used list option .and select table check box..so that you can find multiple tables wherever this structure is used..
    U can get multiple tables here if this structures is used for multiple tables.So data related to your field will be storing in multiple tables.
    This information may be usefull..
    --Manohar

  • N900, How to check firmware, and send operator com...

    Good day to you all,
    i recently got my N900 from a Nokia Store (Monday 23rd), i am living in UAE, Dubai 
    i would appreciate if someone could answer these 2 questions:
    1- how do i check which firmware do i have (usualy in Symbian *#0000#) 
    2- when i dial *121* which is a service command to check my balance it gives me a wrong phone number, so is there any way to send these commands (maybe in terminal?)
    thank you all 
    Az. At.
    IT Support Engineer
    DED

    Wrong forum - goto the N900 Maemo Forum:
    /discussions/board?board.id=maemo
    We'll just be here talking about the shortcomings of Symbian S60v5.. lol
    I love my purple screen, 1/2 day battery, sketchy touch screen and $800 price tag - I call it my Lumia 900

  • Sound position and length on Slider Component AS3

    Hello:
    I have the following working great:
    stop_btn.setStyle("icon", square_mc);
    player_btn.setStyle("icon", next_mc);
    import flash.events.Event
    import flash.events.MouseEvent;
    import flash.media.SoundTransform;
    var alreadyDefined:Boolean;
    volumen.value = 1;
    if(!alreadyDefined){
    alreadyDefined=true;
    var isPlaying:Boolean = new Boolean();
    var pausePosition:Number = new Number();
    var soundClip:Sound = new Sound();
    var sndChannel:SoundChannel;
    soundClip.load(new URLRequest("audio/music.mp3"));
    soundClip.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
    player_btn.addEventListener(MouseEvent.MOUSE_DOWN, btnPressController, false, 0, true);
    stop_btn.addEventListener(MouseEvent.MOUSE_DOWN, btnPressStop, false, 0, true);
    function onComplete(evt:Event):void {
        sndChannel = soundClip.play();
        isPlaying = true;
    function btnPressController(evt:MouseEvent):void
        switch(isPlaying)
            case true:
                //controller.text ="Sound Paused";
                player_btn.setStyle("icon", pause_mc);
                pausePosition = sndChannel.position;
                sndChannel.stop();
                isPlaying = false;
            break;
            case false:
                //controller.text ="Sound Playing";
                player_btn.setStyle("icon", next_mc);
                sndChannel = soundClip.play(pausePosition);
                isPlaying = true;
            break;
    function btnPressStop(evt:MouseEvent):void
        pausePosition = 0;
        sndChannel.stop();
        //controller.text ="Play Sound";
        player_btn.setStyle("icon", next_mc);
        isPlaying = false;
    volumen.addEventListener(Event.CHANGE, sliderChanged);
    function sliderChanged(evt:Event):void {
    var vol:Number = volumen.value;
    volumen.liveDragging = true;
    var st:SoundTransform = new SoundTransform(vol);
    if(sndChannel != null){
        sndChannel.soundTransform = st;
    exit_btn.addEventListener(MouseEvent.CLICK, fexit);
    function fexit(event:MouseEvent):void{
        SoundMixer.stopAll(); 
        Loader(this.parent).unloadAndStop();
    I have another slider component on the movie with instance name PROGRESO
    I would like for PROGRESOnto indicate (update) the sounds progress as it plays and be able to scrub through the sound.
    Any idea how I can achieve this? Thanks for any help

    Thanks Andrei.
    But I really dont understand. You see, I am not too good (actually pretty bad) with Ationscript 3.
    Att.,
    Edwin
    I managed to get it to move each second though with this:
    var myTimer:Timer = new Timer(1000);
    myTimer.addEventListener(TimerEvent.TIMER, runTimer);
    myTimer.start();
    function runTimer(event:TimerEvent):void {
    trace("Hello");
    progreso.value = progreso.value+1;

Maybe you are looking for

  • Can you put two iTunes libraries on the same computer? what is the best way?

    Is it possible to put two iTunes libraries on the same computer?  What is the best way to do it so the two libraries are not connected?

  • Can you put music in more than one genre without creating a new genre?

    My question is more specific than the subject. Is it possible to put albums and music in more than one genre category and not have it make a new genre in itself? (I view my music as a list, column browser on top. Genre is the left-most category and I

  • HP LaserJet 1000 Printer

    Good day to all, I have a HP printer laserjet  1000  that I like to use because it is very  effecient.   I use it with my old laptop.  I try to install the dfriver on my other laptop, Windows 7 pro. and unfortunatly I cannot fond any driver for Win 7

  • Please Help with strange error.

    I've searched extensively for an answer to this strange problem I'm having both throughout this forum and in Google and have come up dry. Any help would be HUGELY appreciated. I'm using Audition 3 with a Windows XP Pro SP3 comp. I have recorded some

  • Where does the INI file reside?

    I've seen lots of forum posts on using the Properties class to read an INI file, but nothing on locating the INI file in the file system. Most of the examples use a hard-coded simplistic path (c:\temp\myapp.ini) or just the file name with no path. Fr