Date problem in Smart form

hi  ,   i have to change the date Example  27.10.2010  to  27-oct-2010 , so what is the solution .
Moderator Message: FAQ. Please search before posting.
Edited by: kishan P on Oct 27, 2010 11:02 AM

Hi Rahman,
See this link.
<<removed by moderator>>
Thanks
Nitesh
Edited by: kishan P on Oct 27, 2010 11:03 AM

Similar Messages

  • Date format in smart form

    How can we change the date format in a smart form.

    define a var of type string in global
    1)get the req date use edit mask function to modify it
    2)convert tthe date as u wanted in program lines in smart form
    3)assign the same to the string variable & then u can display the same
    i hope this works
    close the thred if problem is solved

  • Sorting problem in smart form

    Hi,
    Good day guys
    Ive dev the smart form for workshop invoice..  everything fine but they need sort the stracture one which is LBBIL_IT_GEN.
    so ive created the custome stracture ZLBBIL_IT_GEN and added the numaric field at end of the strc.
    move-corresponding gs_it_gen to ZLBBIL_IT_GEN1.
    lv_num = lv_num + 001.
    ZLBBIL_IT_GEN1-MTART = GV_MTART.
    ZLBBIL_IT_GEN1-num = lv_num.
    sort ZLBBIL_IT_GEN1 by num.
    Move-corresponding ZLBBIL_IT_GEN1 to gs_it_gen.
    I think, it wont be work out. bcoz stracture doent hold the data..... how to over come the problem.. sorting is very imp for fun guys..
    regards
    chandu

    Hi,
    Actually ive a condtion.. if the material type [mtart] is "yser" .. in the material column should be blank.. the the material type is zrsa. then it needs to print materail and description.
    Material              Description
                                 xyz
                                  abc
                                  laptop
    123                        abc
                                  compu
    456                         pen
    678                        book
    if see the  the  5 th item get the blank ..so there is prob.. first needs to gets the all blanks then print  one who having the mateiral and description.
    but its prints right way.. bcoz its comes based on material type.. but need to sort this....
    how to do it..plz let me know
    thanks
    chandu.P

  • To display  selection screen date parameter  in smart form

    Hi to all
    My requirement is to display date parameters which are given at selection screen (module pool program ) on the smart forms.
    I just want to dispaly this on selection.
    SO_BLDAT-LOW
    SO_BLDAT-HIGH
    Please guide.
    Regards
    Anubhav

    Hi,
      If you are calling the smartform from the module program then export the parameters from the calling FM  
      and import the same in the smartform.
    Regards,
    Sandeep

  • A strange problem in smart form?

    Hi,
       I met a strange problem in my smart form. When I click "Check" button in each window of each page, system said "Window (my window name) does not fit onto page(height)". Even I create a new page and a new window in it, it still said this error when I click "Check" button in the new window.
       I have tried to enlarge or reduce the window's size, but this error still occured. But I can activate the form correctly. And there is a syntax error in the generated program:
       FORM %EV2.
        LOOP AT INTO .
        CALL FUNCTION 'SSFCOMP_TABLE_ROW_BEGIN'
        EXPORTING I_LINE_TYPE = 'LINE2'
      You can see there's an error in loop statement.
      Could you tell me the reason and how to solve it?
      Thanks a lot!

    hi
    good
    as you have maneioned in your error  you have said that you have created your own window,but the check box as you mentioned which check box that it it is output options tab check box or in the condition tab check box.
    in the general attribute select the secondary window from the dropdown box and output options tab select the page size as you need .
    i hope you will get some output .
    thanks
    mrutyun

  • Problem with Smart Form ('RLE_DELNOTE')--Please Help

    Hello,
    I am facing a problem in the smart form.
    So far I am printing certificates (QM module) for the finished goods.  i.e. first level batches.  Now I should incorporate down level batches info also. i.e. semi finished goods info (second, third... level batches).  I am not aware of how to find out the semi finished goods info of a finished good.  Each finished good may have one or two levels of semi finished goods....The print program i am using is 'RLE_DELNOTE'.
    Can any body suggest me what i have to do?
    I have tried with FM 'CHVW_BATCH_WHERE_USED_LIST'.  But is of no use.....please tell me...
    Best Regards,
    Shekhar

    To check to see if you have an OpenGL problem:
    In Photoshop choose Edit - Preferences - Performance.
    Is [ ] Use OpenGL Drawing checked?
    If so, uncheck it.
    Close and restart Photoshop.
    Does the problem persist?
    If so, you probably can correct it with a video driver update.
    Don't forget to go back and re-enable Use OpenGL Drawing.
    To update your video driver:
    Right-click on your desktop and choose Screen Resolution.
    In the dialog that comes up, choose Advanced settings.
    Click the Adapter tab, if it isn't already current.
    What Adapter Type is listed?  Note the brand and model.
    If it is an ATI model, visit this web site:
    http://support.amd.com/us/Pages/AMDSupportHub.aspx
    If it is a nVidia model, visit this web site:
    http://www.nvidia.com/Download/index.aspx?lang=en-us
    Follow the instructions to choose the proper card and operating system.
    Download and install the latest drivers for your hardware.
    -Noel

  • Problem with smart forms.......

    Hi friends, I m facing a strange problem while using smart form. I am using values from standard smartform for invoice n just modifying the layout. The problem is tht,the value i m getting is like '14.223,56' bt the actual value that i want should be  '14,223.56'. That is the '.' and ',' are interchanged. Please tell me some way by which i can make it right.
    Good points will surely be awarded for answers.
    Thanks..........

    Have you checked your user defaults in transaction SU01
    under the defaults tab there is a section for decimal notation.

  • PDF Form giving different data compare to smart form

    Hi Friends,
    There are few scenerion in my system where my application produce a PDF form (Smart Form Convert to PDF through OTF)
    In some case when I execute/print the form it shows me all PO form  represnt me a differnt PO form althought their smartform is showing up correct PO.
    Please help me out what can be a issue.
    -Rick

    Hi ,
    Like I have print of 5-6 PO then I am getting a refrence of some other PO in all print of these 5-6 PO.
    for example...I have a print of series 1000000001 to 1000000005 then I am getting the details of other PO 1000000011 into all 5 print of PO starting from 1 to 5.
    Note- I have a custom program which convert smartforms to OTF and send a PDF to mail id.
    -Ricky

  • Display of data vertically in smart form

    Hi all,
    I have a smart form to develop where i need to display the bar code vertically with values also displayed vertically along with the barcode.
    Can some one suggest on this.
    Regards
    Archanaa

    Hello.
    Refer this link:
    vertical and horizontal printing in same page with smartforms or sapscript
    Search SDN and you will find more information.
    Regards.
    Valter Oliveira.

  • Date problem in the form

    I have a field called exp_date data type is date in the database and also in the form.
    In the recieving form field this date is entered as 2010/03 (year.month)
    In my irradiation form the exp_date( scanned or entered as 201003) YYYYMM, is validated against the recieving table
    and then based on the month I have to update my exp_date in irradiation form to the last day of the month. I ndo all the conversion and that works fine.
    If march then 31, If april 30 etc.
    I have master codes table where we store codes.
    01 - 31
    02 - 28
    03 - 31
    etc
    v_exp_date1 varchar2(11);
    v_exp_dat2 varchar2(11);
    v_exp_date3 varchar2(11);
    v_udf1 number;
    v_complete_string varchar2(11);
    v_exp_date date;     
    Cursor C3 is Select to_char(exp_date,'MM')
         from supplies_received
         where lot = :plt_irradiation_log_t.lot;
    Cursor C2 is select code,udf1 from master_codes
    where code_type = 'DAYS'
    and term_date is null
    and code = to_number(v_exp_date1);
    Cursor C4 is Select to_char(exp_date,'DD')
         from supplies_received
         where lot = :plt_irradiation_log_t.lot;
    Cursor C5 is Select to_char(exp_date,'YYYY')
         from supplies_received
         where lot = :plt_irradiation_log_t.lot;
         open c3;
         fetch c3 into v_exp_date1;
         close c3;
         Open C2;
         Fetch C2 into v_day,v_udf1;     
         Close C2;
         open c4;
         fetch c4 into v_exp_date2;
         close c4;
         open c5;
         fetch c5 into v_exp_date3;
         close c5;
    v_complete_string := v_exp_date1||'/'||v_udf1||'/'||v_exp_date3;
    :plt_irradiation_log_t.exp_date := to_date(v_exp_date1||'/'||v_udf1||'/'||v_exp_date3);
    :system.message_level := '10';
    commit;
    :system.message_level := '0';
    v_complete_string is varchar2(11); If I make it date there is no action.
    Now my exp_date is null.
    I need help to populate exp_date.
    Thanks in advance
    Anu

    I think your problem is the TO_DATE you use without giving a format-mask:
    :plt_irradiation_log_t.exp_date := to_date(v_exp_date1||'/'||v_udf1||'/'||v_exp_date3);
    try changing it to :
    :plt_irradiation_log_t.exp_date := to_date(v_exp_date1||'/'||v_udf1||'/'||v_exp_date3, 'DD/MM/YYYY');btw... As fas as i understand your code you only want to get the last day of the date which matches :plt_irradiation_log_t.lot. If so, you may reduce your code to
    DECLARE
      Cursor C3 is
        Select LAST_DAY(exp_date)
          from supplies_received
         where lot = :plt_irradiation_log_t.lot;
    BEGIN
      OPEN c3;
      FETCH c3 INTO :plt_irradiation_log_t.exp_date;
      CLOSE c3;
      -- the rest of your code
      :system.message_level := '10';
      commit;
      :system.message_level := '0';
    END;

  • JDev 11 - Date problem in executeWithParams form who rans fine in Jdev 10

    Hello everybody,
    Here is my case :
    I have a viewObject, here is its SQL code :
    select *
    from
      select req.*, ROW_NUMBER() OVER(ORDER BY 1) num
      from
        select distinct rvmage.mage_seq, mpr.nom||' '||mpr.prenom as medecin, mpr.nom, mpr.prenom, rvmage.ag_date, rvmage.heure, sst.lib_1, spr.spr
        from rvsexa, rvsexa_rvsnag, rvslag, spr, mpr, rvmage, rvsnag, sst
        where rvsexa.mnemo = rvsexa_rvsnag.rvsexa_mnemo
        and rvsexa_rvsnag.rvsnag_code = rvslag.rvsnag_code
        and rvsexa_rvsnag.rvsnag_code = rvsnag.code
        and rvsnag.rvsnag_sst like sst.sst
        and sst.lib_1 like '%' || :p_site || '%'
        and rvslag.spr_spr = spr.spr
        and rvsexa.lib_1 not like 'SERVICE%'          
        and spr.rsm = :p_rsm
        and rvsexa.lib_1 like :p_libExamChoisi
        and mpr.mpr = spr.mpr
        and rvmage.rvslag_lag = rvslag.lag
        and rvmage.etat = 1
        and mpr.nom||' '||mpr.prenom like '%' || :p_medecin || '%'
        and ((rvmage.ag_date) - to_date(:p_dateDeb)) >= 0
        order by rvmage.ag_date, rvmage.heure
      ) req
    where num between ( (:p_pos-1)* :p_nb)+1 and  (:p_pos*:p_nb)I have an executeWithParams form, here is a part of the code :
    // many parameters can ben modified
    <tr:inputDate         value="#{bindings['p_dateDeb'].inputValue}"
                                label="Date"
                                required="#{bindings['p_dateDeb'].mandatory}"
                                chooseId="choosedDate"
                                autoSubmit="true">
                                             <f:validator binding="#{bindings['p_dateDeb'].validator}"/>
                                             <f:convertDateTime pattern="#{bindings['p_dateDeb'].format}" dateStyle="shortish"/>
    </tr:inputDate>
    <tr:chooseDate id="choosedDate"
                                   minValue="#{backing_main.dateDemain}"
                                   maxValue="#{backing_main.dateLimite}" />
    <tr:commandLink        actionListener="#{bindings.ExecuteWithParams.execute}"
                                    text="Rechercher"
                                    disabled="#{!bindings.ExecuteWithParams.enabled}"/>
    // rest of the code is mainly a trinidad read-only table associated to my viewObjectIn the JDeveloper 10 version it was ok. Here I'm able to change the value of all my parameters except the date. I can enter any date, result stay already the same ignoring the date.
    If someone knows this problem..
    Valéry.
    Edited by: valery.s on 05-mai-2009 14:31

    I found my problem :
    the date is initialized in the viewObject executeQuery's method like this:
            Date d = getp_dateDeb();
            if(d==null)
                Date demain = new Date();
                demain = (Date)demain.getCurrentDate();
                demain.addJulianDays(1,1);
                setp_dateDeb(demain);
            }problem is that getp_dateDeb(); return always null. Thus I always execute my VO with the date of tomorow.
    Is there another way to see if the date parameter is call for the first time ?

  • Main window iteration problem in smart forms

    Hai,
    I am struggling from a problem from past 1 weak, can anybody help me.
    Problem:
    user- inputs: 2 different items say item1 and item2.
    The output should be the combinations of four pages(pg1,pg2,pg3,pg4)  based on conditions.
    pg1 should be displayed when:
         1. item1 and item2 are less than 5.
         2. either pg1 or pg2 are less than 5.
    note: pg1 can only display 5 items of each type.
    pg2 should be displayed when:
        1.item1/item2 is greater than 5 and less than 15.
        2. either item1/item2 >5 and <=15 .
    note: pg1 can only display 15 items of each type.
    pg3 should be displayed when:
        item1 is greater than 15.
    pg4 should be displayed when
       item2 is greater than 15.
    My problem is when there are items greater than 15 say 90 items then main window page is not iterated i.e only first 40 is displayed remaining are not displayed.
    Please help me as soon as possible.
    Helpful answers will be rewarded.
    Thanks and Regards,
    Swetha Singh.

    Hi,
    Instead of calculating the line items, you can use the command in the footer of the main table to go to next page. It will dynamicaly push to the next page, once first page data display was over.
    Is this the answer you are looking for. Thanks.

  • Problem in Smart form while printing it in POLISH language

    Hi All,
    I am facing a problem in SMARTFORM and SAP SCRIPT.
    I have developed a form in EN language and converted that in POLISH language using SE63 . When the form is printed in the POLISH language "#" is coming for some special characters of POLISH Language . ( e.g. 'Length' should get printed as 'D&#321;UGO&#346;&#262;' ' but it is coming as 'D#UGO##'')
    Please tell me how to handle these special characters in POLISH Language.
    Thanks

    Hi,
    To solve this Basis need to create a new output device type which supports Latin-2 character set (Device type to I2HP4) or change the existing one to support Latin-2 character set.
    Thanks
    Edited by: dipesh kothari on May 6, 2008 5:33 PM
    Edited by: dipesh kothari on May 6, 2008 5:34 PM

  • Date problem in a form

    Hi:
    I have a form (in jsp) where in I have a field for Date. The Date is entered in the form: 12/18/2002. I using beans to retrieve the form values and then pass to the program. THe date field is passed as String to the bean. The program changes the String to util date
    (assignment ===> name of bean)
    String strDate = assignment.getDueDate();
    java.util.Date adate = null;
    DateFormat fmt = DateFormat.getDateInstance(DateFormat.SHORT,Locale.US);
    try {  
    adate = fmt.parse(strDate);
    System.out.println("Util date in Bo: "+adate);
         catch (ParseException e)
              System.out.println(e);
    and before inserting into database, it is changed from util.date to sql.date.
    long time = adate.getTime();
    java.sql.Date sqldate = new java.sql.Date(time);
    Until now everythign is working fine. On my way back, when i retrieve the sql.date from the database, I change it to util date:
    java.sql.Date sqlDate = rs.getDate("dueDate");
    java.util.Date uDate = sqlDate;
    and then covert this util date to String
    String strDate = uDate.toString();
    When I display this string date on my form... it is in the format
    2002-12-18, although i have inserted it in 12/18/2002 format.
    Can anyone help me since i want my date to appear on the form in the format I enter (12/18/2002) and not the 2002-12-18 format of database

    Already answered elsewhere.

  • Passing data to the Smart Forms - incert icon missing

    Hi Abapers,
    To add a field, i need to click on u201CInsert Fieldu201D. but  the insert icon is not available menubar.
    Please anyone let me know, how to bring that under 'general attributes' tab.?
    Thanks in advance,
    Raj

    Hi,
    Instead of going for the insert field just click the EDITOR button available in the left hand side of the editor and you get the SAP SCRIPT editor there you can directly enter the variables,
    or
    Go for the FIELDLIST ON/OFF button which will be beside the FORM PAINTER button so you will get the list of import , export , global , system-fields data from there you can just drag and drop the fields you want.
    this will resolve the issue.
    thanks
    sarves

Maybe you are looking for

  • Slow performance, brand new iMac!

    Hello! First, excuse my rusty English.. I hope you manage to read it Main problem.. Adobe, PhaseOne and other intensive applications is veeeery slow on a high specced brand new iMac! Lightroom 5, PS CC and Capture One Pro 7 is what I use mostly. I ju

  • IPhone 3gs is no longer charging

    After an unfortunate accident, my iPhone has been having weird charge cycles. Every time I plug it in, it will charge like normal for a second and then give me the message "Charging is not supported on this accessory". The extremely odd part is that

  • Preview crashes when viewing (clicking) large pdfs

    I have a problem viewing large pdfs in Preview (and any other PDF-reader. Same problem with Skim, Adobe Reader, PDFpen). The problem comes when I first click inside of the pdf, to select text for example. If I'm just viewing the pdf passively it scro

  • Why can't I add some songs to a playlist?

    Hi, I'm wondering why certain songs won't drag and drop or Add To a Playlist?  There are certain songs in my music library that, when attempting to move, appear with the red circle/slash through icon instead. All of my songs have either been purchase

  • Is there a BADi to control the results of SPL check on partner?

    Hi, When a customer / vendor master is transferred from ECC to GTS system, in some scenarios it is getting blocked. Is there a BADI available using which we can control this result, and keep a particular partner as unblocked? Thank you, KM