Get during RT fields and the respective types

HI All,
I have program that during rt some field are getting different types (its generated ) i.e.
data str type if=>str01.
and in if=>str01. there is data like
types :begin of...
f1 type string,
f2 type banka,
f3 type uname,
what I want is to provide the str name (str can have different type at any run ) and get all the fields of this
structure and the respective types .
Thanks,
Joy

Hello Joy,
Try something like this.
If you are using type of interface please use the line of it.
Types: begin of t_struct,
        var1 type i,
        var2 type string,
        var3 type c,
       end of t_Struct.
data: ls_struct type t_struct.
DATA:
  lr_structdescr    TYPE REF TO cl_abap_structdescr,
  lr_datadescr      TYPE REF TO cl_abap_datadescr,
  lt_components     TYPE abap_component_tab,
  ls_components     TYPE LINE OF abap_component_tab.
* now decribe the LS_STRUCT structure
  lr_structdescr ?= cl_abap_structdescr=>DESCRIBE_BY_DATA( ls_struct ).
  lt_components = lr_structdescr->GET_COMPONENTS( ).
  loop at lt_components into ls_components.
    lr_datadescr = ls_components-type.
    write:/ ls_components-name, lr_datadescr->TYPE_KIND, lr_datadescr->length.
  endloop.
Regards,
Shimi

Similar Messages

  • EEWB :  how to determine the business object and the extension type ?

    Hi,
    I ask myself how to determine the business object and the extension type to use to add new fields in a new tab of a specific transaction ? what means each business object, does that correspond to a specific transaction ?
    I need to add a new tab in the ‘BaMI’ business activity in transaction CRMD_ORDER just after the tab 'Actions' at header level.
    Could you help me please to determine which business object and extension type I have to select during creation of the project and which business object category I have to select during creation of the extension (wizard) ?
    Thanks for your help,
    Marie

    Marie,
    In order to determine what type of transaction you are extending, you will need to look at the customizing for the transaction.
    In the IMG:
    Goto:
    Customer Relationship Management->Transactions->Basic Settings->Define Transaction Types.
    You will then choose the transaction defined that you want to extend.  If you display the details of the transaction you will find an attribute called:
    "Leading Transaction Category".  This tells you the general context in which the transaction is used.  The other item to view is the assignment of business transaction categories found in the maintenance screen.
    This information general corresponds to one of the options that the EEWB will give you on the transaction type.
    As far as extensions go, my recommendation is the following:
    - Use CUSTOMER_H Customer Header Extensions for any new fields at the header level.
    - Use CUSTOMER_I Customer Item Extensions for any new fields at the item level.
    Unless you have a specific requirement to extend a segment of the transaction, I recommend placing all new fields in these segments.  The CUSTOMER_H & CUSTOMER_I segments are considered "standard" segments, that are already built into all the necessary API structures. 
    Let me know if you have any further questions.
    Good luck,
    Stephen

  • When I open safari, I get a blank page and the beach ball.

    When I open safari, I get a blank page and the beach ball. If I try to go to a website, it will load up to a certain point sometimes—the .com of www.facebook.com for instance—but other times, nothing at all.
    I've fixed this once before by deleting some files in the library folder—extensions & preferences I believe—and choosing not to have plug-ins selected, then restarting the whole computer—rather than just safari. It will work fine for a day, or maybe 3 at the most, before I have to repeat the process all over again. I'm sure it's because I usually put plug-ins back on once I get it to work, because you can't really use the internet without using plug-ins. But I'm using Chrome right now, as I do when I'm too lazy or too in a rush to try the whole process of getting safari to work again, and I don't have a single issue with it.
    My question is really, what plug-in could cause this to happen repeatedly? It's not like I'm going to websites that may have malware on them. I spend most of my day going to some of the most visited websites on the internet. 
    Is there a known bug out there, because Java has been overrunning concurrently with this happening. It's CPU % runs around 100. I quit the process, but it doesn't change anything. So, other than the fan turning on, I have not had any popup telling me that safari has crashed, that I'm not connected to the internet, or that something went horribly, horribly wrong. I'm pretty sure Safari things it's running fine, but it's not.
    Thanks in advance.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects.
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands.
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
    Launch the Terminal 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 Terminal in the page that opens.
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign.
    Step 1
    Copy or drag — do not type — the line below into the Terminal window, then press return:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'
    Post the lines of output (if any) that appear below what you just entered (the text, please, not a screenshot.) You can omit the final line ending in “$”.
    Step 2
    Repeat with this line:
    sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}'
    This time, you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning.
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step.
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting.
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null
    Remember, steps 1-5 are all drag-and-drop or copy-and-paste, whichever you prefer — no typing, except your password. Also remember to post the output.
    You can then quit Terminal.

  • How to display name of the table and the description and the table type

    Hi,
    Can you people tell me how to display the name of the table and the description and the table type (View, structure, etc...) used in the program.
    I want to display in a list.
    Kind Regards

    use this program
    TABLES : TSTC, tstct.
    TABLES : DD03l, DD02l.
    DATA : Program like sy-repid.
    DATA : BEGIN OF I_FINAL OCCURS 0,
    tabname LIKE dd02l-tabname,
    TABCLASS LIKE dd02l-tabCLASS,
    TEXT LIKE DD02T-DDTEXT,
    END OF I_FINAL.
    DATA : BEGIN of ITAB Occurs 0,
    name like dd02l-tabname,
    END OF ITAB.
    DATA : TCD(100) TYPE C.
    DATA : var1 LIKE dd02l-tabname.
    DATA : DESC LIKE TSTCT-TTEXT.
    selection-screen skip.
    SELECTION-SCREEN : BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS : r1 RADIOBUTTON GROUP r DEFAULT 'X'.
    Parameters : Tcode like sy-tcode.
    selection-screen skip.
    PARAMETERS : r2 RADIOBUTTON GROUP r.
    Parameters : Prog like sy-repid.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE text-001.
    select-options : Type for dd02l-tabclass .
    SELECTION-SCREEN END OF BLOCK B1 .
    at selection-screen.
    if r1 = 'X' and Tcode is initial.
    message e001(00) with 'Enter Transaction Code' .
    elseif r2 = 'X' and Prog is initial.
    message e001(00) with 'Enter Program Name' .
    endif.
    START-OF-SELECTION.
    if r1 = 'X'.
    Prog = ' '.
    select single * from TSTC where tcode = tcode.
    if sy-subrc = 0.
    program = TSTC-PGMNA.
    select single TTEXT from tstct into desc where tcode = tcode and SPRSL = 'E'.
    else.
    Write :/ 'Invalid Transaction Code'.
    exit.
    endif.
    elseif r2 = 'X'.
    Tcode = ' '.
    program = Prog.
    endif.
    CALL FUNCTION 'GET_TABLES'
    EXPORTING
    PROGNAME = Program
    TABLES
    TABLES_TAB = itab.
    if itab is initial.
    skip.
    skip.
    skip.
    skip.
    skip.
    WRITE :/40 'No Data Found' color 6 INTENSIFIED OFF.
    ELSE.
    PERFORM : categorize.
    endif.
    END-OF-SELECTION.
    LOOP AT I_FINAL.
    WRITE :/4 I_FINAL-tabname COLOR 2 INTENSIFIED OFF NO-GAP HOTSPOT ON, 35 I_FINAL-TABCLASS COLOR 2 INTENSIFIED OFF NO-GAP,
    50 I_FINAL-TEXT COLOR 2 INTENSIFIED OFF NO-GAP.
    ENDLOOP.
    AT LINE-SELECTION.
    TCD = SY-LISEL.
    var1 = TCD+3(30).
    set parameter id 'DTB' FIELD VAR1.
    call transaction 'SE11' and skip first screen.
    TOP-OF-PAGE.
    WRITE :/45 'TABLE DETAILS RELATED TO THE TRANSACTION CODE' COLOR 7 .
    WRITE :/2 'DATE : ' COLOR 1, SY-DATUM COLOR 1 INTENSIFIED OFF NO-GAP.
    WRITE :/2 'TRANSACTION CODE : ' COLOR 1, Tcode COLOR 1 INTENSIFIED OFF NO-GAP.
    WRITE :/2 'TCODE DESCRIPTION : ' COLOR 1, desc COLOR 1 INTENSIFIED OFF NO-GAP.
    WRITE :/2 'PROGRAM NAME : ' COLOR 1, PROGRAM COLOR 1 INTENSIFIED OFF NO-GAP.
    SKIP 1.
    WRITE :/1(140) SY-ULINE.
    WRITE :/4 'TABLE NAME' COLOR 5 INTENSIFIED OFF NO-GAP,35 'TABLE TYPE' COLOR 5 INTENSIFIED OFF NO-GAP,
    55 'DESCRIPTION' COLOR 5 INTENSIFIED OFF NO-GAP.
    WRITE :/1(140) SY-ULINE.
    *& Form categorize
    text
    --> p1 text
    <-- p2 text
    FORM categorize .
    SELECT dd02ltabname dd02ltabCLASS DD02T~DDTEXT
    FROM dd02l INNER JOIN DD02T ON dd02ltabname = dd02Ttabname
    INTO TABLE I_FINAL
    FOR ALL ENTRIES IN itab
    WHERE DD02L~TABNAME = ITAB-NAME AND TABCLASS IN TYPE AND DDLANGUAGE = 'E'.
    if sy-subrc <> 0.
    skip.
    skip.
    skip.
    skip.
    skip.
    WRITE :/40 'No Data Found' color 6 INTENSIFIED OFF.
    endif.

  • Alias tables do not show more than 9 fields of the same type in a Command

    Hi there, In Crystal Reports I have a Command to query a database, this works fine and returns what I need,
    but in when you add more than 9 alias's and and then Select more thatn 9 fields of the same type it does not show any more them in the Field Exporler window.
    i.e. I want to add another alias and select casdet_text(10) but it does not show any more than 9.
    Any help woud be apprecitated.
    Thanks
    casdet_text(1)
    casdet_text(2)
    casdet_text(3)
    casdet_text(4)
    casdet_text(5)
    casdet_text(6)
    casdet_text(7)
    casdet_text(8)
    casdet_text(8)
    casdet_text(9)

    Hi James,
    It's likely an internal limitation. If you are going to alias all of your fields it's more efficient to use a View or Stored Procedure to handle the renaming server side rather than client side.
    It may even be a connection limit, try using another tool and see if you can add more than 9 aliases.
    Thank you
    Don

  • For the last 10 days I have been unable to open the Mail account on my eMac (MacOS10.4.11). When I click on the icon in the Dock the only option I get is "Force quit" and the main Mail bar will not open any  choice. Any ideas?

    For the last 10 days I have been unable to open the Mail account on my eMac (MacOS10.4.11). When I click on the icon in the Dock the only option I get is "Force quit" and the main Mail bar will not open any  choice. Any ideas?

    You can setup Mail for iCloud on the eMac.
    Do not delete the old account yet. sign up for an iCloud account if you haven't.
    I understand .mac mail will still come through. Do not delete the old account yet.
    You cannot use .mac or MobileMe as type of Account, you have to choose IMAP when setting up, otherwise Mail is hard coded to change imap.mail.me.com to mail.me.com & smtp.mail.me.com to smtp.me.com, no matter what you try to enter.
    iCloud Mail setup, do not choose .mac or MobileMe as type, but choose IMAP...
    On second step where it asks "Description", it has to be a unique name, but you can still use your email address.
    IMAP (Incoming Mail Server) information:
    • Server name: imap.mail.me.com
    • SSL Required: Yes
    • Port: 993
    • Username: [email protected] (use your @me.com address from your iCloud account)
    • Password: Your iCloud password
    SMTP (outgoing mail server) information:
    • Server name: smtp.mail.me.com
    • SSL Required: Yes
    • Port: 587
    • SMTP Authentication Required: Yes
    • Username: [email protected] (use your @me.com address from your iCloud account)
    • Password: Your iCloud password

  • How do I lock a field so the current type in it cannot be overriden?

    how do I lock a field so the current type in it cannot be overriden?

    You can make the field Read Only. You need to be aware that if the form is cleared the typed value in the field will clear and the text in the "Options" "Default Value" will become the field's value. You can use JavaScript to make a form field Read Only and set the default value.

  • Updated iPad 1 to IOS 5. When trying to restore my iPad from my backup it gets half way through and the iPad reboots and iTunes says "An error occurred while restoring this iPad (-1)"

    Updated iPad 1 to IOS 5. When trying to restore my iPad from my backup it gets half way through and the iPad reboots and iTunes says "An error occurred while restoring this iPad (-1)"
    I have tried to restore my contacts and company data at least 20 times and every time half way through THE iPAD REBOOTS! When it boots back up it is at the brand new iPad screen.
    This makes me angry as I do not use the iPad for fun and games. I use it for business. My company data and records for the last year are gone. ALL of my out standing customer invoices are gone. ALL payments received are gone! ALL Business contacts and emails ARE GONE! All my company, personal email accounts and settings ARE GONE!
    What am I supposed to do now? In 6 hours I have to get on the road and conduct business with a empty blank factory out of the box iPad. How am I supposed to know who owes me money or who has paid their bills Apple? All of my meetings and calendar dates are GONE!
    Everything was supposed to be backed up and restored after the update!
    Question???WHY DID YOU MAKE THIS UPDATE WIPE OUT ALL SETTINGS AND APPS ON THE iPAD??? All the other updates left everything on the iPad intact and ONLY upgraded the IOS,and when it was done everything was still there.
    Yes! I have done everything. Rebooted computer, checked for updates, Hard booted iPad, Factory restored iPad to ios 5 twice, tried every usb port I have, unplugged all other usb components.
    Everytime half way through "Restoring iPad from backup..." The iPad turns off shows a spinning circle then shows the Apple logo and takes me to the brand new iPad setup screen.
    Apple, you have no idea the level of stress you have created today.....

    Check the console app to see if there are any error messages. I had one app showing an issue (Pet Hotel) the error was (truncated):
    ERROR: Restore message response: 102 rename error: File name too long (63) at path "/var/mobile/Library/SafeHarbor/com.pocketgems.tappethotel/Container/Documents/ savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHis tory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGa meHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/sa vedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHisto ry/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGame History/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/save dGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory /savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHi story/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedG ameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/s avedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHist ory/savedGameHistory/1313349538-pocket_gems_crash_report.txt" (MBErrorDomain/102)
    I manually snyc'ed that particular app and then re-ran the restore and am now the proud owner of a working iphone. Not sure it is the same problem or app but looking in the console was the key!

  • Hi. when I'm texting, if the person i'm texting sends a text before i've sent mine, i dont get an alert sound and the message only arrives after mine is sent even though i may know its there waiting. I didnt have this problem till i updated software. 4s

    Hi all. Hope someone can help with this infuriating issue that I didn't have until updating. If a friend texts me while I'm texting them, I don't get an alert sound and the message stays outside waiting for me to send and finish. When I send, my friends message comes in but ive probably gone to home position and missed it. waiting for replies till all hours.

    I think the problem lays with Last.fm. I had the same exact problem as you. In your processes screen, end the task "lastfmhelper.exe" Last.fm still scrobbles. The tracks don't skip, although I notice there is still a bit of a lag in the first part of the song - but if you can deal with that, no skipping. I think you will have to end that task everytime you boot up your computer, or uninstall last.fm completely until they fix it; it is a bug in their software, as opposed to iTunes.

  • Urgent - Idoc type and the Message type

    Hello
    Its very urgent. I want to know the basic idoc type and the message type used for EDI 894 transmission (Delivery / Return Base Record). Please respond at the earliest.
    Thanks in advance

    HI
    Pratibha
    How are you ?
    Please check the below links:
    http://scn.sap.com/thread/990524
    http://www.erpgreat.com/pm003.htm
    http://scn.sap.com/thread/1386811
    http://scn.sap.com/thread/1078741http://www.erpgreat.com/plant/what-is-equipment-master.htm
    http://benxbrain.com/en/index.do?onInputProcessing%28brai_object_thread%29&001_threadid=0000835100&001_boardtype=01&sysid=PI1&pgmid=R3TR&object=TABL&obj_name=EQBS&child_param=
    Mutti

  • Inconsistency between a document field and the prof. segment number

    Hi,
    While processing an invoice in one company code for vendor# XXX with the PO# AAAA line# 10, it is showing below error message while posting. Please advise on the below error or fix the issue to post the invoice in to SAP. The using screen T-code is miro.
    Inconsistency between a document field and the prof. segment number
    *Message no. KE396
    *Diagnosis
    A line item was assigned to a profitability segment (number 0008629207) which has the value 0000101000 for characteristic Profit Center. The original document (FI document, sales order, internal order, etc.), however, contains 0000102020 in this field. It is therefore inconsistent with the profitability segment found.
    System response
    The characteristics in Profitability Analysis (CO-PA) must have the same characteristic values as the original document. For example, you cannot assign a sales order to a different customer or product than the one contained in the original sales order. If you wish to fill the characteristics with different contents, you must change the original fields.
    Procedure
    Enter the correct characteristic values on the CO-PA assignment screen. The system will automatically assign a corresponding profitability segment number. If it is not possible to enter values in some of these fields, delete the entire assignment to a profitability segment number and then enter it again.
    As a rule, you should first enter the fields in the original sender document and then make the assignment to a profitability segment.
    What should I do for the above pl ?
    Regards
    Murali

    Hi,
    While doing PGR at VL32N, we are facing this error. Can someone assist.
    Regards,
    Aruna

  • I go through the process of burning a DVD from a Premier Pro Project and at the end of the process I get an encoding error and the dvd does not start burning.  How do I fix this?

    I go through the process of burning a DVD from a Premier Pro Project and at the end of the process I get an encoding error and the dvd does not start burning.  How do I fix this?

    adam@honestmusky wrote:
    Yes I am using encore.  I used to have no problem doing this, but I had to get a new computer and now something isn't working right.
    How about some DETAILS?
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840
    Also describe the EXACT steps you take to go from Premiere Pro to Encore

  • I cannot attach How do I get my bookmarks back and the attachments to work again?

    How do I get my bookmarks back and the attachments to work again?

    Have a look at > One or more keys on the keyboard do not respond

  • I keep getting this error message and the spinning wheel on all websites, any fix? (Webpages are not responding, so loading cannot be stopped. Do you want to force reload this page and all pages in other tabs and windows?)

    I keep getting this error message and the spinning wheel on all websites, any fix? (Webpages are not responding, so loading cannot be stopped. Do you want to force reload this page and all pages in other tabs and windows?)

    Hi, this has worked for a few...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.7…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    Click OK.

  • I have a macbook pro 17" 1,1 model (early 2006), but I do not have installation discs.  If I order a replacement, what version is it? Can I install the latest version 10.8.4 for 1,1 model? If it is possible, what I have to do to get it done? And the

    I have a macbook pro 17" 1,1 model (early 2006), but I do not have installation discs.
    If I order a replacement, what version is it?
    Can I install the latest version 10.8.4 in 1,1 model?
    If it is possible, what I have to do to get it done? And the price?
    Thanks

    MacBookPro1,1 can only run Mac OS X 10.6.8, as it has got a 32-bit processor.
    If you order replacement DVDs, Apple will send you DVDs with the original Mac OS X version that came with your Mac, in this case, Mac OS X 10.4.5.
    If you decide to get replacement DVDs, Apple will only charge you for the delivery

Maybe you are looking for