Output not coming correct

Hi,
I had developed this code and after all modifications and alterations in it ,i am pasting here bcoz it is still giving the problem that the values of ITAB does not contain the correct data as it keep on repeating the same value for the data in ITFINAL.
Plzz go through this code and help me out as i tried whole day and still it is not coming right.
My job is online bcoz if it start displaying correct data then i have to make addition in other code also. plzz helpme out as help will be definately rewarded.
here's the code:-
TABLES: BKPF,MKPF,BSIK.
DATA: BEGIN OF ITBKPF OCCURS 0,
      BUKRS LIKE BKPF-BUKRS,
      BELNR LIKE BKPF-BELNR,
      GJAHR LIKE BKPF-GJAHR,
      AWTYP LIKE BKPF-AWTYP,
      AWKEY LIKE BKPF-AWKEY,
      BUDAT LIKE BKPF-BUDAT,
      END OF ITBKPF.
DATA: BEGIN OF ITMKPF OCCURS 0,
      MBLNR LIKE MKPF-MBLNR,
      MJAHR LIKE MKPF-MJAHR,
      END OF ITMKPF.
DATA: BEGIN OF ITAB OCCURS 0,
      BELNR LIKE BSIK-BELNR,
      WRBTR LIKE BSIK-WRBTR,
      LIFNR LIKE BSIK-LIFNR,
      BUKRS LIKE BSIK-BUKRS,
      GJAHR LIKE BSIK-GJAHR,
      BUDAT LIKE BKPF-BUDAT,
      END OF ITAB.
DATA: BEGIN OF ITFINAL OCCURS 0,
      BUKRS LIKE BKPF-BUKRS,
      BELNR LIKE BKPF-BELNR,
      GJAHR LIKE BKPF-GJAHR,
      AWTYP LIKE BKPF-AWTYP,
      AWKEY LIKE BKPF-AWKEY,
      MBLNR LIKE MKPF-MBLNR,
      MJAHR LIKE MKPF-MJAHR,
      WRBTR LIKE BSIK-WRBTR,
      LIFNR LIKE BSIK-LIFNR,
      END OF ITFINAL.
*PARAMETERS: P_BUKRS LIKE BKPF-BUKRS,
           P_GJAHR LIKE BKPF-GJAHR,
           S_LIFNR LIKE BSIK-LIFNR.
SELECT-OPTIONS: P_BUKRS FOR BKPF-BUKRS,
                P_GJAHR FOR BKPF-GJAHR,
                S_LIFNR FOR BSIK-LIFNR.
      SELECT ABUKRS ABELNR AGJAHR AAWTYP AAWKEY ABUDAT INTO TABLE ITBKPF FROM BKPF AS A
      WHERE  AAWTYP = 'MKPF' AND ABUKRS IN P_BUKRS AND A~GJAHR IN P_GJAHR.
      IF NOT ITBKPF[] IS INITIAL.
      SELECT AMBLNR AMJAHR INTO TABLE ITMKPF FROM MKPF AS A FOR ALL ENTRIES IN ITBKPF WHERE A~MBLNR = ITBKPF-AWKEY(10).
      SELECT ABELNR AWRBTR ALIFNR ABUKRS AGJAHR BBUDAT FROM BSIK AS A
      INNER JOIN BKPF AS B ON BBELNR = ABELNR
      INTO TABLE ITAB
      WHERE
      A~LIFNR IN S_LIFNR.
      ENDIF.
SORT ITAB BY BELNR.
LOOP AT ITBKPF.
CLEAR ITMKPF.
READ TABLE ITMKPF
WITH KEY MBLNR = ITBKPF-AWKEY+(10)
          MJAHR = ITBKPF-AWKEY+10(4).
CHECK sy-subrc EQ 0.
ITFINAL-BELNR = ITBKPF-BELNR.
ITFINAL-GJAHR = ITBKPF-GJAHR.
ITFINAL-AWKEY = ITBKPF-AWKEY.
READ TABLE ITAB
WITH KEY BUKRS = ITBKPF-BUKRS.
CHECK sy-subrc EQ 0.
ITFINAL-WRBTR = ITAB-WRBTR.
ITFINAL-LIFNR = ITAB-LIFNR.
APPEND ITFINAL.
CLEAR ITFINAL.
ENDLOOP.
LOOP AT ITFINAL.
WRITE: / ITFINAL-BELNR , ITFINAL-GJAHR, ITFINAL-AWKEY+(10),ITFINAL-WRBTR ,ITFINAL-LIFNR .
ENDLOOP.

Hi,
I had checked the all Interenal Tables and each and every table is having the desiered data except ITFINAL.,it is storing the value of ITAB
i.e. displaying the same record for the data coming from the ITBKPF ,now my problelm is how to display the correct data from ITAB to the ITFINAL which is not able to store this coreect data,plzz help me out in solving this problem .
The code in am using right now is:-
TABLES: BKPF,MKPF,BSIK.
DATA: BEGIN OF ITBKPF OCCURS 0,
      BUKRS LIKE BKPF-BUKRS,
      BELNR LIKE BKPF-BELNR,
      GJAHR LIKE BKPF-GJAHR,
      AWTYP LIKE BKPF-AWTYP,
      AWKEY LIKE BKPF-AWKEY,
      BUDAT LIKE BKPF-BUDAT,
      END OF ITBKPF.
DATA: BEGIN OF ITMKPF OCCURS 0,
      MBLNR LIKE MKPF-MBLNR,
      MJAHR LIKE MKPF-MJAHR,
      END OF ITMKPF.
DATA: BEGIN OF ITAB OCCURS 0,
      BELNR LIKE BSIK-BELNR,
      WRBTR LIKE BSIK-WRBTR,
      LIFNR LIKE BSIK-LIFNR,
      BUKRS LIKE BSIK-BUKRS,
      GJAHR LIKE BSIK-GJAHR,
      BUDAT LIKE BKPF-BUDAT,
      END OF ITAB.
DATA: BEGIN OF ITFINAL OCCURS 0,
      BUKRS LIKE BKPF-BUKRS,
      BELNR LIKE BKPF-BELNR,
      GJAHR LIKE BKPF-GJAHR,
      AWTYP LIKE BKPF-AWTYP,
      AWKEY LIKE BKPF-AWKEY,
      MBLNR LIKE MKPF-MBLNR,
      MJAHR LIKE MKPF-MJAHR,
      WRBTR LIKE BSIK-WRBTR,
      LIFNR LIKE BSIK-LIFNR,
      END OF ITFINAL.
*PARAMETERS: P_BUKRS LIKE BKPF-BUKRS,
           P_GJAHR LIKE BKPF-GJAHR,
           S_LIFNR LIKE BSIK-LIFNR.
SELECT-OPTIONS: P_BUKRS FOR BKPF-BUKRS,
                P_GJAHR FOR BKPF-GJAHR,
                S_LIFNR FOR BSIK-LIFNR.
      SELECT ABUKRS ABELNR AGJAHR AAWTYP AAWKEY ABUDAT INTO TABLE ITBKPF FROM BKPF AS A
      WHERE  AAWTYP = 'MKPF' AND ABUKRS IN P_BUKRS AND A~GJAHR IN P_GJAHR.
      IF NOT ITBKPF[] IS INITIAL.
      SELECT AMBLNR AMJAHR INTO TABLE ITMKPF FROM MKPF AS A FOR ALL ENTRIES IN ITBKPF WHERE A~MBLNR = ITBKPF-AWKEY(10).
      SELECT ABELNR AWRBTR ALIFNR ABUKRS AGJAHR BBUDAT FROM BSIK AS A      "
      INNER JOIN BKPF AS B ON BBELNR = ABELNR
      INTO TABLE ITAB
      WHERE
      ALIFNR IN S_LIFNR.    "ABUKRS = B~BUKRS.
      ENDIF.
      SORT ITAB BY BELNR.
     SELECT ABELNR AWRBTR ALIFNR ABUKRS A~GJAHR FROM BSIK AS A INTO TABLE ITAB
     FOR ALL ENTRIES IN ITBKPF
     WHERE
     ABUKRS = ITBKPF-BUKRS AND ALIFNR = S_LIFNR.
     ENDIF.
LOOP AT ITBKPF.
CLEAR ITMKPF.
READ TABLE ITMKPF
WITH KEY MBLNR = ITBKPF-AWKEY+(10)
          MJAHR = ITBKPF-AWKEY+10(4).
CHECK sy-subrc EQ 0.
ITFINAL-BELNR = ITBKPF-BELNR.
ITFINAL-GJAHR = ITBKPF-GJAHR.
ITFINAL-AWKEY = ITBKPF-AWKEY.
SORT ITAB[] BY BELNR GJAHR BUKRS.
  READ TABLE ITAB
  WITH KEY
BELNR = ITBKPF-BELNR
  GJAHR = ITBKPF-GJAHR
  BUKRS = ITBKPF-BUKRS
  BINARY SEARCH.
CHECK sy-subrc EQ 0.
ITFINAL-WRBTR = ITAB-WRBTR.
ITFINAL-LIFNR = ITAB-LIFNR.
APPEND ITFINAL.
CLEAR ITFINAL.
ENDLOOP.
LOOP AT ITFINAL.
WRITE: / ITFINAL-BELNR , ITFINAL-GJAHR, ITFINAL-AWKEY+(10),ITFINAL-WRBTR ,ITFINAL-LIFNR .
ENDLOOP.
Edited by: abaper2008 on May 29, 2008 6:35 AM
Edited by: abaper2008 on May 29, 2008 9:21 AM

Similar Messages

  • File read write program output not coming correct

    this code is compiling without issues but the output is not what i am expecting .. the contents of delta.txt are as follows
    *4014254420*
    *2897449776*
    *4207405601*
    and the output thats coming is
    +4014254420+
    +40142544204207405601+
    +4207405601+
    its not reading the 2nd line somehow
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.File;
    import java.io.*;
    import java.io.FileWriter;
    import javax.swing.*;
    import java.util.Scanner;
    public class testloop
              static int i;                                             
               static char c;                                               
               static int j = 1;     
                    static String filename;                                                  
      public static void main(String[] args)  throws IOException 
    try {
         FileReader fmi = new FileReader("delta.txt");
         FileWriter fmo = new FileWriter("Updated.txt");
         BufferedReader br = new BufferedReader(fmi);
                   String temp=null;
                        do{
                        temp = br.readLine();
                        if(temp.startsWith("*"))
                             String tempc = temp.substring(1);                         
                             System.out.print(tempc+"\n");
                            long tp = Long.valueOf(tempc);
                             System.out.print(tp);                    
                   else
                   fmo.write(temp);
                        }while((temp=br.readLine()) != null);
                   fmi.close();
                   fmo.close();
                   }catch (FileNotFoundException e){ System.out.print("not found");     }
                   catch (IOException e){System.out.print("io"+e);
                   e.printStackTrace();
        also if i use the following delta.txt
    **4014254420*
    **2897449776*
    **4207405601*
    mmm+
    i get the output as
    +4014254420+
    +40142544204207405601+
    +4207405601Exception in thread "main" java.lang.NullPointerException+
    at testloop.main(testloop.java:33)*
    its not writing the text to the file updated.txt
    Edited by: adhiraj on Nov 27, 2007 6:58 AM

    You are getting the next line twice.
    do{
                        temp = br.readLine();
                        if(temp.startsWith("*"))
                             String tempc = temp.substring(1);                         
                             System.out.print(tempc+"\n");
                            long tp = Long.valueOf(tempc);
                             System.out.print(tp);                    
                   else
                   fmo.write(temp);
                        }while((temp=br.readLine()) != null);You need to change your code around so that you only call
    temp=br.readLine();once per iteration of the loop.

  • Report output not coming correctly

    Hi All,
    my query is like
    select 'gggohpoopiokoljmkjjg@@@@@' record from dual;
    where record string's length is more than 2000 characters.
    I am using oracle report for this purpose as i have some other validations associated with it.
    i am printing the report output in a flat file.i want ALL THE OUTPUT SHOULD COME IN ONE LINE.
    but this is not happenning so...for the string lengths more than 1000 it's coming in diff line.
    How can i make sure that my output file WILL BE IN SINGLE LINE.
    i tried in unix vi editor i can give 3000 charecters but it doesn't go to the second line.
    any help on this issue will be helpful
    thanks in advance

    If there's no easy way to do it, you may use a "special character", like chr(xx), as your long line delimiter to chop a line into a couple of lines. Then you write a very simple C program to post-process the report output file to remove these "special character".
    If all characters are possible in your report file, you may use a string as the delimiter.

  • Barcode in PDF output not coming in Oracle R12.1.3

    Hi,
    We have a rtf template for Invoice report. In this report we have to display barcode in PDF output. In our development instance barcode is coming properly. But in our test instance barcode is not coming(same template is available in Development and Test instance).
    We are using wocrb.ttf and w128l.ttf font files and we have these files available at $OA_JRE_TOP/lib/fonts path.
    Also, we have config file available on $OA_JRE_TOP/lib directory. and this config file has correct path of both the font files.
    Still the barcode is not coming in Test instance.
    Request you all to please help me with this issue.
    Thanks,
    SA

    PDF requires the font be registered correctly, since it is not appearing you have missed something in your configuration.
    The most common error is the font family name does not exactly match the font name in Word. (Open the font on your PC and the name is present there also.)
    You can use the xdodebug.cfg troubleshooting method,  then see what error appears in the xdo.log when the font is accessed.
    See the following note for xdo.log:
    Note 364547.1 : Troubleshooting Oracle XML Publisher For The Oracle E-Business Suite
    Thank you
    Eugen

  • Invoice output not coming properly

    Dear Experts,
    I have maintained condition record for the billing type and assigned it to the printer. Some of the invoices output are coming properly but for 4 to 5 invoices, print out prview is just skipping and when I click for printing, the system throws an error  " output could not be issued" and the error is in green colour.  I am not able to understand the reason behind it.
    Can anybody help me out to solve the issue please.
    Thanks & Regards,
    Reji

    Dear Reji,
    T. Code: VF02/ VF03
    Key-in your Invoice No. and Don't hit "enter".
    On to the same Page, from Menu-bar, Click: Billing Document --> Issue Output to
    A Window: Output Output, will pop-up.
    Here, select the Output-line and Click Icon: Print Preview
    Now, you would able to see Invoice Preview, providing Output Condition record is maintained.
    If still, Invoice Preview doesn't appear, on to the same window: Output Output, Click Tab: Print Options.
    Another Window will pop-up. Here, maintain Output Device (say, LP01) and tick Box: Print Immediately, and OK.
    Again Select Output line and Click: Print Preview.
    Best Regards,
    Amit

  • WBS element output not coming properly .

    Hi ,
    I have a customized report with , project(proj-pspid) ,wbs element( prps-posid) as selection parameters . The output is coming preperly when project is given as output but is not coming properly when wbs element is given as input. I am using PSJ logical database . Not sure why in debugging while giving only wbs element it is going to 'Conversion_exit_abpsn_input' instead of teh conversion exit 'Conversion_exit_abpsp_input' . Any idea on how it can be resolved?

    Hi,
         Please refer the WBS element to PSPNR (PRPS-PSPNR) instead of prps-posid ,
         prps-posid refers to exit 'Conversion_exit_abpsn_input' and not 'Conversion_exit_abpsp_input'.
    Regards,
    Srini.

  • Wagetype calculation not coming correctly

    Hi
    Whenever we run a transfer action in between the payroll period wagetypes which we have maintained in 14 Infotype are not calculating correctly.
    Ex: Performance pay wagetype is there Amt is Rs 1000  start date 01.04.2008 and end date 31.12.9999. If we run transfer action on 15.04.2008 at the end of the payroll period i.e., 30.04.2008 Payout in this particular wagetype should be 1000 but it is coming as Rs 500
    What we have do suggest please
    Thanks
    Mahantesh

    Hi
    Amount whatever it is calculating is taking in to account the Loss of pay days is correct.
    Problem is when we transfer the employee in between the payroll period while we getting the payout for the period for the earliest record
    Ex Employee 1001 holding Postion X from 01.01.2008, on 15.04.2008 transfered to  postion Y.
    This employee is getting the payout from 15.04.2008 to 30.04.2008 for tht particular month.
    Again in the next month from 01.05.2008 to 31.05.2008 he will get the correct payout
    whenever we run action in between the payroll period this problem is coming
    Thanks

  • Difference is not coming correct

    Hi guys,
    i have two measure a and b
    i am doing total by at month level and also a have a calculated column c=a-b
    but it is not giving correct result as
    a b c
    122 123 34 this is total by result.
    it should give -1 for c.
    so how can i resolve this problem.

    Hi,
    Create a dummy column [C](drag and drop any column and Rename it into CalumnC) in your report and edit the formula for your columnC
    and the do your calculation like IfNull(Tablename.columnA,0) - IfNull(Tablename.ColumnB,0) and
    set Aggregation Rule is Server Determined
    Thanks,
    Balaa...

  • Output not coming

    Hi ALL,
                 I am very much frustrated with my program codeing, i am not getting any output
    but it is correct with no errors i am suspecting with my linking fields ,
    Please resolve my program and get me output, it will be kind enough to u.
    This is my program codeing.
    ======================
    REPORT  zsdr_omsa40.
                              TYPE-POOLS
    TYPE-POOLS: slis.
                           TABLE DECLARATIONS
    TABLES : vbak,  vbkd, zzvbak, kna1, vbrk, vbrp, knvp .
                                INTERNALTABLE DECLARATION                 *
    DATA: BEGIN OF i_vbak OCCURS 0,
           vbeln LIKE vbak-vbeln,                " Sales Order no
           erdat LIKE vbak-erdat,                " Date on Which Record Was Created
           kunnr LIKE vbak-kunnr,
           ps_psp_pnr LIKE vbak-ps_psp_pnr,      " Work Breakdown Structure Element
          END OF i_vbak.
    DATA : BEGIN OF i_zzvbak OCCURS 0,
             vbeln LIKE zzvbak-vbeln,
             zssidc LIKE zzvbak-zssidc,         "Salesman ID
           END OF i_zzvbak.
    DATA : BEGIN OF i_vbrk OCCURS 0,
             vbeln LIKE vbrk-vbeln,
             fkdat LIKE vbrk-fkdat,          "Invoice Date
              kunag LIKE vbrk-kunag,    "Sold-to party
             END OF i_vbrk.
    DATA : BEGIN OF i_kna1 OCCURS 0,
           pstlz LIKE kna1-pstlz ,               " Postal Code
           kunnr LIKE kna1-kunnr ,               " Customer Number 1
           name1 LIKE kna1-name1,                " Customer Name
           END OF i_kna1.
    DATA : BEGIN OF i_vbrp OCCURS 0,
           vbeln LIKE vbrp-vbeln,
           netwr LIKE vbrp-netwr ,               " Net Value in Document Currency
           kzwi1 LIKE vbrp-kzwi1,               " Subtotal 1 from pricing procedure for condition
           END OF i_vbrp.
    DATA : BEGIN OF i_knvp OCCURS 0,
           parvw LIKE knvp-parvw ,               " Partner Function
           kunnr LIKE knvp-kunnr ,
           parnr  LIKE knvp-parnr ,              " Number of contact person
           END OF i_knvp .
    DATA : BEGIN OF i_vbfa  OCCURS 0,
           vbelv   LIKE  vbfa-vbelv,
           vbeln   LIKE  vbfa-vbeln,
           vbtyp_v LIKE vbfa-vbtyp_v,
           END OF  i_vbfa.
    DATA : BEGIN OF i_vbfa1  OCCURS 0,
           vbelv  LIKE  vbfa-vbelv,
           vbeln  LIKE  vbfa-vbeln,
           zssidc LIKE zzvbak-zssidc,
           END OF  i_vbfa1.
    DATA : BEGIN OF i_data OCCURS 0,
           erdat LIKE vbak-erdat,               " Date on Which Record Was Created
           vbeln LIKE vbak-vbeln,               " Sales Order no
           fkdat LIKE vbrk-fkdat,               " Invoice date.
           kunnr LIKE kna1-kunnr ,               " Customer Number 1
           ps_psp_pnr LIKE vbak-ps_psp_pnr,      " Work Breakdown Structure Element
           name1 LIKE kna1-name1,                " Customer Name
            netwr LIKE vbrp-netwr ,               " Net Value in Document Currency
            kzwi1 LIKE vbrp-kzwi1,               " Subtotal 1 from pricing procedure for condition
            parnr  LIKE knvp-parnr ,              " Number of contact person
            zssidc LIKE zzvbak-zssidc,            "Salesman ID
           pstlz LIKE kna1-pstlz ,                " Postal Code
          END OF i_data.
    ALV Declaraton
    DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,
         gd_tab_group TYPE slis_t_sp_group_alv,
         gd_layout    TYPE slis_layout_alv,
        it_listheader TYPE  slis_t_listheader,
         gd_repid     LIKE sy-repid.
    Selection - Screen
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS    s_odate            FOR vbak-erdat  .          " Sales Order Date
    SELECT-OPTIONS    s_ivdate           FOR vbrk-fkdat  .          " Invoice Date
    SELECT-OPTIONS    s_order            FOR vbak-vbeln  .          " Sales order no
    SELECT-OPTIONS    s_name             FOR kna1-name1  .          " Customer Group
    SELECT-OPTIONS    s_cname            FOR knvp-parnr  .          " Contact Name.
    SELECT-OPTIONS    s_ssid            FOR  zzvbak-zssidc    .    " Salesman ID
    SELECT-OPTIONS    s_pid                  FOR vbak-ps_psp_pnr .      " Work Breakdown Structure Element
    SELECTION-SCREEN : END OF BLOCK b1.
    START-OF-SELECTION
    START-OF-SELECTION.
      PERFORM data_retrieval.
       PERFORM build_fieldcatalog.
    PERFORM BUILD_LAYOUT.
    PERFORM top_of_page.
      PERFORM fill_listheader USING it_listheader.
      PERFORM display_alv_report.
    END-OF-SELECTION.
    *TOP-OF-PAGE.
    TOP-OF-PAGE.
    END-OF-PAGE.
    *&      Form  BUILD_FIELDCATALOG
          text
    FORM build_fieldcatalog.
      fieldcatalog-fieldname   = 'KUNNR'.
      fieldcatalog-seltext_m   = 'Sold to Party'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-tabname   = 'I_data'.
      fieldcatalog-emphasize   = 'X'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'NAME1'.
      fieldcatalog-seltext_m   = 'Hlev Customer'.
      fieldcatalog-col_pos     = 1.
      fieldcatalog-tabname   = 'I_data'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'PARNR'.
      fieldcatalog-seltext_m   = 'Contact name'.
      fieldcatalog-col_pos     = 2.
      fieldcatalog-tabname   = 'I_data'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'PS_PSP_PNR'.
      fieldcatalog-seltext_m   = 'Project ID'.
      fieldcatalog-col_pos     = 3.
      fieldcatalog-do_sum = 'X'.
      fieldcatalog-tabname   = 'I_data'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'VBELN'.
      fieldcatalog-seltext_m   = 'Sales Document Type'.
      fieldcatalog-col_pos     = 4.
      fieldcatalog-tabname   = 'I_data'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'ZSSIDC'.
      fieldcatalog-seltext_m   = 'SSID'.
      fieldcatalog-col_pos     = 5.
      fieldcatalog-tabname   = 'I_data'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'ERDAT'.
      fieldcatalog-seltext_m   = 'so date'.
      fieldcatalog-col_pos     = 6.
      fieldcatalog-tabname   = 'I_data'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'FKDAT'.
      fieldcatalog-seltext_m   = 'inv date'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-tabname   = 'I_data'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'KWZI1'.
      fieldcatalog-seltext_m   = 'gross amt'.
      fieldcatalog-col_pos     = 8.
      fieldcatalog-tabname   = 'I_data'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'NETWR'.
      fieldcatalog-seltext_m   = 'net amt'.
      fieldcatalog-col_pos     = 9.
      fieldcatalog-tabname   = 'I_data'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'PSTLZ'.
      fieldcatalog-seltext_m   = 'Postal code'.
      fieldcatalog-col_pos     = 10.
      fieldcatalog-tabname   = 'I_data'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
    ENDFORM.                    "BUILD_FIELDCATALOG
    *&      Form  DATA_RETRIEVAL
          text
    FORM data_retrieval.
    SELECT a~vbeln
             a~fkdat
             b~netwr
             b~vbeln
             b~kzwi1
             FROM vbrk AS a INNER JOIN vbrp AS b ON bvbeln = avbeln
              INTO CORRESPONDING FIELDS OF TABLE i_vbrk
                  where fkdat IN s_ivdate.
        SELECT  vbelv
               vbeln
               vbtyp_v
               FROM VBFA INTO corresponding fields of  table I_VBFA
               for all entries in i_VBRK
               where vbeln = i_VBRK-vbeln
               and   VBTYP_V = 'C'.
    IF I_VBFA[] IS NOT INITIAL.
        SELECT vbeln ZSSIDC
          FROM ZZVBAK INTO corresponding fields of  table i_zzvbak
               for all entries in i_vbfa
                 WHERE VBELN = I_VBFA-VBELV.
    ENDIF.
      SELECT vbeln erdat kunnr ps_psp_pnr from vbak INTO CORRESPONDING FIELDS OF TABLE i_vbak
                         FOR ALL ENTRIES IN i_vbak WHERE kunnr = i_vbak-kunnr
                         AND erdat IN s_odate AND vbeln IN s_ORDER  AND
                          ps_psp_pnr IN s_pid.
    SELECT  kunnr
              name1
             FROM kna1 INTO CORRESPONDING FIELDS OF TABLE i_kna1
             FOR  ALL ENTRIES IN i_vbrk
             WHERE kunnr = i_vbrk-kunag.
        SELECT kunnr parnr parvw FROM  knvp  INTO CORRESPONDING FIELDS OF TABLE i_knvp FOR ALL ENTRIES IN i_vbrk
        WHERE kunnr = i_vbrk-kunag
        AND   parvw = 'AP'
        AND   parnr IN s_cname.
    LOOP AT i_vbrk.
        CLEAR i_data.
          i_data-erdat =        vbrk-erdat.               " Date on Which Record Was Created
           i_data-vbeln =       vbak-vbeln.               " Sales Order no
           i_data-fkdat =       vbrk-fkdat.               " Invoice date.
           i_data-kunnr =       kna1-kunnr .               " Customer Number 1
           i_data-ps_psp_pnr =  vbak-ps_psp_pnr.      " Work Breakdown Structure Element
           i_data-name1 =       kna1-name1.                " Customer Name
           i_data-netwr   =     vbrp-netwr .               " Net Value in Document Currency
            i_data-kzwi1 =      vbrp-kzwi1.               " Subtotal 1 from pricing procedure for condition
            i_data-parnr  =     knvp-parnr .              " Number of contact person
            i_data-zssidc =     zzvbak-zssidc.            "Salesman ID
           i_data-pstlz =      kna1-pstlz .                " Postal Code
        read table I_VBFA1 With key VBELV = i_vbak-vbeln.
        if sy-subrc is initial.
          i_data-vbeln = I_VBFA1-vbelv.
          read table i_zzvbak with key vbeln = i_vbfa-vbelv.
          if sy-subrc is initial.
            i_data-zssidc = I_zzvbak-ZSSIDC.
          endif.
        endif.
        READ TABLE i_kna1 WITH  KEY kunnr = i_vbak-kunnr.
        if sy-subrc is initial.
          i_data-kunnr = i_kna1-kunnr.
          i_data-kunnr = i_kna1-name1.
        endif.
        collect i_data.
      ENDLOOP.
    ENDFORM.
    *&      Form  DISPLAY_ALV_REPORT
          text
    FORM display_alv_report.
    GD_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
          i_callback_program                = sy-repid
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
          i_callback_top_of_page            = 'TOP_OF_PAGE'
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
          it_fieldcat                       = fieldcatalog[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = i_data.
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2 .
    *IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    ENDFORM.                    "DISPLAY_ALV_REPORT
            FORM FOR FILLING LISTHEADER                                    *
    FORM fill_listheader USING it_listheader TYPE slis_t_listheader.
      DATA : wa_listheader TYPE slis_listheader.
    wa_listheader-typ  = 'H'.
      wa_listheader-info = 'Noel Gifts International Limited '.
      APPEND wa_listheader TO it_listheader.
      wa_listheader-typ  = 'S'.
      wa_listheader-info = 'CUSTOMER CREDIT EXCEPTION REPORT' .
      APPEND wa_listheader TO it_listheader.
      CLEAR wa_listheader.
    ENDFORM.                    "fill_listheader
    *&      Form  top_of_page
          text
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = it_listheader.
    ENDFORM.      "top_of_page

    There were a couple of mistakes:
    a) You did not select Kunag from VBRK which u have used for selecting from KNA1.
      SELECT a~vbeln
             a~fkdat
             a~kunag
             b~netwr
             b~vbeln
             b~kzwi1
      FROM vbrk AS a INNER JOIN vbrp AS b
      ON b~vbeln = a~vbeln
      INTO CORRESPONDING FIELDS OF TABLE i_vbrk
      WHERE fkdat IN s_ivdate.
    b) This one is a Big Mistake
    LOOP AT i_vbrk.
        CLEAR i_data.
        i_data-erdat = i_vbrk-erdat.  "VBRK is the structure with no Data in it
        i_data-vbeln = i_vbak-vbeln. " replace the Structure with the Proper Table name and their Logic
    Hope That Helps
    Anirban M.

  • Output not printing correctly for BI Publisher report.

    Hi All,
    We have a BI Publisher report which is printing correctly on one printer but not on another printer. The top and right side of the output are getting truncated. Printer type for both the printer is same that is "--PASTA Universal Printer Type" and both are using the same printer driver 'PASTA_PDF' and same style 'PDF Publisher'.
    Please let me know how can I debug the issue.
    Thanks
    Vishalaksha

    Steve- I understand what you are mentioning about the ftp, the XML file looks okay on both server and the client except for the letter 'ü ' and the rest of the German characters prints okay. THe problem is that the BI reprot is printing the same wrong characters.
    --Ravi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Logic 9 - EXS24 Multi Output not working correctly?

    Ok, another EXS24 query from me.
    I have a software instrument track with a multi output EXS24 inserted, I go into the edit panel and assign the output of the kick, snare etc to one of the auxes available. I create an aux track for each of these from the original software track (hitting the + button) and everything is ready to go.
    What is then happening here is that the audio is routed correctly and being played back via each aux track, then it randomly plays each track back out through the main stereo output.
    Is anyone else experiencing this?
    Also whilst on the subject of the sampler. I recall that there was some option on Logic 8 to view which samples were being played from the sampler. When the midi note was triggered in the sequencer or by pressing a midi note on a keyboard the sample name would be highlighted, which was quite handy for instruments with lots of samples. Does anyone know how to turn this on in Logic 9?
    Cheers
    Bryan

    bump!

  • Output not coming right, if we give LIFNR in selection screen

    Hi,
    i have LIFNR in selection screen, when i execute my report without inserting value in it...output is proper coming, but when i insert value in LIFNR, report doesn't display any data...
    please check my code and guide me...
    TABLES : bsik,bkpf,bseg,j_1imovend,lfa1,t001,t005u,bsak,ekko,bsis, ekkn, anla, anlc.
    TYPE-POOLS : slis.
    DATA : BEGIN OF itab OCCURS 0,
           belnr LIKE bsik-belnr, "Document number
           buzei LIKE bseg-buzei, "line item
           hkont LIKE bseg-hkont, "Gl account
           mwskz LIKE bseg-mwskz, "Tax Code
           dmbtr LIKE bseg-dmbtr, "Amount
           ebeln LIKE bseg-ebeln, "Purchasing Document
           ebelp LIKE bseg-ebelp, "line item nbr
           hwbas TYPE i,
           shkzg LIKE bseg-shkzg, "Debit/Credit code
           wrbtr LIKE bseg-wrbtr,
           gjahr LIKE bsik-gjahr, "Fiscal Year
           bldat LIKE bsik-bldat, "Document Date
           budat LIKE bsik-budat, "Posting Date
           lifnr LIKE bsik-lifnr, "Vendor number
           xblnr LIKE mkpf-xblnr, "Ven invoice nbr
           name1(25),                                           "name1
           ort01 LIKE lfa1-ort01, "City
           j_1ilstno LIKE j_1imovend-j_1ilstno,  " Vendor tin nbr
           regio LIKE lfa1-regio, "Region Code
           bezei LIKE t005u-bezei, "Region desc
           bland LIKE t005u-bland,
           tax TYPE p DECIMALS 2,
           matkl LIKE ekpo-matkl,
    END OF itab.
    DATA : x TYPE bseg-lifnr,
           y TYPE j_1imovend-j_1ilstno,
           z TYPE bseg-mwskz,
           a TYPE bseg-hwbas,
           b TYPE t005u-bezei.
    DATA:
    v_bldat TYPE bldat,
    v_budat TYPE budat,
    v_gjahr TYPE gjahr,
    v_lifnr TYPE lifnr,
    v_name1 TYPE name1,
    v_j_1ilstno TYPE j_1ilstno,
    v_bezei TYPE bezei,
    v_ebeln TYPE ebeln,
    v_mwskz TYPE mwskz,
    v_dmbtr TYPE dmbtr,
    v_hwbas TYPE hwbas,
    v_xblnr TYPE xblnr,
    v_buzei TYPE buzei,
    v_wrbtr TYPE wrbtr,
    v_matkl TYPE matkl,
    v_tax TYPE i,
    v_regio TYPE regio,
    v_hkont TYPE hkont.
    DATA : BEGIN OF itab1 OCCURS 0.
            INCLUDE STRUCTURE itab.
    DATA:END OF itab1.
    DATA : BEGIN OF itab2 OCCURS 0.
            INCLUDE STRUCTURE itab.
    DATA : END OF itab2.
    DATA : itab3 LIKE STANDARD TABLE OF itab2 WITH HEADER LINE.
    ***********************************Purchase order history
    DATA:   BEGIN OF bet OCCURS 50.
            INCLUDE STRUCTURE ekbe.
    DATA:   END OF bet.
    DATA:   BEGIN OF bzt OCCURS 50.
            INCLUDE STRUCTURE ekbz.
    DATA:   END OF bzt.
    DATA:   BEGIN OF betz OCCURS 50.
            INCLUDE STRUCTURE ekbez.
    DATA:   END OF betz.
    DATA:   BEGIN OF bets OCCURS 50.
            INCLUDE STRUCTURE ekbes.
    DATA:   END OF bets.
    DATA:   BEGIN OF xekbnk OCCURS 10.
            INCLUDE STRUCTURE ekbnk.
    DATA:   END OF xekbnk.
    DATA : w_container TYPE scrfname VALUE 'CL_GRID',
           w_cprog TYPE lvc_s_layo,
           g_repid LIKE sy-repid,
           w_save TYPE c,
           w_exit TYPE c,
           cl_grid TYPE REF TO cl_gui_alv_grid,
           cl_custom_container TYPE REF TO cl_gui_custom_container,
           it_fld_catalog TYPE slis_t_fieldcat_alv,
           wa_fld_catalog TYPE slis_t_fieldcat_alv WITH HEADER LINE ,
           layout TYPE slis_layout_alv,
           col_pos  LIKE sy-cucol ,
           alvfc TYPE slis_t_fieldcat_alv.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS   : hkont FOR bsis-hkont ."OBLIGATORY.
    SELECT-OPTIONS   : lifnr FOR bsik-lifnr ."OBLIGATORY.
    *PARAMETERS       :  lifnr for bsik-lifnr.
    SELECT-OPTIONS   : belnr FOR bsik-belnr .
    SELECT-OPTIONS   : gjahr FOR bsik-gjahr .
    SELECT-OPTIONS   : bldat FOR bsik-bldat.
    SELECT-OPTIONS   : budat FOR bsik-budat.
    SELECTION-SCREEN : END OF BLOCK b1.
    PERFORM fill_catalog1 USING:
    'HKONT'    'ITAB2'    'G/L',
    'BELNR'    'ITAB2'    'Document Number',
    'BLDAT'    'ITAB2'    'Doc. date' ,
    'BUDAT'    'ITAB2'    'Posting Date',
    'LIFNR'    'ITAB2'    'Vendor',
    'NAME1'    'ITAB2'    'Name',
    'J_1ILSTNO' 'ITAB2'   'TIN No.',
    'BEZEI'     'ITAB2'   'Region',
    'MATKL'    'ITAB2'    'Material Group',
    'EBELN'    'ITAB2'    'Purchasing Document',
    'MWSKZ'    'ITAB2'    'Tax Code',
    'HWBAS'    'ITAB2'    'Base Amount',
    'DMBTR'    'ITAB2'    'Tax Amount',
    'TAX'      'ITAB2'    'Tax Rate',
    'XBLNR'    'ITAB2'    'Vendor Inv. No.'.
    SELECT DISTINCT hkont belnr gjahr bldat budat INTO CORRESPONDING FIELDS OF TABLE itab
                      FROM bsis
                      WHERE bukrs = '1000'
                      AND hkont IN hkont
                      AND belnr IN belnr
                      AND gjahr IN gjahr
                      AND bldat IN bldat
                      AND budat IN budat
                      AND blart <> 'JV'.
    SORT itab BY belnr.
    LOOP AT itab.
      SELECT * FROM bseg WHERE belnr = itab-belnr AND gjahr = itab-gjahr AND bukrs = '1000' AND ( ebeln <> ' ' OR hkont IN hkont ).
        IF sy-subrc = 0.
          itab-buzei = bseg-buzei.
          itab-mwskz = bseg-mwskz.
          IF bseg-ebeln <> ' '.
            itab-ebeln = bseg-ebeln.
            itab-ebelp = bseg-ebelp.
            MODIFY itab.
          ENDIF.
          IF bseg-hkont = itab-hkont.
            itab-shkzg = bseg-shkzg.
            itab-hwbas = bseg-hwbas.
            itab-dmbtr = bseg-dmbtr.
            IF itab-hwbas NE '0'.
              itab-tax = itab-dmbtr / itab-hwbas * 100.
              MODIFY itab INDEX sy-tabix TRANSPORTING tax.
            ENDIF.
            IF itab-shkzg = 'H'.
              itab-dmbtr = itab-dmbtr * ( -1 ).
            ENDIF.
            MOVE-CORRESPONDING itab TO itab2.
            APPEND itab2.
          ENDIF.
        ENDIF.
      ENDSELECT.
    ENDLOOP.
    LOOP AT itab2.
      SELECT SINGLE * FROM ekko WHERE ebeln = itab2-ebeln .
      IF sy-subrc = 0.
        itab2-lifnr = ekko-lifnr.
      ENDIF.
      CALL FUNCTION 'ME_READ_HISTORY'
        EXPORTING
          ebeln  = itab2-ebeln
          ebelp  = itab2-ebelp
          webre  = 'X'
        TABLES
          xekbe  = bet
          xekbz  = bzt
          xekbes = bets
          xekbez = betz
          xekbnk = xekbnk.
      itab2-xblnr = bet-xblnr.
      SELECT SINGLE * FROM lfa1 WHERE lifnr = itab2-lifnr.
      itab2-name1 = lfa1-name1.
      itab2-ort01 = lfa1-ort01.
      itab2-regio = lfa1-regio.
      SELECT SINGLE * FROM t005u WHERE bland = itab2-regio
                                  AND spras = 'EN'
                                  AND land1 = 'IN'.
      itab2-bezei = t005u-bezei.
      SELECT SINGLE * FROM  j_1imovend WHERE lifnr = itab2-lifnr.
      IF sy-subrc = 0 .
        itab2-j_1ilstno = j_1imovend-j_1ilstno.  " Vendor tin nbr
      ENDIF.
      MODIFY itab2.
    ENDLOOP.
    SORT itab2 BY belnr.
    LOOP AT itab2.
      v_dmbtr = v_dmbtr + itab2-dmbtr.
      v_hwbas = v_hwbas + itab2-hwbas.
      v_bldat = itab2-bldat.
      v_budat = itab2-budat.
      v_gjahr = itab2-gjahr.
      v_lifnr = itab2-lifnr.
      v_name1 = itab2-name1.
      v_j_1ilstno = itab2-j_1ilstno.
      v_bezei = itab2-bezei.
      v_ebeln = itab2-ebeln.
      v_mwskz = itab2-mwskz.
      v_xblnr = itab2-xblnr.
      v_buzei = itab2-buzei.
      v_wrbtr = itab2-wrbtr.
      v_matkl = itab2-matkl.
      v_tax   = itab2-tax.
      v_regio = itab2-regio.
      v_hkont = itab2-hkont.
      AT END OF belnr.
        itab2-bldat = v_bldat.
        itab2-budat = v_budat.
        itab2-gjahr = v_gjahr.
        itab2-lifnr = v_lifnr.
        itab2-name1 = v_name1.
        itab2-j_1ilstno = v_j_1ilstno.
        itab2-bezei = v_bezei.
        itab2-ebeln = v_ebeln.
        itab2-mwskz = v_mwskz.
        itab2-dmbtr = v_dmbtr.
        itab2-hwbas = v_hwbas.
        itab2-xblnr = v_xblnr.
        itab2-buzei = v_buzei.
        itab2-wrbtr = v_wrbtr.
        itab2-matkl = v_matkl.
        itab2-tax   = v_tax.
        itab2-regio = v_regio.
        itab2-hkont = v_hkont.
        APPEND itab2 TO itab3.
        CLEAR: itab2, v_dmbtr, v_hwbas, v_bldat, v_budat, v_gjahr, v_lifnr, v_name1, v_j_1ilstno, v_ebeln,
                      v_mwskz, v_xblnr, v_buzei, v_wrbtr, v_matkl, v_tax, v_regio, v_hkont.
      ENDAT.
    ENDLOOP.
    LOOP AT itab3.
      IF itab3-lifnr = ' '.
        SELECT SINGLE lifnr FROM bseg INTO x WHERE belnr = itab3-belnr AND gjahr = itab3-gjahr AND bukrs = '1000' AND koart = 'K'." AND lifnr IN lifnr.
        IF sy-subrc = 0.
          itab3-lifnr = x .
          SELECT SINGLE * FROM lfa1 WHERE lifnr = itab3-lifnr.
          itab3-name1 = lfa1-name1.
          itab3-ort01 = lfa1-ort01.
          itab3-regio = lfa1-regio.
          MODIFY itab3.
        ENDIF.
      ENDIF.
      SELECT SINGLE bezei FROM t005u INTO itab3-bezei WHERE bland = itab3-regio AND spras EQ 'EN' AND land1 EQ 'IN'.
      MODIFY itab3 INDEX sy-tabix TRANSPORTING bezei.
      SELECT j_1ilstno FROM j_1imovend INTO y WHERE lifnr = itab3-lifnr .
        itab3-j_1ilstno = y.
        MODIFY itab3 INDEX sy-tabix TRANSPORTING j_1ilstno .
      ENDSELECT.
      SELECT mwskz FROM bseg INTO z WHERE belnr = itab3-belnr AND gjahr = itab3-gjahr AND bukrs = '1000' .
        MODIFY itab3 INDEX sy-tabix TRANSPORTING mwskz .
      ENDSELECT.
      IF sy-subrc = 0.
        itab3-mwskz = z .
        MODIFY itab3.
      ENDIF.
      IF itab3-hwbas = ' '.
        SELECT wrbtr FROM bseg INTO itab3-hwbas WHERE belnr = itab3-belnr AND gjahr = itab3-gjahr AND bukrs = '1000' AND buzei = '2'.
          MODIFY itab3 INDEX sy-tabix TRANSPORTING wrbtr.
        ENDSELECT.
      ENDIF.
      SELECT matkl FROM ekpo INTO itab3-matkl WHERE ebeln = itab3-ebeln .
        MODIFY itab3 INDEX sy-tabix TRANSPORTING matkl .
      ENDSELECT.
      SHIFT itab3-lifnr LEFT DELETING LEADING '0'.                  " For Removing 0's
      SHIFT itab3-hkont LEFT DELETING LEADING '0'.                  " For Removing 0's
      MODIFY itab3.
      IF itab3-hwbas NE '0'.
        itab3-tax = itab3-dmbtr / itab3-hwbas * 100.
        MODIFY itab3 INDEX sy-tabix TRANSPORTING tax.
      ENDIF.
    ENDLOOP.
    layout-zebra = 'X' .
    layout-colwidth_optimize(1) = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program = 'ZFI_LP07'
        is_layout          = layout
        it_fieldcat        = it_fld_catalog
        i_default          = 'X'
        i_save             = 'A'
      TABLES
        t_outtab           = itab3
      EXCEPTIONS
        program_error      = 1
        OTHERS             = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *&      Form  FILL_CATALOG1
          text
         -->P_FIELDNAME  text
         -->P_REF_TABLE  text
         -->P_SCRTEXT    text
    FORM fill_catalog1  USING   p_fieldname TYPE any
                                p_ref_table TYPE any
                                p_scrtext   TYPE any.
      CLEAR : wa_fld_catalog.
      wa_fld_catalog-fieldname  = p_fieldname.
      wa_fld_catalog-tabname    = p_ref_table.
      wa_fld_catalog-seltext_s  = p_scrtext.
      wa_fld_catalog-seltext_m  = p_scrtext.
      wa_fld_catalog-seltext_l  = p_scrtext.
    wa_fld_catalog-datatype = 'CURR'.
      wa_fld_catalog-outputlen = 20.
      APPEND wa_fld_catalog TO it_fld_catalog.
    ENDFORM.                    " fill_catalog1.
    Thanks

    Hi Anil,
    check for the availability of records for values entered in selection screen lifnr..
    select single lifnr
    into wa_lifnr
    from lfa1
    where lifnr in s_lifnr.
    check sy-subrc.
    Regards,
    Mdi.Deeba

  • Customer prices are not coming correctly!!!

    Hi Experts,
    Question: "Changes made in customer prices in ECC, how it gets replicated to ECO ISA application?".
    We have maintained customer specific condition records in ECC. Also, list prices have been maintained in product catalog.
    WIth replication of product catalog to TREX, we can see latest list prices in webshop product catalog.
    But changes done in customer specific pricing condition records are not appearing in web shop.
    Now, If we restart VMC then we can see latest customer prices in web shop. But this is not solution as we cannot restart VMC on every change of customer pricing condition record.
    Please explain process on how webshop access customer pricing condition records?
    (We know that webshop gets prices with using pricing procedure determination using rfc call, then why it could not able to access correct condition record after change in condition record?).
    Please help.
    Thank you,
    Dhanraj

    Dear Friends,
                    Thanks for your reply. In copy control from delievery to billing,settings are as follows,
             Pricing type:- G
             Coping requirement:-004
             Data VBRK/VBRP:-007
      Users enter prices manually when they prepare sales order.Condition category is empty in condition type.
      Looking forward for your reply.
    Regard,s
    Abhijeet

  • Output not coming properly in SF

    Hi all,
    This is the select stmt i have written in the Program lines of Smartform.
    SELECT  VKORG  VBELN  FKTYP  VTWEG
                   FROM VBRK
                   INTO TABLE ITAB
                   WHERE  VBELN BETWEEN '0090022987'   AND
                   '0090023500'.
    but i am geting the output like this, even though i have all the records
    in the VBRK  Table.
    VKORG      VBELN               FKTYP             VTWEG
                     0090022987          1
                     0090022988          R
                     0090022989          R
                     0090022990          R
                     0090022991          R
    But the Actual values of  FKTYP are
    1000 ,but in the output it is appearing as 1
    R300, but in the output it is appearing as R.
    and rest of fields(vkorg vtweg) are not displaying.
    What could be the cause of Error ?
    Thanks in advance
    Krupali...

    Hello KR
    Check your table or template cell width . Make them wider.
    This is surely happening because of your table/template's cell size. Make it more broder so that the values and text doesn't break.
    Regards
    Swetha
    Edited by: Swetha on May 28, 2008 7:39 AM

  • Print output not coming from ECC 5.0

    Hi all,
    Following are the settings done in my system
    In SPAD -> Device attributes
    Device Type              SWIN SWIN     : Windows printing via SAPlpd         
    Spool Server             sapdev_DEV_00         SAPTRANS                       
                                   135.147.150.178                                      
    Device Class              Standard printer                                                                               
    Model         hp LaserJet 1010                                                
    Location      135.147.150.178                                                 
    Message       Laser jet printer                                               
    SPAD -> Access Method
    Host Spool Access Method     U U: Print Using Berkeley Protocol                                                                               
    Host printer                            DEFAULT                                                                               
    Destination host                     135.147.150.178                                  
    .when i shoot a printoutput SAPLD is launched and it says
    (12:06:25 PM) Number of processors: 2
    (12:06:25 PM) Icon DLL loaded.
    (12:06:25 PM)
    (12:06:25 PM) Network Communication via SAP-NiLib
    (12:06:25 PM) Hostname : IT08
    (12:06:25 PM) IP Address: 135.147.150.178
    (12:06:25 PM)
    (12:06:25 PM) SAPLPD Version 6.28 for Windows/NT (OPT) is listening
    (12:06:25 PM) OS-Info: version = 5.1, build = 0/2600, text = Service Pack 2
    (12:06:25 PM) Copyright © 1992-2001 SAP AG
    (12:06:25 PM)
    (12:06:34 PM)
    (12:06:34 PM) Receive job for printer __default (Berkeley LPD protocol / RFC1179)
    (12:06:34 PM) send_status called
    (12:06:34 PM) send_status called
    (12:06:34 PM) send_status called
    (12:06:34 PM) send_status called
    (12:06:34 PM) send_status called
    (12:06:34 PM) Job 000000969800002.DEV for user ABAP03 queued.
    (12:06:34 PM) Job 000000969800002.DEV (raw) started on printer HP LASERJET 1010 SERIES DRIVER
    (12:06:35 PM) Job 000000969800002.DEV (raw) with 1881 bytes finished
    but the output is a blank page with just these words in O/P   :
    Unsupported personality  : PCL
    Eagerly waiting for the answers,
    Sachin Soni

    Hi,
    change access method from berkely to F or G . if you are intrested in Frontend printing , you need not give the IP address of the printer. __default will select the default printer of the Workstation from which GUI is operated.
    Thanks,
    Tanuj

Maybe you are looking for

  • How do i erase photos in iPAD2 camera roll and photo stream?

    Anyone here knows how i can delete or erase photos in iPAD2's camera roll and photo stream? Please advise asap. Thanks.

  • How do i get fullscreen photoes during incoming calls

    After updating my iphone 5 to iOS 7.1 a callers photo became small and i would like to have a fullscreen photo back. is possible?

  • Erratic printer

    Yesterday I was printing a letter and it printed every other page--leaving a blank page in between.  Today, while printing envelopes, if I ordered 10, it would first shoot out 10 blank envelopes and then print 10...whatever number i used, the printer

  • Writing JAXRPC Object to XML Stream  by using LiteralObjectSerializerBase

    I am trying to write the JAX-RPC object to a file before I dispatch it to the service provider. What I currently have is : QName type = new QName("http://solms.co.za/utils/appsupport", "LicenseRequest"); XMLWriter writer = XMLWriterFactory.newInstanc

  • Flex or Flash and SAP integration

    Hello All,      I am in a requirement in which i need to connect to SAP server and fetch data from it and display back in Flex builder. I am a bit familiar with Flash Island intro but not much. So my question is what are the possible way we can fetch