Help! how to add a "0" infront of month?

i am using this method to retrieve current day and month
Calendar c = Calendar.getInstance();
int currMonth = c.get(c.MONTH)+1;
int currDay = c.get(c.DATE);
int currYear = c.get(c.YEAR);
it works well.
but now, i want to insert them into database. and found out that if month or day is single digit, for example, june, it will just insert 6 into the database.
But i actually need 06 instead of 6.
can anyone help me?
how to add a 0 infront?

you can use SimpleDateFormat:
http://java.sun.com/j2se/1.4.1/docs/api/java/text/SimpleDateFormat.html
i provide you code example of how to test it: but there i use deprecated method (as i didn't want to use DateFormat for geting new Date object)
so, i beg you, don't you use that deprecated constructor.
import java.text.*;
class SimpleDFTest {
public static void  main(String[] args) {
  SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
  for (int i = 0; i < 13; i++) {
   System.out.println("Some date: " + sdf.format(
     /* java.util.Date(int,int,int) is deprecated, DON'T use it */
     new java.util.Date(/*1900 + */ 103, i, 5 + i)
}to compile it i used javac -deprecation SimpleDFTest.java
note that i print out 13 rows, (month varys from 0 to 12, and day from 5 to 17), that's because i wasn't suer if month should be given as int from 0 to 11 or from 1 to 12.
you may figure out which it is and thenn add 1 to currentMonth, or not.
anyhow, it prints days and months out just the way you need it, with dwo digits.

Similar Messages

  • Help:  How to add a library item to hide the default Window menu

    Hi,
    In this post: Help: How to add a library item to hide the default Window menu, it described how to create an menu that will hide the default window menu.
    I'd like to know if there a way to put this component into library so that others can directly inherit this menu in other FORMS and how to implement it.
    Jimmy

    Hi,
    I found the solution and the post was not properly phrased. There is no need to add menu into library. All we need is to put the compiled menu into Oracle AS and add the menu name the menu module of the given form.
    Thanks.
    Jimmy

  • Plz help: how to Add a lens profile ? (mac)

    hello
    i am having problems with the lens profile.
    i am working with raw images and when i open in phoshop cs6 (on Mac) and click on lens correction
    cant detect what lens i m using (is the canon 16-35 mm) it just gives me option from other canon lens but not this one
    when i click search online - doesnt work as well.
    i even downloaded the Adobe lens profile downlaoder and find the profile for the lens and downloaded it but still doesnt apper in photoshop lens correcton.
    when i open the image in lens correction in the info box under the image gives all the correct info what camera and lenses are used !! but why there isnt any lenses avalable to select when tried to edit the image??
    please help how to Add a lens profile from Adobe lens profile downlaoder or how to add in anather way  canon lenses.
    thank you

    can anyone help please?

  • Help - How To Add Email Account To ITunes

    I’ve added a Gmail account to my iPhone (original model using iTunes 7.7 & OS 2.0) and Entourage and Mail applications. It works fine in both applications and the iPhone.
    My problem is that it does not appear in the list of my older mail accounts in iTunes when I sync my iPhone. It appears that iTunes does not recognize the newly added Gmail account even though it is fully functional.
    Does anyone know how to add an email account to iTunes so that its settings will be synced?

    I am having the same problem. Two mail accounts on the computer but none show up in itunes. They did the first time I synced the phone and now they are gone, unfortunately the first time i synced I didn't sync the mail accounts and on the second sync I was going to set up the mail accounts but they've vanished. Very strange. I've searched and have seen another post on this problem, but no solution.

  • HELP, how to add more folders in my photos

    how do I add more folders in my photos? because I only have two. one is the camera roll and the other is the one that came from the computer. I want to add more folder but I can't find that feature in the itunes when I connect my iphone. Pls help

    I believe you simply create a new folder inside the folder that you have set for iTunes to sync from. I haven't synced from my PC since last summer so I could be wrong.

  • Help: How to add serial number data into Delivery Order document

    Dear Gurus,
    I am creating an interface program and I have problem in attaching the serial number data to the corresponding material code for a certain delivery order document in R/3 4.6C SP22 system.
    The serial number can be attached either during the creation of the Delivery Order itself or in the subsequent step after creating the Delivery Order (i.e.: create the D/O document first, and then update the D/O data).
    The BAPI_OUTB_DELIVERY_CONFIRM_DEC FM does not provide any input parameter to let me put the serial number in this R/3 version.
    By tracing in SE30 the standard program VL02N --> Menu --> Extras --> Serial Number --> Continue (Enter) --> Save (Ctrl+S), I found out that the serial attachment 'might' be done during sub-routine SERIAL_LISTE_POST_LS in program SAPLIPW1. It will in turn executes FM SERIAL_LISTE_POST_LS. The commit to database table will be done in update task by FM OBJK_POST_UPDATE_N and SERIAL_POST_UPDATE_LS.
    <b>My question:</b>
    ============
    1. Is FM SERNR_ADD_TO_LS can be used to attach the serial number to D/O?
    If yes, how to do it please because I already tried it I can not see the serial information in VL02N after that. There is no any insert or update to database in this function module. Should I call other FM after this? I want to try to call FM OBJK_POST_UPDATE_N and SERIAL_POST_UPDATE_LS but I do not know how I can retrieve the global object such as XOBJK_ALL that is necessary for the input parameter.
    2. If SERNR_ADD_TO_LS can not be used, what other FM can I use? Can I call SERIAL_LISTE_POST_LS instead? Is there any reliable way to generate the import parameter for this FM, such as XSER00, XSER01, XOBJK_ALL and XEQUI?
    Thank you in advanced for your kind assistance.
    Best Regards,
    Hiroshi

    Try something similar to this below...
    Afterwards you should do a call transaction to VL02N and immediately SAVE. This is sufficient to ensure the status on the serial numbers is updated correctly.
    FUNCTION z_mob_serialnr_update_ls.
    ""Local interface:
    *" IMPORTING
    *" VALUE(VBELN_I) LIKE LIKP-VBELN
    *" TABLES
    *" SERNO_TAB STRUCTURE RISERLS
    *" YSER00 STRUCTURE SER00 OPTIONAL
    *" YSER01 STRUCTURE RSERXX OPTIONAL
    *" YOBJK_ALL STRUCTURE RIPW0 OPTIONAL
    *" YEQUI STRUCTURE RIEQUI OPTIONAL
    *" YMASE STRUCTURE MASE OPTIONAL
    *" EXCEPTIONS
    *" NO_EQUIPMENT_FOUND
    The modified/confirmed table of serial numbers is supplied in
    SERNO_TAB.
    These are updated in the SAP tables
    YSER00 - General Header Table for Serial Number Management
    YSER01 - Document Header for Serial Numbers for Delivery
    YOBJK_ALL - Internal Table for Object List Editing/Serial Numbers
    YEQUI - Internal Structure for IEQUI
    local data
    DATA: BEGIN OF del_wa,
    vbeln LIKE likp-vbeln,
    posnr LIKE lips-posnr,
    matnr LIKE lips-matnr,
    lfimg LIKE lips-lfimg.
    DATA: END OF del_wa.
    DATA: del_tab LIKE del_wa OCCURS 0.
    DATA: _ct TYPE i.
    DATA: lastobknr LIKE objk-obknr.
    DATA: _debug.
    CLEAR: yser00, yser01, yobjk_all, yequi, ymase.
    REFRESH: yser00, yser01, yobjk_all, yequi, ymase.
    GET PARAMETER ID 'ZEDI_DEBUG' FIELD _debug.
    OBJECT KEYS
    read the delivery items with serial numbers to be processed
    SELECT * INTO CORRESPONDING FIELDS OF TABLE del_tab
    FROM lips
    WHERE vbeln = vbeln_i
    AND serail NE space.
    if nothing is relevant for serial numbers bailout
    DESCRIBE TABLE del_tab LINES _ct.
    IF _ct IS INITIAL.
    EXIT.
    ENDIF.
    ==== read the existing object keys for delivery items
    SELECT * INTO CORRESPONDING FIELDS OF TABLE yser01
    FROM ser01
    WHERE lief_nr = vbeln_i.
    IF sy-subrc = 0.
    yser01-dbknz = 'X'. "entry exists in db
    MODIFY yser01 TRANSPORTING dbknz WHERE dbknz = space.
    ENDIF.
    == check if there is a header entry for the delivery item
    LOOP AT del_tab INTO del_wa.
    READ TABLE yser01 WITH KEY lief_nr = del_wa-vbeln
    posnr = del_wa-posnr.
    IF sy-subrc NE 0.
    create one
    CALL FUNCTION 'OBJECTLIST_NUMBER'
    IMPORTING
    obknr = yser01-obknr.
    yser00-mandt = sy-mandt.
    yser00-obknr = yser01-obknr.
    APPEND yser00.
    SELECT SINGLE kunnr INTO (yser01-kunde)
    FROM likp
    WHERE vbeln = vbeln_i.
    yser01-mandt = sy-mandt.
    yser01-lief_nr = del_wa-vbeln.
    yser01-posnr = del_wa-posnr.
    yser01-vorgang = 'SDLS'.
    yser01-vbtyp = 'J'.
    yser01-bwart = '601'.
    yser01-dbknz = space. "not in db
    yser01-loknz = space. "do not delete
    APPEND yser01.
    ENDIF.
    ENDLOOP.
    check if any entries should be deleted
    LOOP AT yser01.
    READ TABLE serno_tab WITH KEY vbeln = yser01-lief_nr
    posnr = yser01-posnr.
    IF sy-subrc NE 0.
    yser01-loknz = 'X'. "mark for delete
    MODIFY yser01.
    ENDIF.
    ENDLOOP.
    collect all the object keys for the delivery item with s/n's
    LOOP AT yser01.
    READ TABLE serno_tab WITH KEY vbeln = yser01-lief_nr
    posnr = yser01-posnr.
    IF sy-subrc = 0.
    READ TABLE yser00 WITH KEY obknr = yser01-obknr.
    IF sy-subrc NE 0.
    yser00-mandt = yser01-mandt.
    yser00-obknr = yser01-obknr.
    APPEND yser00.
    ENDIF.
    ENDIF.
    ENDLOOP.
    IF NOT _debug IS INITIAL. BREAK-POINT. ENDIF.
    SERIAL NO OBJECTS
    ==== read the existing serial numbers from the database
    via object number into YOBJK_ALL
    LOOP AT yser00.
    SELECT * APPENDING CORRESPONDING FIELDS OF TABLE yobjk_all
    FROM objk
    WHERE obknr = yser00-obknr.
    ENDLOOP.
    yobjk_all-dbknz = 'X'.
    MODIFY yobjk_all TRANSPORTING dbknz WHERE dbknz = space.
    === add any new serial numbers
    LOOP AT serno_tab.
    READ TABLE yser01 WITH KEY lief_nr = serno_tab-vbeln
    posnr = serno_tab-posnr.
    READ TABLE yobjk_all WITH KEY sernr = serno_tab-sernr
    matnr = del_wa-matnr.
    IF sy-subrc NE 0.
    this is a new serial number
    yobjk_all-mandt = sy-mandt.
    yobjk_all-obknr = yser01-obknr.
    yobjk_all-obzae = 0.
    yobjk_all-equnr = yequi-equnr.
    yobjk_all-objvw = 'S'.
    yobjk_all-sernr = serno_tab-sernr.
    yobjk_all-matnr = del_wa-matnr.
    yobjk_all-datum = sy-datum.
    yobjk_all-taser = 'SER01'.
    yobjk_all-equpd = 'X'.
    yobjk_all-objnr = yequi-objnr.
    yobjk_all-dbknz = space.
    yobjk_all-loknz = space.
    APPEND yobjk_all.
    ENDIF.
    ENDLOOP.
    === mark any which are no longer confirmed as deleted
    LOOP AT yobjk_all.
    READ TABLE yser01 WITH KEY obknr = yobjk_all-obknr.
    READ TABLE serno_tab WITH KEY vbeln = yser01-lief_nr
    posnr = yser01-posnr
    sernr = yobjk_all-sernr.
    IF sy-subrc NE 0.
    yobjk_all-loknz = 'X'.
    MODIFY yobjk_all TRANSPORTING loknz.
    ENDIF.
    ENDLOOP.
    EQUIPMENT RECORDS
    == get the equipment records
    LOOP AT yobjk_all.
    SELECT SINGLE * INTO CORRESPONDING FIELDS OF yequi
    FROM equi
    WHERE sernr = yobjk_all-sernr
    AND matnr = yobjk_all-matnr.
    IF sy-subrc NE 0.
    CONTINUE.
    ENDIF.
    IF yobjk_all-dbknz = space AND
    yobjk_all-loknz = space.
    yequi-dbknz = 'X'.
    yequi-obknr = yobjk_all-obknr.
    yequi-j_vorgang = 'PMS3'. "add to delivery
    yequi-matnr_old = yequi-matnr.
    APPEND yequi.
    yobjk_all-equnr = yequi-equnr.
    MODIFY yobjk_all TRANSPORTING equnr.
    CONTINUE.
    ENDIF.
    IF yobjk_all-dbknz = 'X' AND
    yobjk_all-loknz = 'X'.
    yequi-dbknz = 'X'.
    yequi-j_vorgang = 'PMSA'. "delete from delivery
    yequi-matnr_old = yequi-matnr.
    APPEND yequi.
    CONTINUE.
    ENDIF.
    ENDLOOP.
    remove any Equipment records that do not need to be processed
    DELETE yequi WHERE j_vorgang IS initial.
    IF NOT _debug IS INITIAL. BREAK-POINT. ENDIF.
    fill the object counter
    LOOP AT del_tab INTO del_wa.
    READ TABLE yser01 WITH KEY lief_nr = del_wa-vbeln
    posnr = del_wa-posnr.
    DO del_wa-lfimg TIMES.
    READ TABLE yobjk_all WITH KEY obknr = yser01-obknr
    obzae = sy-index.
    IF sy-subrc NE 0.
    READ TABLE yobjk_all WITH KEY obknr = yser01-obknr
    obzae = 0.
    IF sy-subrc = 0.
    yobjk_all-obzae = sy-index.
    MODIFY yobjk_all INDEX sy-tabix TRANSPORTING obzae.
    ENDIF.
    ENDIF.
    ENDDO.
    ENDLOOP.
    IF NOT _debug IS INITIAL. BREAK-POINT. ENDIF.
    ===========================================
    update the delivery
    ===========================================
    CALL FUNCTION 'SERIAL_LISTE_POST_LS'
    TABLES
    xser00 = yser00
    xser01 = yser01
    xobjk_all = yobjk_all
    xequi = yequi
    xmase = ymase.
    TAB_CUOBJ =
    XSER03 =
    CALL FUNCTION 'STATUS_BUFFER_EXPORT_TO_MEMORY'
    EXPORTING
    i_memory_id = memid_status.
    COMMIT WORK AND WAIT.
    CALL FUNCTION 'Z_MOB_SERIALNR_REFRESH_LS'
    EXPORTING
    ctu = 'X'
    mode = 'N'
    UPDATE = 'L'
    GROUP =
    USER =
    KEEP =
    HOLDDATE =
    NODATA = '/'
    vbeln_i = vbeln_i.
    IMPORTING
    SUBRC =
    TABLES
    MESSTAB =
    ENDFUNCTION.
    FUNCTION z_mob_serialnr_refresh_ls.
    ""Local interface:
    *" IMPORTING
    *" VALUE(CTU) LIKE APQI-PUTACTIVE DEFAULT 'X'
    *" VALUE(MODE) LIKE APQI-PUTACTIVE DEFAULT 'N'
    *" VALUE(UPDATE) LIKE APQI-PUTACTIVE DEFAULT 'L'
    *" VALUE(GROUP) LIKE APQI-GROUPID OPTIONAL
    *" VALUE(USER) LIKE APQI-USERID OPTIONAL
    *" VALUE(KEEP) LIKE APQI-QERASE OPTIONAL
    *" VALUE(HOLDDATE) LIKE APQI-STARTDATE OPTIONAL
    *" VALUE(NODATA) LIKE APQI-PUTACTIVE DEFAULT '/'
    *" VALUE(VBELN_I) LIKE LIKP-VBELN
    *" EXPORTING
    *" VALUE(SUBRC) LIKE SYST-SUBRC
    *" TABLES
    *" MESSTAB STRUCTURE BDCMSGCOLL OPTIONAL
    DATA: vbeln_001 LIKE bdcdata-fval.
    vbeln_001 = vbeln_i.
    subrc = 0.
    PERFORM bdc_nodata USING nodata.
    PERFORM open_group USING group user keep holddate ctu.
    PERFORM bdc_dynpro USING 'SAPMV50A' '4004'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LIKP-VBELN'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'LIKP-VBELN'
    vbeln_001.
    PERFORM bdc_dynpro USING 'SAPMV50A' '1000'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=PSER_T'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LIPS-POSNR(01)'.
    PERFORM bdc_dynpro USING 'SAPLIPW1' '0200'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RIPW0-SERNR(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=RWS'.
    PERFORM bdc_dynpro USING 'SAPMV50A' '1000'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=SICH_T'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LIPS-MATNR(02)'.
    PERFORM bdc_transaction TABLES messtab
    USING 'VL02N'
    ctu
    mode
    update.
    IF sy-subrc <> 0.
    subrc = sy-subrc.
    EXIT.
    ENDIF.
    PERFORM close_group USING ctu.
    ENDFUNCTION.
    INCLUDE bdcrecxy.

  • Please Help: How to add a Checkbox field to a JTable

    Hi,
    I am trying to add a checkbox filed to a JTable with DefaultTableModel.
    I have tried fro hours. Just Does not work.
    Here is my sample code:
    DefaultTableModel model = new DefaultTableModel();
    JTable table = new JTable(model);
    Object[] data;
    data = new Object[2];
    data[0]= "string"
    data[2] = new Boolean(false)
    model.addRow(data);     
    What is missing in here?
    Thanks,
    Tara

    you can do that with the help of DefaultTableModel alone
    if u r so determined to use DefaultTableModel u need to have a subclass of it
    following sample may satisfy u ...
    import javax.swing.*;
    import java.awt.*;
    import java.beans.*;
    import java.awt.event.*;
    import javax.swing.table.*;
    public class MyTable extends JApplet{
         Object o[] = {"Name","Address","city","Vegetarian"};
         Object data[][] = {
              {"a","a","pune",new Boolean(true)},
              {"Alison", "Huml","mumbai",new Boolean(true)}
         class model extends DefaultTableModel
              model(Object[][] data,Object[] cn)
                   super(data,cn);
              public Class getColumnClass(int i)
                   return getValueAt(0,i).getClass();
              public Object getValueAt(int i,int j)
                   return data[i][j];
         model m = new model(data,o);
         JTable t1 = new JTable(m);
         public void init()
              Container c1 = new Container();
              c1 = getContentPane();
              c1.add(t1);
              TableColumn tc = t1.getColumnModel().getColumn(2);
              JComboBox jc = new JComboBox();
              jc.addItem("Pune");
              jc.addItem("Mumbai");
              jc.addItem("Madras");
              tc.setCellEditor(new DefaultCellEditor(jc));
    bye
    Amol

  • Help - How to Add a Windows Printer

    I am trying to add a printer connected to a windows computer. I am running Tiger.
    I go to System Preferences - Click on Printers and Faxes. Click on the PLUS sign to add a Printer. Then I click on MORE PRINTERS. I see the name of my windows computer on the network. I click on the name of the windows computer and click Choose.
    Then a pop up box appears - "Connect to Network Printer as". I need to supplly a User name and Password. And maybe add to my Keychain.
    Is this my Windows User name and Password? Why do I need to supply it?
    I am getting lost at this stage and I do not see any docs / help file on this topic to guide me past this point.
    Rob

    Thanks. Before I read your post, I tried entering my Windows User Name and Password into this Mac OS X pop up box. Once I did this, all my windows printers appeared. I choose the one I wanted and then choose the corresponding driver in the drop down box.
    It works!
    Now I can prit to a windows printer. Pity the Apple Help File does NOT explain this.
    Rob

  • Help - how to add my own data to a table

    Hello,
    I looked at the tutorials, but cannot get this to work.
    I want to load a table (each row) with data I read from other tables.
    I tried:
    RowKey rk = objectArrayDataProvider1.appendRow();
    FieldKey fk = new FieldKey("A");
    objectArrayDataProvider1.setValue(fk,rk,"HELLO");
    Can someone point me in the right direction with some good code?
    Thanks
    Frank

    What I am trying to do is asemble data from three tables and add them to a datatable. Data may not be in all three tables, but all info from the first table must be added to the datatable.
    table 1 has a list of procedures, these must be included.
    table 2 has a list of providers
    table 3 has a schedule that has date, procedure_id, provider_id.
    I have to read table 3 for a given date, then add the provider if he is scheduled for a procedure.
    Thanks
    Frank

  • Help: how to add a button to print the screen

    Hi,
    I am working on a set of forms. One of the feature user ask is to place a "Print Screen" button on the form so that user will be about to simply print the form screen.
    Any help will be greatly appreciated.
    Thank you in advance.
    Jimmy

    Thanks Rosario. I did that but it seems not working. In fact, I added a form level trigger key-PRINT and put "print;"
    Anyway, what does it really do? I think that it should not be identical to Print-Scrn on the key board.
    Jimmy
    Message was edited by:
    WJH

  • How to add bookmarks automatically in a monthly report from several excel files?

    Hello!
    I´m using Excel 2010 and Adobe Acrobat X Pro.
    I´m used to create a monthly Report in which several Excel files are combined. I usually sort the booksmarks´ hierarchy manually.
    I´m searching for a method to standardize this work.
    I it possible to use Acrobat Pro XI and it´s Action Wizard, is that possible?
    Best regards, Chris.

    Is the length of the reports always the same? If so then a bookmarks
    structure can be quite easily added using a script.
    If not then it still might be possible but will require a much more complex
    script to identify and then bookmark each report (or part thereof)
    separately.

  • How to add two X Axis in the Column chart?Need Help

    Hi,
    I have a requirement to add two X axis in the SSRS column chart.Can someone please help how to add two X axis. I tried the secondary axis for horizontal axis but current x axis is shifting to other side, second X axis is not coming.
    Regards
    Jon

    Hi Jon,
    According to your description, you want to add secondary X axis for one series in a column chart, right?
    The secondary axis is useful when comparing two value sets with two distinct data ranges that share a common category. In Reporting Services, it’s not supported to create two X axis for one series. We can create secondary X axis when there are two series
    in a column chart. As we tested in our local environment, we can add secondary X axis for specific series. Please refer to the screenshots below:
    So I would like to know what’s your exact needs about creating two X axis for one series. If possible please share some detail information about your data and expected looking of the chart.
    Reference: Plot Data on a Secondary Axis (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • How to add f4 help to customized SO

    Hi Experts,
    Could u please help; how to add f4 help to my SO.
    my req.  is ,I have created my SO in my report, i want have f4 help on below filed in my report.
    select-options: s_ihrez for vbak-ihrez.
    Could please help indetails(step by step).
    Thnx.
    POINTS REWARDED immediately.
    Regards. Vishnu.

    hi,
    check the example
    TABLES: mara, makt.
    DATA mat LIKE mara-matnr.
    DATA: BEGIN OF itab OCCURS 0,
    matnr LIKE mara-matnr,
    END OF itab.
    DATA : BEGIN OF btab OCCURS 0,
    maktx LIKE makt-maktx,
    END OF btab.
    DATA : return LIKE ddshretval OCCURS 0 WITH HEADER LINE.
    SELECT-OPTIONS: so_matnr FOR mara-matnr,
    so_maktx FOR makt-maktx.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_matnr-low.
    PERFORM matnr.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_matnr-high.
    PERFORM matnr.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_maktx-low.
    PERFORM maktx.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_maktx-high.
    PERFORM maktx.
    *& Form matnr
    text
    FORM matnr.
    REFRESH itab.
    SELECT matnr FROM mara INTO TABLE itab.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = 'MATNR '
    dynprofield = 'P_MATNR '
    dynpprog = sy-repid
    dynpnr = sy-dynnr
    value_org = 'S'
    TABLES
    value_tab = itab
    return_tab = return.
    mat = return-fieldval.
    UNPACK mat TO mat.
    so_matnr = return-fieldval.
    REFRESH return.
    CLEAR return.
    ENDFORM. "matnr
    *& Form maktx
    FORM maktx.
    REFRESH btab.
    SELECT maktx FROM makt INTO TABLE btab WHERE matnr = mat AND spras =
    sy-langu.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = 'MAKTX'
    dynprofield = 'SO_MAKTX '
    dynpprog = sy-repid
    dynpnr = sy-dynnr
    value_org = 'S'
    TABLES
    value_tab = btab
    return_tab = return.
    so_maktx = return-fieldval.
    REFRESH return.
    CLEAR return.
    ENDFORM. "maktx
    if helpful reward points

  • How to add apache to an exisitng BOXI31 presently running on IIS

    Hi Tim,
    I know its rude that I directly mailed you but i am not able to post on the SAP forum due to some reasons I don't know. So please if you can help me I would be highly indebted.
    I have a multiple server installation.
    Number of Servers : 4
    Number of CMS : 2
    Application tier on 2 servers.
    Web tier on 2 servers.
    The problem is when i login my .NET infoview works fine but my Java infoview doesn't.
    I found the error that the CCM doesn't have Tomcat Apache Server.
    So my guess is thats the reason why the java infoview is not working.
    Please help how to add the Apache to the CCM.
    Regards
    Sid

    Hi,
    You need to run custom installation to install Java Web components on your server box and choose to install
    tomcat app server
    - Subhodeep

  • How to add some days to the current system date

    can anyone help how to add some days to the current date i.e if today is 3-12-2007 and if v add 15 more days then the output should be 18-12-2007

    RajeshChandan wrote:
    First of all thanks a lot ,and coming to the question i dont mean to change the sysdate instead i want to write a prg. where after entering the current date it should effect with the no.of days that i have given but not the system date .if u can answer please reply for thisAh, I see. In that case, you can use an instance of GregorianCalendar and use it's add(...) method to add days, months, years etc. to it.
    http://java.sun.com/javase/6/docs/api/java/util/GregorianCalendar.html
    Good luck.

Maybe you are looking for

  • How can I create a PDF directly from RH10?

    It seems a bit absurd that the creators of PDF don't have any way to output a RH10 project directly to a PDF without using Word. Perhaps I'm missing something but I don't get why the resulting PDF ALWAYS has a screwed up TOC. It doesn't recognize the

  • Linux Enterprise V5 on Intel i7 Quad core..

    Has anyone tried installing Oracle's Enterprise Linux and Oracle VM on an Intel i7-920 Quad Core CPU? How about Oracle 10g, 11g on the same CPU? I'd greatly appreciate if you can share your experiences with me (and others). Your feedback is greatly a

  • Tab in report

    Hallo, ich habe im Report umfangreichen Text darzustellen. Zur Übersichtlichkeit wären Tabs im Text sehr hilfreich. Wie bekomme ich die dahin? Per Script mit vbTab bekomme ich immer Quadrate angezeigt, aber keine Tabs. Ich würde die Tabs gerne manuel

  • Linuxwacom package missing

    Hello After latest Archlinux upgrade my wacom tablet (Volito 2) has stopped working normally. In Xorg logs: "No input driver matching "wacom" " I have tried to reinstall linuxwacom ( now there is linuxwacom 0.7.8-2 installed ), but: "error: 'linuxwac

  • Can't open parent folder by cmd-clicking

    I should be able to open parent folders by cmd-clicking a Spotlight search result or the title bar of a Finder or document window. But when I do this, nothing happens, except in Finder windows, where it still works fine. Nothing happening in the Cons