How to WRITE a work area of type GLPCT into a list in ECC6.0?

Hi,
I need to wirte a workarea of type glpct as output in the list in ECC6.0. I dont want to include all the 105 fields in the structure in the WRITE statement. Please find the sample code (errored) below.I need your valuable suggestions to simplify this case.
Note :  (In ECC6.0 it is not allowing us to write the structured workarea directly on the list.)
DATA : wa_glpct TYPE glpct,
           wa_str TYPE string.
SELECT * FROM glpct INTO wa_glpct UP TO 1 ROWS.
MOVE wa_glpct TO wa_str.
ENDSELECT.
IF sy-subrc EQ 0.
WRITE : wa_str.
ENDIF.

Hi,
"WA_STR" and "WA_GLPCT" are not mutually convertible in a Unicode program."
i.e Both workarea structure must be same when we r using MOVE statement..
so use the field symbols?
FIELD-SYMBOLS: <f1> TYPE ANY.
ASSIGN wa_glpct TO <f1>.
Try this....
DATA : wa_glpct LIKE glpct.
FIELD-SYMBOLS: <f1> TYPE ANY.
ASSIGN wa_glpct TO <f1>.
SELECT * FROM glpct INTO wa_glpct UP TO 1 ROWS.
ENDSELECT.
IF sy-subrc EQ 0.
WRITE : / <f1>.
ENDIF.
Edited by: Upender Verma on Feb 16, 2009 9:25 AM

Similar Messages

  • How to get values/data stored in the database into a list-item.

    how to get values/data stored in the database into a list-item.
    i tried to make a list item without any values assigned to it...but i got the below error.
    FRM-30191: No list items defined for required poplist.
    or
    FRM-32082: Invalid value for given item type.
    List EMPNO
    Item: EMPNO
    Block: EMP
    Form: MODULE5
    FRM-30085: Unable to adjust form for output.
    then according to some docs, i tried the the following for the trigger
    when-new-form-instance
    declare
         rg_name varchar2(40) := 'emp_rec';
         status number;
         groupid recordgroup;
         it_id item;
    begin
         it_id := Find_Item('empno');
         groupid := create_group_from_query(rg_name, 'select empno from emp');
         status := populate_group(groupid);
         populate_list(it_id, groupid);
    end;
    but yet didnt work... :(
    so how the heck do i get values fetched from the database table into the list item?

    for list items you need to values in the record group, one is the shown value and one is the returned value.
    Check out the online help for the populate_list built-in.
    You'll need something like select ename,ename from emp as the record group query.

  • Iphone 4 cdma ppp user hdr password how to write  cdma work shop

    iphone 4 cdma ppp user hdr password how to write im using  cdma work shop
    and how to enble dignostic port 

    My Yahoo email account worked just fine on my iPhone 4S  for the last 2 months. Then this morning I started receiving the apple.imap.mail,yahoo error.  I tried all of the steps above in solving the yahoo email issue including numerous hard re-sets and deletions of my yahoo account settings without any success. So I gave up trying to use the default Yahoo setup option.  I added my Yahoo account back as an "other" type email account and then had the option to choose to set it up as a "POP" account instead of an IMAP type. I then just used the server settings recommended from Yahoo Help for a Yahoo Plus Email POP (or just google yahoo plus email pop settings). This works and I am back in business.
    I'm not sure if this will work for yahoo mail classic accounts.
    Frustrating that this issue seems to have been going on for quite awhile and Apple still as not made any acknowledgement of this issue or proposed a fix for those of us that can not resolve the issue with a reset.

  • Declare work area of type = standard table

    Hi All,
    How to declare a workarea of type standard table in ABAP Objects..
    the syntax check of ABAP Objects showing error for the general ABAP Code
    for the same..
    Thanks in Advance, Sudeep..

    Hi Sudeep,
    I had shown the declarations for internal table and work area as well
    if you just want work area
    just use the second statement
    data : is_vbak type vbak. " work area of VBAK
    Regards
    Gopi

  • How do I rid work area of a double-dashed outline box that suddenly appeared on screen?

    Any help/suggestions/directions will be most appreciated...Working with AI CS2 for Mac when a double-dashed outline box appeared within my work area on-screen.  I'm not sure what it is...or how it got there...but it
    also appears on a PDF copy I made of my graphics.  How can I remove this 'box' ?   THANKS ALL   Curious-george

    Scott,
    Problem solved... by selecting VIEW  - - "Hide page tiling" to delete the 'box' from my work area.
    Best regards,
    George

  • How to fill Dynamic work area or field symbol?

    HI All,
    I have created dynamic work area(field symbol) by using following code. Now I want to fill the work area with values which are there in other internal table.
    * Create dynamic internal table/structure
      call method cl_alv_table_create=>create_dynamic_table
        exporting
          it_fieldcatalog = it_fieldcat
        importing
          ep_table        = dyn_table.
      assign dyn_table->* to <fs_table>.
    * Create dynamic work area and assign to Field Symbol
      create data dyn_line like line of <fs_table>.
      assign dyn_line->* to <fs_wa>.
    My <FS_WA> contains:
    ROW1
    ROW2
    ROW3
    ROW4 as fields in it without having any data.
    I have other internal table.. where I have FIELDS and Data like following:
    FIELD1  FIELD2   FIELD3
    ID1 ROW1 A1
    ID1 ROW2 A2
    ID1 ROW3 A3
    ID1 ROW4 A4
    ID2 ROW1 B1
    ID2 ROW2 B2
    ID2 ROW3 B3
    ID3 ROW1 C4
    Important thing that I have to share with you is... Source table of my Internal table and Source structure to create my dynamic table are same.
    This dynamic table has fields... with "FIELD2" values.
    Thanks,
    Naveen.I

    Create a dynamic internal table
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = lt_fcat
        IMPORTING
          ep_table        = lt_dy_table.
    Create dynamic work area and assign to FS
      ASSIGN lt_dy_table->* TO <fs_dyn_table>.
      CREATE DATA lt_dy_line LIKE LINE OF <fs_dyn_table>.
      ASSIGN lt_dy_line->* TO <fs_dyn_wa>.
    Define WA
      CREATE DATA dref TYPE (iv_struc_name).
      ASSIGN dref->* TO <fs_final>.
    Populate dynamic table from the file
      OPEN DATASET iv_path FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc = 0.
        DO.
          READ DATASET iv_path INTO ls_str.
          IF sy-subrc <> 0.
            ev_failed = abap_true.
            EXIT.
          ENDIF.
          SPLIT ls_str AT ';' INTO TABLE lt_dyn_tab.  " columns
          LOOP AT lt_dyn_tab INTO ls_dyn_tab.
            READ TABLE lt_struc_fld INTO ls_struc_fld INDEX sy-tabix.
            IF sy-subrc EQ 0.
              MOVE ls_struc_fld-fieldname TO ls_fieldname.
              ASSIGN COMPONENT ls_fieldname OF STRUCTURE <fs_dyn_wa> TO <fs_val>.
              IF sy-subrc = 0.
                <fs_val> = ls_dyn_tab.
              ENDIF.
              ASSIGN COMPONENT ls_fieldname OF STRUCTURE <fs_final> TO <fs_val>.
              IF sy-subrc = 0.
                <fs_val> = ls_dyn_tab.
              ENDIF.
            ENDIF.
          ENDLOOP.
          APPEND <fs_dyn_wa> TO <fs_dyn_table>.
          APPEND <fs_final> TO et_table.
          UNASSIGN: <fs_val>.
        ENDDO.
      ENDIF.
      CLOSE DATASET iv_path.

  • How to write a procedure to load the data into a table using xml file as input to the procedure?

    Hi,
    Iam new to the xml,
    can u please anyone help me how to write procedure to load the data into a table using xml as input parameter to a procedure and xml file is as shown below which is input to me.
    <?xml version="1.0"?>
    <DiseaseCodes>
    <Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    <Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    <Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    </DiseaseCodes>.
    Regards,
    vikram.

    here is the your XML parse in 11g :
    select *
      from xmltable('//Entity' passing xmltype
    '<?xml version="1.0"?>
    <DiseaseCodes>
    <Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    <Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    <Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
    </DiseaseCodes>
    ') columns
      "dcode" varchar2(4000) path '/Entity/dcode',
      "ddesc" varchar2(4000) path '/Entity/ddesc',
      "reauthflag" varchar2(4000) path '/Entity/reauthflag'
    dcode                                                                            ddesc                                                                            reauthflag
    0                                                                                (I87)Other disorders of veins - postphlebitic syndrome                           0
    0                                                                                (J04)Acute laryngitis and tracheitis                                             0
    0                                                                                (J17*)Pneumonia in other diseases - whooping cough                               0
    SQL>
    Using this parser you can create procedure as
    SQL> create or replace procedure myXMLParse(x clob) as
      2  begin
      3    insert into MyXmlTable
      4      select *
      5        from xmltable('//Entity' passing xmltype(x) columns "dcode"
      6                      varchar2(4000) path '/Entity/dcode',
      7                      "ddesc" varchar2(4000) path '/Entity/ddesc',
      8                      "reauthflag" varchar2(4000) path '/Entity/reauthflag');
      9    commit;
    10  end;
    11 
    12  /
    Procedure created
    SQL>
    SQL>
    SQL> exec myXMLParse('<?xml version="1.0"?><DiseaseCodes><Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity><Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity><Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity></DiseaseCodes>');
    PL/SQL procedure successfully completed
    SQL> select * from MYXMLTABLE;
    dcode                                                                            ddesc                                                                            reauthflag
    0                                                                                (I87)Other disorders of veins - postphlebitic syndrome                           0
    0                                                                                (J04)Acute laryngitis and tracheitis                                             0
    0                                                                                (J17*)Pneumonia in other diseases - whooping cough                               0
    SQL>
    SQL>
    Ramin Hashimzade

  • How to use a Work Repository when type is set to 'Execution' ?

    Hi All,
    I was just trying my hand at importing and exporting work repositories , I need to know how we can use a certain work repository when its type is set to 'Execution'
    I want to import some packages (which are in some other Work repository ) into that Work repository but I am missing something somewhere.
    Can somebody tell me what are the exact steps to import packages or Entire Work Repository into this newly created 'Execution' type Repository ??
    Regards.

    Hi,
    An work repository which is of EXECUTION type cant be used to import packages/interfaces etc.
    You can able to import only SCENARIOS in Operator component (from scenarios tab) and "just" execute it. As the term execution repository stands, u can able to execute objects created in Development repository.
    Moreover, u cant access designer itself if its a EXECUTION repository.
    Thanks,
    Guru

  • How to  write and what are reports for Income Statement by Region (SD/AR)?

    Hi all,
    I am anticipating  to write some abap reports, I am new to abap..Here is one of them..Anyone can help  me with writing a Report , how to do  'Income Statement by Region (SD/AR)'
    But since I am new to abap , if you wish to reply, please use a little more detail and simple explanation, step by step so I can understand what is the idea, how it can be acheived...what kind of report should be used , techniques, tables etc...:)
    Appreciate your help!
    Regards,
    Boby

    I agree with how you think bugs should be reported. For now, I'd suggest posting them here, in detail. Some of us can relay them to the appropriate places, at least until we hear from Adobe personnel about an official location or method for the average end user.
    Lee Jay

  • How do OS upgrades work on each type of machine...

    Hi all.
    Forgive my ignorance, but if i do a clean install of leopard, how does it know what machine I am using. From what i see, the install disks that come with my laptops/imacs/mac pro all have a different 'disk 1' and the same 'disk 2' I assume on disk 1 is all the hardware specific things.. and disk 2 is generic.
    Am i thinking too 'windows' and that the install is intelligent to know what the machine is, and then install the relevant applications/shortcuts/keyboards etc?
    Is it better to do a clean install rather than an upgrade? Or am i thinking too 'windows' again?
    Cheers!

    You aren't thinking too windows. The kernel needs, and does, know what hardware it's dealing with. As the kernel initializes during bootup it can check with the PRAM/NVRAM (Programmable Random Access Memory, Non Volitile Random Access Memory) to get hardware info. It can also interogate any other hardware that it finds. It loads the appropriate kernel extensions to deal with the connected hardware.
    If you want to see what the kernel's variables and their values are, launch terminal and run the following command:
    sudo nvram -p
    nvram -p will just print out the varaibles/values in nvram.
    Roger

  • How to write text name of parameters / select options in  ABAP list??

    Hi gurus, i must read the text name of parameterd / select options in ABAP program and write it in a list of the same program for log.......how can i do it??
    Thanks in advance!
    Best regards!
    Ferdinando
    Message was edited by:
            Ferdinando Sellitto

    Hello Ferdinandino
    Useful function modules are:
    RS_PRINT_SELECTIONS
    RS_LIST_SELECTION_TABLE (Generates list according to values in selection table(RSPARAMS))
    RS_REFRESH_FROM_SELECTOPTIONS (Current contents of selection screen)
    Function module RS_REFRESH_FROM_SELECTOPTIONS can provide the input for function module RS_LIST_SELECTION_TABLE.
    Regards
      Uwe

  • How to write ABAP code to split a sentence into Word by Word and store them

    Hi all,
        I have to split a sentence into word by word and store them into separate columns. This sentence is nothing but a text description (TXTMD) from table TXXXX. The description will have 3 or more than 3 words and LAST word will be <b>always with %</b>'. The following is the sample input data:
    KEY(ORD43)       Description(TXTMD)
    'AAAA'                '1234  ABCD COMPANY USA  80%'
    'BBBB'                '4745  XYZ INC CANADA ABCD  70%'
    For the first record:
      '1234' should stored in to <b>Field 1</b>, 'ABCD COMPANY USA' into <b>Field 2</b> and
    '80%' into <b>Filed 3</b>.
    For the second record:
      '4745' should stored in to <b>Field 1</b>, 'XYZ INC CANADA ABCD'  into <b>Field 2</b> and 70%' into <b>Field 3</b>.
      The first word into Field 1, the last word with % into Field 3 and all middle words into Field 2. The number of words in the sentence could be 3 or more than 3.
      Could you please help in writing the ABAP for this requirement ????
      Thanks in advance.
    Regards,
    Venkat.

    Easy way if you know the length of the field.
    In my example I assumed my field has 12 places.
    DATA: obs TYPE string,
           bkp TYPE char12.
    obs = '12345678901234567890123456789012345678901234567890'.
    DO.
       MOVE obs TO bkp.
       SHIFT obs BY 12 PLACES LEFT.
       write: / bkp.   "Do what you want with bkp variable
       IF obs IS INITIAL.
         EXIT.
       ENDIF.
    ENDDO.

  • How to write ABAP code to split a sentence into Word by Word ???

    Hi all,
    I have to split a sentence into word by word and store them into separate columns. This sentence is nothing but a text description (TXTMD) from table TXXXX. The description will have 3 or more than 3 words and LAST word will be always with %'.
    This description is available on R/3 table and in InfoObject on BW side and this split is required in reporting. Should I split it in R/3 itself or BW side, PLEASE ?
    The following is the sample input data:
    KEY(ORD43) Description(TXTMD)
    'AAAA' '1234 ABCD COMPANY USA 80%'
    'BBBB' '4745 XYZ INC CANADA ABCD 70%'
    For the first record:
    '1234' should stored in to Field 1, 'ABCD COMPANY USA' into Field 2 and
    '80%' into Filed 3.
    For the second record:
    '4745' should stored in to Field 1, 'XYZ INC CANADA ABCD' into Field 2 and 70%' into Field 3.
      The first word into Field 1, the last word with % into Field 3 and all middle words into Field 2.
    Could you please help in writing the ABAP for this requirement ????
    Thanks in advance.
    Regards,
    Venkat.

    Hi,
    in case your text is built in that way for every record you can do the following in routines of the update rules to the 3 fields:
    routine for field 1:
    result = comm_structure-<name of your textfield>(4).
    routine for field 2:
    data: l_length type i.
    l_length = strlen( comm_structure-<name of your textfield> ).
    l_length = l_length - 9.  "the 5 characters at the beginning + 4 at the end.
    result = comm_structure-<name of your textfield>+4(l_length).
    routine for field 3:
    data: l_length type i.
    l_length = strlen( comm_structure-<name of your textfield> ).
    l_length = l_length - 3.
    result = comm_structure-<name of your textfield>+l_length(3).
    hope this helps!
    kind regards
    Siggi

  • How to write .CSV file to import device placeholder into Lion Server Profile Manager?

    I'm now using Mac Mini with Lion Server (10.7.4). I've already setup a server with Profile Manager to manage some iOS devices.
    Now I need to add many devices into Profile Manager. From some articles, (for example http://my.safaribooksonline.com/book/-/9780132778879/chapter-4dot-managing-accou nts/ch04lev1sec3), I found that I can use .CSV file to import many device placeholders at a time. So I create a .CSV file "devices.csv" with the content as the following:
    iPhone001,12345ABCD12,,,
    Then I import this file to "Devices" in Profile Manager, but in vain. It says that the placeholder is invalid.
    If there's any one could provide some exemples? Thanks a lot.

    Hi Nien-Yi Ho,
    A little late, but perhaps someone else can benefit ...
    The way I did this, is:
    - create an empty Excel spreadsheet
    - add 5 headers in the first row: DeviceName, SerialNumber, IMEI, MEID, UDID
    - in the next rows add your devices and specs (for the iPhones and iPads I only added DeviceName, SerialNumber and IMEI specs)
    - IMPORTANT: save the file as a Windows CSV file.
    If you import the CSV file now, all should go well.

  • How can I copy a large number of contacts into a list in the address book?

    I want to send a message to a large fraction of the people in my address book. How do I copy their addresses into a new list without doing it by hand?

    Thanks for your answer. It works very poorly. I have tried a number of permutations, and each one fails in some way. If I try to copy ten names, it may just write the first few. if I highlight all the names in the source book, then the list name doesn't highlight when I move my cursor over it - only the other address books do that. I got the closest to success by exporting my entire source address book to a text file, removing the unwanted names by hand, and then importing only a few fields to a new address book - name and email address. When I highlight all the entries in this new address book and drag them to the target list, it copies MOST but not all of the entries. I have never seen drag and drop work so poorly. Any ideas?

Maybe you are looking for

  • No of days in a month in Query designer

    Hi I have Calender Year/Month (0CALMONTH) in the row of query,  I need to show no of days in that month, how can I do this in Query designer

  • Portege M400: cannot copy files on HDD - cannot see any of my files in Word

    I purchased the M400 a few weeks ago. There are a number of problems. Adobe reader gives "an internal error occurred", installing manual from download gives "error has occurred in zip file", downloading or copying files to hdd gives error "there is n

  • Lightroom & Photoshop Issues with Yosemite

    Hi. I am new to this so please forgive and errors or omissions in the information I am about to give below: Since upgrading to Yosemite 10.101, I have had issues with Photoshop not working properly. I am using the Creative Cloud versions of photoshop

  • Some users can't open Xcelsius-generated PDFs

    I'm creating PDFs with Xcelsius Present 5.3.4 on Windows XP.  When I distribute them, some people can open and others cannot.  I haven't seen any obvious configuration difference and at least one person has had the problem after loading the latest Re

  • Where can I download Adobe Media Encoder?

    I've already installed Premier Pro and AE through Adobe CC, but I still can't seem to find the Media encoder?