CONCATENATE STMT

Hi Guys,
        can any one send me the syntax for the concatenate stmt.
something like:
concatenate lines of itab into itab1-text  seperated by space. Please if posiible copy it from the SAP help and paste it here.
Its urgent please reply as soon as possible.

Hi,
Concatenate var1 var2 into var3 separated by space.
Also go through the below help
CONCATENATE
Basic form
CONCATENATE f1 ... fn INTO g.
Addition: ... SEPARATED BY h
Note
Like all string processsing statements, you can only use character-type operands here.
If the type of an operand is not STRING, the operand is treated like a type C field, regardless of its actual type, even though no actual conversion takes place.
In an ABAP Objects context, a more severe syntax check is performed that in other ABAP areas. See Only character fields allowed in string processing.
Effect
Combines the fields f1 to fn (n >= 2) and places them in g.
Note that trailing spaces in source fields with type C are ignored (since they cannot be distinguished from "padding" characters). In C strings, on the other hand, they are considered. All fields fi (1 <= i <= n) are used in the length STRLEN( fi ).
The return code is set as follows:
SY-SUBRC = 0:
The result fitted into g.
SY-SUBRC = 4:
The result was too long for g and could only be transferred in the defined length of g.
Example
DATA: ONE(10)   VALUE ' John ',
      TWO(3)    VALUE 'F.',
      THREE(10) VALUE ' Kennedy',
      NAME(20),
      FIRST     TYPE STRING.
CONCATENATE ONE TWO THREE INTO NAME.
NAME has the value ' JohnF. Kennedy'.
But:
MOVE ONE TO FIRST.       "FIRST = ' John'
SHIFT FIRST CIRCULAR.    "FIRST = 'John '
CONCATENATE FIRST TWO INTO NAME.
NAME has the value 'John F.'.
Addition
... SEPARATED BY h
Effect
Inserts the separator h between the fields fi.
h is used in its defined length if it is a C string.
Examples
DATA: ONE(10)   VALUE 'John',
      TWO(3)    VALUE 'F.',
      THREE(10) VALUE 'Kennedy',
      NAME(20).
CONCATENATE ONE TWO THREE INTO NAME SEPARATED BY SPACE.
NAME has the value "John F. Kennedy".
DATA SEPARATOR(4) VALUE 'USA'.
CONCATENATE SPACE ONE TWO THREE INTO NAME
            SEPARATED BY SEPARATOR.
NAME has the value "USA JohnUSA F.USA Ke".
The return code SY-SUBRC has the value 4.
Note
Performance:
You should use CONCATENATE instead of writing your own routines, since it is safer, quicker, and easier to understand. The runtime required to concatenate two 30 byte fields is approximately 14 msn (standard microseconds).
Regards,
Ram
Message was edited by:
        Ram Mohan Naidu Thammineni

Similar Messages

  • About Concatenate Stmt

    Dear all
       We will use concatenate stmt to join more than one field and at the end we may use seperated by space  if we need a space. But insted i need a Tabular space between my fields. Also this one i am using with ALV. So i cannot use write statement and all.. Is there any option to put a tabular space between variables while concatenating..
    Plz help me...

    Hi,
    Check this code.
    data : role(15) type c value 'crick,ter',
           role1(10) type c,
           role2(10) type c.
    write: / role.
    data: tab_space(4) type c value '  '.
    "WITHIN THE QUOTES GIVE A TAB SPACE.
    SPLIT role AT ',' INTO role1 role2.
    concatenate role1 role2 into role separated by tab_space.
    write: / role.
    I dont think using ALV would affect in anyway.. the way you display the field.
    Reward if helpful.
    Regards.
    Edited by: Akshay Raj on Mar 18, 2008 12:41 PM

  • Account number in Standard text in SapScripts

    Hello,
    I've created a standard text where I've to print account number as 12--1234-1234567-123.
    But REGUH-ZBNKL prints the bank number as 123456
    Where 1st 2 digits (12) is bank number and 2nd 4 digits (3456) is branch number.
    REGUH-ZBNKN displays the account number as 789012343
    Where 1st 7 digits (7890123) is account no and last 2 digit (43) is suffix no.
    How do I format these two numbers into one as 12-3456-7890123-043
    That means if the suffix is 2 digit add a '0' in front of the suffix to make it 3 digit (i.e. 034)

    Hi,
    You can use a concatenate stmt to prefix '0'.
    for eg:
       if ws_int < '99'.
        concatenate '0' ws_int into ws_int.
      endif.
    similarly you can use concatenate statement to build your string.
    concatenate reguh-zbnkl0(2) reguh-zbnkl2(4)
                       reguh-zbnkn+0(7) reguh-zbnkn ws_int separated by '-'
    into ws_account.
    regards
    Subramanian

  • Redarding Native SQL

    Dear All,
         I am using one function module to get the details of Table Size History. In that i found select statement like this.
    if schema is initial.
        concatenate 'select' tbst_columns 'from sap_tf_tabhist' into
           stmt separated by space.                             "#EC NOTEXT
      else.
        concatenate 'select' tbst_columns 'from'
             schema into stmt separated by space.               "#EC NOTEXT
        concatenate stmt '.sap_tf_tabhist' into stmt.           "#EC NOTEXT
      endif.
      concatenate stmt '(''' tabname ''',''' curr_schema ''')' into stmt.
      * Select the info
      try.
        res_ref = stmt_ref->execute_query( stmt ).
        get reference of out_data into itable_ref.
        res_ref->set_param_table( itable_ref ).
        res_ref->next_package( ).
        res_ref->close( ).
        catch_std_db_error.
      endtry.
    In this select stmt  they have used " sap_tf_tabhist " table to get the details of table history ..But i didn't find any table in SE11.
    I want to know what is this "sap_tf_tabhist" stands?
    If it is a table in MY SQL then how to see that table?

    It does not make sense to write native SQL statement for a SAP table. That's why you have that code to access the MS SQL table. You should better check with system administrator for that table.

  • Account Description Case stmt

    Hello All,
    Business wants to display account id and account description concatanated together with an '-' seperating them. Account id and Account desc are two different columns.
    So far it looks fairly simple as we need to just concatenate the two columns with an '-' in the middle. But some account id's does not have descriptions so to get there i used a simple case statement but it seems to be not working
    case when "GL Account Hierarchy"."Level 12 Account Description" is Null then "GL Account Hierarchy"."Level 12 Account Id" else "GL Account Hierarchy"."Level 12 Account ID || '-' || "GL Account Hierarchy"."Level 12 Account Description" end
    it does concatene the account id's and descriptions like this 124 - Account which is good but it displays just 124 - in the cases when account desc is null which is not what i want. I want to be displayed just as 124.
    My case stmt logic seems to be correct or i might be something obvious which i am not able to identify. Please advice
    Thanks
    Prash

    Hi.
    Try
    case when "GL Account Hierarchy"."Level 12 Account Description" =''
    instead of
    case when "GL Account Hierarchy"."Level 12 Account Description" is Null
    Regards
    Goran
    http://108obiee.blogspot.com

  • Dump at select stmt

    the program is dumping at the below stmt.
    *--  Check whether any entry is present in the the table BSIP
      SELECT * INTO LS_BSIP FROM BSIP
              WHERE (LT_SEL_DATA).
    LT_SEL_DATA is declared as
      TYPES : BEGIN OF T_SEL_DATA,
                FIELD(72) TYPE C,
              END   OF T_SEL_DATA.
      DATA : LT_SEL_DATA TYPE STANDARD TABLE OF T_SEL_DATA WITH HEADER LINE.
    . So the dump is because of the no data in LT_SEL_DATA ?
    Shall I put below code to solve the dump ?
    IF NOT LT_SEL_DATA[] IS INITIAL.
      SELECT * INTO LS_BSIP FROM BSIP
              WHERE (LT_SEL_DATA).
    ENDIF .
    Thanks IN ADV

    The below is dump analysis...
    Can any body  also explain how it selects from bsip table id  LT_SEL_DATA is declared as FIELD(72) TYPE C, ?
    SELECT * INTO LS_BSIP FROM BSIP
    WHERE (LT_SEL_DATA).
    ====================================
    Error analysis
    The current ABAP/4 program attempted to execute an ABAP/4 Open SQL
    statement containing a WHERE condition of the form WHERE (itab) or
    WHERE ... AND (itab). The part of the WHERE condition specified at
    runtime in the internal table itab is incorrectly parenthesized.
    How to correct the error
    If the error occurred in a non-modified SAP program, you may be
    able to find a solution in the SAP note system.
    If you have access to the note system yourself, use the following
    search criteria:
    "SAPSQL_WHERE_PARENTHESES"
    "SAPLZADI_F_DUPLICATE_INV_CHECK " or "LZADI_F_DUPLICATE_INV_CHECKU01 "
    "Z_ADI_F_DUPLICATE_INVOICE_CHK"
    If you cannot solve the problem yourself, please send the
    following documents to SAP:
    1. A hard copy print describing the problem.
       To obtain this, select the "Print" function on the current screen.
    Source code extract
    001310              INTO LT_SEL_DATA-FIELD.
    001320       APPEND LT_SEL_DATA.
    001330     ENDIF.
    001340
    001350     CLEAR LT_SEL_DATA.
    001360     CONCATENATE 'AND SHKZG NE '''
    001370                  LV_SHKZG
    001380                  ''''
    001390            INTO LT_SEL_DATA-FIELD.
    001400     APPEND LT_SEL_DATA.
    001410
    001420
    001430     IF I_XBLNR IS INITIAL.
    001440
    001450   *    Include the field for Amount in local currency in the selection
    001460   *    criteria on BSIP table
    001470       LV_WRBTR = I_WRBTR.
    001480       CONDENSE LV_WRBTR.
    001490
    001500       CLEAR LT_SEL_DATA.
    001510       CONCATENATE 'AND WRBTR = '''
    001520                   LV_WRBTR
    001530                   ''''
    001540              INTO LT_SEL_DATA-FIELD.
    001550       APPEND LT_SEL_DATA.
    001560
    001570     ENDIF.
    001580
    001590   *    Check whether any entry is present in the the table BSIP
    001600     SELECT * INTO LS_BSIP FROM BSIP
         >             WHERE (LT_SEL_DATA).
    001620
    001630   *    Check credit memos or not
    001640       CHECK NOT ( I_SHKZG = LC_DB_IND AND LS_BSIP-SHKZG EQ SPACE ).
    001650
    001660   *    Check if BSIP entry refers to the same document or not
    001670       CHECK NOT ( I_BELNR = LS_BSIP-BELNR AND
    001680                   I_BUKRS = LS_BSIP-BUKRS AND
    001690                   I_GJAHR = LS_BSIP-GJAHR ).
    001700
    001710   *    Get the reverse document number for the document selected
    001720       CLEAR LV_STBLG.
    001730       SELECT SINGLE STBLG
    001740         INTO LV_STBLG
    001750         FROM BKPF
    001760        WHERE BELNR = LS_BSIP-BELNR
    001770          AND BUKRS = LS_BSIP-BUKRS
    001780          AND GJAHR = LS_BSIP-GJAHR.
    001790
    001800   *     Only if NO Vendor Invoice reversal has taken place, throw

  • How To Concatenate Column Values from Multiple Rows into a Single Column?

    How do I create a SQL query that will concatenate column values from multiple rows into a single column?
    Last First Code
    Lesand Danny 1
    Lesand Danny 2
    Lesand Danny 3
    Benedi Eric 7
    Benedi Eric 14
    Result should look like:
    Last First Codes
    Lesand Danny 1,2,3
    Benedi Eric 7,14
    Thanks,
    David Johnson

    Starting with Oracle 9i
    select last, first, substr(max(sys_connect_by_path(code,',')),2) codes
    from
    (select last, first, code, row_number() over(partition by last, first order by code) rn
    from a)
    connect by last = prior last and first = prior first and prior rn = rn -1
    start with rn = 1
    group by last, first
    LAST       FIRST      CODES                                                                                                                                                                                                  
    Lesand         Danny          1,2,3
    Benedi         Eric           7,14Regards
    Dmytro

  • Concatenate in loop

    Hai,
    As Iam using Loop in a Loop iam getting  time out dump .
    in my internal table itab3 has unique objnr values.
    for each objnr i have different status in itab_jcds.
    each status column has diff status.
    now i need to concatenate the status depending upon same objnr.
    LOOP AT  ITAB3 INTO WA_ITAB3.
        RDX = SY-TABIX.
        LOOP AT ITAB_JCDS INTO WA_ITAB_JCDS WHERE OBJNR = WA_ITAB3-OBJNR.
         CONCATENATE WA_ITAB_JCDS-STATUS1 WA_ITAB3-STATUS1 INTO WA_ITAB3-STATUS1 SEPARATED BY SPACE.
          CONCATENATE WA_ITAB_JCDS-STATUS2 WA_ITAB3-STATUS2 INTO WA_ITAB3-STATUS2 SEPARATED BY SPACE.
          CONCATENATE WA_ITAB_JCDS-STATUS3 WA_ITAB3-STATUS3 INTO WA_ITAB3-STATUS3 SEPARATED BY SPACE.
          CONCATENATE WA_ITAB_JCDS-STATUS4 WA_ITAB3-STATUS4 INTO WA_ITAB3-STATUS4 SEPARATED BY SPACE.
        ENDLOOP.
        MODIFY ITAB3 FROM WA_ITAB3 INDEX RDX
                                            TRANSPORTING
                                            OBJNR
                                            STATUS1
                                            STATUS2
                                            STATUS3
                                            STATUS4.
      ENDLOOP.
    example:
    itab3
    objnr
    123
    145
    itab_jcds.
    objnr                    stat1                    stat2                     stat3                     stat4
    123                       nopr                      mav                     crtd                       rel
    123                       CRTD                    mnav                    rel                        prt
    123                       rel                          orsc                   txt                          crtd
    now i req output as
    itab3
    objnr               stat1                    stat2                    stat3             stat4.
    123           nopr crtd rel         mav mnav orsc        crtd rel txt      rel prt crtd
    could u please help.

    Hi,
    Try this way..
    SORT ITAB3 BY OBJNR.
    SORT ITAB_JCDS BY OBJNR.
    LOOP AT ITAB3 INTO WA_ITAB3.
    RDX = SY-TABIX.
    READ TABLE ITAB_JCDS INTO WA_ITAB_JCDS WITH KEY OBJNR = WA_ITAB3-OBJNR.
                                                                                    BINARY SEARCH.
    IF SY-SUBRC EQ 0.
    LOOP AT ITAB_JCDS INTO WA_ITAB_JCDS FROM SY-TABIX.
    IF WA_ITAB_JCDS-OBJNR NE WA_ITAB3-OBJNR.
    EXIT.
    ENDIF.
    CONCATENATE WA_ITAB_JCDS-STATUS1 WA_ITAB3-STATUS1 INTO WA_ITAB3-STATUS1 SEPARATED BY SPACE.
    CONCATENATE WA_ITAB_JCDS-STATUS2 WA_ITAB3-STATUS2 INTO WA_ITAB3-STATUS2 SEPARATED BY SPACE.
    CONCATENATE WA_ITAB_JCDS-STATUS3 WA_ITAB3-STATUS3 INTO WA_ITAB3-STATUS3 SEPARATED BY SPACE.
    CONCATENATE WA_ITAB_JCDS-STATUS4 WA_ITAB3-STATUS4 INTO WA_ITAB3-STATUS4 SEPARATED BY SPACE.
    ENDLOOP.
    MODIFY ITAB3 FROM WA_ITAB3 INDEX RDX
    TRANSPORTING
    OBJNR
    STATUS1
    STATUS2
    STATUS3
    STATUS4.
    ENDIF.
    ENDLOOP

  • Using bind variable in dynamic where clause and concatenate with query

    Hi,
    In my procedure i am framing where clause dynamically with bind variable,When i am concatenate this with my sql query for REF CURSOR i got sql command not properly ended exception.
    Is it possible to pass values to the bind variable through the dynamic variable/value?
    Please advise
    Thanks in advance
    Siva
    IF in_applicationId IS NOT NULL THEN
              optional_where := optional_where || ' AND a.APPLICATION_ID like '||':e%';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'||',in_queue_id'||',in_applicationId';
         END IF;
    My query is like this
    open Out_Main FOR SelectQuery USING optional_using

    Thanks for reply,
    In my procedure, i suppose to frame the where clause with bind dynamically according to the input parameters. so that i am framing the values of the bind variables also dynamically like this,
    Please advise...
    IF in_assignedAppFlag IS NOT NULL THEN
              IF in_assignedAppFlag = 'Y' THEN
                   optional_where := optional_where || ' AND b.ASSIGNED_TO = :b' ;
              optional_using := ' in_appFuncGroup'||',in_currentUserID';          
              ELSe
                   IF in_isSupervisor = 0 THEN
                        optional_where := optional_where || ' AND (b.ASSIGNED_TO = :b'||' OR b.ASSIGNED_TO = ''-1'' OR b.ASSIGNED_TO IS NULL)';
              optional_using := ' in_appFuncGroup'||',in_currentUserID';
                   END IF;
              END IF;
         ELSE
              IF in_isSupervisor = 0 THEN
                   optional_where := optional_where || ' AND (b.ASSIGNED_TO = :b'||' OR b.ASSIGNED_TO = ''-1'' OR b.ASSIGNED_TO IS NULL)';
                   optional_using := ' in_appFuncGroup'||',in_currentUserID';
              END IF;
         END IF;
         IF in_appFuncGroup IS NOT NULL THEN
              optional_where := optional_where || ' AND e.APP_FUNC_GROUP= :c';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup';
         END IF;
         IF in_queue_id IS NOT NULL THEN
              optional_where := optional_where || ' AND b.QUEUE_ID = :d';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'||',in_queue_id';
         END IF;
         IF in_applicationId IS NOT NULL THEN
              optional_where := optional_where || ' AND a.APPLICATION_ID like '||':e%';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'||',in_queue_id'||',in_applicationId';
         END IF;
         IF in_sourceCode IS NOT NULL THEN
              optional_where := optional_where || ' AND e.APP_SOURCE_CODE like '||':f%';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'
              ||',in_queue_id'||',in_applicationId'||',in_sourceCode';
         END IF;
         IF in_logo IS NOT NULL THEN
              optional_where := optional_where || ' AND appProds.PRODUCT_TYPE like '||':g%';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'
              ||',in_queue_id'||',in_applicationId'||',in_sourceCode'||',in_logo';
         END IF;
         IF in_firstName IS NOT NULL THEN
              optional_where := optional_where || ' AND upper(a.FIRST_NAME) like upper(:h%)';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'
              ||',in_queue_id'||',in_applicationId'||',in_sourceCode'||',in_logo'||',in_firstName';
         END IF;
         IF in_surName IS NOT NULL THEN
              optional_where := optional_where || ' AND upper(a.SURNAME) like upper(:i%)';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'
              ||',in_queue_id'||',in_applicationId'||',in_sourceCode'||',in_logo'||',in_firstName'||',in_surName';
         END IF;
         IF in_retreival_id IS NOT NULL THEN
              optional_where := optional_where || ' AND e.RETREIVAL_ID like :j%';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'
              ||',in_queue_id'||',in_applicationId'||',in_sourceCode'||',in_logo'||',in_firstName'||',in_surName'||',in_retreival_id';
         END IF;

  • Excel 2013 connect to a cube, and Power View concatenate the column name by default

    Hi Guys,
    Currently, we met a problem with excel services to connect to a cube, when we develope a Excel 2013 Powerview report, the data model column name is concatenate into terrible name by default. e.g. Dim TimeDate Date, Dim TimeTime HierachyYear -Month.
    But when start up the data model with Powerpivot, everything gone well. We knew that it can be manual update the name as workaround, but we need to do it every time we create a new powerview with the data model.
    Is that any other solution we can do with?
    Please help.
    Johnny

    Hi,
    As this question is more related to PowerView Report, I suggest you can create a new post in the PowerView forum, you will get more helpful information from there.
    PowerView Forum:
    https://social.technet.microsoft.com/Forums/en-US/home?forum=powerview
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jerry Guo
    TechNet Community Support

  • Concatenate 2 data fields and put values in single line

    Hello,
    I am pretty new to BI Publisher. I want to concatenate 2 data fields (Product and ProductType). These concatenated values then I want to put them on a single line.
    eg.
    the values should look like
    ProductType1.Product1,ProductType2.Product2, ProductType3.Product3..........
    Thanks.

    The XML is
    - <ServiceAgreement>
    <AccountId>1-abcde</AccountId>
    <AgreementNumber>1-685</AgreementNumber>
    <AgreementStartDate>07/08/2010 13:46:18</AgreementStartDate>
    <AgreementStatus>Awaiting</AgreementStatus>
    <ContactFirstName />
    <ITIStreetAddress />
    <ITIStreetNumber />
    - <ListOfOrderEntry-Orders>
    - <OrderEntry-Orders>
    <ITIMoneyToCollect />
    <OrderDate>07/08/2010 13:46:53</OrderDate>
    <OrderNumber2>1-685579</OrderNumber2>
    <OrderStatus>Pending</OrderStatus>
    <OrderType>Sales Order</OrderType>
    - <ListOfOrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Hollywood 18m</Product>
    <ProductType />
    <PromotionId>123456</PromotionId>
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName>Hollywood 18m</ProdPromName>
    <Product>n TV</Product>
    <ProductType>Root</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>HBO + nFilmHD</Product>
    <ProductType />
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>HBO</Product>
    <ProductType>Opcje dodatkowe</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>nFilmHD</Product>
    <ProductType>Opcje dodatkowe</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>nbox HDTV</Product>
    <ProductType>Dekoder</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Cinemax</Product>
    <ProductType>Opcje dodatkowe</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Filmbox</Product>
    <ProductType>Opcje dodatkowe</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Upust za zakup 3-ego pakietu</Product>
    <ProductType>Upusty</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Pakiet Informacja i Rozrywka</Product>
    <ProductType>Pakiety</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Opłata aktywacyjna za nbox HDTV</Product>
    <ProductType />
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Pakiet Dzieci</Product>
    <ProductType>Pakiety</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    - <OrderEntry-LineItems>
    <OrderType2>Sales Order</OrderType2>
    <ProdPromName />
    <Product>Pakiet Sport i Motoryzacja</Product>
    <ProductType>Pakiety</ProductType>
    <PromotionId />
    <ServiceId />
    </OrderEntry-LineItems>
    </ListOfOrderEntry-LineItems>
    </OrderEntry-Orders>
    </ListOfOrderEntry-Orders>
    </ServiceAgreement>
    </ListOfBipServiceAgreement>
    As per the above XML I want to see
    Pakiet Dzieci.Pakiety , Pakiet Sport i Motoryzac ja.Pakiety.....
    Thanks

  • Getting values from a table and concatenate them

    Hi All,
    I think somebody out there should be able to help me.
    I have a list of contract numbers the user has to type in.
    I've created a table where user can add as many rows as needed. Each row is a contract number.
    Once completed, I have to concatenate all of the contract numbers, separated with commas, so that I can send them to a floating field within a text box.
    It should look like this.
    .....1234, 2345, 3456 and 5678 (assuming these four values were keyed in by the user in the table form)
    Anybody can help me explaining how to concatenate the values and put them into the floating field?
    Thanks in advance.
    Rafael

    You can concatinate them easily but getting them into a floating field on the same form will be an issue. The floating field can only be filled when th eform is rendered and data is placed on the form. Floating fields are not interactive...so after the data load they are turned into text....they are not even fields anymore.

  • How can i concatenate single quote to a field symbol

    hi
    i have a senario where i have to concatenate a single quote (') to the field symbol. it is simple but i' m not able to do that.
    concatenate ''' <f> ''' into lv_f.
    CONCATENATE lv_condition_temp lv_f INTO
                                   lv_condition_temp
                                           SEPARATED BY space.
    this is the code which i used. could someone help me in solving this...
    thanks & regards,
    subha....

    hi
    i tried using the following code
    data : lv_text(10) type c.
    concatenate ''' <f> ''' into lv_text.
    it is giving me a spelling or incorrect comma error.
    thanks & regards,
    subhashini.

  • SQL - How to CONCATENATE and TRANSLATE in the same argument

    Hi,
    I am trying to CONCATENATE 7 columns into 1 and then TRANSLATE the values. I have written the below SQL, but it is throwing me error as - "invalid number of arguments". Can someone help me with the query?
    SQL
    ====
    SELECT
    A.ITEM           as PROD_NO,
    TRANSLATE(B.NON_DEL1 ||
    B.NON_DEL2 ||
    B.NON_DEL3 ||
    B.NON_DEL4 ||
    B.NON_DEL5 ||
    B.NON_DEL6 ||
    B.NON_DEL7),'YN','X ') SUPP_NON_CODE
    FROM (SELECT * FROM ITEM_DATA WHERE ITEM_TYPE = 'PRODUCT') A
    LEFT OUTER JOIN ITEM_DETAILS ITDET ON A.ITEM = B.ITEM
    ORDER BY A.ITEM;
    INPUT DATA
    ========
    ITEM_DATA table
    ITEM ITEM_TYPE
    ============
    100002 PRODUCT
    100004 PRODUCT
    100005 PRODUCT
    100006 PRODUCT
    ITEM_DETAILS table
    ITEM     NON_DEL1     NON_DEL2     NON_DEL3     NON_DEL4     NON_DEL5     NON_DEL6     NON_DEL7
    =====================================================
    100002     N     N     N     N     N     N     N
    100004     Y     Y     Y     Y     Y     Y     Y
    100005     Y     Y     N     Y     N     Y     Y
    100006     Y     N     N     Y     Y     Y     Y
    OUTPUT EXPECTED
    ITEM SUPP_NON_CODE
    =================
    100002     
    100004     XXXXXXX
    100005     XX X XX
    100006     X XXXX
    Regards
    Harsha
    Edited by: user13025253 on Apr 23, 2010 1:53 AM

    Remove the bracket after B.NON_DELIVERY_IND7.
    Urs

  • JOB is created but SPOOL is not created - using SUBMIT stmt in WD

    Hi,
    I am submitting report from WD. PFB the code i used. This is cuccessfully creating the JOB in SM37 and the status is 'Finished'. But when I click for the SPOOL, it is giving me an error 'No list available'.
    I used the following code for submitting the program.
    * call the FM 'JOB_OPEN' and create the job.
      SUBMIT ztest TO SAP-SPOOL
        WITH pnppernr-low EQ pernr
        WITH pnpbukrs-low EQ bukrs
        SPOOL PARAMETERS lv_print_parameters
        WITHOUT SPOOL DYNPRO
        VIA JOB lv_name NUMBER lv_number " job name and number created from JOB_OPEN
        AND RETURN.
    * call the FM 'JOB_CLOSE' and close the job.
    The submit stmt is working perfectly fine when executed directly..from R/3. The spool is also being created.
    I tried debugging the same. This goes to the INITIALIZITION part of the program but no goin to START-OF-SELECTION.
    Pls suggest if I am missing something in the code.
    Thanks,
    Teja.

    >
    teja wrote:
    > Hi,
    >
    > I am submitting report from WD. PFB the code i used. This is cuccessfully creating the JOB in SM37 and the status is 'Finished'. But when I click for the SPOOL, it is giving me an error 'No list available'.
    >
    > I used the following code for submitting the program.
    >
    >
    > * call the FM 'JOB_OPEN' and create the job.
    >
    >   SUBMIT ztest TO SAP-SPOOL
    >     WITH pnppernr-low EQ pernr
    >     WITH pnpbukrs-low EQ bukrs
    >     SPOOL PARAMETERS lv_print_parameters
    >     WITHOUT SPOOL DYNPRO
    >     VIA JOB lv_name NUMBER lv_number " job name and number created from JOB_OPEN
    >     AND RETURN.
    >
    > * call the FM 'JOB_CLOSE' and close the job.
    >
    >
    > The submit stmt is working perfectly fine when executed directly..from R/3. The spool is also being created.
    >
    > I tried debugging the same. This goes to the INITIALIZITION part of the program but no goin to START-OF-SELECTION.
    >
    > Pls suggest if I am missing something in the code.
    >
    > Thanks,
    > Teja.
    Hi,
    I guess this wont work. Didnt you get any dump ?
    FM's with dialog screens,conversion exits would cause the webdynpro session to disconnect.

Maybe you are looking for

  • Recording from Stereo

    I have a Pavilion g6  Product no. QG871EA#UUZ running under Windows 7. I have installed Audacity and I want to record vinyls and tapes running on my old Sanyo Stereo. It has a phono input, a video input (47k ohms), speakers output (40 W x 2 at 8 ohms

  • Step by step process for taking oracle back up on solaris

    Hi Can you please explain me step by step process for taking oracle back up on solaris. as well as i don't know about RMAN . what is this how to install this. whenever i am typing the rman in solaris $ rman rman not found is comming please help me in

  • Exchange 2007 Client Access and Receive Connector options not available (EMC)

    We have a SBS2008 server with Exchange 2007 When I open the EMC and go to Server Configuration --> Client Access, none off the options are available (greyed out). OAW, OWA, ActiveSync are working without any problems. Outlook anywhere enabled shows F

  • Cant burn any DVD's

    I realize that this is not a Roxio forum for Toast 9 or 10 but suddenly they are both reporting illegal sense keys. So I decided to use the Disk Utility to burn and on my first optical drive its giving me an error saying it cannot calibrate the drive

  • Indexing and searching

    Dear All, I am using oracle text and planning to make a search engine for text search on a set of document collection. I have indexed the document set which is pdf and power point document and then resulted in 4 extra tables. Could anybody please giv