Code correction...

Dear Guru's
Below is the code i wrote to fetch some data.....
IST_DATA being my output table.....its taking a lot of time to execute. Can any one help me out weather i can wright it in any better way??
Data declration...
TYPES: BEGIN OF TY_DATA,
        MATNR LIKE VBRP_VRPMA-MATNR,
        FKDAT LIKE VBRP_VRPMA-FKDAT,
        KUNAG LIKE VBRP_VRPMA-KUNAG,
        VBELN LIKE VBRP_VRPMA-VBELN,
        FKIMG LIKE VBRP_VRPMA-FKIMG,
        VRKME LIKE VBRP_VRPMA-VRKME,
        MEINS LIKE VBRP_VRPMA-MEINS,
        FKLMG LIKE VBRP_VRPMA-FKLMG,
        NTGEW LIKE VBRP_VRPMA-NTGEW,
        VGBEL LIKE VBRP_VRPMA-VGBEL,
        AUBEL LIKE VBRP_VRPMA-AUBEL,
        ARKTX LIKE VBRP_VRPMA-ARKTX,
        WERKS LIKE VBRP_VRPMA-WERKS,
        WKREG LIKE VBRP_VRPMA-WKREG,
        BWTAR LIKE VBRP_VRPMA-BWTAR,
        OIC_DREGIO LIKE VBRP_VRPMA-OIC_DREGIO,
        FKSTO LIKE VBRK-FKSTO,
        KNUMV LIKE VBRK-KNUMV,
        EXNUM   LIKE J_1IEXCDTL-EXNUM,       "Excise No.
        EXBED   LIKE J_1IEXCDTL-EXBED,       "BED
        EXAED   LIKE J_1IEXCDTL-EXAED,       "AED
        EXSED   LIKE J_1IEXCDTL-EXSED,       "SED
        ECS     LIKE J_1IEXCDTL-ECS,         "CESS
    EXADDTAX1 LIKE J_1IEXCDTL-EXADDTAX1,        SHNUMBER LIKE OIGSI-SHNUMBER,     
        VEHICLE  LIKE OIGSV-VEHICLE,         "Truck No.
        KNUMP  LIKE LIKP-KNUMP,
        KNUMV1 LIKE VBRK-KNUMV,
        VBELN1  LIKE VBFA-VBELN,
        MBLNR   LIKE MSEG-MBLNR,
        MJAHR   LIKE MSEG-MJAHR,
        BELNR   LIKE BKPF-BELNR,            "PGI Acct Doc. No.
        KBETR   LIKE KONV-KBETR,
        KWERT   LIKE KONV-KWERT,             "Freight
        KWERT1  LIKE KONV-KWERT,             "Base Value
        KPEIN   LIKE KONV-KPEIN,
        KMEIN   LIKE KONV-KMEIN,
        INV_VAL LIKE KONV-KWERT,             "Invoice Value
        AWKEY_C LIKE BKPF-AWKEY,
        VERPR LIKE MBEW-VERPR,
        VMPEI LIKE MBEW-VMPEI,
        GJAHR LIKE BKPF-GJAHR,
        OTHERS LIKE KONV-KWERT,
        HKONT LIKE BSIS-HKONT,
        BSCHL LIKE BSIS-BSCHL,
        DMBTR LIKE BSIS-DMBTR,
        BUZID LIKE BSIS-BUZID,
       END OF TY_DATA.
TYPES: BEGIN OF TY_BSIS,
        GJAHR LIKE BSIS-GJAHR,
        BELNR LIKE BSIS-BELNR,
        HKONT LIKE BSIS-HKONT,
        BSCHL LIKE BSIS-BSCHL,
        DMBTR LIKE BSIS-DMBTR,
        BUZID LIKE BSIS-BUZID,
       END OF TY_BSIS.
TYPES: BEGIN OF TY_VBRK,
        FKSTO LIKE VBRK-FKSTO,
        KNUMV LIKE VBRK-KNUMV,
       END OF TY_VBRK.
DATA : BEGIN OF IST_DMBTR OCCURS 0,
         BELNR  LIKE  BSIS-BELNR,
         GJAHR  LIKE  BSIS-GJAHR,
         DMBTR  LIKE  BSIS-DMBTR,
       END   OF IST_DMBTR.
DATA: IST_DATA TYPE TY_DATA OCCURS 0 WITH  HEADER LINE.
DATA: IST_BSIS TYPE TY_BSIS OCCURS 0 WITH HEADER LINE.
DATA: IST_VBRK TYPE TY_VBRK OCCURS 0 WITH HEADER LINE.
The code.
  SELECT MATNR FKDAT KUNAG VBELN FKIMG VRKME MEINS FKLMG NTGEW VGBEL
         AUBEL ARKTX WERKS WKREG BWTAR OIC_DREGIO
         FROM VBRP_VRPMA
         INTO CORRESPONDING FIELDS OF TABLE IST_DATA
         WHERE FKDAT IN S_FKDAT
           AND VBELN IN S_VBELN
           AND WERKS IN S_WERKS
           AND WKREG IN S_WKREG
           AND MATNR IN S_MATNR
           AND BWTAR IN S_BWTAR
           AND KUNAG IN S_KUNAG
           AND OIC_DREGIO IN S_OIC_D
           AND FKART EQ 'ZSTO'.
  IF IST_DATA[] IS NOT INITIAL.
    LOOP AT IST_DATA.
      CLEAR : WA_VALUE.
      SELECT SINGLE FKSTO KNUMV FROM VBRK INTO
             (IST_DATA-FKSTO, IST_DATA-KNUMV)
             WHERE VBELN EQ IST_DATA-VBELN
               AND FKSTO NE 'X'.
    SELECT SINGLE EXNUM EXBED EXAED EXSED ECS EXADDTAX1 FROM J_1IEXCDTL
          INTO (IST_DATA-EXNUM, IST_DATA-EXBED, IST_DATA-EXAED,
                IST_DATA-EXSED, IST_DATA-ECS, IST_DATA-EXADDTAX1)
          WHERE RDOC2 = IST_DATA-VBELN.
      SELECT SINGLE SHNUMBER FROM OIGSI INTO IST_DATA-SHNUMBER
             WHERE DOC_NUMBER = IST_DATA-VGBEL.
      SELECT SINGLE VEHICLE FROM OIGSV INTO IST_DATA-VEHICLE
             WHERE SHNUMBER = IST_DATA-SHNUMBER.
      SELECT SINGLE KNUMP FROM LIKP INTO IST_DATA-KNUMP
             WHERE VBELN = IST_DATA-VGBEL.
      SELECT SINGLE KNUMV FROM EKKO INTO IST_DATA-KNUMV1
             WHERE EBELN = IST_DATA-AUBEL.
      SELECT SINGLE VBELN FROM VBFA INTO IST_DATA-VBELN1
             WHERE VBELV = IST_DATA-VGBEL
               AND VBTYP_N = 'R'.
      SELECT SINGLE MBLNR MJAHR FROM MSEG INTO (IST_DATA-MBLNR,
                   IST_DATA-MJAHR) WHERE MBLNR = IST_DATA-VBELN1
                                     AND OIVBELN = IST_DATA-VGBEL.
      CONCATENATE IST_DATA-MBLNR IST_DATA-MJAHR INTO IST_DATA-AWKEY_C.
      SELECT SINGLE BELNR GJAHR FROM BKPF INTO (IST_DATA-BELNR,
         IST_DATA-GJAHR)
             WHERE AWKEY = IST_DATA-AWKEY_C.
      IF SY-SUBRC EQ 0.
   SELECT SINGLE HKONT BSCHL DMBTR BUZID FROM BSIS INTO (IST_DATA-HKONT,
   IST_DATA-BSCHL, IST_DATA-DMBTR, IST_DATA-BUZID)
                 WHERE BELNR = IST_DATA-BELNR
                   AND GJAHR = IST_DATA-GJAHR.
        IF IST_DATA-BSCHL = '99' AND IST_DATA-BUZID = 'M'.
          IST_DATA-KBETR = IST_DATA-DMBTR.
        ENDIF.
        IF IST_DATA-BSCHL = '50' AND IST_DATA-BUZID = 'F'
          AND IST_DATA-HKONT = '0000162011'
           OR IST_DATA-HKONT = '0000162010'.
           IST_DATA-KWERT = IST_DATA-DMBTR.
        ENDIF.
        SELECT SUM( DMBTR ) FROM BSIS INTO IST_DATA-OTHERS
           WHERE HKONT NOT IN ('0000162011', '0000162010', '0000345700',
                               '0000345600', '0000365170')
                AND BELNR = IST_DATA-BELNR
                AND GJAHR = IST_DATA-GJAHR.
      ENDIF.
    IST_DATA-INV_VAL = IST_DATA-KBETR + IST_DATA-EXBED + IST_DATA-EXAED
                       + IST_DATA-EXSED + IST_DATA-ECS +
                       IST_DATA-EXADDTAX1 + IST_DATA-KWERT.
      MODIFY IST_DATA.
      CLEAR  IST_DATA.
Thank U in advance.

Hello.
After analysing your code I can see problems in some queries (not using key):
1 - VBRP_VRPMA: OK (corresponding fields is not a BIG problem)
2 - VBRK: OK
3 - J_1IEXCDTL: NOT OK -> try to use index 007, which has TRNTYP and RDOC2.
4 - OIGSI: OK, using index DOC (doc_number)
5 - OIGSV: OK
6 - LIPS/EKKO/VBFA/MSEG: OK
7 - BKPF: NOT OK -> try to use index 4, which has AWTYP and AWKEY
8 - BSIS 1st: NOT OK -> try to use index 1, which has BUKRS, BELNR and GJAHR.
9 - BSIS 2nd: NOT OK -> try to use index 1, which has BUKRS, BELNR and GJAHR. Also, probably HKONT NOT IN can make a bad query too. Analyse in ST05 the difference between as it is and verifiing after query that field (removing in select).
When I say try to use, look at the bold field. Is the one you are not using. For example, even if you have 10 bukrs, insert the list like (and BUKRS IN ('BUK1','BUK2',...,'BUK10').
Believe me, this will make the difference.
Regards.
Valter Oliveira.

Similar Messages

  • Dbx cannot locate the (DLM) source codes correctly for 64bit app

    It's hard for me to prepare a test case. Because it seems for a simple "hello world" it works.
    The reason I raise this issue here is because my project was recently upgraded to compile with 64bit. And since then dbx cannot locate the source codes correctly, especially for some DLM codes. (sometimes it shows to "/usr/include/iso/..." which it should never be!). While it works fine on a 32bit compiled mode.
    Did anyone experience the similar situation and can share your idea?
    Thanks in advance.

    Can't think of any good reason why going to 64 bit would confuse dbx (except for unknown bug in dbx, which is not impossible).
    I'd first look for changes in your build - for example, 32-bit code used to go to bin/ directory, but 64-bit goes to bin/sparcv9, which happens to be a symlink somewhere else or something like that. Symlinks might sometimes confuse dbx, please read
    (dbx) help finding-filestopic (in dbx console, type "help finding-files").
    Since you are using CC 5.9 that generates DWARF info by default, location and even presence of .o files is not important. All debug info should be in the shared library itself.
    Here's another idea: inspect DWARF info by hand and see if it looks correct to you.
    $ dwarfdump a.out | lessLook for
                    DW_AT_name                  a.ccand
                    DW_AT_comp_dir              /home/maxim/tempThose two should give location of source file (/home/maxim/temp/a.cc in my case). Maybe this will give you some clue.

  • SNOTE (Note Assistant) list expected "source code corrections" of a note?

    Is it possible, in current versions of SNOTE, to print the "source code corrections" that the note is supposed to contain?
    This was possible in "good old OSS" and also, I think, in early versions of SNOTE.
    Why do I ask?
    Sometimes you have a note that SNOTE cannot handle by itself. You must then open the "splitscreen editor" and guide SNOTE through the process.
    In such cases I like to have a listing, on paper, of the expected changes, so that I keep some overview and that I can check the corrections as I go through them.

    I have found a second possibility - the following little program based on some code found in the 4.6C implementation of SNOTE.
    report  zztmp_snote_displ line-size 080.
    type-pools bcwbn.
    parameter p_note like cwbnthead-numm.
    data gs_note type bcwbn_note.
    start-of-selection.
      clear gs_note.
      select numm versno
        from  cwbnthead
        into (gs_note-key-numm,gs_note-key-versno)
             where  numm        = p_note
             and    incomplete  = space
             order by primary key.
      endselect.
      if not ( gs_note-key is initial ) .
        call function 'SCWB_NOTE_READ'
          exporting
            iv_read_attributes                = 'X'
            iv_read_short_text                = 'X'
            iv_read_all_texts                 = 'X'
            iv_read_validity                  = 'X'
            iv_read_corr_instructions         = 'X'
            iv_read_customer_logfile          = 'X'
            iv_use_fallback_languages         = 'X'
            iv_read_loghndl                   = 'X'
            iv_read_fixes                     = 'X'
            iv_read_customer_attributes       = 'X'
    *   IV_READ_READ_BY_USER              = ' '
    *   IV_READ_SOL_MGR_REFERENCE         = ' '
    *   IV_READ_SAP_STATUS                = ' '
          changing
            cs_note                           = gs_note
          exceptions
            note_not_found                    = 1
            language_not_found                = 2
            unreadable_text_format            = 3
            corr_instruction_not_found        = 4
            others                            = 5
        if sy-subrc eq 0.
          call function 'SCWB_NOTE_DISPLAY'
            changing
              cs_note = gs_note.
        endif.
      endif.

  • Firefox on 2 independant laptops, not reading website source code correctly, when all correct on Chrome and IE.

    Rebuilt my website in Serif WebPlus X6.<br />
    Using Google Chrome or Internet Explorer the site is displayed correctly as is the source code.<br />
    In Firefox 18.0.1 Code is being read wrongly. Cleared Cache and fault still there. Checked in Wifes laptop – still the same fault on her Firefox and okay on Chrome and IE.<br />
    Code should read - span class="Body-C-C9">“Why won’t the doctors listen”?<pre><nowiki></span></p>
    But firefox is showing - span class="Body-C-C9">“Why won’t the doctors listen”?</span></p></nowiki></pre>
    There are further similar faults throughout the website.<br />
    Why is Firefox not reading the code correctly?<br />
    Please help.

    That is an encoding issue.<br />
    It looks that the page is in UTF-8 Unicode and the server sends this page as a Western or Windows encoding.<br />
    So you see the Unicode characters as the individual bytes that they consist of.
    You can inspect this in Tools > Page Info > General and you can also use the Web Console (Web Developer > Web Console;Ctrl+Shift+K) to check the response header.<br />
    If the server sends a content type via the HTTP response headers then Firefox doesn't honor a meta tag in the file or otherwise switch the encoding.
    *https://developer.mozilla.org/en/Properly_Configuring_Server_MIME_Types

  • How  can i run this code correctly?

    hello, everybody:
        when  i run the code, i found that it dons't work,so ,i  hope somebody can help me!
        the Ball class is this :
        package {
        import flash.display.Sprite;
        [SWF(width = "550", height = "400")]
        public class Ball extends Sprite {
            private var radius:Number;
            private var color:uint;
            private var vx:Number;
            private var vy:Number;
            public function Ball(radius:Number=40, color:uint=0xff9900,
            vx:Number =0, vy:Number =0) {
                this.radius= radius;
                this.color = color;
                this.vx = vx;
                this.vy = vy;
                init();
            private function init():void {
                graphics.beginFill(color);
                graphics.drawCircle(0,0,radius);
                graphics.endFill();
    and the Chain class code is :
    package {
        import flash.display.Sprite;
        import flash.events.Event;
        [SWF(width = "550", height = "400")]
        public class Chain extends Sprite {
            private var ball0:Ball;
            private var ball1:Ball;
            private var ball2:Ball;
            private var spring:Number = 0.1;
            private var friction:Number = 0.8;
            private var gravity:Number = 5;
            //private var vx:Number =0;
            //private var vy:Number = 0;
            public function Chain() {
                init();
            public function init():void {
                ball0  = new Ball(20);
                addChild(ball0);
                ball1 = new Ball(20);
                addChild(ball1);
                ball2 = new Ball(20);
                addChild(ball2);
                addEventListener(Event.ENTER_FRAME, onEnterFrame);
            private function onEnterFrame(event:Event):void {
                moveBall(ball0, mouseX, mouseY);
                moveBall(ball1, ball0.x, ball0.y);
                moveBall(ball2, ball1.x, ball1.y);
                graphics.clear();
                graphics.lineStyle(1);
                graphics.moveTo(mouseX, mouseY);
                graphics.lineTo(ball0.x, ball0.y);
                graphics.lineTo(ball1.x, ball1.y);
                graphics.lineTo(ball2.x, ball2.y);
            private function moveBall(ball:Ball,
                                      targetX:Number,
                                      targetY:Number):void {
                ball.vx += (targetX - ball.x) * spring;
                ball.vy += (targetY - ball.y) * spring;
                ball.vy += gravity;
                ball.vx *= friction;
                ball.vy *= friction;
                ball.x += vx;
                ball.y += vy;
    thanks every body's help!

    ok, thanks for your reply ! I run this code in the Flex builder 3!and the Ball class and the Chain class are all in the same AS project!
      and i changed the ball.pv property as public in the Ball class, and  the Chain class has no wrong syntactic analysis,but the AS code don't run.so this is the problem.
    2010-04-21
    Fang
    发件人: Ned Murphy <[email protected]>
    发送时间: 2010-04-20 23:01
    主 题: how  can i run this code correctly?
    收件人: fang alvin <[email protected]>
    I don't see that the Ball class has a pv property, or that you even try to access a pv property in the Chain class.  All of the properties in your Ball class are declared as private, so you probably cannot access them directly.  They would need to be public.  Also, I still don't see where you import Ball in the chain class such that it can use it.

  • I have an itunes gift card which I cannot redeem.  I enter the code correctly and am prompted to sign in over and over again.  I have tried resetting the iPhone but the laptop I had itunes on is broken, is there another way?

    I have an itunes gift card which I cannot redeem.  I enter the code correctly and am prompted to sign in over and over again.  I have tried resetting the iPhone but the laptop I had itunes on is broken, is there another way?

    See this support article:
    http://support.apple.com/kb/TS1292
    If you can't get to work after perusing that page, contact the iTunes Store Support; instructions are at the bottom of that article.
    Good luck.

  • TS1292 I am having trouble with my iTunes Gift card code. It says I have not entered the code correctly when I have-repeatedly. How can I redeem my iTunes voucher?

    I am having trouble with my iTunes Gift card code. It says I have not entered the code correctly when I have…repeatedly. How can I redeem my iTunes voucher?

    If the card was issued in the same country as you and your account are based and the page that you posted from doesn't help, then you will need to try contacting iTunes Support (you will probably need to give them images of the front and back of the card, and possibly its receipt) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then iTunes Cards And Codes

  • How do I combine two actions in code correctly?

    I figured out how to create my  playback controls, however I still have a problem.  I want to have an  additional button that links to a website (I have coded this correctly  with actionscript and works great.  Now I have two seperate  projects...one project has my playback controls and the other has a  button that links to a website.
    I am having problems combining both action  script codes and having everything working properly.  My code for each  is below.  How do I arrange them into one?
    Code for link to website:
    website_btn.addEventListener(MouseEvent.CLICK,gotoWebsite);
    function  gotoWebsite(evtObj:Event):void{
        var theSite:URLRequest =  new URLRequest("http://www.website.com");
         navigateToURL(theSite,"_blank");
    Code  for playback controls:
    go.addEventListener(MouseEvent.CLICK,startplaying);
    hault.addEventListener(MouseEvent.CLICK,stopplaying);
    function  startplaying(event:MouseEvent):void{
        play();
    function  stopplaying(event:MouseEvent):void{
        stop();

    the only way that could make sense is to use:
    go.addEventListener(MouseEvent.CLICK,startplaying);
    hault.addEventListener(MouseEvent.CLICK,stopplaying);
    function  startplaying(event:MouseEvent):void{
        play();
    var theSite:URLRequest =  new URLRequest("http://www.website.com");
         navigateToURL(theSite,"_blank");
    function  stopplaying(event:MouseEvent):void{
        stop();
    var theSite:URLRequest =  new URLRequest("http://www.website.com");
         navigateToURL(theSite,"_blank");

  • ** RFC to JDBC scenario - Need not source code - Correct ?

    Hi Friends,
    I am doing RFC to JDBC scenario. It is a synchronous scenario. I think it is need not required to write any code in the source code tab of  RFC. Is it correct ...? (Only Import and Export parameters are enough.)
    Kindly reply, friends.
    Kind Regards,
    Jeg P.

    Hi,
    RFC needs only configuration and we  will call remote method in R/3. Actual logic present in R/3.
    Thanks,
    RamuV

  • Small code correction

    I am new in Java, I need help for small correction of applet code(I'm not confident how to make this correctly)- I need clean a popup banner at applet loading. The about part , which appears by click on 'about' button, can be left without changes, it does not prevent me.
    Part of a code containing a popup:
    import a.*;
    import java.applet.Applet;
    import java.applet.AppletContext;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.*;
    public final class dbView extends Applet
    implements Runnable, ActionListener, o, ItemListener
    public void stop()
    if(A != null)
    A.dispose();
    if(t != null)
    t.dispose();
    private void _mthvoid()
    B = a.i.a(getClass(), "Begin.gif");
    e = a.i.a(getClass(), "Right.gif");
    z = a.i.a(getClass(), "Left.gif");
    u = a.i.a(getClass(), "End.gif");
    b = a.i.a(getClass(), "Redo.gif");
    J = a.i.a(getClass(), "Binocular.gif");
    m = a.i.a(getClass(), "Home.gif");
    MediaTracker mediatracker = new MediaTracker(this);
    mediatracker.addImage(B, 0);
    mediatracker.addImage(e, 0);
    mediatracker.addImage(z, 0);
    mediatracker.addImage(u, 0);
    mediatracker.addImage(b, 0);
    mediatracker.addImage(J, 0);
    mediatracker.addImage(m, 0);
    try
    mediatracker.waitForAll();
    catch(InterruptedException interruptedexception) { }
    private int _mthdo(String s1, String s2)
    return s1.indexOf(s2);
    public String getAppletInfo()
    return "Name: Beer Viewer.java\r\nLager Beer: 1.01\r\nPromouter: Best Beer\r\nBest Beer in the world!\r\nFamous light brand.\r\nLegendary Lager Beer\r\ne-mail: [email protected]";
    private void a(Graphics g1)
    g1.setColor(Color.white);
    g1.drawString("Best Beer in the world!", 125, 260);
    g1.drawString("Famous light brand.", 125, 270);
    g1.drawString("Legendary Lager Beer", 125, 280);
    g1.drawString("e-mail: [email protected]", 125, 290);
    private final void _mthfor(String s1)
    if(s1 == null || s1.length() == 0)
    d = false;
    StringBuffer stringbuffer = new StringBuffer();
    stringbuffer.append("Beer Viewer\n");
    if(d)
    stringbuffer.append("Ask for beer: ").append(s1).append("\n");
    stringbuffer.append("Best Beer in the world!, Famous light brand\n");
    stringbuffer.append("Legendary Lager Beer\n");
    stringbuffer.append("Codebase: ").append(getCodeBase().toString()).append("\n");
    stringbuffer.append("Documentbase: ").append(getDocumentBase().toString()).append("\n");
    k = stringbuffer.toString();
    if(d)
    o = new c(this, k);
    private void f()
    remove(q);
    q.invalidate();
    _mthvoid();

    yes

  • ABAP Code Corrections

    Hi Experts
    Please correct the ABAP CODE written as Field routine in Transformations
    Requirment
    If ZB_AMT = '0.00'
    then result should be '0.00'
    If ZB_AMT '0.00' and
    SOURCE_FIELDS-/BIC/ZB_TPE1 = 'AMOUNT'
    the result should be
    CONCATENATE '$' SOURCE_FIELDS-/BIC/ZB_AMT INTO RESULT.
    If ZB_AMT '0.00' and
    SOURCE_FIELDS-/BIC/ZB_TPE1 = 'PERCENTAGE'
    the result should be
    CONCATENATE SOURCE_FIELDS-/BIC/ZB_AMT '%' INTO RESULT.
    The code below is not working as it should please update me where i went wrong
    Source Fields
    SOURCE_FIELDS-/BIC/ZB_AMT (CHAR)
    SOURCE_FIELDS-/BIC/ZB_TPE1 (CHAR)
    CODE
    IF SOURCE_FIELDS-/BIC/ZB_AMT = '0.00'.
    RESULT = '0.00'.
    ELSE.
    IF SOURCE_FIELDS-/BIC/ZB_TPE1 = 'AMOUNT' AND
    SOURCE_FIELDS-/BIC/ZB_AMT '0.00'.
    CONCATENATE '$' SOURCE_FIELDS-/BIC/ZBON_AMT INTO RESULT.
    IF SOURCE_FIELDS-/BIC/ZB_TPE1 = 'PERCENTAGE' AND
    SOURCE_FIELDS-/BIC/ZB_AMT '0.00'.
    CONCATENATE SOURCE_FIELDS-/BIC/ZB_AMT '%' INTO RESULT.
    ENDIF.
    ENDIF.
    ENDIF.

    If ZB_AMT '0.00' and
    SOURCE_FIELDS-/BIC/ZB_TPE1 = 'AMOUNT'
    the result should be
    CONCATENATE '$' SOURCE_FIELDS-/BIC/ZB_AMT INTO RESULT.
    If ZB_AMT '0.00' and
    SOURCE_FIELDS-/BIC/ZB_TPE1 = 'PERCENTAGE'
    the result should be
    CONCATENATE SOURCE_FIELDS-/BIC/ZB_AMT '%' INTO RESULT.
    if zb_amt = '0.00' and SOURCE_FIELDS-/BIC/ZB_TPE1 = 'AMOUNT'.
    CONCATENATE '$' SOURCE_FIELDS-/BIC/ZB_AMT INTO RESULT.
    endif.
    if zb_amt = '0.00' and SOURCE_FIELDS-/BIC/ZB_TPE1 = 'PERCENTAGE'.
    CONCATENATE SOURCE_FIELDS-/BIC/ZB_AMT '%' INTO RESULT.
    endif.
    you can use a case statement as well
    if zb_amt = '0.00'.
    case SOURCE_FIELDS-/BIC/ZB_TPE1.
    when 'AMOUNT'.
    CONCATENATE '$' SOURCE_FIELDS-/BIC/ZB_AMT INTO RESULT.
    when 'PERCENTAGE'.
    CONCATENATE SOURCE_FIELDS-/BIC/ZB_AMT '%' INTO RESULT.
    endcase.
    endif.

  • TS1292 I have entered the code correctly four times and I am being told the card was not activated correctly or something. What do I do?

    I purchased an iTunes card, I have entered to code four times correctly, it then told me the card was not activated correctly. What do I do?

    If it's saying that it hasn't been activated properly then are you able to take it back to the store that you bought it from and ask them to activate it properly ? If not then you will need to try contacting iTunes Support (you will probably need to give them images of the front and back of the card, and possibly its receipt) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then iTunes Cards And Codes

  • Payroll Log, correction code, correction indicators

    Hi Gurus Please help me with the below question thanks for your valuable time?<br />
    What is a Payroll Log ?
    What is a correction indicator which is assigned to infotype 0003?
    What is a payroll correction run code '" w "?
    Thanks for your valuable time for reading the question and replying to it, please explain with examples...
    Warm Regards,
    Zulfikarlos
    A simple search in the forum will helps you to find out the answers
    Edited

    Hi Zulfikarlos,
    Payroll Log: It shows the entry and output of wagetypes in pcr's. Here you can see how the wage type has been evaluated, calculated etc. It also shows whether there is any error in payroll run for the employee. Normally when payroll is run for large number of employees you shall not display payroll log as it can cause runtime error. But even you do not choose payroll log when you run payroll payroll log will be displayed for employees who have error in payroll.
    About correction run code and correction indicator in SAP help i says:
    "The system sets the Payroll correction indicator if an employee is rejected by the payroll program because of errors in his or her master or time data. The personnel numbers of employees rejected by the payroll program are written to matchcode W on the basis of the Payroll correction indicator. If you want to delete the rejected employee from matchcode W, you can do so by deactivating the Payroll correction indicator ."
    http://help.sap.com/saphelp_40b/helpdata/en/48/35c7f74abf11d18a0f0000e816ae6e/content.htm

  • Code correction, please!

    Hi,
    The following code throws an error. Correct it please.
    myGrid.addEventListener(Event:ListEvent.ITEM_CLICK, gridItemClick);
    function gridItemClick (e:ListEvent):void{
    var urlR:URLRequest=new URLRequest(e.target.getItemAt(e.rowIndex).PDF)
    navigateToURL(urlR, "_blank");
    I am getting the followign error:
    1084: Syntax error: expecting rightparen before colon.
    And it highlights the following line:
    myGrid.addEventListener(Event:ListEvent.ITEM_CLICK, gridItemClick);
    Thanks.

    myGrid.addEventListener(ListEvent.ITEM_CLICK, gridItemClick);

  • Dreamweaver not displaying PHP code correctly

    I'm new to PHP, but have used DreamWeaver for a while for
    static and .asp pages. A 3rd party coder developed a site in PHP,
    and it's up to me to populate it. When I open any of the pages in
    DreamWeaver it doesn't look remotely how it renders on the web, and
    makes it difficult to manipulate in "design view." Everything runs
    down the right side of the page and has a dark background - Any
    ideas on how this can be fixed?
    help - the newbee

    Hi,
    I guess the other developer gave you php pages where the
    "visible" parts are actually embedded in "echo" statements, similar
    to this example:.
    <?php echo "<table width='90%' border='1'
    bordercolor='000000' align='center' bgcolor='#eaeaea'>"; ?>
    Please switch to DW´s "code view" and check if my
    assumption is true -- if yes, the html code that´s embedded
    this way can´t be displayed by DW, and there´s not much
    you could do except tearing the given stuff apart and manually
    transform it into something DW is able to render correctly, like...
    <table width="90%" border="1" bordercolor="000000"
    align="center" bgcolor="#eaeaea">
    <tr>
    <td><?php echo $variable; ?></td>
    </tr>
    </table>

  • Phone shuts down. sim code correct.

    I turned my phone off at the airport and somehow(???) got my sim code wrong 3 times. Even tho when it asked me to put in sim, and it was correct, it refused to operate. It got to a point of ' Phone is disabled. Connect to itunes. I had a tech guy from an Apple store in Byron Bay restore it but it has done same again and again. It is my business phone so HELP!!!
    Its only 2years old.

    Viborg wrote:
    This is not a battery issue because the phone is being charged while driving.
    Only if you have chosen 2D raher than 3D, as output of CR-200 only 750mA which is not enough if number of background applications running!
    Happy to have helped forum in a small way with a Support Ratio = 37.0

Maybe you are looking for