Problem in displaying data in JTextArea

Please help solve my problem regarding the JTextArea. I have two classes, Destination and AddRegistration class which both extends the JPanel. In the Destination class, there are three radiobuttons, when I click on this, I want the item to be displayed in the textarea of the AddRegistration class. The problem is that the text area does not display the item I selected in the radiobutton. What should I do?
the code in the Destination class is this:
public void actionPerformed(ActionEvent e){
labelChoice.setText("From: "+e.getActionCommand());
this.setText(e.getActionCommand());
AddReservation addRes = new AddReservation();
public void setText(String text){
destination = text;
public static String getText() {
return destination;
and the code in the AddRegistration class :
JTextArea outputarea = new JTextArea("From : ");
add(new Destination()); //From Destination
Destination instance1 = new Destination();
add(outputarea);
String t = "";
t = instance1.getText();
outputarea.append(t);

maybe u should revalidae and repit the panel after setting the text?

Similar Messages

  • Problem in displaying data.

    Hi,
    I am facing a problem in display of data for a particular employee. This is a HR report with 5 selection variables out of which 3 are mandatory and rest 3 like company code, Cost centre and Employee are optional.
    when i run the report with company code and cost centre variable it shows me list of employees whose timesheet are missing in a particular time frame which misses out 1 employee and when i run the report with same variables but put in the employee it shows me the data of that employee which is assigned to same cost centre and company code. Its just that in first case i am using 2 diff optional variables and in 2nd i am using only 1 with rest of the variables same. This is so weired. For the first time i have encountered such issue. and if i run the report with company code and cost center and after getting the necessary output i select the filter value as that emplyees name i get the data for that employee.... I am unable to understand as to how where exactly is the problem?
    i checked the master data of employees, cost centre and company code. Everything is working fine.
    Kindly help to figure out the issue.
    Kind regards,
    Shailja kaul.

    Please perform the consistency check for the cube in RSRV and confirm that all the dimensions in the cube are consistent. Sometimes, this happens, which generates such situation that some of records disappear in the result set if not mentioned in the selection screen.
    Here as per your msg, if you mention the employee number, the record appears, that means you should also perform the consistency check for 0EMPLOYEE (if that is the infoobject for employee) master data.
    Thanks
    Danny.

  • Problems with displaying data in Chart

    Hi, everyone
    I am stuck with displaying data in Chart. I set the minimum
    and maximum for LinearAxis of a LineChart, so the chart only
    display the data within this range. But sometimes I still need to
    keep the trend of all data even the data is out of range.
    eg, the range of verticalAxis is 0 -100 and I got data 70,
    120, 90. Neither I want to set the data 120 to 100 in order to keep
    the data point nor make the data 70 connected directly to data 90.
    All I want is to keep the shape, from 70 to 120, from 120 to 90,
    but 120 doesn't display in the chart.
    My another question is when I try to select an area of a
    chart to zoom in, how can I the get the exact area that I select to
    zoom,
    for example: I want to use exactly the result of the
    following line:
    ((firstMouseX - this.mouseX)/ this.dataRegion.width) *
    chart.dataProvider.length
    that is I don't want to use methods ceil or floor to get the
    approximate area.
    Excuse me, I got one question more. The weird things is my
    chart won't resize itself when I resize the VDividedBox or other
    containers. I set the width equals 100% wherever it needs to be.
    Just like the Flex sample - dashboard. If I open a small window at
    the very begining and then maximize the window, the chart still
    keep the small part of its container. I don't understand why.
    Sorry for too many questions.
    Hope someone can help me.
    Thanks in advance.

    Can I use the Interpolate to solve the first problem?
    But I have no idea about interpolate at all.
    Please help!

  • Problem with displaying data's in a chart

    I have a main VI (Hovedprogram) and 5 VI's (Ferdigprogram temp tur , Ferdigprogram temp retur, Ferdigprogram nivå, Ferdigprogram temp i fyr and Ferdigprogram trykk)who starts when I start the main VI.
    I want to display data for last 15 seconds, last 24 hours, last week, last month and last year.
    The problem is that the graphs for last week, last month and last year do not display all the data's. I just got a dot where I started the program 28.April. The graphs shows the data's from 2.May
    Any suggestion how I can change my program to appear as described?
    Attachments:
    Hovedprogram.vi ‏748 KB

    And here is one of the 5 VI's
    Attachments:
    Ferdigprogram temp retur.vi ‏125 KB

  • Problem with displaying Date field in the table.

    Hi All,
    I am trying to display data into a table UI Element. 
    In that data, i have one DATE type field. While displaying data in DATE field, it will display like this "01.02.2009".
    Now my requirement is if i want to modify that DATE field, it will allow to modify "01.02.2009"  to "26.02.2009".
    But while modifying DATE field , I want to show the Calender of that month, in that i  have to select the another date.
    (Like normal Date UI Element will show that calender).
    Can anyone please help me.
    Thanks in Advance!
    Regards,
    Sreelakshmi.

    Hi,
          Go to the context attribute that was mapped to the DATE field of the table and change the perperty INPUT HELP MODE to  AUTOMATIC and it works.
    Regards,
    Manne.

  • Problem in displaying dates for replacement path with text variable

    Hi all,
    I have to display dates in sequence as descriptions for 15 columns based on the the date entered by the user in Bex Report.I managed to display date as description using text variable with replacement path for single column.I could not able to increment date for other descriptions.Could you please help me to solve this issue.Its urgent.
    Ex: User enters 03/09/2007 then in the out put desciptions for the columns should be  03/09   04/09  05/09 ............ 17/09.
    Thanks in advance.
    Regards,
    Mandadi.

    Hi,
       goto the properties of your KF and click on the variable button side to that of the description field and click on new/Create option.Enter the technical name description for the text variable and select Replacement path as the Processing type and in the nxt screen select Fiscal year as the replacement variable and in nxt screen  specify as Key and provide offset values if necessary and click on finish.now select the variable by clickin on the variable button next to the description field.it comes after the description of the KF.Now run the query.
    Thanks,
    Sandeep

  • Problem in displaying data uniformly in JTextArea

    I have been trying to develop payroll package using Mysql and java(jdbc). Everything is working fine. But when I want to extract the data from mysql table to JTextArea in suitable format, I am not able to maintain uniformity
    as shown below :
    (1) (2)
    | Basic Da Total || | Basic Da Total ||
    | cr 18,600 800 19,400 || | cr 21,000 10,600 31,600 ||
    I tried to maintain uniformity in data length by adding blank character(s).No change reflected.
    It can be displayed perfectly in third partry reporting software. But I am interested in solving the issue within java
    and java code only. Looking for help.

    Unfortunately what I wanted to show "as shown below:" is not depicting correctly in the forum. However, what I wanted to tell that when data length is increasing, data is not displaying exactly under column-name. It is shifted towards right. I think using tab characters between data will not solve the problem, because it will maintain same space between data. Increasing the size of data may affect the positioning of subsequent data in the same row .

  • Problem in displaying data in the smartform output.

    Dear Freinds,
                    I have a requirement as per my requirement i have to display the employee dependents details in the smartform output.
    I have taken a table in smartform and collected all teh employee dependents details . Each dependents his own  details around 8 fields. so iam displaying in the smartform it is working till now no problem ........iam getting data as below
    Dependentrelation | dependentname|passportno|expirydate|visano|visadate|visa expire date| ResidenceNo|Residence issuedate|
    spouse                 | Raja                   |123456       |10/09/2009|122233|10/01/2009|10/01/2010 | 1001             |10/01/2009
    These are the one of the dependentds details iam having till now , like this i have another dependts details. Now the problem i have
    to add some fields to this list ( to this internal table) ...........if iam adding one more feild data is getting truncated as i dont have any more fields to add to right in the horizontal line........how can i solve this issue and how can i add further fields to this list
    like date of birth of the dependents and gender
    please could any one tell how i can solve this issue.
    regards
    divya.

    If this is a Tablethen only thing you can do is re-size the grid and font size to adjust your data. Like, displaying HEADINGS & DATAs in 2 rows instead of 1, etc.
    Nothing else can be done. Otherwise you have to trim down the data to adjust in one page.

  • Problem in displaying data for G/L Account in Tcode FAGLB03

    Hi,
    I am a abaper but my client is facing a strange problem in Tcode FAGLB03 that when it runs the tcode the data displayed for a purticular finanacial year then there are few months which remains blank in the display but the Carry Forward Balance is accurate.
    In the similar way when we execute tcode for previous financial year it is displaying the data accurately and filling all the months columns in it.
    Is there any way to present the missing data for that puritcular finanacial year?
    Edited by: nav009 on Jan 3, 2010 10:04 AM

    Hi,
    Please check the same with your netweaver administrator(basis consultant). He would have the user name and pwd for the SAP support portal. You can view notes in SAP support portal.
    SAP clearly says in the note that it is because of program error and you need to implement the correction notes.
    Do involve your FI consultant and Basis consultant to resolve this issue.
    Thanks
    Aravind

  • Problem in Displaying Date for Culture th-TH in SSRS 2010

    Hello,
    I have a text box of date/time type. And Language of the report is set to a parameter ex: @P_Culture_Name
    and parameter will take a value from Prompt (UI).
    Suppose default value of date/time text box is 1/22/2013 12:00:00 AM
    when i pass 'en-US' to @P_Culture_Name output is 1/22/2013 (I have formatted text box to show only date part)
    Problem is : 
    when i pass 'th-TH' to @P_Culture_Name output is 22/1/2556
    look at the year, its showing 2556 instead of 2013.
    Here i have to display year as 2013, Please give me a solution for this. And explanation(If possible) why it is showing 2556.
    Thanks in advance.

    But the date value is absolutly correct; in Thai calendar the year is 543 greater then in Christian calendar; see
    http://en.wikipedia.org/wiki/Thai_solar_calendar
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Problem in displaying data using Radiobuttons?

    Hi All,
    I have a requirement where along with some input fields in have three radiobuttons and under each of the radiobuttons there are date fields, now when i click on the first radiobutton the second date field has to be disabled and the a report o/p has to be generated, again when i click on the second radibutton the first date field has to be disbaled and second report o/p has to be generated and when the third one is clicked both the date fields has to be disabled and the third report o/p has to be generated.
    I have written the code for disabling the fields, the problem is when i click on the second radiobutton it does not disable the first date field and is taking a long time in execution and the control is terminating the program.
    The report o/p logic has been written in three different subroutine forms. Please tell me how i can overcome this problem. I am attaching my code in this mail.
    selection-screen begin of block b1 with frame title text-001.
    select-options: s_bukrs for v1 modif id ABC,
                    s_vkorg for v2 obligatory modif id ABC,
                    s_vtweg for v3 obligatory modif id ABC,
                    s_spart for v4 obligatory modif id ABC,
                    s_fkart for v5 obligatory modif id ABC.
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame title text-002.
    selection-screen begin of line.
    parameters: p1 radiobutton group g1 default 'X' user-command ucomm.
    selection-screen end of line.
    parameters:s_date type sy-datum modif id XYZ.
    selection-screen skip 1.
    selection-screen begin of line.
    parameters:p2 radiobutton  group g1.
    selection-screen end of line.
    parameters:s_date1 type sy-datum modif id XYZ.
    selection-screen skip 1.
    selection-screen begin of line.
    parameters:p3 radiobutton group g1.
    selection-screen end of line.
    selection-screen skip 1.
    selection-screen end of block b2.
    At Selection-Screen Output.
    loop at screen.
    if p1 = 'X' and
    screen-name = 'S_DATE1' or screen-group1 = 'ABC' .
    screen-input = 0.
    modify screen.
    elseif p2 = 'X'
    and screen-name = 'S_DATE' or screen-group1 = 'ABC'.
    screen-input = 0.
    modify screen.
    elseif p3 = 'X' or screen-group1 = 'ABC'.
    check screen-group1 = 'XYZ'.
    screen-active = 0.
    modify screen.
    endif.
    endloop.
    At Selection-Screen.
    if p1 = 'X'.
    perform dailysummaryinvoice.
    elseif p2 = 'X'.
    perform blockedinvoices.
    elseif p3 = 'X'.
    write:/ 'Display'.
    endif.
    refresh: s_bukrs,
           s_vkorg,
           s_vtweg,
           s_spart,
           s_fkart.
    Please help.
    Regards,
    MD

    Hi friend,
    Check this code i hope it ll be hep full for u.
    *& Report  ZDTK_FI_CRDB
    *& AUTHOR            : D TARUN KUMAR
    *& FUNC CONSULTANT   : ABDUL GANI
    *& TRANSPORT REQ NO. : RD1K902089
    *& PACKAGE           : ZTARUN
    *& TRANSACTION CODE  : ZCRDB
    *& DESCRIPTION : CREDIT DEBIT NOTE FOR CUSTOMER OR VENDOR.
    REPORT  ZDTK_FI_CRDB NO STANDARD PAGE HEADING
                                LINE-COUNT 65(5)
                                LINE-SIZE 80
                                MESSAGE-ID ZTAR_FI
    *&       STRUCTURE DECLARATION
    TYPES : BEGIN OF TY_ADDR,
                    BUKRS TYPE BUKRS,          "COMPANY CODE
                    LIFNR TYPE LIFNR,          "VENDOR NO
                    KUNNR TYPE KUNNR,          "CUSTOMJER NO
                    NAME1 TYPE NAME1,          "NAME1
                    NAME2 TYPE NAME2,          "NAME2
                    ORT01 TYPE ORT01,          "CITY
                    ORT02 TYPE ORT02,
                    PSTLZ TYPE PSTLZ,          "POSTAL CODE
                    STRAS TYPE STRAS,          "STREET
                    ADRNR TYPE ADRNR,          "ADDRESS NO
                    TELF1 TYPE TELF1,          "TELEFHONE NO
                    TELF2 TYPE TELF2,          "TELEFHONE NO 2
                    TELFX TYPE TELFX,          "FAX
             END OF TY_ADDR,
          BEGIN OF TY_LFA1,
                   KUNNR TYPE KUNNR,          "CUSTOMJER NO
                   NAME1 TYPE NAME1,          "NAME1
                   NAME2 TYPE NAME2,          "NAME2
                   ORT01 TYPE ORT01,          "CITY
                   ORT02 TYPE ORT02,
                   PSTLZ TYPE PSTLZ,          "POSTAL CODE
                   STRAS TYPE STRAS,          "STREET
                   ADRNR TYPE ADRNR,          "ADDRESS NO
                   TELF1 TYPE TELF1,          "TELEFHONE NO
                   TELF2 TYPE TELF2,          "TELEFHONE NO 2
                   TELFX TYPE TELFX,          "FAX
            END OF TY_LFA1,
           BEGIN OF TY_DOCM,
                    GJAHR TYPE GJAHR,
                    BELNR TYPE BELNR_D,
                    BUDAT TYPE BUDAT,
                    BLDAT TYPE BLDAT,
                    BLART TYPE BLART,
                    BSCHL TYPE BSCHL,
                    SHKZG TYPE SHKZG,
                    XBLNR TYPE XBLNR,
                    DMBTR TYPE DMBTR,
                    SGTXT TYPE SGTXT,
                    REBZG TYPE REBZG,
                    REBZJ TYPE REBZJ,
                    KUNNR TYPE KUNNR,
                    LIFNR TYPE LIFNR,
             END OF TY_DOCM.
    *&       TABLE DECLARATION
    DATA : T_ADDR TYPE STANDARD TABLE OF TY_ADDR,
    *&       WORK AREA  DECLARATION
           W_ADDR TYPE TY_ADDR,
           W_DOCM TYPE TY_DOCM,
          W_LFA1 TYPE TY_LFA1,
    *&       GLOBLE VARIABLE DECLARATION
           G_KUNNR TYPE KUNNR,
           G_LIFNR TYPE LIFNR,
           DCAMT TYPE DMBTR.
    *&       INITIALIZATION
    INITIALIZATION.
    CLEAR :
    *REFRESH :
    *&       SELECTION SCREEN DECLARATION
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS : S_BUKRS TYPE BSID-BUKRS OBLIGATORY DEFAULT '1000'.
    PARAMETERS : S_BELNR TYPE BELNR_D OBLIGATORY DEFAULT '1600000070'.
    PARAMETERS : S_GJAHR TYPE GJAHR OBLIGATORY DEFAULT '2008'.
    PARAMETERS : ASON TYPE BUDAT OBLIGATORY DEFAULT SY-DATUM.
    PARAMETERS : S_KUNNR TYPE KUNNR MODIF ID GP1.
    PARAMETERS : S_LIFNR TYPE LIFNR MODIF ID GP2.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN : END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS R1  RADIOBUTTON GROUP RAO DEFAULT 'X' USER-COMMAND hit.
    SELECTION-SCREEN COMMENT (50) TEXT-003 FOR FIELD R1.
    PARAMETERS R2  RADIOBUTTON GROUP RAO.
    SELECTION-SCREEN COMMENT (50) TEXT-004 FOR FIELD R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN END OF BLOCK B2.
    *SELECTION-SCREEN: BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-005.
    *SELECTION-SCREEN SKIP 1.
    *SELECTION-SCREEN BEGIN OF LINE.
    *PARAMETERS R3  RADIOBUTTON GROUP RAJ DEFAULT 'X' USER-COMMAND hit.
    *SELECTION-SCREEN COMMENT (50) TEXT-006 FOR FIELD R1.
    *PARAMETERS R4  RADIOBUTTON GROUP RAJ.
    *SELECTION-SCREEN COMMENT (50) TEXT-007 FOR FIELD R2.
    *SELECTION-SCREEN END OF LINE.
    *SELECTION-SCREEN SKIP 1.
    *SELECTION-SCREEN : END OF BLOCK B3.
    *&       AT SELECTION SCREEN
    AT SELECTION-SCREEN.
           PERFORM VALIDATE_SELECTION.
    *&       AT SELECTION SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
           PERFORM SCREEN_OUTPUT.
    *&       START OF SELECTION
    START-OF-SELECTION.
    IF R1 = 'X'.
            PERFORM GET_DOCUMENT_L.
    ELSEIF R2 = 'X'.
            PERFORM GET_DOCUMENT_K.
    ENDIF.
    *&       END OF SELECTION
    END-OF-SELECTION.
    PERFORM DISPLAY.
    *&       TOP OF PAGE
    *TOP-OF-PAGE.
          PERFORM PAGE_HEADER.
    *&      Form  VALIDATE_SELECTION
          text
    form VALIDATE_SELECTION .
    DATA : L_BUKRS TYPE BSID-BUKRS.
    SELECT SINGLE BUKRS FROM KNB1
                        INTO L_BUKRS
                       WHERE BUKRS = S_BUKRS.
    *IF SY-SUBRC <> 0.
    *MESSAGE E001.
    *LEAVE LIST-PROCESSING.
    *ENDIF.
    DATA : L_KUNNR TYPE BSID-KUNNR.
    SELECT SINGLE KUNNR FROM BSID
                        INTO L_KUNNR
                       WHERE KUNNR = S_KUNNR.
    *IF SY-SUBRC <> 0.
    *MESSAGE E002.
    *LEAVE LIST-PROCESSING.
    *ENDIF.
    endform.                    " VALIDATE_SELECTION
    *&      Form  SCREEN_OUTPUT
          text
    form SCREEN_OUTPUT .
        IF R1 = 'X'.
          LOOP AT SCREEN.
            if screen-group1 = 'GP1'.
              SCREEN-active = '0'.
    *SCREEN-INTENSIFIED = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ELSE.
          LOOP AT SCREEN.
            IF SCREEN-group1 = 'GP2'.
              SCREEN-active = '0'.
    *SCREEN-INTENSIFIED = '1'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ENDIF.
    endform.                    " SCREEN_OUTPUT
    *&      Form  GET_DOCUMENT_L
          text
    FORM GET_DOCUMENT_L .
    DATA : MESSG(60).
    SELECT SINGLE BUKRS
                  LIFNR
                  GJAHR
                  BELNR
                  BUDAT
                  BLDAT
                  BLART
                  BSCHL
                  SHKZG
                  DMBTR
                  SGTXT
                  REBZG
                  REBZJ FROM BSIK
                        INTO CORRESPONDING FIELDS OF W_DOCM
                       WHERE BUKRS = S_BUKRS AND
                             GJAHR = S_GJAHR AND
                             BELNR = S_BELNR.
    SELECT SINGLE DMBTR FROM BSIK INTO DCAMT
                       WHERE BELNR = W_DOCM-REBZG AND
                             GJAHR = W_DOCM-REBZJ.
    IF NOT W_DOCM IS INITIAL.
            PERFORM GET_LFA1.
    ELSE.
    SELECT SINGLE BUKRS
                  LIFNR
                  GJAHR
                  BELNR
                  BUDAT
                  BLDAT
                  BLART
                  BSCHL
                  SHKZG
                  DMBTR
                  SGTXT
                  REBZG
                  REBZJ FROM BSAK
                        INTO CORRESPONDING FIELDS OF W_DOCM
                       WHERE BUKRS = S_BUKRS AND
                             GJAHR = S_GJAHR AND
                             BELNR = S_BELNR.
    SELECT SINGLE DMBTR FROM BSAK INTO DCAMT
                       WHERE BELNR = W_DOCM-REBZG AND
                             GJAHR = W_DOCM-REBZJ.
          IF NOT W_DOCM IS INITIAL.
                  PERFORM GET_LFA1.
          ELSE.
          CONCATENATE 'THERE IS NO DOCUMENT NO' S_BELNR S_GJAHR 'FOR VENDOR' INTO  MESSG
                       SEPARATED BY SPACE.
          MESSAGE I011 WITH MESSG.
          LEAVE LIST-PROCESSING.
          ENDIF.
    ENDIF.
    ENDFORM.                    " GET_DOCUMENT_L
    *&      Form  GET_LFA1
          text
    FORM GET_LFA1 .
    SELECT SINGLE LIFNR
                  NAME1
                  NAME2
                  ORT01
                  ORT02
                  PSTLZ
                  STRAS
                  ADRNR
                  TELF1
                  TELF2
                  TELFX FROM LFA1 INTO CORRESPONDING FIELDS OF W_ADDR
                          WHERE LIFNR = W_DOCM-LIFNR.
    ENDFORM.                    " GET_LFA1
    *&      Form  GET_DOCUMENT_K
          text
    FORM GET_DOCUMENT_K .
    DATA : MESSG(60).
    SELECT SINGLE BUKRS
                  KUNNR
                 LIFNR
                  GJAHR
                  BELNR
                  BUDAT
                  BLDAT
                  BLART
                  BSCHL
                  SHKZG
                  DMBTR
                  SGTXT
                  REBZG
                  REBZJ FROM BSID
                        INTO CORRESPONDING FIELDS OF W_DOCM
                       WHERE  BUKRS = S_BUKRS AND
                              GJAHR = S_GJAHR AND
                              BELNR = S_BELNR.
    SELECT SINGLE DMBTR FROM BSID INTO DCAMT
                       WHERE BELNR = W_DOCM-REBZG AND
                             GJAHR = W_DOCM-REBZJ.
    IF NOT W_DOCM IS INITIAL.
            PERFORM GET_KNA1.
    ELSE.
    SELECT SINGLE BUKRS
                  KUNNR
                 LIFNR
                  GJAHR
                  BELNR
                  BUDAT
                  BLDAT
                  BLART
                  BSCHL
                  SHKZG
                  DMBTR
                  SGTXT
                  REBZG
                  REBZJ FROM BSAD
                        INTO CORRESPONDING FIELDS OF W_DOCM
                       WHERE  BUKRS = S_BUKRS AND
                              GJAHR = S_GJAHR AND
                              BELNR = S_BELNR.
    SELECT SINGLE DMBTR FROM BSAD INTO DCAMT
                       WHERE BELNR = W_DOCM-REBZG AND
                             GJAHR = W_DOCM-REBZJ.
          IF NOT W_DOCM IS INITIAL.
                  PERFORM GET_KNA1.
          ELSE.
          CONCATENATE 'THERE IS NO DOCUMENT NO' S_BELNR S_GJAHR 'FOR CUSTOMER' INTO  MESSG
                       SEPARATED BY SPACE.
          MESSAGE I011 WITH MESSG.
          LEAVE LIST-PROCESSING.
          ENDIF.
    ENDIF.
    ENDFORM.                    " GET_DOCUMENT_K
    *&      Form  GET_KNA1
          text
    FORM GET_KNA1 .
    SELECT SINGLE KUNNR
                  NAME1
                  NAME2
                  ORT01
                  ORT02
                  PSTLZ
                  STRAS
                  ADRNR
                  TELF1
                  TELF2
                  TELFX FROM KNA1 INTO CORRESPONDING FIELDS OF W_ADDR
                          WHERE KUNNR = W_DOCM-KUNNR.
    ENDFORM.                    " GET_KNA1
    *&      Form  DISPLAY
          text
    FORM DISPLAY .
    LONG TEXT *************************
    *DATA : BEGIN OF inline OCCURS 0,
    *END OF inline.
    *TYPES: BEGIN OF TY_LONGT,
                   tdformat TYPE tdformat,
                   tdline TYPE tdline,
          END OF TY_LONGT.
    *DATA : TLONGT TYPE STANDARD TABLE OF TY_LONGT,
          WLONGT TYPE TY_LONGT.
    DATA: BEGIN OF DTEXT OCCURS 50.
    *DATA: MATNR LIKE PBIM-MATNR.
    INCLUDE STRUCTURE TLINE.
    DATA: END OF DTEXT.
    DATA: BEGIN OF HTEXT.
    INCLUDE STRUCTURE THEAD.
    DATA: END OF HTEXT.
    DATA: BEGIN OF LTEXT OCCURS 50.
    INCLUDE STRUCTURE TLINE.
    DATA: END OF LTEXT.
    DATA: TNAME LIKE THEAD-TDNAME.
    CONCATENATE S_BUKRS W_DOCM-BELNR S_GJAHR '002' INTO  TNAME.
    *SEPARATED BY SPACE.
    DATA : W_STXL TYPE STXL.
    SELECT SINGLE * FROM STXL INTO W_STXL
                             WHERE TDNAME = TNAME.
    IF NOT W_STXL IS INITIAL.
    *SELECT * FROM PBIM WHERE WERKS IN S_WERKS.
    *MOVE PBIM-BDZEI TO TNAME.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        CLIENT                        = SY-MANDT
        ID                            = W_STXL-TDID
        LANGUAGE                      = W_STXL-TDSPRAS
        NAME                          = TNAME
        OBJECT                        = W_STXL-TDOBJECT
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
        HEADER                        = HTEXT
      TABLES
        LINES                         = LTEXT
    EXCEPTIONS
      ID                            = 1
      LANGUAGE                      = 2
      NAME                          = 3
      NOT_FOUND                     = 4
      OBJECT                        = 5
      REFERENCE_CHECK               = 6
      WRONG_ACCESS_TO_ARCHIVE       = 7
      OTHERS                        = 8
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT LTEXT.
    IF LTEXT-TDLINE NE ''.
    MOVE LTEXT-TDLINE TO DTEXT-TDLINE.
    APPEND DTEXT.
    ENDIF.
    ENDLOOP.
    ENDIF.
    LONG TEXT *************************
    CUSTOMER / VENDOR NO *************************
    DATA : CUVE(10).
    IF R1 = 'X'.
    CUVE = W_ADDR-LIFNR.
    ELSEIF R2 = 'X'.
    CUVE = W_ADDR-KUNNR.
    ENDIF.
    CUSTOMER / VENDOR NO *************************
    CR / DR DATA *************************
    IF DCAMT IS INITIAL.
    SELECT SINGLE DMBTR FROM BSIS INTO DCAMT
                       WHERE BELNR = W_DOCM-REBZG AND
                             GJAHR = W_DOCM-REBZJ .
                          ( KOART = 'D' OR KOART = 'K' ).
    ENDIF.
    CR / DR DATA *************************
    DATA: CNAME TYPE BUTXT.
    SELECT SINGLE BUTXT FROM T001 INTO CNAME
                       WHERE BUKRS = S_BUKRS.
    DATA : NAME(60),
           STREET(60),
           TELFX(60).
    CONCATENATE W_ADDR-NAME1 W_ADDR-NAME2 INTO  NAME
    SEPARATED BY SPACE.
    CONCATENATE W_ADDR-ORT01 W_ADDR-ORT02 'POSTAL CODE :' W_ADDR-PSTLZ INTO  STREET
    SEPARATED BY SPACE.
    CONCATENATE 'Tel No.:' W_ADDR-TELF1 W_ADDR-TELF2 'FAX :' W_ADDR-TELFX INTO  TELFX
    SEPARATED BY SPACE.
    DATA : CRDB(20),
           CRDBA(16),
           BALC TYPE DMBTR.
    IF W_DOCM-SHKZG = 'S'.
    CRDB = 'Debit Note No. :'.
    CRDBA = 'DEBIT'.
    BALC = DCAMT + W_DOCM-DMBTR.
    ELSEIF W_DOCM-SHKZG = 'H'.
    CRDB = 'Credit Note No. :'.
    CRDBA = 'CREDIT'.
    BALC = DCAMT - W_DOCM-DMBTR.
    ENDIF.
    SKIP 5.
    *FORMAT INVERSE.
                ULINE 03(77).
    WRITE : 03 SY-VLINE, 80 '|',
            /03 SY-VLINE, NAME, 60 'No.:' COLOR 7, CUVE COLOR 7, 80 '|',
            /03 SY-VLINE, W_ADDR-STRAS, 80 '|',
            /03 SY-VLINE, STREET, 80 '|',
            /03 SY-VLINE, TELFX, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 05 CNAME COLOR 2,  80 '|',
            /03 SY-VLINE, 36 CRDB RIGHT-JUSTIFIED, 59 W_DOCM-BELNR, 71 W_DOCM-GJAHR, 80 '|',
            /03 SY-VLINE, 58 'DATE :', W_DOCM-BUDAT, 80 '|',
            /03 SY-VLINE, 80 '|'. ULINE 03(77).
    WRITE : /03 SY-VLINE, 80 '|'.
    IF NOT DTEXT IS INITIAL.
    LOOP AT DTEXT.
    WRITE : /03 SY-VLINE, 05 DTEXT-TDLINE COLOR 1, 80 '|'.
    ENDLOOP.
    ELSEIF W_DOCM-SGTXT NE ''.
    WRITE : /03 SY-VLINE, 05 W_DOCM-SGTXT COLOR 1, 80 '|'.
    ELSE.
    WRITE : /03 SY-VLINE, 80 '|'.
    ENDIF.
    WRITE : /03 SY-VLINE, 80 '|',
    *WRITE : /03 SY-VLINE, TNAME, 80 '|',
           /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 08 'WORKING OF INTEREST CALCULATION AS ON                                   ' COLOR 4,
             47 ASON COLOR 4, '  [ 360 DAYS BASIS ]' COLOR 4, 80 '|',
            /03 SY-VLINE, 80 '|'. ULINE 03(77).
    WRITE : /03 SY-VLINE, 11 'DATE', 23 'INVOICE', 41 CRDBA, 55 'BALANCE', 64 'DAYS', 70 'INTEREST', 80 '|',
            /03 SY-VLINE, 23 ' AMOUNT', 41 'AMOUNT', 55' AMOUNT', 70 ' @ 8.00% ', 80 '|',
            /03 SY-VLINE, 80 '|'. ULINE 03(77).
    WRITE : /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 06 W_DOCM-BUDAT, 15 DCAMT, 32 W_DOCM-DMBTR, 47 BALC, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|'. ULINE 03(77).
    WRITE : /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 10 'PREPARED BY', 35 'ACCOUNTANT', 60 'MANAGER', 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|'. ULINE 03(77).
    ENDFORM.                    " DISPLAY
    Thanks & Regards,
    D Tarun Kumar.
    Edited by: Devalla Tarun Kr. on Aug 28, 2008 3:40 PM

  • Problems with displaying data in graphs

    Hi everybody,
    I built an adf application which contains graph binding then I deployed it succesfully but when I want to load this graph I get the following error in log server:
    <ImageViewRendererUtils> <renderXML> Could not export XML to ResponseWriter
    oracle.dss.util.transform.TransformRuntimeException
    java.lang.NullPointerException
    at oracle.dss.util.transform.CubicDataAccess.getValue(CubicDataAccess.java:908)
    at oracle.dss.util.transform.CubicDataAccess.getValue(CubicDataAccess.java:1448)
    at oracle.adfinternal.view.faces.bi.util.DataAccessDecorator.getValue(DataAccessDecorator.java:53)
    at oracle.dss.graph.DataCallback.getValue(DataCallback.java:422)
    at oracle.dss.graph.DataCallback.getValue(DataCallback.java:379)
    Thanks for your help.
    Edited by: nf018 on May 11, 2012 9:17 AM

    I was having this same problem after having created a demo application that displays a
    graph of the employee salary data using Oracle's XE built-in HR database.
    I am using Jdeveloper 11.1.1.6.0.
    After some experimenting, I found I could eliminate the error by changing the setting of
    CacheResults in the Iterator from the default <true> to false. Granted, this will affect performance, but
    it is a work-around. I think that the error is that the data from element is not being stored anywhere for
    the graph element to pick up (this may be due to partial-page rendering (ppr), but I am not sure.)
    Open your .jspx file in the editor. Select the graph component. Click on the Bindings tab at the bottom.
    You should see a binding between a graph component (under Bindings) to an Iterator (Executable) to
    a Data Control element.
    Click on the Iterator, and under Advanced, set the CacheResults to false and rerun the application.
    Hope this helps.

  • Problem idn displaying data in table control

    hi
    i have searched almost every forum and tried to execute my program but still it is giving problem.
    means it does not display the data when i execute the trasanction. it keeps tablecontrol blank.
    pls see my code below and give me soloution. plz
    In SE51
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    loop at itab with control tcb.
    module mapdata.
    endloop.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    loop at itab.
    endloop.
    In SE38
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    select * from zpvcust into table itab.
    *read table itab into tcb.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  mapdata  OUTPUT
          text
    MODULE mapdata OUTPUT.
    zpvcust-custno = itab-custno.
    zpvcust-custname = itab-custname.
    ENDMODULE.                 " mapdata  OUTPUT

    Hi Vikas
    This code you follow the i am sure tou will get the values
    process before output.
      module status_0103.
      module get_data.
      loop at   it_bapi3008_2
           into lw_bapi3008_2
           with control tc_data
           cursor tc_data-current_line.
        module tc_data_get_lines.
      endloop.
    module getdata output.
      call function 'BAPI_AP_ACC_GETOPENITEMS'
        exporting
          companycode       = 'RS01'
          vendor            = name
          keydate           = ket_data
       noteditems           = 'X'
    * IMPORTING
    *   RETURN            =
        tables
          lineitems         =  it_bapi3008_2.
      call function 'BAPI_AR_ACC_GETOPENITEMS'
        exporting
          companycode       = 'RS01'
          customer          = lfa1-kunnr
          keydate           = ket_data
    *      NOTEDITEMS        = ' '
    *      SECINDEX          = ' '
    *    IMPORTING
    *      RETURN            =
        tables
          lineitems         = it_bapi3007_2.
      loop at it_bapi3007_2 into lw_bapi3007_2.
        lw_bapi3008_2-doc_no = lw_bapi3007_2-doc_no.
        lw_bapi3008_2-doc_date = lw_bapi3007_2-doc_date.
        lw_bapi3008_2-lc_amount = lw_bapi3007_2-lc_amount.
        lw_bapi3008_2-db_cr_ind = lw_bapi3007_2-db_cr_ind.
        lw_bapi3008_2-doc_type  =  lw_bapi3007_2-doc_type.
        lw_bapi3008_2-amt_doccur = lw_bapi3007_2-amt_doccur.
        append lw_bapi3008_2 to it_bapi3008_2.
        clear lw_bapi3008_2.
      endloop.
    endmodule.                 " GETDATA  OUTPUT
    module tc_data_get_lines output.
      data g_tc_data_lines type sy-loopc.
      g_tc_data_lines = sy-loopc.
    endmodule.                    "
    try it you will get the values
    Regards Nilesh

  • Problem in Displaying Data for Localised Reports

    Hi everyone..I am having a problem with crystal Reports. I need Malayalam unicode( INDIAN Language) to be displayed in the reports, this data will be binded from database.
    And the problem is : After applying this unicode font to the labels of my reports, some labels in the reports are going invisible.Also, previously  if I increase the font size beyond 22, I used to get "A Generic error occured in GDI+".  But after changing the textformat property of the field to "crRtfText" from "crstandardText" , I could resolve this Generic Error.
    And, I could also observe that the last char of the fields in the "details" section is repeating.
    This is the code I am using to apply local font to the labels.
    Private Sub assignfont()
    Dim Mfont As New Font("kartika", 20, FontStyle.Regular,GraphicsUnit.Pixel)
    CType(Report.Section8.ReportObjects("Field45"), CrystalDecisions.CrystalReports.Engine.FieldObject).ApplyFont(Mfont) 
    CType(Report.Section8.ReportObjects("Field48"), CrystalDecisions.CrystalReports.Engine.FieldObject).ApplyFont(Mfont)
    End Sub
    And I am calling this function in the form load event of that report.
    Any suggestion on this is greatly appreciated........Thanks in advance..

    Dear MJ,
    thanks for the reply and I am really sorry for my delay. Actually I got vexed waiting for any reply and stopped opening this forum.
    And coming to your suggestion,
    Ya, I tried assigning font at design time also, but nothing worked for me.
    Even a textbox control also cannot show few characters which are said to be complex in malayalam script.
    So, do u feel getting BOBJ support is the only way for this?
    Thanks once again for your interest.
    Regards,
    raj.

  • Problem in displaying data using ALV interactive using OOPS

    Hi friends,
    I have created one interactive report using oops..
      on my selection screen i have a select-option  TABNAME for DD02L table with no intervals option.
    ie : i enter table names in that field..
    for example i enter VBAP
                                   MARA,
                                   MARC.       etc
    when i execute i get a basic list which gives some details about the tables.
    now on my basic list when i double click on any row then ie : say if i click on 2nd row , in the back ground based on the index on which i have click iam reading that particular row from the table and from that using the table name iam displaying the all the fields of the table in the ist secondary list....
    Till now its working fine but once when i go back to the back to the basic list and when i click another row... here even if click another row its displaying the same fields of the table which was ist click.
    ie : say ist time i have clicked mara then later vbap.....But its displaying me the mara details instead it should display vbap details...
    I have used refresh_table_display method also.... But its not working fine...
    How can i correct it...
    Regards,
    Kumar.

    Hello Kumar
    I can only guess that you call the second screen (perhaps '0200') within the event handler method for event DOUBLE_CLICK. This is not really a good idea. Instead use a simple trick to overcome this refreshing problem:
    METHOD handle_double_click.
    " Save the row perhaps in a static attribute of your event handler method, e.g.
    .  lcl_eventhandler=>ms_row = e_row.  " ms_row defined as static attribute of event handler class
    " Trigger PAI with a defined ok-code:
      CALL METHOD cl_gui_cfw=>set_new_ok_code
        EXPORTING
         ok_code = 'DETAIL_LIST'.
    ENDMETHOD.
    This method call triggers PAI of your screen which otherwise does not occur after an event has been raised.
    MODULE user_command_0100 PAI.
      CASE gd_okcode.
        WHEN 'DETAIL_LIST'.
           perform DISPLAY_DETAIL_LIST.  " and call screen '0200'
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.
    The next time you make a double click a new row/index is filled into the static attribute. By triggering PAI (followed by PBO) you ensure a flushing (= refreshing) before the secondary list is displayed.
    Regards
      Uwe

Maybe you are looking for

  • How to display DB specific data in WEBI for users with Single Universe

    hi, I have a WEBI report which is based on Single Universe, which can support both Oracle and SQL Server databases. There are 2 users for this report. 1) Oracle_User 2) SQLServer_User When 'Oracle_User' opens report in InfoView, he should see the dat

  • Program for Sales Order cretaion using BAPI BAPI_SALESORDER_CREATEFROMDAT2

    Hi All, Can any one please give me one modal program which uses the BAPI 'BAPI_SALESORDER_CREATEFROMDAT2' to create Sales Orders... Thank You very much in advance.....................

  • Met "logon canceled" error when drag and drop table to XSD

    When I drag and drop a table to XML Schema designer, there is a dialog named "Microsoft OLE DB for Oracle" pop up. When I input correct username/password@db, I got an error saying "logon canceled". Please help.

  • Downloading of PPT using UTL_HTTP

    Hi All, I want one solution such a way that we have some urls stored in our database, so we are going to retrive the data that are in ppt format from this urls and store it in the ppt format in our database and my problem is the urls are password pro

  • Analyze ABAP Reports to Bring in to BI

    Hello all, I am asked to analyze SD ABAP reports to see if i can bring them into BI 7.0.  Where do i start? What are the things i should look for and keep in mind? What do i analyze? Cheers