Problem in field leght checking..

HI all,
DATA: BEGIN OF I_MARD OCCURS 0,
        MATNR LIKE MARD-MATNR,    "18
        WERKS LIKE MARD-WERKS,   "4
        LGORT LIKE MARD-LGORT,     "4
        LABST LIKE MARD-LABST,       "18
      END OF I_MARD.
SELECT MATNR
       WERKS
       LGORT
       LABST
  INTO TABLE I_MARD
  FROM MARD.
LOOP AT I_MARD.
WRITE: /  I_MARD(22).
IF NOT I_MARD+22 IS INITIAL.
  WRITE:/  I_MARD+22.
  ELSE.
  WRITE:/20  '-'.
ENDIF.
ENDLOOP. 
Here i am having total field legth is 42. In that i an writing first 22 char. after that i checking about the remaing data.
But it is not allowing me to activate..please check it & let know your inputs..

HI J@y,
As per your suggestion I have modified the code and activated. But it is not displaying full data.
Here in I_mard table I am having the below data.
Row     MATNR     WERKS     LGORT     LABST
1     20000901     1039     09B1     10.23
2     20000902     1039     911     10.25
3     20000902     1039     912     10.56
4     20000902     1039     913     10.56
5     20000902     1039     919     10.56
6     20000902     1039     921     10.56
7     20000902     1039     922     10.56
But in the output iam getting the only 2 fields of data so what about remaining LGORT and LABST.
20000901          1039 
20000901          1039 
20000902          1039 
20000902          1039 
20000902          1039 
20000902          1039 
20000902          1039 
Here in my condition is;
1st MATNR and WERKS will be written and by using this statement:  WRITE: / I_MARD(22).
and then by using the other condition iam checking the data of remaing 2 fileds.
IF NOT I_MARD+0(22) IS INITIAL.
  WRITE:/ I_MARD+0(22).
  ELSE.
  WRITE:/20 '-'.
ENDIF.
if we dont have the date for next 3 fields '-' will be displayed.
Please check it. this is important for me..
Edited by: Mahaboob on Nov 13, 2008 10:10 PM

Similar Messages

  • Very urgent : Problem with field attributes in Datasource

    Hi
    I am getting a problem with field attributes in the datasource.
    The issue came up after i modified the extract structure-i modified one field and
    added one field to the structure.Now those two fields are not visible in BW.
    When i checked with transaction rsa2, i could find that for those two fields , the
    field attribute is <b>'A'</b> which is <b>'Field in OLTP and BW Hidden by SAP'</b>.
    I tried to modify the field attribute to make it visible.Now the issue is that it is not getting reflected after transport in the Q system.What can be the issue.In the Q system its still the old value 'A' ,which makes the fields invisible.
    Please let me know what can be the issue.
    Regards
    Leon

    Hi,
    did you change this attribute via RSA2?
    you need to change your datasource via postprocessing (RSA6); then transport your DS to your Q source system.
    Replicate your datasources in your BW.
    Finally modifiy your Transfer Structure by editing your TRules ( tab Datasource/Tran structure), move your new fields from the right frame to the left frame)
    Maintain your TRules
    Activate
    hope this helps...
    Olivier.

  • Saved text fields and check-boxes empty when 3D window activates

    I've created Text Fields and Check-boxes in a pdf template, using LiveCycle Designer.
    I create the 3D work in Reviewer, and use the pdf template during Export to 3D pdf.
    Using 'Extend Features in Adobe Reader' the user can fill in the text fields, and click the check-boxes then save them with the pdf  - just using Reader.
    So far this is great!
    The problem comes when the pdf is opened again and the 3D window (A3DR_3DFrame) activated.
    All the completed fields empty!
    This is not great at all!
    I've did some tests and found that the filelds only clear if I include the Configs selection list box with the special name 'A3DR_Configs' in the template pdf. (A3DR_Configs lists the Configs stored in the 3D Reviewer file and the user can select the config from that list).
    This is unfortunate, as the A3DR_Configs window is useful since it indicates to the user which 3D config is currently being viewed (ie the name of the current config stays highlighted).
    Is this a bug that can be fixed or is there a workaround?
    thanks,
    Ian

    Would you mind to post your commenton the the approriated Adobe forum page ?
    This one is dedicated to Acrobat 3D
    The correct forum page for Designer is:
    http://forums.adobe.com/community/livecycle/livecycle_es/livecycle_designer_es
    Thanks in advance
    William

  • How to ennable/disable a field or check the status of a field

    I'd like to ennable/ disable a field, and check if a field is ennabled or disabled. Does anyone know the methods for this?

    I had a problem where dropdowns that were populated from the Standards Table wouldn't allow me to set them as Read-Only.  Doing this allowed me to automate some other dropdowns and reuse the form over several services, so there was actually a reason for this.
    Anyway, I used this to force the dropdown to Read-Only after it was populated, since Javascript runs after the Conditional Rules.
    JS_Z_SetReadOnly (theobject){
     var myselect=document.getElementById(theobject);
     myselect.disabled = 1;
    What I passed to it was the FormName.DictionaryFieldName in single quotes - 'CMN_Chargeback.OfficeNumber'.

  • I no longer have sound when playing my clips through adobe premiere elements 12. How to I correct this problem? I have checked all audio levels and there is no mute on etc. I have updated to 12.1. Still no sound.

    I no longer have sound when playing my clips through adobe premiere elements 12. How to I correct this problem? I have checked all audio levels and there is no mute on etc. I updated to 12.1, but still no sound in any clips. Even not on old files which used to work.

    bfun
    What computer operating system is your Premiere Elements 12/12.1 running on? Can we assume that this audio plays back OK
    on the same computer when you are using a computer player independent of Premiere Elements?
    What are the properties of these clips that worked before but do not know with regard to sound
    For now, I will assume that you are working on Windows 7, 8, or 8.1 64 bit.
    Have you checked the Edit Menu/Preferences/Audio Hardware ASIO settings? Do you have any 3rd party audio devices incorporated in your computer environment?
    Please delete the Adobe Premiere Elements Prefs file and, if that does not work, then the whole 12.0 Folder in which the Adobe Premiere Elements Prefs file exists. The Windows 7, 8, or 8.1 64 bit path is
    Local Disk C
    Users
    Owner
    AppData
    Roaming
    Adobe
    Premiere Elements
    12.0
    and, in the 12.0 Folder, is the Adobe Premiere Elements Prefs file that you delete. If that does not work, then delete the whole 12.0 Folder in which the Adobe Premiere Elements Prefs file exists. Make sure that you are working with Folder Option "Show Hidden Files, Folders, and Drives" active so that you can see the complete path cited.
    Do you have installation files or installation disc with the purchased serial number in case we need to resort to uninstall/reinstall?
    We will be watching for your follow up.
    ATR

  • Since i got the new Iphone 4s it constantly drops calls. Apple have replaced the phone with another new iphone 4s but i am still having the same problem. I have checked with vodapohe that there is no issue from there end, given a new sim, still drops out

    Since i got the new Iphone 4s it constantly drops calls. Apple have replaced the phone with another new iphone 4s but i am still having the same problem. I have checked with vodapohe that there is no issue from there end, given a new sim, still drops out

    Have a look at this it might help
    http://support.apple.com/kb/TS4148

  • GL Center is a required field!  Check file definition format in file header

    Hi
    I am new in Hyperion FDM. I am trying to load a txt file using multiload feature of FDM. I have created a VBScript to load data. When i run the script it finishes without error but doesnt load any data. I get the following errors in the log file
    ** Begin FDM Runtime Error Log Entry [2012-01-29 16:20:07] **
    ERROR:
    Code............................................. 2621
    Description...................................... GL Center is a required field! Check file definition format in file header (Lines 1-6)!
    File=10_SAMPLE_Actuals_JAN - 2011_RM.txt
    Procedure........................................ clsMPLoader.fStructGetText
    Component........................................ upsWMPLoaderDM
    Version.......................................... 1111
    Thread........................................... 3212
    IDENTIFICATION:
    User............................................. admin
    Computer Name.................................... RAJNEESH
    App Name......................................... testfdm1
    Client App....................................... WorkBench
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... orcl
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... SAMPLE
    Location ID...................................... 748
    Location Seg..................................... 2
    Category......................................... ACTUALS
    Category ID...................................... 12
    Period........................................... Jan - 2012
    Period ID........................................ 1/31/2012
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    Here is the contents and format of the text file that I am trying to load
    SAMPLE
    ACTUALS
    Jan - 2012
    1
    R,M
    a,v,e,v
    a1,version1,e1,100
    a2,version1,e1,100
    a3,version1,e1,100
    Obviously there is something wrong in the txt file above. Can anybody let me know whats wrong I am doing. I also see following error in the tbatchcontents database table after the VBScript finishes running
    10_SAMPLE_ACTUALS_JAN - 2011_RM.TXT_CHECK-IN-FAILED (CODE=2621)
    Need your help. Thanks.
    Edited by: rajneesh sharma on Jan 29, 2012 2:02 PM

    Please see this post => Essbase Multiload
    Thank you,
    Todd Rebner

  • Has anyone had a problem with depositing a check with the app for Bank of America?

    Has anyone had a problem with depositing a check on a bank app?

    Is the check something like a payroll check where its digitally printed and all in text?, or is it a handwritten check?
    from my experience handwritten checks rarely work, myself and friends have always recieved an error stating the picture was to blurry no matter how many times we took a picture. From what i have read with others who have issues with depositing handwritten checks, some checks are deemed to blurry based on the handwriting, therefore the app wont accept the check, while other handwritten check will be accepted just fine, i hope this resolves your issue's and concerns

  • TS1702 Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

    Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

    Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

  • Firefox have some promlems and it block when is opeining hotmail, in my laptop always have that problem, so i need check my email using another programs...that problem is in my laptop or it´s a problem of navigator??

    Firefox have some problems and it block when is opening hotmail, in my laptop always have that problem, so i need check my email using another programs...that problem is in my laptop or it´s a problem of navigator??

    I know you can't help with my Yahoo problem, however, apparently at some time in the past I have went to the Sync and tried to figure it out on both my laptop and my desktop, because I have the long snyc key information. However, when I go to try to sync both computers I never get the box to enter that key on either one. That is my problem. So should I try and get a new sync key and see if that works.

  • How to have a field automatically fill in another field when checked

    Does anyone know if there is a way to have a field automatically fill in another field with a specific dollar amount when a field is checked.
    I am doing a registration sheet for a charity event where we have to pay for each person that attends. I would like it set up so that when someone checks in the person at the registration table would just click the check box (E2) and then have it fill in the field next to it a dollar amount of $15.00 (F2) which would be owed to the place hosting the event.
    Attached is a picture of the spreadsheet: example: persons checks off E2 and the amount $15.00 would automatically fill in field F2. I would then do this for each line and have the F column total the amount owed to the place.
    I am VERY new to numbers and writing formulas so if you can be specfic with how to do the code would be greatly appreciated. THANK YOU!

    please remember to post the actual solution (equation in this case) so others that are searching for similar items see the solution, not just
    Got it, replaced 0 with '''.
    Thanks
    Jason

  • Problem with field symbols in ecc 6.0

    i have the following  code  written in 4.6 version   now i am executing the old report   in 6.0  but  i am facing with some unicode error.
      FIELD-SYMBOLS:
        <line_of_bs_table> LIKE tbl1024,
       READ TABLE bs_table INDEX row_bst ASSIGNING  <line_of_bs_table> .
        buffer_bsbuffer_ptr(aux) =  <line_of_bs_table> >col_bst.
    tb1024 is standard sap structure  for storing buffer contents
    i have the following error in ecc 6.0
    structure type   '<line_of_bs_table> >+col_bst'  does not start with a charecter type  field in unicode programs in such cases
    offset/ length declarations are not allowed.
    can any one tell how can a field symbol  structure is changed  to charecter  type.

    Hi elinuk,
    you have already posted this thread in the ABAP general forum under problem in field symbols in ecc6.0 and I think that this forum is more related to this issue than the DMS forum. So please close this thread and investigate this issue further in the ABAP general forum.
    Best regards,
    Christoph

  • DMEE PMW Field FPAYHX CHECK

    Hello,
    I am attempting to create a payment media workbench file for ACH payments. I have created a check lot number seriers and assigned it to my ACH payment method, thus allowing us to track ACH payments in the check register. I want to use the field FPAHX CHECK in my DMEE mapping tree but it will not output in my file?
    Are there any settings with my payment method or otherwise that would prevent me from using this field in my mapping engine?

    Hi
    I have the same proble. Please let me know how did you resolve it.
    Thanks

  • [SOLVED]problem about wc to check the amount of the processes through

    #problem about wc to check the amount of the processes through ps
    hi.this is the processes current
    $ps
    PID TTY TIME CMD
    2674 tty3 00:00:00 bash
    2689 tty3 00:00:00 mocp
    2746 tty3 00:00:00 ps
    $ps | wc -l
    5
    The problem:since there are 4 lines of ps output here,why wc -l shows the number "5"?
    And if i redirect ps to a file and then check the lines number with "wc -l",it's "4".
    $ps > out
    $cat out
    PID TTY TIME CMD
    2674 tty3 00:00:00 bash
    2689 tty3 00:00:00 mocp
    2753 tty3 00:00:00 ps
    $cat out | wc -l
    4
    Any idea?Thanks.
    Last edited by wanghonglou82 (2011-10-07 06:49:44)

    falconindy wrote:Working as intended. wc is running when you pipe ps to it.
    hi.thank you.
    The clue you bring here sounds reasonable.But a little more confusion to me comes around.I will check the bash rules for digest commands.thanks.

  • Problem with field GL Account is that it shows concatenated Chart of Accoun

    Hello . Please help me. We have sap BI olap universe . problem with field GL Account is that it shows concatenated Chart of Accounts. But user want to trim the chart of account and show only account in list of values in webi report.
    So What code I can put in Universe to remove this " 9000/" WHICH IS Chart of acct from GL Account
    example List of values shows
    9000/99030
    9000/99070
    I want to show as below
    99030
    99070
    I tried replace function in universe it does not work. Pls help.
    Thanks
    soniya

    Hi,
    You can do it in Web Intelligence using the function Right().
    Depending on the SAP BW version you have it is possible to build such calculated expression in universe on uniquename or name:
    <EXPRESSION>RIGHT[0CALMONTH].currentmember.uniquename,5)</EXPRESSION>
    OR
    <EXPRESSION>RIGHT([0CALMONTH].currentmember.name,5)</EXPRESSION>
    You have to replace 0CALMONTH by the unique definition of GL Accounts and you also need to use the object referencing GL Accounts in your query in addtion to the calculated expression.
    Regatds
    Didier

Maybe you are looking for

  • What's wrong with the code?

    public void run() try {     for(;;)      mgr = (RTPManager)RTPManager.newInstance();      mgr.addSessionListener(this);      mgr.addReceiveStreamListener(this);      try{  /*****port1 = port2 = 29261, which port is only used in here      localAddr =

  • Intel 24" iMAC wall mount

    Hey all I hope this isn't a topic that has been pounded on a lot (my forum search didn't turn much up), but I am trying to find a wall mount for my iMAC and thought this would be the best place to ask. Thanks, -Stephen

  • How to get messages from IBM MQ in Oracle.

    Hi , Can you please help me how to get messages from one IBM MQ to another IBM MQ in Oracle. My requirement is Our upstream is putting messages from their IBM MQ to our IBM MQ then we have to extract data from the message and load into Oracle databas

  • Obiee installation in vista

    hi, i have a loptop with windows vista. and i am very intrested to install OBIEE.but my OS is not supporting me to do so. so, i have a thought of using the vm for getting the xp virtually and installing the obiee to work for.... is it possible for me

  • How can I use iTunes support?

    Hi my name is Maria