Concatenate fields of field symbols

Dear all,
How to concatenate 2 fields belonging to the same fieldsymbol?
what is the syntax?

Hello Rahul
Use an approach similar to the one shown below:
DATA:
  ld_string    TYPE STRING,
  ls_e070     TYPE e070.
FIELD-SYMBOLS:
  <ls_struc>   TYPE any,
  <ld_fld>       TYPE any.
SELECT SINGLE * FROM e070 INTO ls_e070
    WHERE trkorr = '...'.
  ASSIGN <ls_struc> TO ls_e070.
  CLEAR: ls_string.
  DO.
    ASSIGN COMPONENT syst-index OF STRUCTURE <ls_struc> TO <ld_fld>.
    IF ( syst-subrc NE 0 ).
      EXIT.
    ENDIF.
    IF ( syst-index = 1 ).
      ls_string = <ld_fld>.
    ELSE.
      CONCATENATE ls_string <ld_fld>  INTO ls_string
        SEPARATED BY cl_abap_char_utilities=>horizontal_tab.  " TAB separator
    ENDIF.
  ENDDO.
Regards,
  Uwe

Similar Messages

  • Moving Field of  Field Symbols type any.

    Hi all,
    I have  following piece of code
    METHODS : test IMPORTING itab TYPE STANDARD TABLE.
    method test.
    FIELD-SYMBOLS : <fs> TYPE ANY.
    data  : final(100) type c.
    LOOP AT itab ASSIGNING <fs>.
    *Here i want to concatenate the 20 fields of itab or <fs> into *final* for every loop.
    *Can anyone know an easier way in here
    endloop.
    endmethod.
    Thanks

    Hi,
    Can you use the command
    CONCATENATE final <FS> INTO FINAL.
    inside the loop.

  • 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

  • Concatenate text to field value in report header

    I'm trying to concatenate text to field value in a textbox in the report header but am getting an error.  Here's how I'm doing it:
    =First(Fields!Pp_Name.Value, "dsProspect") & "Prospect"
    and the error says the report definition is invalid.  An unexpected error occurred while compiling expressions.  Native compiler return value '[BC30179] class 'Textbox.....
    any idea why this wont compile?
    Thank you.

    Hi moondaddy,
    Generally, the error message always occurred when there are two distinct text boxes with the same name that only differ in their name by casing in report. When Reporting Services generates VB code for these textboxes during report publishing, the compilation
    fails because VB class names are considered case-insensitive.
    So this issue is not related to the expression (the format is correct) you post, it related to the Textbox name that the error message said. In order to fix this issue, please rename one of the textboxes.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click here.
    Katherine Xiong
    TechNet Community Support

  • How can I concatenate a currency field (eg: 12.25) with numeric values

    Hi,
    I ma working in ECC6.0.
    How can I concatenate a currency field (eg: 12.25) with numeric and character values into a variable.
    I want to concatenate 12.25  with  "+"  and  "0".
    Regard,
    Divya

    Hi,
    I ma working in ECC6.0.
    How can I concatenate a currency field (eg: 12.25) with numeric and character values into a variable.
    I want to concatenate 12.25 with "+" and "0".
    Regard,
    Divya
    ==================================
    data: l_string type string.
    move l_curr_field to l_string.
    condense l_string no-gaps.     "if needed
    concatenate l_string '+' '0' into l_string.
    now your l_string will have all the values.

  • How to populate field catalogue fields in ALV using  dynamic internal table

    Hi All,
    Please let me know how to populate field catalogue fields in ALV using  dynamic internal table.
    I have created <dyn_table> using code below.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
                     EXPORTING
                       it_fieldcatalog = g_t_ifc
                        it_fieldcatalog = g_t_fieldcat
                     IMPORTING
                        ep_table        = dy_table.
      ASSIGN dy_table->* TO <dyn_table>.
    Create dynamic work area and assign to FS
      CREATE DATA dy_line LIKE LINE OF <dyn_table>.
      ASSIGN dy_line->* TO <dyn_wa>.
    Now this  <dyn_table>  has fields like idoc no.,creation date ,
    segment field 1, segment field 2 etc..Now idoc no.,creation date  are static fields from table EDIDC. And segment field 1, segment field 2 etc are dynamic fields from table EDSAPPL.
    In my  ALV report I am getting the final layout properly but I am unable to move values to corresponding fields in the final layout shown.Please let me know how to populate these fields from different tables.
    I tried this way but its not working.
    SORT g_t_edid4 BY docnum.
      LOOP AT g_t_edidc INTO g_r_edidc.
        READ TABLE g_t_edid4 into g_r_edid4
                         WITH KEY docnum = g_r_edidc-docnum
                                        BINARY SEARCH.
        IF sy-subrc = 0.
          <dyn_wa> =  g_r_edid4-sdata.
         MOVE-CORRESPONDING g_r_edid4 to <dyn_wa>.
       CLEAR g_r_edid4.
        ENDIF.
    MOVE-CORRESPONDING g_r_edidc to <dyn_wa>.
    APPEND <dyn_wa> TO <dyn_table>.

    You have to assign each field to field symbol and then assign the value to that field symbol and asssign that field symbol to workarea field symbol.
    LOOP AT g_t_edidc INTO g_r_edidc.
    READ TABLE g_t_edid4 into g_r_edid4
    WITH KEY docnum = g_r_edidc-docnum
    BINARY SEARCH.
    IF sy-subrc = 0.
    ASSIGN COMPONENT 'SDATA' OF STRUCTURE <DYN_WA> TO <DYN_FLD>.
    <DYN_FLD> = g_r_edid4-sdata.
    " <dyn_wa> = g_r_edid4-sdata.
    " Assign each fields like this.
    " MOVE-CORRESPONDING g_r_edid4 to <dyn_wa>.
    CLEAR g_r_edid4.
    ENDIF.
    " MOVE-CORRESPONDING g_r_edidc to <dyn_wa>.
    APPEND <dyn_wa> TO <dyn_table>.
    Regards,
    Naimesh Patel

  • Key Fields, Data Fields, Key Figures and Characteristis, Dimesions & Key Fi

    Hi All,
    Can any one please describe more about the below terms and with the Example....
    Like when we identify which one is Key filelds and Data fileds, how to distingush creating new dimesions (Is it based on user reporting) Key figures in Dimestions...
    DSO/ODS:  Key fields, Data Fields
    InfoCube: Dimensions, Key Figures
    Infoobjects: Key figures, Characteritics
    Regards,
    Prem

    Hi,
    Search through SDN for more information on these concepts,
    Re: ods data fields or key fields?
    Re: Key Fields and Data Fields in ODS
    defining Key -field and data fields
    Regards,
    Mani

  • Not getting field value in Input field of field exit

    Hi all
       I  am using field exit for data element GWLDT in transaction code IE02. But in this field exit I am not getting the value entered in the field "Begin guarantee date(GWLDT)" in the INPUT field of field exit.How I can get the value in the INPUT field of field exit?
    Regards
    Deepak

    Use this statement in source code.
    output = input.

  • Field "Value field texts" is disabled to enter new values

    Hi there,
    I'm trying to enter new values on the field "Value field texts" from Depreciation Area, in Config Asset Value Display(Financial Accounting (New) > Asset Accounting > Information System > Configure Asset Value Display). The fields are disbled to enter new text values.
    I don't know what's happening. I've see the SAP Note 121433, but I don't intend to request the creation of a program to fill these fields. Does anyone know if there's another way to deal with this?
    Thanks in advance.

    Hi Srinivasa,
    Thanks for reply. I've checked the transaction ANSICHT following the steps said and the Master Data fields are with "No authorization" for all Depreciation areas.
    Do you know if there's another way of enable these fields? We cannot change the Authorization settings from one Depreciation Area to another.
    Thanks a lot.

  • New field in field catalog in output

    How can I add new field in field catalog in Output determination. I heard it can be done through a user exit. Can somebofd help with the user exit name.

    if you want to use new field in output determination - you need to modify corresponding communication structure (KOMKBV1 - header structure for V1 application - like sales orders, contracts,...)
    Then in RVCOMFZZ in one of the userexits you can populate those fields.
    After your fields are added to KOMKBV1 - you can use them in output determination.

  • How to Make Fields in Field Catalog Mandatory

    Hi Gurus,
    I want to Make Some Fields In Field Catalog Mandatory and Some should be Non Mandatory Can u please help me out as soon as u can.
    Regards
    Deep Gaur

    Hi,
    IF you can specify which Field Catalog then it will be useful for us to provide appropriate answer.
    1. For Customer Master
    IMG> Financial Accounting New> Acs Recev and Acs Payable --> Customer Accounts --> Master Data --> Preperation of creating customer master Data --> Define Account Groups with screen layout (customers)
    In that you can create your own account group, and click Details Screen.
    There will Field Status header within that are listed three main areas
    General data
    Company code data
    Sales data
    When you double click these lines it will take you into "Status Group" Overview. Wherein under "Select Group" are listed fields Address, communiucation.... Double click on one group , you will bet aken into the group field wherein you will find 4 colums with indicators assigned to it. ( Suppress, Req. Entry, Opt Entry, Display) you can choose the required option. "Req. Entry" against the field. Click save after you complete your selections.
    2. Similarly you can do for Material Master in
    IMG --> Logistics General --> Material Master --> Field Selection --> Maintain Field Selection for Data Screens
    But be careful when you do it for material master as it is cuts across all the modules...
    Regards
    Sathya

  • Fields[i].Field.Value in C#

    Hello all,
    I am new to Crystal and am updating an application that currently uses Crystal 8.5. I have installed Crystal 2008 and am attempting to update some methods and properties so that the upgrade will be smooth and not require much change in the application code. I am having a problem with getting the value of a field object in .NET. I need to know what the value of the field on the form is so I can use it in my code. The 8.5 implementation was Field[someField].Field.Value, but that doesn't work now. Any suggestions are welcome...
    Thanks in advance.

    Hi;
    I suggest you have a look at the following article on converting from the RDC to .NET:
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/e0eb394f-931e-2b10-3b82-9413bfc3f457
    To get the field value, however, you will need to use the RAS engine. See this article:
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/d0479adb-6b3f-2b10-1e9c-eb81a15768e8&overridelayout=true
    And the folllowing forum post:
    how to get field value from a crystal 11.5 R2 .net report
    Best Regards,
    Jonathan

  • Adding 'Your Reference'(VBKD-IHREZ) field to Field catalog in Output determ

    The requirement is maintaining the condition table using Sales Org/Sales Doc Type/Your reference in output determination process. But the field 'Your reference(VBKD-IHREZ)' is not in the field catalog. Can someone tell me how to add the VBKD-IHREZ to field catalog?
    Thanks in Advance.

    Hey,
    You can find intructions for adding fields to field catalog from this link: http://www.sap-basis-abap.com/sd/how-to-add-new-fields-to-field-catalog.htm

  • How to add new field to Field Catalog in Pricing?

    I want to create new field in field catalog (i.e. Average Supply Quantity), and then populate it to Web UI (user must enter value in this field for calculate price in opporunity). What actions I need to do for this?

    Hi Pavel,
    Fields added to field catalog are to define condition table.
    Go to SPRO->CRM->BAsic Functions->Pricing->Define Settings for Pricing->Maintain Field Catalog.
    Create the attribute in field catalog with below parameters,
    Field Type = 'I' ( item field ) if its header field then it should be H and corresponding structure is CRMT_ACS_H_COM
    Implementation type = ' '
    Enter field name
    Virtual = 'C'
    Visibility = ' '
    Selection type = 'A'
    Enter the data element
    Now save the field catalog and click generate.
    The next step is to pass value to the field in order to do pricing. This should be done in CRM_COND_COM_BADI. If the field is a 
    header field then assign value to the field in method HEADER_COMMUNICATION_STRUCTURE else use method ITEM_COMMUNICATION STRUCTURE. You will find the attribute in importing structure of the both the methods. Assign value (i.e. Average Supply Quantity) to the field.
    Regards,
    Arun

  • How to make the UoM field optional field

    In material master Basic data1 tab, I want to make UoM field optional field. In OMS9, I changed this field from Req,field to Opt field
    ,but when i create a material, the UoM is still Req. How to resolve this? Thank you.

    Hi,
    Unit of measurement is the mandatory field for the materials.Without a unit we can't do anything for the material. Even though u changed as a optional entry system will insist to enter the UOM. Because its a standard process in SAP.Same thing will be happend for the material Description also.Field reference will not control such fields like UOM and material Description etc...
    Regards,
    Venkatesh

  • Why is a fillable, savable form on iPad taking 4ever to move from field to field when data entered?

    How can I get my fillable, savable, calculated fields PDF form to move from field to field more quickly when entering data on an iPad/iPhone/handheld using the Adobe Reader app? I have tried everything I can find to reduce the file size, but to no avail. It is taking about 8-10 seconds to move from field to field after entering data. There is no problem filling in the form on a Mac laptop/desktop in regards to the lagtime. I haven't tried the form on any Windows OS product.
    I suspect it has to do with the javascript, but I've tested other fill-in savable forms on my iPad (such as employer tax forms from IRS and State) and they work fine and move quickly. However, there are quite a lot of fields on this particular form I've created (270 to be exact - it is an order form for clothing with many size choices for each item), so perhaps it has to do with that as well. I came to this conclusion after creating one page of the form and it only took 3-4 seconds to move from field to field when entering data, but when I created the second page it went up to the 8-10 seconds.
    Any suggestions would be greatly appreciated. I am using Adobe Acrobat X 10.1.7.27 for/on iMac 10.7.5 2.5 GHZ Intel Core i5.

    I have this issue as well. I created an expense tracking form using the Acrobat X basic calculation tool (not javascripts) and it takes 10 - 15 seconds to move to the next field on an iPad or Android device. On my PC it works great. HELP!
    I also tried using a trial version of Acrobat XI with the same result.

Maybe you are looking for

  • Printing black and white

    My printer offers me the choice of printing in color or blck and whit. On most--I hit blck and white because I don't want to waste my ink. It always prints in color. Why is this suddenly happening?-Julie

  • Some backend documents could not be generated or are incorrect - Contract

    Hi SRM Experts, I am trying to create Contract with Carry out Sourcing and reference to Shopping Cart. But, I am able to create Contract with Error like "Some backend documents could not be generated or are incorrect". Please let me know do I need to

  • Upgrade Flash-player

    I have been having trouble upgrading my Adobe Flash-player for Safari. The problem is that it only downloads to 25% and then it just freeze and when i stop the download i get re-directed to Adobe´s download page.

  • Auto created import statements

    I create a var of some type and the builder adds the import statement and then if I change the type later on it adds another import statement, is there a way to cleanup the unused import statements? Thanks, Mike

  • Unable to Desktop Innerpage

    Hi, I am unable to see Desktop Innerpage while loading Portal Framework page and getting following error. Portal Runtime Error An exception occurred while processing a request for : iView : N/A Component Name : N/A com/sapportals/htmlb/AbstractCompos