Need help AT LINE SELECTION

Hi Guys,
I need ur help regarding my coding: AT LINE SELECTION.
Here is my codes, but it is not working.
AT LINE-SELECTION.
IF ( wa_list-auart = 'ZCS' AND wa_list-auart = 'ZSA' ).
    IF NOT wa_list-sonum IS INITIAL.
      SET PARAMETER ID 'AUN' FIELD wa_list-sonum.
      CALL TRANSACTION 'VF01' AND SKIP FIRST SCREEN.
      CLEAR wa_list-sonum.
    ENDIF.
  ELSE.
    IF NOT wa_list-drnum IS INITIAL.
      SET PARAMETER ID 'AUN' FIELD wa_list-drnum.
      CALL TRANSACTION 'VF01' AND SKIP FIRST SCREEN.
      CLEAR wa_list-drnum.
    ENDIF.
  ENDIF.
The requirements are:
1. Data selection on column ‘Item’ + Magnifying Glass Icon click will direct user to transaction code VF01 ====>><b>its working,  but the problem is when i click the line item no 1, it wasnt work. Line item no 1 only but the rest items its workin.</b>
2. Sales Order No (VBAK-VBELN) – will be the default value on document column of VF01 if Sales Order Type (VBAK-AUART) = ZCS or ZSA else Delivery No (LIKP-VBELN) will be the default value on document column of VF01. ===><b>the problem is when i click the line item, there is no default Sales Order No or Delivery NO on parameter 'AUN' <Document column> based on if statement.</b>
3. Warning Message ‘Select a line item to proceed.’  will be displayed if no line item selected on  magnifying glass icon click. ===> <b>help me on how to codes this one if i click to a non line item, there should be a Warning Message ‘Select a line item to proceed.’</b>
Thanks in advance.
zhien.

hi joycee
i think one of the command written by u
:-"IF NOT wa_list-sonum IS INITIAL."
shoud be written like
:- IF wa_list-sonum IS NOT INITIAL.

Similar Messages

  • I need help with a SELECT query - help!

    Hello, I need help with a select statement.
    I have a table with 2 fields as shown below
    Name | Type
    John | 1
    John | 2
    John | 3
    Paul | 1
    Paul | 2
    Paul | 3
    Mark | 1
    Mark | 2
    I need a query that returns everything where the name has type 1 or 2 but not type 3. So in the example above the qery should bring back all the "Mark" records.
    Thanks,
    Ian

    Or, if the types are sequential from 1 upwards you could simply do:-
    SQL> create table t as
      2  select 'John' as name, 1 as type from dual union
      3  select 'John',2 from dual union
      4  select 'John',3 from dual union
      5  select 'Paul',1 from dual union
      6  select 'Paul',2 from dual union
      7  select 'Paul',3 from dual union
      8  select 'Paul',4 from dual union
      9  select 'Mark',1 from dual union
    10  select 'Mark',2 from dual;
    Table created.
    SQL> select name
      2  from t
      3  group by name
      4  having count(*) <= 2;
    NAME
    Mark
    SQL>Or another alternative if they aren't sequential:
    SQL> ed
    Wrote file afiedt.buf
      1  select name from (
      2    select name, max(type) t
      3    from t
      4    group by name
      5    )
      6* where t < 3
    SQL> /
    NAME
    Mark
    SQL>Message was edited by:
    blushadow

  • Need help with db select

    As usual I have been stuck for a while on what is probably a very simple solution so perhaps someone can help me, thanks.
    I have a portfolio page to which I post a url to filter the portfolio type (0, 1 or 2) and display the results.
    It works ok except that I can't get the url right to show all records. I have tried things like
    /portfolio.php?websitetype=1&2
    and
    /portfolio.php?websitetype=*
    /portfolio.php?websitetype>0
    Perhaps I need to change my select?
    $query_portfolio = "SELECT * FROM portfoliodb WHERE portfoliodb.websitetype='". $_GET['websitetype'] ."'  AND portfoliodb.visible = 1 ORDER BY portfoliodb.portfolio_id DESC";

    bikeman01 wrote:
    Ok I've now got it working as suggested so that's a big improvement, thanks but it's not quite what I was after. What I want is for all records to be retrieved by default when there is no url suffix and not require ?websitetype=ALL
    That is not what your OP asked for!
    It works ok except that I can't get the url right to show all records. I have tried things like
    /portfolio.php?websitetype=1&2
    and
    /portfolio.php?websitetype=*
    /portfolio.php?websitetype>0
    // determine if the URL parameter for websitetype is set.
    if (isset($_GET['websitetype'])) {
                   // run a query to filter only selected types
                   // based off value of URL parameter
                        $query_portfolio = "SELECT *
                        FROM portfoliodb
                        WHERE portfoliodb.websitetype='". $_GET['websitetype'] ."'
                        AND portfoliodb.visible = 1
                        ORDER BY portfoliodb.portfolio_id DESC";
    // else if the URL parameter for websitetype is not set.
    } else {
                        //  run query to display ALL types
                        $query_portfolio = "SELECT *
                        FROM portfoliodb
                        ORDER BY portfoliodb.portfolio_id DESC";
    // end condition if the URL parameter for websitetype is set.

  • Need help in writing SELECT   (strange, to many data in output?)

    Hi,
    I have:drop table jk_t1;
    drop table jk_t2;
    create table jk_t1 (
      c1  number,
      c2  varchar2(3),
      c3  number
    create table jk_t2 (
      d1  number primary key,
      d2  varchar2(4)
    alter table jk_t1 add constraint t1_t2_fk foreign key (c3) references jk_t2(d1);
    insert into jk_t2 values (1,'T2_1');
    insert into jk_t1 values (1,'A11',1);
    insert into jk_t1 values (2,'A21',1);
    commit;I need to write a SELECT to get an output as:<ALL>
      <D1>1</D1>
      <D2>T2_1</D2>
      <INN>
        <T1>
          <ROW><C1>1</C1><C2>A11</C2><C3>1</C3></ROW>
          <ROW><C1>2</C1><C2>A21</C2><C3>1</C3></ROW>
        </T1>
      </INN>
    </ALL>I'm trying:SELECT XMLElement("ALL",
    extract(XMLType(CURSOR(SELECT t2.*, XMLElement("T1",extract(XMLType(CURSOR(
                                SELECT t1.*
                                  FROM jk_t1 t1
                                 WHERE t1.c3=t2.d1
                              )), '//ROW')) as inn
                FROM jk_t2 t2
               ORDER BY d2)
      ),'//ROW/*')
    ) AS output
    FROM dual;but the output is<ALL>
      <D1>1</D1>
      <D2>T2_1</D2>
      <INN>
        <T1>
          <ROW><C1>1</C1><C2>A11</C2><C3>1</C3></ROW>
          <ROW><C1>2</C1><C2>A21</C2><C3>1</C3></ROW>
        </T1>
      </INN>
      <C1>1</C1>
      <C2>A11</C2>
      <C3>1</C3>
      <C1>2</C1>
      <C2>A21</C2>
      <C3>1</C3>
    </ALL>What SELECT should it be to give me the correct output?
    Thanks in advance,
    JackK

    Hi,
    Drop the CURSOR thing, and use only SQL/XML functions :
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE     10.2.0.5.0     Production
    TNS for 64-bit Windows: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
    SQL>
    SQL> set long 5000
    SQL>
    SQL> select xmlelement("ALL",
      2           xmlelement("D1", d1)
      3         , xmlelement("D2", d2)
      4         , xmlelement("INN",
      5             xmlelement("T1",
      6               xmlagg(
      7                 xmlelement("ROW",
      8                   xmlforest(c1, c2, c3)
      9                 )
    10               )
    11             )
    12           )
    13         ).extract('/*') -- for display purpose only
    14  from jk_t2 t2
    15       join jk_t1 t1 on t1.c3 = t2.d1
    16  group by t2.d1, t2.d2 ;
    XMLELEMENT("ALL",XMLELEMENT("D
    <ALL>
      <D1>1</D1>
      <D2>T2_1</D2>
      <INN>
        <T1>
          <ROW>
            <C1>1</C1>
            <C2>A11</C2>
            <C3>1</C3>
          </ROW>
          <ROW>
            <C1>2</C1>
            <C2>A21</C2>
            <C3>1</C3>
          </ROW>
        </T1>
      </INN>
    </ALL>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Need help using the selection tool

    Hi all,
    I have some strange (to me) occurrences while using the 'quick selection tool'...
    Explanation
    I'm using PS Elements 11 on a Win 7 (64) PC.
    What I want to do is to create a new pic from an existing pic.  The existing pic's background is unsuitable for what I want.  But the FG is what I need.  I thought that selecting the FG object and placing into a new pic would be what I needed using the <quick selection tool>.
    To do this, I am trying to use the <quick selection tool>.  I've had varying degrees of success using it.  One main thing I don't understand & pretty much renders my project useless & undoable, is the fact that whenever I use <refine edge> so that I can refine my edge selection, my pic is immediately lost or taken away.  Since I have no idea as to what's happening, I am forced to close the pic (W/O saving changes, of course) & then re-opening the pic.  All's well until I click the <refine edge> button again, then, my pic disappears AGAIN! 
    My guess is that maybe the pic is somehow transformed to a layer or something.  But, how can I turn this behavior off and not make my pic disappear?? 
    There are a few more details about this <selection tool> that I'm muddy on.  Is there something where I can read more about its use?  I would love to know more, but how?  Where?
    I've now read the online manual part about selection tools.  Although it shed some light, I'm still needing more.
    I am not a constant user of PSE, rather,  I only use it on occasions.  Normally, I use its scanning features.  I may play around with a few other features, but I also know that PSE offers many other powerful features, I rarely, if ever, use.

    This is the Photoshop forum.  You want the Photoshop Elements forum:
    Photoshop Elements

  • Need Help With A Select Staement

    This is my data set.
    OPEN_DATE CLOSE_DATE
    02-JAN-08 02-JAN-08
    02-JAN-08 02-JAN-08
    02-JAN-08 02-JAN-08
    02-JAN-08 03-JAN-08
    04-JAN-08 04-JAN-08
    05-JAN-08
    07-JAN-08
    07-JAN-08 07-JAN-08
    07-JAN-08 07-JAN-08
    08-JAN-08 08-JAN-08
    08-JAN-08
    02-JAN-08
    02-JAN-08
    08-JAN-08
    09-JAN-08
    I'm need totals for those that are opened and closed per day. Here is what I'm trying to achieve...
    Status Value DATE
    Open 6 02-JAN-08
    Closed 3 02-JAN-08
    Open 0 03-JAN-08
    Closed 1 03-JAN-08
    Open 1 04-JAN-08
    Closed 1 04-JAN-08
    Open 0 05-JAN-08
    Closed 1 05-JAN-08
    Open 3 07-JAN-08
    Closed 2 07-JAN-08
    Open 3 08-JAN-08
    Closed 1 08-JAN-08
    Open 1 09-JAN-08
    Close 0 09-JAN-08
    This select statement gets me close but the problem is how to get the ones that should have a Value of 0
    select 'Open' "Status", count(*) "Value", to_char(open_date, 'DD-MON-YY') "DATE"
    from usar_log2
    where open_date IS NOT NULL and
    to_char(open_date, 'MON-YY') = to_char(sysdate, 'MON-YY')
    and (USAR_status like 'CLOSED' or usar_status like 'OPENED' or USAR_Status like 'WORKING')
    group by to_char(open_date, 'DD-MON-YY')
    UNION
    select 'Closed' "status", count(*) "Close", to_char(close_date, 'DD-MON-YY')
    from usar_log2
    where close_date is not null and
    to_char(close_date, 'MON-YY') = to_char(sysdate, 'MON-YY')
    and (USAR_status like 'CLOSED' or usar_status like 'OPENED' or USAR_Status like 'WORKING')
    group by to_char(close_date, 'DD-MON-YY')
    order by 3, 1 desc;
    The above select statement's results...
    Status Value DATE
    Open 6 02-JAN-08
    Closed 3 02-JAN-08
    Closed 1 03-JAN-08
    Open 1 04-JAN-08
    Closed 1 04-JAN-08
    Closed 1 05-JAN-08
    Open 3 07-JAN-08
    Closed 2 07-JAN-08
    Open 3 08-JAN-08
    Closed 1 08-JAN-08
    Open 1 09-JAN-08
    But I need this instead...
    Status Value DATE
    Open 6 02-JAN-08
    Closed 3 02-JAN-08
    <----- Open 0 03-JAN-08
    Closed 1 03-JAN-08
    Open 1 04-JAN-08
    Closed 1 04-JAN-08
    <----- Open 0 05-JAN-08
    Closed 1 05-JAN-08
    Open 3 07-JAN-08
    Closed 2 07-JAN-08
    Open 3 08-JAN-08
    Closed 1 08-JAN-08
    Open 1 09-JAN-08
    <----- Close 0 09-JAN-08
    Any help would be more appreciative.

    Thank you...You all are great. While I'm still
    looking at the various ways you all provided, from
    what I have looked at so far, they don't address
    05-JAN-08 which has a null open date. There are
    three possiblities, maybe four. Does 05-JAN-08 have a null open date in the data you supplied?
    You showed us:
    OPEN_DATE CLOSE_DATE
    02-JAN-08 02-JAN-08
    02-JAN-08 02-JAN-08
    02-JAN-08 02-JAN-08
    02-JAN-08 03-JAN-08
    04-JAN-08 04-JAN-08
    05-JAN-08
    07-JAN-08
    07-JAN-08 07-JAN-08
    07-JAN-08 07-JAN-08
    08-JAN-08 08-JAN-08
    08-JAN-08
    02-JAN-08
    02-JAN-08
    08-JAN-08
    09-JAN-08
    which looks like they all have open dates.
    Perhaps, if there was null open dates you should have used [code][/code] or [pre][/pre] tags around your data so it looked something like
    OPEN_DATE CLOSE_DATE
    02-JAN-08 02-JAN-08
    02-JAN-08 02-JAN-08
    02-JAN-08 02-JAN-08
    02-JAN-08 03-JAN-08
    04-JAN-08 04-JAN-08
              05-JAN-08
    07-JAN-08
    07-JAN-08 07-JAN-08
    07-JAN-08 07-JAN-08
    08-JAN-08 08-JAN-08
    08-JAN-08
    02-JAN-08
    02-JAN-08
    08-JAN-08
    09-JAN-08And then it would have required the ANSI outer join in my query to allow for outer joining on more than one column...
    SQL> ed
    Wrote file afiedt.buf
      1  WITH t as (SELECT to_date('02-JAN-2008','DD-MON-YYYY') as open_date, to_date('02-JAN-2008','DD-MON-YYYY') as closed_date from dual union all
      2             SELECT to_date('02-JAN-2008','DD-MON-YYYY'), to_date('02-JAN-2008','DD-MON-YYYY') from dual union all
      3             SELECT to_date('02-JAN-2008','DD-MON-YYYY'), to_date('02-JAN-2008','DD-MON-YYYY') from dual union all
      4             SELECT to_date('02-JAN-2008','DD-MON-YYYY'), to_date('03-JAN-2008','DD-MON-YYYY') from dual union all
      5             SELECT to_date('04-JAN-2008','DD-MON-YYYY'), to_date('04-JAN-2008','DD-MON-YYYY') from dual union all
      6             SELECT NULL, to_date('05-JAN-2008','DD-MON-YYYY') from dual union all
      7             SELECT to_date('07-JAN-2008','DD-MON-YYYY'), NULL from dual union all
      8             SELECT to_date('07-JAN-2008','DD-MON-YYYY'), to_date('07-JAN-2008','DD-MON-YYYY') from dual union all
      9             SELECT to_date('07-JAN-2008','DD-MON-YYYY'), to_date('07-JAN-2008','DD-MON-YYYY') from dual union all
    10             SELECT to_date('08-JAN-2008','DD-MON-YYYY'), to_date('08-JAN-2008','DD-MON-YYYY') from dual union all
    11             SELECT to_date('08-JAN-2008','DD-MON-YYYY'), NULL from dual union all
    12             SELECT to_date('02-JAN-2008','DD-MON-YYYY'), NULL from dual union all
    13             SELECT to_date('02-JAN-2008','DD-MON-YYYY'), NULL from dual union all
    14             SELECT to_date('08-JAN-2008','DD-MON-YYYY'), NULL from dual union all
    15             SELECT to_date('09-JAN-2008','DD-MON-YYYY'), NULL from dual)
    16      ,all_dates as (select minod+rownum-1 as dt
    17                     from   dual, (select min(open_date) minod, max(open_date) maxod from t)
    18                     connect by rownum <= maxod-minod+1)
    19      ,stat as (select 'open' as status from dual union all select 'closed' from dual)
    20  -- END OF DATA
    21  select all_dates.dt, stat.status, sum(decode(decode(stat.status, 'open', t.open_date, t.closed_date), all_dates.dt, 1, 0)) as cnt
    22  from   stat JOIN all_dates ON (1=1)
    23         LEFT OUTER JOIN t ON (NVL(t.open_date, NVL(t.closed_date, all_dates.dt)) = all_dates.dt)
    24  group by all_dates.dt, stat.status
    25* order by 1,2 desc
    SQL> /
    DT        STATUS        CNT
    02-JAN-08 open            6
    02-JAN-08 closed          3
    03-JAN-08 open            0
    03-JAN-08 closed          0
    04-JAN-08 open            1
    04-JAN-08 closed          1
    05-JAN-08 open            0
    05-JAN-08 closed          1
    06-JAN-08 open            0
    06-JAN-08 closed          0
    07-JAN-08 open            3
    07-JAN-08 closed          2
    08-JAN-08 open            3
    08-JAN-08 closed          1
    09-JAN-08 open            1
    09-JAN-08 closed          0
    16 rows selected.
    SQL>Make your requirements clear in the future.

  • Need help for SQL SELECT query to fetch XML records from Oracle tables having CLOB field

    Hello,
    I have a scenario wherein i need to fetch records from several oracle tables having CLOB fields(which is holding XML) and then merge them logically to form a hierarchy XML. All these tables are related with PK-FK relationship. This XML hierarchy is having 'OP' as top-most root node and ‘DE’ as it’s bottom-most node with One-To-Many relationship. Hence, Each OP can have multiple GM, Each GM can have multiple DM and so on.
    Table structures are mentioned below:
    OP:
    Name                             Null                    Type        
    OP_NBR                    NOT NULL      NUMBER(4)    (Primary Key)
    OP_DESC                                        VARCHAR2(50)
    OP_PAYLOD_XML                           CLOB       
    GM:
    Name                          Null                   Type        
    GM_NBR                  NOT NULL       NUMBER(4)    (Primary Key)
    GM_DESC                                       VARCHAR2(40)
    OP_NBR               NOT NULL          NUMBER(4)    (Foreign Key)
    GM_PAYLOD_XML                          CLOB   
    DM:
    Name                          Null                    Type        
    DM_NBR                  NOT NULL         NUMBER(4)    (Primary Key)
    DM_DESC                                         VARCHAR2(40)
    GM_NBR                  NOT NULL         NUMBER(4)    (Foreign Key)
    DM_PAYLOD_XML                            CLOB       
    DE:
    Name                          Null                    Type        
    DE_NBR                     NOT NULL           NUMBER(4)    (Primary Key)
    DE_DESC                   NOT NULL           VARCHAR2(40)
    DM_NBR                    NOT NULL           NUMBER(4)    (Foreign Key)
    DE_PAYLOD_XML                                CLOB    
    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    SELECT
    j.op_nbr||'||'||j.op_desc||'||'||j.op_paylod_xml AS op_paylod_xml,
    i.gm_nbr||'||'||i.gm_desc||'||'||i.gm_paylod_xml AS gm_paylod_xml,
    h.dm_nbr||'||'||h.dm_desc||'||'||h.dm_paylod_xml AS dm_paylod_xml,
    g.de_nbr||'||'||g.de_desc||'||'||g.de_paylod_xml AS de_paylod_xml,
    FROM
    DE g, DM h, GM i, OP j
    WHERE
    h.dm_nbr = g.dm_nbr(+) and
    i.gm_nbr = h.gm_nbr(+) and
    j.op_nbr = i.op_nbr(+)
    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    I am using above SQL select statement for fetching the XML records and this gives me all related xmls for each entity in a single record(OP, GM, DM. DE). Output of this SQL query is as below:
    Current O/P:
    <resultSet>
         <Record1>
              <OP_PAYLOD_XML1>
              <GM_PAYLOD_XML1>
              <DM_PAYLOD_XML1>
              <DE_PAYLOD_XML1>
         </Record1>
         <Record2>
              <OP_PAYLOD_XML2>
              <GM_PAYLOD_XML2>
              <DM_PAYLOD_XML2>
              <DE_PAYLOD_XML2>
         </Record2>
         <RecordN>
              <OP_PAYLOD_XMLN>
              <GM_PAYLOD_XMLN>
              <DM_PAYLOD_XMLN>
              <DE_PAYLOD_XMLN>
         </RecordN>
    </resultSet>
    Now i want to change my SQL query so that i get following output structure:
    <resultSet>
         <Record>
              <OP_PAYLOD_XML1>
              <GM_PAYLOD_XML1>
              <GM_PAYLOD_XML2> .......
              <GM_PAYLOD_XMLN>
              <DM_PAYLOD_XML1>
              <DM_PAYLOD_XML2> .......
              <DM_PAYLOD_XMLN>
              <DE_PAYLOD_XML1>
              <DE_PAYLOD_XML2> .......
              <DE_PAYLOD_XMLN>
         </Record>
         <Record>
              <OP_PAYLOD_XML2>
              <GM_PAYLOD_XML1'>
              <GM_PAYLOD_XML2'> .......
              <GM_PAYLOD_XMLN'>
              <DM_PAYLOD_XML1'>
              <DM_PAYLOD_XML2'> .......
              <DM_PAYLOD_XMLN'>
              <DE_PAYLOD_XML1'>
              <DE_PAYLOD_XML2'> .......
              <DE_PAYLOD_XMLN'>
         </Record>
    <resultSet>
    Appreciate your help in this regard!

    Hi,
    A few questions :
    How's your first query supposed to give you an XML output like you show ?
    Is there something you're not telling us?
    What's the content of, for example, <OP_PAYLOD_XML1> ?
    I don't think it's a good idea to embed the node level in the tag name, it would make much sense to expose that as an attribute.
    What's the db version BTW?

  • Need help in Data selection in Smartforms

    Hi All,
    this data selection is for displaying data in smartforms.
    I have a internal table passed on to the Smartforms where i have the Main item and its batches.
    posnr text
    10 line text1
    90004
    90005
    20 line text2
    90006
    90007
    And in the coding i have made the posnr for batches as 00000 for someother purpose.
    now i need to display a text after an item and its batches.
    like :
    Item Prodcode description Qty uom Picked Factor
    batchNo batch qty reel size to ship qty
    10 19501 material description 200 M 0 3
    Batch1 200 482448
    Batch2 200 482448
    Special instructions :
    i used the following code in the Smartforms to display the Text.
                                                                                    V_SPL = 'Special Line Instructions:'.
    V_INDEX1 = V_INDEX + 1.
    CLEAR IT_FINAL.
    READ TABLE IT_FINAL INDEX V_INDEX1.
    CLEAR V_INDEX1.
    IF IT_FINAL-POSNR > 0.
       CLEAR IT_FINAL.
       READ TABLE IT_FINAL INDEX V_INDEX.
       V_INDEX1 = '9999'.
                                                                                    V_ITEMTEXT = IT_FINAL-ITEMTEXT.
    V_PACKTEXT = IT_FINAL-PACKTEXT.
    ENDIF.
    V_INDEX = V_INDEX + 1.
    DESCRIBE TABLE IT_FINAL LINES V_LINE.
    IF V_INDEX > V_LINE.
       V_INDEX1 = '9999'.
    its ok now if the data in the internal table is like this without any batches.
    10
    20
    30
    if the data in the internal table is like :
    posnr text
    10 line text1
    0000
    0000
    0000
    20 line text2
    0000
    0000
    30 line text3
    0000
    it is not getting the data for the text.
    Actually in the code i have written to read the next record in the internal table and if it is greater than 0, i will write the TEXT before writing the next item.
    But if the next record is 0000, how to code it.
    and the main this is , the text has to be written only after writing the item and its batches.
    please tell me how to do this.
    Waiting for your replies.
    Vikki.

    Hi,
    Just use the internal table to print the data in main window.
    for first line which has not batchspitted(main line item) put condition as POSNR NE INITIAL.
    and for batch split items, you already made posnr as '0000',
    so put condition as POSNR eq INITIAL.
    I think this will solve your problem.
    Regards,
    S Raju.

  • Need help in data selection

    Hi All,
    this data selection is for displaying data in smartforms.
    I have a internal table passed on to the Smartforms where i have the Main item and its batches.
    posnr        text
    10            line text1               
    90004
    90005
    20           line text2
    90006
    90007
    And in the coding i have made the posnr for batches as 00000 for someother purpose.
    now i need to display a text after an item and its batches.
    like :
    Item    Prodcode           description                   Qty  uom     Picked   Factor
                batchNo           batch qty   reel size        to ship              qty
    10         19501            material description            200       M         0          3
                Batch1     200               482448
                Batch2     200               482448
    Special instructions :
    i used the following code in the Smartforms to display the Text.
    V_SPL = 'Special Line Instructions:'.
    V_INDEX1 = V_INDEX + 1.
    CLEAR IT_FINAL.
    READ TABLE IT_FINAL INDEX V_INDEX1.
    CLEAR V_INDEX1.
    IF IT_FINAL-POSNR > 0.
       CLEAR IT_FINAL.
       READ TABLE IT_FINAL INDEX V_INDEX.
       V_INDEX1 = '9999'.
                                                                                    V_ITEMTEXT = IT_FINAL-ITEMTEXT.
    V_PACKTEXT = IT_FINAL-PACKTEXT.
    ENDIF.
    V_INDEX = V_INDEX + 1.
    DESCRIBE TABLE IT_FINAL LINES V_LINE.
    IF V_INDEX > V_LINE.
       V_INDEX1 = '9999'.
    its ok now if the data in the internal table is like this without any batches.
    10
    20
    30
    if the data in the internal table is like :
    posnr         text
    10            line text1
    0000
    0000
    0000
    20            line text2
    0000
    0000
    30            line text3
    0000
    it is not getting the data for the text.
    Actually in the code i have written to read the next record in the internal table and if it is greater than 0, i will write the TEXT before writing the next item.
    But if the next record is 0000, how to code it.
    and the main this is , the text has to be written only after writing the item and its batches.
    please tell me how to do this.
    Waiting for your replies.
    Vikki.

    Hi,
    Just use the internal table to print the data in main window.
    for first line which has not batchspitted(main line item) put condition as POSNR NE INITIAL.
    and for batch split items, you already made posnr as '0000',
    so put condition as POSNR eq INITIAL.
    I think this will solve your problem.
    Regards,
    S Raju.

  • CR 9 - Need HELP Setting Line Graph colors in the Chart Expert

    Post Author: desselle
    CA Forum: Charts and Graphs
    Hello,
    I created a Crystal Report (CR) based off an existing Trend Analysis report. I have created a VB6 application that calls the .RPT file I created for the report in CR.  The VB6 app sets the report recordset via code that corresponds to the .TTX file, and the parameters .  The report contains a Line graph that plots five pieces of data.  The report & graph work good.  The Problem: CR determines the color of each line on the graph.  However, I need to set the color for each line to correspond to the colors used on our existing reports.  The users are accustom to a certain color representing a certain set of data on the existing reports.   I have tried everything I can think of and from all documentation I can find, and nothing changes the line colors.   I have tried all of the following:
    1.) From the Chart Expert, Option tab, I click the Format button next to Color and setup conditional color settings per each piece of data.   However, when I run the report these conditional color settings are not reflected on the CR graph.     I am using formula fields (based off database fields in the recordset) to produce the report.  However, I only see the database fields to use in the conditional color formatting screen and not the formula fields.    I thought this would possibly be the cause why the colors wonu2019t change on the CR, but I canu2019t find a way to make the formula fields show up in the list.
    2.)Also, I tried right clicking the individual lines of the graph and change the selected item color, but this didnu2019t change the color either.  I do this in Design mode and Preview mode and neither one changes the color of the lines on the graph.
    3.)I have also looked into the CR object model to see if I can change the line colors of the graph via code and it doesn't look like I am given this flexibility.
    Do you know what I am doing wrong here?   I just want to be able to set the color of each line on the CR graph to the color I want instead of using the default colors.  Are there some Hot Fixes that I need to apply to my copy of CR?
    Thanks

    Post Author: desselle
    CA Forum: Charts and Graphs
    Hello,
    I got the problem fixed w/ the line graph not making the data lines the same color on the report as on the frmPlot graph.   Compare the two screen shots below.   The problem was as follows:  When I created the graph (in the Chart Expert) the field u201CReadingDateu201D was not one of the Report Fields, and all the other fields were Report Fields (Reading, LowAlarm, UpperAlarm, LowerLimit, & UpperLimit). See the 3rd screen shot below.  ReadingDate does show up as a Report Field now but it wasnu2019t at first.   Originally, this field was only available in the Chart Expert as a recordset field.  When I changed this field to be a Report Field, the graph then allowed me to change the data series line colors.   This was not obvious at all.   From the beginning when I setup the graph and passed in the recordset from VB it graphed all of the data series fine.   The colors that the Chart Expert chose for each line just didnu2019t match what was on the frmPlot graph.   Anyway, it is working now.     I can at least say I learned (somethingu2019s to-do and somethingu2019s not to-do) a good bit about Crystal Reports in the process.
    Thanks

  • Need help animating line art/paths

    Help please...
    I am trying to animate a line, to have it tween/morph between a line and a question mark and then back to a line. I've drawn my two shapes in Illustrator as line art (as paths, not as closed shapes), but I'm not seeing the paths as a mask when I paste them into my Solid Layer. The parts of my drawing that have closed shapes come in and form a mask, but not the individual lines/paths, not matter how thick I make them. I can see there is a path in AE if I click on the shape, but it does not come up as a masked area.
    Is there a better way to do this, than to animate a mask? Animating masks seems to be the consensus how to do a lot of animation, but I'm stuck trying to get my line appear as part of my mask.
    Happy to try another way; I have yet to see a tutorial that does what I'm trying to do, can't be a reveal, since the final shape needs to morph a few times. I am sure this is do-able (and probably not that hard!), but I can't figure it out; in Flash I would just tween between the two shapes, but not seeing how to do that effect in AE.
    Thank you!

    hi, i took some screengrabs also, so that you can perhaps see what i might be doing wrong...i inlcuded the original shape, from Illustrator, as well as what happens when I paste in AE. for my shape, blends won't work from Illustrator, I need the line to move in a certain way that Illustrator won't do using that feature. thanks very much .

  • Need help  - payment type selection

    I need some help with this.
    I have 4 different payment types on my registration buy online form. I want to be able to display relevant information depending on which type is selected;
    if cc is selected then display cc input fields then process through payment gateway on submit
    if phone for payment is selected then display phone number and times to call
    if bank transfer is selected then display bank detail
    if paypal is selected then process on paypal on submit.
    Has anyone done this before?
    Any help will be appreciated.

    Hey there, how is your Javascript/jQuery and CSS skills?
    These will need to be implemented so it shows hide content depending on what is chosen.

  • Need help in this select drop down box

    Hi i had a drop down box written with select and i had many options , when user selects the option it will insert this to database and when user goes to the edit form the preselected value has to be populate automatically in dropdown , but the last option is populating everytime when uses edit form.
    below is the code:
    insert page:
                <select name="council" id="council" name="Please select Council from dropdown box">
                    <option  value="Division">Division</option>
                    <option  value="Facility">Facility</option>
                    <option  value="District D">District D </option>
                    <option  value="District E">District E </option>
                    <option  value="District J">District J </option>
                    <option  value="District K">District K </option>
                    <option  value="District L">District L </option>
                    <option  value="District M">District M </option>
                    <option  value="District N">District N </option>
                    <option  value="District O">District O </option>
                    <option  value="District Q">District Q </option>
                    <option  value="District S">District S </option>   
                    <option  value="District T">District T </option>
                    <!--- Below code  is added just for temporary case ,for this drop down we need to pull all these data from databse--->
                    <option  value="D 506">D 506</option>                                            
                    <option  value="D 524">D 524</option>
                    <option  value="D 525">D 525</option>
                    <option  value="D 530">D 530</option>
                    <option  value="D 531">D 531</option>
                    <option  value="D 536">D 536</option>
                    <option  value="D 549">D 549</option>
                    <option  value="D 558">D 558</option>
                    <option  value="D 562">D 562</option>
                    <option  value="D 581">D 581</option>
                    <option  value="D 583">D 583</option>
                    <option  value="D 597">D 597</option>
                    <option  value="D 598">D 598</option>
                    <option  value="D 599">D 599</option>
                    <option  value="D 628">D 628</option>
                    <option  value="D 686">D 686</option>
                    <option  value="D 698">D 698</option>
                    <option  value="D 848">D 848</option>
                    <option  value="D 862">D 862</option>
                    <option  value="D 870">D 870</option></select>
    this is edit page code:
                       <select name="council" id="council">               
                   <cfoutput query="getdata">               
                    <option  value="Division" <cfif council IS "#getdata.council#"> selected</cfif>>Division</option>
                    <option  value="Facility" <cfif council IS "#getdata.council#"> selected</cfif>>Facility</option>
                    <option  value="District D" <cfif council IS "#getdata.council#"> selected</cfif>>District D </option>
                    <option  value="District E" <cfif council IS "#getdata.council#"> selected</cfif>>District E </option>
                    <option  value="District J" <cfif council IS "#getdata.council#"> selected</cfif>>District J </option>
                    <option  value="District K" <cfif council IS "#getdata.council#"> selected</cfif>>District K </option>
                    <option  value="District L" <cfif council IS "#getdata.council#"> selected</cfif>>District L </option>
                    <option  value="District M" <cfif council IS "#getdata.council#"> selected</cfif>>District M </option>
                    <option  value="District N" <cfif council IS "#getdata.council#"> selected</cfif>>District N </option>
                    <option  value="District O" <cfif council IS "#getdata.council#"> selected</cfif>>District O </option>
                    <option  value="District Q" <cfif council IS "#getdata.council#"> selected</cfif>>District Q </option>
                    <option  value="District S" <cfif council IS "#getdata.council#"> selected</cfif>>District S </option>   
                    <option  value="District T" <cfif council IS "#getdata.council#"> selected</cfif>>District T </option>                   
                    <option  value="D 506" <cfif council IS "#getdata.council#"> selected</cfif>>D 506</option>                                            
                    <option  value="D 524" <cfif council IS "#getdata.council#"> selected</cfif>>D 524</option>
                    <option  value="D 525" <cfif council IS "#getdata.council#"> selected</cfif>>D 525</option>
                    <option  value="D 530" <cfif council IS "#getdata.council#"> selected</cfif>>D 530</option>
                    <option  value="D 531" <cfif council IS "#getdata.council#"> selected</cfif>>D 531</option>
                    <option  value="D 536" <cfif council IS "#getdata.council#"> selected</cfif>>D 536</option>
                    <option  value="D 549" <cfif council IS "#getdata.council#"> selected</cfif>>D 549</option>
                    <option  value="D 558" <cfif council IS "#getdata.council#"> selected</cfif>>D 558</option>
                    <option  value="D 562" <cfif council IS "#getdata.council#"> selected</cfif>>D 562</option>
                    <option  value="D 581" <cfif council IS "#getdata.council#"> selected</cfif>>D 581</option>
                    <option  value="D 583" <cfif council IS "#getdata.council#"> selected</cfif>>D 583</option>
                    <option  value="D 597" <cfif council IS "#getdata.council#"> selected</cfif>>D 597</option>
                    <option  value="D 598" <cfif council IS "#getdata.council#"> selected</cfif>>D 598</option>
                    <option  value="D 599" <cfif council IS "#getdata.council#"> selected</cfif>>D 599</option>
                    <option  value="D 628" <cfif council IS "#getdata.council#"> selected</cfif>>D 628</option>
                    <option  value="D 686" <cfif council IS "#getdata.council#"> selected</cfif>>D 686</option>
                    <option  value="D 698" <cfif council IS "#getdata.council#"> selected</cfif>>D 698</option>
                    <option  value="D 848" <cfif council IS "#getdata.council#"> selected</cfif>>D 848</option>
                    <option  value="D 862" <cfif council IS "#getdata.council#"> selected</cfif>>D 862</option>
                    <option  value="D 870" <cfif council IS "#getdata.council#"> selected</cfif>>D 870</option>
    </cfoutput>               
                </select>
    i dont know where i am making mistake and i observered one behavoir that if i have less options it is working but not with many why like that , please help me in this
    Thanks

    Seems to me your conditionals should look something like this:
    <option value="Division"<cfif getData.council is "Division"> selected="selected"</cfif>>Division</option>
    <option value="Facility"<cfif getData.council is "Facility"> selected="selected"</cfif>>Facility</option>
    Your condition is the same for every option, and would likely never evaluate to true:
    <cfif council IS "#getdata.council#"> selected</cfif>
    getData.council will be "Division" or "Facility" or "District D" or ...
    ... but it would never be "council".
    HTH.
    Charlie

  • Need help with a SELECT statement

    Dear forumers,
    I'm a newbie in ABAP and I'm trying to figure out what the following line means (in bold letters):-
    SELECT SINGLE STAT2 FROM PA0000 INTO PA0000-STAT2
    WHERE PERNR = ITAB_DATA-STAFF_NO.
    Does this mean that the single data from the STAT2 field is selected and then placed back into the same field (doesn't quite makes sense, right)?
    Please help and many thanks in advance!

    SELECT SINGLE STAT2 FROM PA0000 INTO PA0000-STAT2
    WHERE PERNR = ITAB_DATA-STAFF_NO.
    Does this mean that the single data from the STAT2 field is selected and then placed back into the same field (doesn't quite makes sense, right)?
    it sense very much right.
    have you heared about table buffer concept?
    here this concept exactly comes.
    try with this below code:
    TABLES:pa0000."tables must be decleare
    SELECT SINGLE STAT2 FROM PA0000 INTO PA0000-STAT2.
      write:PA0000-STAT2.
    and since you are using select single than you should be use much key as much possible for getting accurate data.other wise system will pick first data which match your where condition.
    Amit.

  • Need help : cannot anymore select local info in site definition only remote

    Hi
    I made the mistake choosing in site deffintion for remote info and not local info
    Now it seems impossible to reverse it cannot anymore select local info in site definition only remote
    So now I can not make the site normally.
    I've closed dreamweaver a couple times and tried it again and even my pc but it seems to be something irreparable?
    Does anyone know a better idea than reinstall?
    thank you
    Paul

    You are on the Basic Tab of the Site definition dialog in DW CS3.  Unfortunately, that's also the more confusing way to define a site.  Nevertheless, you'll note that there are 3 selections across the top of the dialog:
    1.  Editing Files
    2.  Testing Files
    3.  Sharing Files
    Have you already filled out the first two?
    A site definition in DW *could* only have the first of those three filled out - you really only need the local site defined until you are ready to upload your files (assuming you are only creating static pages - that is, pages without server scripting).
    To define most remote sites, all you need to do is to select that you connect to your remote server using FTP, and then to state the folder within which your website files are stored on the remote server (often this is a folder called 'www' or 'wwwroot' or 'public_html').
    In my mind, the better way to define a site is to go right to the Advanced tab - it's less confusing because you just fill in all of the fields without going through this 'wizard-type' interface....
    So - does that help at all?

Maybe you are looking for

  • A strange Java related error occured when I tried to install a software

    When I tried to install Maple 12 on my PC, I got a Java-related error as follow: java.lang.NoClassDefFoundError: Could not initialize class javax.swing.UIManager      at javax.swing.JPanel.updateUI(Unknown Source)      at javax.swing.JPanel.<init>(Un

  • Spotlight web search mod_spotlight_apple docs

    Anyone have anymore info regarding Spotlight on OS X Tiger Server? I have gotten this to work but I can't search for file names. I can find the content of any document. I just can not find it by the name of the document or folder. Any ideas? Also how

  • Retriving records with the date and time stamp

    I need to get all the records that were update between 08:36:06 AM and 8:36:09 AM on the12/15/2009 I am using this query it is giving me the right numbers (I think) because this condition GURMAIL_CPLN_CODE = 'UGAP', I would like something more precis

  • Error after upgrading to 10.1.3.1

    Hello. I've been developing a UIX web application with jdev 10.1.2, and I just downloaded jdev 10.1.3.1. When I open my application in 10.1.3.1, it prompts me to migrate, I say yes, and it looks like there're no problems. Everything in the Applicatio

  • Swings Urgent Requirement, Please Help me

    Hi , I have a requirement like when a file dialog is displayed, I have to select only directories/folders. Now with using JFileChoser , I am able to choose file . Is there any possibility to choose only directories without file dialog or atleast by u