How can I determine the number of field in the FIELD-SYMBOLS

Hi, in the following code example I have structure u201Czfsl_sd_credit_balu2019 I define a workarea like that structure and assign that wa to FIELD-SYBOLS. Now can I calculate the number of filed in that FIELD-SYBOLS for further processing on that FIELD-SYBOLS.
DATA: wa_credit_bal LIKE zfsl_sd_credit_bal.
"wa_credit_bal-audat = '20081210'.
wa_credit_bal-vehno = '0as10'.
wa_credit_bal-VBELN = 'aaad'.
wa_credit_bal-MOVMT = 'asdfa'.
wa_credit_bal-quantity = 10.
wa_credit_bal-recc = 10.
wa_credit_bal-recb = 10.
wa_credit_bal-issc = 10.
wa_credit_bal-issb = 10.
wa_credit_bal-balc = 10.
wa_credit_bal-balb = 10.
wa_credit_bal-cbalc = 10.
wa_credit_bal-cbalb = 10.
wa_credit_bal-last_line = 2.
FIELD-SYMBOLS: <f1>, <f2>, <f3>.
ASSIGN wa_credit_bal TO <f1>.
In the bellow u2018FORMu2019
FORM getsum USING in CHANGING out etext.
  FIELD-SYMBOLS: <f1>, <f2>.
  ASSIGN in TO <f1>.
  out = 0.
  DATA: cin(50),
        iin TYPE i.
  DO 14 TIMES.
    CATCH SYSTEM-EXCEPTIONS conversion_errors = 1.
      ASSIGN COMPONENT sy-index OF STRUCTURE <f1> TO <f2>.
      iin = <f2>.
    ENDCATCH.
    IF sy-subrc = 1.
    ELSE.
      ADD: <f2> TO out.
    ENDIF.
  ENDDO.
I did u201CDO 14 TIMESu201D because I know that there are 14 field in that structure but it will be problem when user will give a different structure like more then 14 fields in it. So I want to get the no of fields and store it to a variable and replace u201814u2019 with that variable
Kind regards,
Faisal

Thanks, Tahir
my problem has solved
Kind Regards,
Faisal

Similar Messages

  • How can I determine the number and sizes of redologs?

    Dear all,
    How can I determine the number and sizes of redologs are sufficient to allow redo log switching while hot backup is in progress?
    Please advice,
    Amy

    Two questions here - what the OP put as the subject title and what was asked in the thread, which are different questions.
    I would interpret the question in the thread to mean "how to avoid hanging due to archiving waiting for a redo log group to become available." Alert log, wait events, and user complaints would be the source of information here.

  • How Can I Determine the Size of the 'My Documents' Folder for every user on a local machine using VBScript?

    Hello,
    I am at my wits end into this. Either I am doing it the wrong way or it is not possible.
    Let me explain. I need a vb script for the following scenario:
    1. The script is to run on multiple Windows 7 machines (32-Bit & 64-Bit alike).
    2. These are shared workstation i.e. different users login to these machines from time to time.
    3. The objective of this script is to traverse through each User Profile folder and get the size of the 'My Documents' folder within each User Profile folder. This information is to be written to a
    .CSV file located at C:\Temp directory on the machine.
    4. This script would be pushed to all workstations from SCCM. It would be configured to execute with
    System Rights
    I tried the script detailed at:
    http://blogs.technet.com/b/heyscriptingguy/archive/2005/03/31/how-can-i-determine-the-size-of-the-my-documents-folder.aspx 
    Const MY_DOCUMENTS = &H5&
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objShell = CreateObject("Shell.Application")
    Set objFolder = objShell.Namespace(MY_DOCUMENTS)
    Set objFolderItem = objFolder.Self
    strPath = objFolderItem.Path
    Set objFolder = objFSO.GetFolder(strPath)
    Wscript.Echo objFolder.Size
    The Wscript.Echo objFolder.Size command in the script at the above mentioned link returned the value as
    '0' (zero) for the current logged on user. Although the actual size was like 30 MB or so.
    I then tried the script at:
    http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_27869829.html
    This script returns the correct value but only for the current logged-on user.
    Const blnShowErrors = False
    ' Set up filesystem object for usage
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objShell = CreateObject("WScript.Shell")
    ' Display desired folder sizes
    Wscript.Echo "MyDocuments : " & FormatSize(FindFiles(objFSO.GetFolder(objShell.SpecialFolders("MyDocuments"))))
    ' Recursively tally the size of all files under a folder
    ' Protect against folders or files that are not accessible
    Function FindFiles(objFolder)
    On Error Resume Next
    ' List files
    For Each objFile In objFolder.Files
    On Error Resume Next
    If Err.Number <> 0 Then ShowError "FindFiles:01", objFolder.Path
    On Error Resume Next
    FindFiles = FindFiles + objFile.Size
    If Err.Number <> 0 Then ShowError "FindFiles:02", objFile.Path
    Next
    If Err.Number = 0 Then
    ' Recursively drill down into subfolder
    For Each objSubFolder In objFolder.SubFolders
    On Error Resume Next
    If Err.Number <> 0 Then ShowError "FindFiles:04", objFolder.Path
    FindFiles = FindFiles + FindFiles(objSubFolder)
    If Err.Number <> 0 Then ShowError "FindFiles:05", objSubFolder.Path
    Next
    Else
    ShowError "FindFiles:03", objFolder.Path
    End If
    End Function
    ' Function to format a number into typical size scales
    Function FormatSize(iSize)
    aLabel = Array("bytes", "KB", "MB", "GB", "TB")
    For i = 0 to 4
    If iSize > 1024 Then iSize = iSize / 1024 Else Exit For End If
    Next
    FormatSize = Round(iSize, 2) & " " & aLabel(i)
    End Function
    Sub ShowError(strLocation, strMessage)
    If blnShowErrors Then
    WScript.StdErr.WriteLine "==> ERROR at [" & strLocation & "]"
    WScript.StdErr.WriteLine " Number:[" & Err.Number & "], Source:[" & Err.Source & "], Desc:[" & Err.Description & "]"
    WScript.StdErr.WriteLine " " & strMessage
    Err.Clear
    End If
    End Sub
    The only part pending, is to achieve this for the 'My Documents' folder within each User Profile folder.
    Is this possible?
    Please help.

    Here are a bunch of scripts to get folder size under all circumstances.  Take your pick.
    https://gallery.technet.microsoft.com/scriptcenter/site/search?query=get%20folder%20size&f%5B0%5D.Value=get%20folder%20size&f%5B0%5D.Type=SearchText&ac=2
    ¯\_(ツ)_/¯

  • How can I determine the liquid level in a bottle (LabView Vision)?

    How can I determine the liquid level in a bottle (LabView Vision)? Does anybody have an example code? The task is, that if liqid level is between two predetermined level, the program writes, that it is correct else it writes incorrect. Thank you.

    here is a little play with your bad picture:
    used only the small field of interest (here a guess) ,
    used only the red channel ( takes out most of the light reflection)
    grey scale, 3x(blurr, median filter) , played with  contrast -gamma - saturation
    now you need to add the edge detection and some sort of scale.
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • How can I determine the type of video out connector I need?

    Howdy,
    I have a white macbook purchased Jun/2008. I want to connect to a TV but don't know what adapter I need. How can I determine the type of video out jack my macbook has?
    System Profiler says the model identifier is "MacBook 4,1". Under Graphics/Displays the only thing it says about the "Display Connector" is that no display is connected. Too bad it doesn't tell me what type of connector it is. If I knew the name of the connector I'd probably be home free. But it seems like every macbook model has a different video connector (since the state of the art has advanced over the years) and I haven't been able to keep up with the names.
    Now, I have a 6" long adapter that will convert this connector to VGA. And searching the Apple store for VGA adapters, the existence of mine says my connector is might be one of "Mini DisplayPort", "Apple Mini DVI", "Apple DVI", or "Apple Micro-DVI". But then there is also the connector at
    http://store.apple.com/us/product/M8639G/A?mco=MTY3ODQ5OTY
    and that looks like the one I have. But unlike the other adapters, this one is just called a "VGA Display Adapter". Does the connector have a name? How can I find adapters that have that same connector?
    I know I could use the adapter I have, plus a VGA to VGA cable, to hook up to a TV. But the quality of the VGA signal is poor in the digital world. My goal is to hook up to the TV via HDMI. Is this even possible? By which I mean, will my macbook generate the signals necessary to be able to be converted to HDMI?
    Thanks for any help,
    Zebulon T

    Thanks, Ded,
    You're right, the cable that I have won't work. I't from my previous, 2004 iBook. This is pretty embarrassing... I looked at the cable but didn't bother to try plugging it in.
    Looking at the close-up picture of the Mini-DVI to VGA adapter, that does look like the right connector. So I have Mini-DVI, and the other apter you pointed to can convert this to DVI. I'll take a look to see what makes the most sense, connector wise, downstream from that.
    Thanks very much.
    Zeb T

  • How can I determine the time zone the computer it set to?

    How can I determine the time zone the computer it set to?
    I am using Lab View 5.1.1

    Hi,
    in the G-tools (http://www.geocities.com/gzou999/index.html ) you find two
    time functions, "Get local time" and "get sys time". The difference between
    them is the time zone.
    Niko

  • How can I determine the cipher bit strength used by MY os X?

    How can I determine the cipher bit strength used by MY OS X?  Using Lion now?

    CT:
    Not Filvault, but the regular cryptographic use as built into OS X.  For example 1Password uses the algorithm in the OS X's Linux.  How many bits (i.e. 50, 128, 256...) does it use and what algorithm (DES, AES...)
    Linc
    As per reply to CT?
    Like so:
    http://osxdaily.com/2012/01/30/encrypt-and-decrypt-files-with-openssl/
    What is the strength used?

  • I ask the third time: How can I enlarge the menue symbols and the text of the menue in Photoshop CS6 vers.13 so that I can read them??? My laptop has Win 8.1 and a screen resolution of 3840x2160

    I ask the third time:
    How can I enlarge the menue symbols and the text of the menue in Photoshop CS6 vers.13 so that I can read them??? My laptop has Win 8.1 and a screen resolution of 3840x2160.
    It is unbelievable that such an expensive software does not provide a proper lay out wit a high screen resolution!
    It is also unbelivable that it is not possible to get a qualified employee of ADOBE on the phone in Germany.
    hope of feed back: e-mail: [email protected]

    Chris Cox answered your question here:
    I have PS cs6 extended and a new laptop with screen resolution of 3840x2160. Now all control elements and menues are so small that I can not reed them. How can I make them readable without reducing the resolution of the schreen?

  • How can I use the LabVIEW Symbol Editor as a Sub-VI?

    How can I use the LabVIEW Symbol Editor as a Sub-VI?

    mc-hase wrote:
    > Thank you for your ansver.
    > That means that you see no possibiltiy to use the built in window? (I
    > think the built in window is programmed with LabVIEW as well...)
    The icon editor at least up to version 7.0 of LabVIEW is not written as
    VI but directly implemented inside LabVIEW, which is written in C/C++.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How can I insert the copyright symbol

    How can I insert the copyright symbol, I have tried the ALT + 0169 with no success.
    I want to include in a watermark brush

    Did you use the the alpha-numeric keys, the ones on the right of the keyboard?
    You can also get it (WINDOWS) via the character map:
    Type character map into the search box. You will find the symbol there. Select it, then copy, then paste into your document.

  • How can i Change the currency symbols for swiss francs?

    Hi,
    i use Numbers '09.
    How can i change the  currency symbol for swiss franks from SFr to CHF. Because the international ISO abbreviation is CHF and not SFr.
    Thanks,
    Bye

    Switch to Lion.
    I checked several currencies and now they are OK.
    Yvan KOENIG (VALLAURIS, France) samedi 8 octobre 2011 23:24:26
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How can I -change the currency symbol from Pounds to Euros in a spreadsheet?

    How can I change the currency symbol from Pounds to Euros in a spreadsheet?

    Assuming davyfromGib is asking about AppleWorks rather than Pages . . .
    If running AW under OS X, System Preferences settings allow you to use the euro rather than pound sign in AW's currency-formatted cells:
    System Preferences > Language & Text > Formats > Currency (set to Euro)
    AW respects this setting in choosing how to display currency format.
    But do note that if you later change the System Preferences back to pounds, the currency-formatted cells in the AW spreadsheet will also change to pounds.

  • How can I change the counter symbols for the slideshow templates in Muse?

    How can I change the counter symbols for the slideshow templates in Muse? Currently they are obviously normal text characters. So, how can I change them to filled circles, for example?

    Hi Aish,
    Thank you very much. This was very helpful. I am still new to Muse and try to find my way through all the features and possibilities. I like it very much so far.
    Does Muse support ‘liquid” design as well?
    Thank you !
    Best regards,
    Fred

  • How can you determine the absolute path to a dynamically created NetStream object?

    We are trying to implement video captioning with a freeware component, ccforflash. This requires us to provide an absolute or relative path  to our NetStream object. How can we determine this path in Flash CS5 AS3?
    From the CCforFlashCS5 documentation:
    "2. Object name and path
    Type the name and path.  This is the instance name of the object with which CCforFlashAS3 will synchronize. It must be spelled correctly, since CCforFlashAS3 will query the object with this name for timing information in order to synchronize the captions. The path must also be included; either relative to the CCforFlashAS3 component (i.e. this.parent) or the absolute path from the main level of the movie (root)."

    It would be easier if the NetStream object was created on an easily identifiable place on the timeline. This player has an MVC architecture. The NetStream object is created in a subclass to Model class, which is itself a subclass of the EventDispatcher object. The View class access it via an interface.
    As you can guess, it's not that straightforward to determine where the NetStream object is located on the timeline. This is compounded by the fact that the NetStream object does not have a name property.
    I've tried methods like these, but they only work for the DisplayObject class:
    public static function displayObjectPath( avDisplayObject : DisplayObject ) :String
    var lvPath:String = "";
    do
    if( avDisplayObject.name ) {
    // var obj_name:String = (avDisplayObject.name == 'root1') ? 'root' : avDisplayObject.name;
    if (avDisplayObject.name != 'root1') {
    lvPath = avDisplayObject.name
       + ( lvPath == "" ? "" : "." + lvPath );
    } else {
    trace("displayObjectPath() NO NAME avDisplayObject="+avDisplayObject);
    } while( avDisplayObject = avDisplayObject.parent );
    return lvPath;
    } // displayObjectPath
    private  function showChildren(d:DisplayObjectContainer):void {
    trace("showChildren()");
    if (d.numChildren>0) {
    for (var c:Number = 0; c < d.numChildren; c++) {
    trace("showChildren c=",c," name=",d.getChildAt(c).name);

  • VBS:How can i determine the last row of an excel-sheet

    I want to replace the chn-comments of an datafile. I pick up the chn-names and want to compare them with an excel-file and so get from the excel-file the right chn-comment and store int back in the datafile. my problem is how can i determine where the excelfile-row is on the end to load the loopounter with corr values.
    i know one solution via scan on ascii 13 and 9.but bether is to know immediately the length of the column.
    answers also in german possible.

    Peter,
    Are you using DIAdem's Excel Import Wizard? By "Excel file" do you mean a tab- or comma-delimited ASCII file that Excel can read in easily, or do you mean a file with the extension "*.xls"? You certainly could not search through an *.xls file to find CR/LF characters.
    If you use the ASCII or Excel Import Wizard to create an *.STP file for the "Excel" file in question, then after the *.STP file is loaded you have access to a whole range of variables, starting with Ascii... or Excel... which completely outline the structure of the ASCII or Excel file, including things like the row in which the channel comments are, etc.
    Why don't you send over your Excel file and I'll be able to help you a lot better.
    Regards,
    Brad Turpin
    NI

Maybe you are looking for

  • Customer exit for calweek is not working

    Hi, I have written a customer exit to derive calweek from a calday. But its not displaying the correct value. Can u please let me know if there is any error in the code.  The return value for calweek is a single value. CASE I_VNAM. WHEN 'zfclweek'. D

  • How can I wirelessly mirror my Macbook Pro on my Apple TV

    Please Help!

  • Case function in predicates

    Hi, I've come across strange query like that: select * from table where SYSDATE > uwn_data AND CASE WHEN TRUNC (SYSDATE) - TRUNC (uwn_data) > 0 THEN 25 ELSE TO_NUMBER (TO_CHAR (SYSDATE, 'hh24')) END >= trw_godzina_od thats something new for me, looks

  • Smart Albums and Search ignoring tags / keywords

    Why is it that once images are imported into PE7, and if their keywords and tags are edited in an external editor (eg. Picasa, Photoshop), PE7 doesn't seem to recognize these new keywords/tags in Search or Smart Albums?! The weird thing is, if I open

  • Similar code to n=n+1 (n=n+x) with conditional variable to stop

    This may be an simple algorithm, but I can't do it. I need to do a VI with an algorithm so similar to n=n+1 , but I need 2 variables, something like n=n+x, and other conditional variable (numerical control). I need to enter the values n and x with a