Field symbols for tables used under tables tabstrip in bapi

Hi all,
I am created a bapi and under tables tabstrip i have given  3 tables,
Inside the bapi , i have written a perform statement which returns these 3 tables .
PERFORM bapi_sales TABLES it_valid it_error it_errorc USING testrun.
how can we create field symbols for these tables ?
Regards
Nagarah

hi,
goto: system-utilities- debug system
A.
Message was edited by: Andreas Mann

Similar Messages

  • Need Help in Field Symbol for Dynamically passing  table field value

    Hi All,
    In my internal table I am having data.
    I am dynamically forming table field name and substitute for the another table field name to pass DATA.
    but I am getting the Variable name insted of Value ie Data.
    I am using Field Symbol for this.
    data:
    Field-symbols <TS> type any.
    field1 type string.
    LOOP AT TABLEFIELDS INTO WA_TABLEFIELDS.
                READ TABLE  TEST  WITH KEY NAME = WA_TABLEFIELDS-FIELDNAME.
                IF SY-SUBRC = 0.
                  CONCATENATE 'WA_' WA_TABLEFIELDS-TABNAME '-' WA_TABLEFIELDS-FIELDNAME INTO  Field1.
                  Assign Field1 to <TS>.
                    ALL_VAL-VALUE = <TS>
    "After substituting the <TS>  into ALL_VAL-VALUE  field I need a DATA to be passed but the variable name is appending"*    
             APPEND ALL_VAL.
                ENDIF.
              ENDLOOP.
    kindly how to pass the value into the table.
    Thanks in advance.
    San

    Hi,
    pls assign a break point in
    CONCATENATE 'WA_' WA_TABLEFIELDS-TABNAME '-' WA_TABLEFIELDS-FIELDNAME INTO Field1.
    Assign Field1 to <TS>.
    ALL_VAL-VALUE = <TS>
       " Put a break point here and check for the value in <TS>.
    if <TS> contains value then create a work area for ALL_VAL AND PASS the Field-Symbol to that and then  append thw wa into the table...
    Hope this works out!!
    thanks

  • Define hashed table using database table

    Hi,
    I have a database table and would want to define a hashed table using this table structure, how would I do that?
    Thanks
    RT

    Hi Rob,
    The syntax is as follows,
    DATA ITAB TYPE HASHED TABLE OF SPFLI
                   WITH UNIQUE KEY CARRID CONNID.
    The table object ITAB has the type hashed table, a line type corresponding to the flat structure SPFLI from the ABAP Dictionary, and a unique key with the key fields CARRID and CONNID. The internal table ITAB can be regarded as an internal template for the database table SPFLI. It is therefore particularly suitable for working with data from this database table as long as you only access it using the key.

  • Field symbols for fetching ME51N screen data

    Hi,
    I need to fetch ME51N or ME52N screen data.
    In old Transaction (ME51,ME52) there is this code that work:
    data:wa_eban like eban.
    data:wa_rm06b like rm06b.
    data:va_epstp like rm06b-epstp.
    data:va_knttp like eban-knttp.
    field-symbols <va_eban> structure eban default  wa_eban.
    field-symbols <va_rm06b> structure rm06b default wa_rm06b.
    assign ('(SAPMM06B)EBAN') to <va_eban>.
    assign ('(SAPMM06B)RM06B')  to <va_rm06b>.
    move <va_rm06b>-epstp to va_epstp.
    move <va_eban>-knttp to va_knttp.
    if not <va_eban>-loekz  is initial.
          exit.
    endif.
    This code is used in a FIELD EXIT for compare Data in some Fields.
    In the New Transaction i can't use this code because EBAN and RM06B is empty and return null.
    Can any one tell me if there are Program/Structure combination that return EBAN and RM06B Data?
    Or alternatively whether any better method available for fetching screen data?
    Thanks & Regards
    Angelo

    For more Info see this thread, similar problem is solved, but in ME52N change some things.
    Re: Field symbols for fetching ME21N screen data
    Thanks & Regards
    Angelo

  • Problem in assigning field symbol to a nested internal table

    Hi All,
    I have searched the forum but could not find a solution to this problem. I have a requirement where I need to define an internal table within an internal table, so I have used pointer within the outer internal table(itab2) which point to the inner table. However, I am facing problem while assigning the pointer.
    data: begin of struct1 occurs 0,
            fld3(10) type C,
           end of struct1.
    data: begin of itab2 occurs 0,
            fld1(10) type C,
            fld2(10) type C,
            p_inner like ref to struct1,
          end of itab2.
    field-symbols <inner_table> type any.
    I want to assign "itab2->p_inner->* " to "<inner_table>".
    However, the following statement is Not working:
    assign itab2->p_inner->* to <inner_table>.
    I want to fill the values within fields fld1, fld2 and fld3 and append it in itab2.
    The final table should be like:
    ITAB2:
    fld1    fld2    fld3
    aa      bb      cc
                     dd
                     ee
    11      22      33
                     44
                     55
    I have tried many other ways too but could not suceed, please help.
    Thanks,
    Vishal.

    Thanks Matt,
    But how do I append the values within this internal table ??
    When I am using the following code:
    ls_wa-fld3 = 'A'.
    ls_wa-t_in-fld1 = 'B'.
    ls_wa-t_in-fld2 = 'C'.
    ls_wa-t_in-fld1 = 'D'.
    ls_wa-t_in-fld2 = 'E'.
    append ls_wa to lt_tab.
    Its giving an error that:
    The data object "LS_WA" does not have a component called "T_IN-FLD1".
    I wanted the values to be appended in the following way in lt_tab:
    fld3     fld1     fld2
    A     B     C
         D     E
    Please help.

  • Moving field-symbol data to an internal table

    Hi
    I have defined a field-symbol
      field-symbols: <fs_table> type standard table.
      Dynamically, I have populated some records in this <fs_table> & now I would like to copy this data into another internal table. I would like to know the best method to declare/create this internal table & to copy the records from <fs_table> to this internal table.
      Thanks,
      Sanjay

    if you know the structure of the reuslt in the first place, instead of dynamic itab you would have created a normal itab.
    do you want the new itab to be same as <l_table> ?
    then that also needs to be dynamically created.
    the best thing possible in you case is.
    field-symbols: <newtab> type any table.
    if <l_table> is assinged.
    assign <l_table> to <newtab>.
    endif .
    if you tell us why you want to move the <l_table> records to another similar itab, may be could come up with suggestion which dosesnt require you to move the data at all
    Raja

  • Field symbols for fetching ME21N screen data

    Hi,
    I need to fetch ME21N screen data,i.e,line item data( material number),for which i have written code as below:
    IF SY-TCODE = 'ME21N' OR
       SY-TCODE = 'ME22N'.
    ematn = '(SAPLMEGUI)MEPO1211-EMATN'.
    ENDIF.
    FIELD-SYMBOLS : <fs1> TYPE ANY.
    ASSIGN (ematn) TO <fs1>.
    But data is not coming to <fs1>.
    Can any one tell me whether any mistake in above statement.
    Or alternatively whether any better method available for fetching screen data?
    I need to use this data in a pricing routine.
    Thanks & Regards
    Seshagiri.

    Hi,
    The combination of both these can be used-
    we can read the screnn fields using this FM-
    DYNP_VALUES_READ
    ***TO READ VALUES
    CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                DYNAME                   = W_PROG
                DYNUMB                   = W_DYNP
                TRANSLATE_TO_UPPER       = 'X'
           TABLES
                DYNPFIELDS               =  T_DYNPRO.
      READ TABLE  T_DYNPRO INDEX 1 INTO FIELD_VALUE.
      W_CARRID = FIELD_VALUE-FIELDVALUE.
    Paricularly for Material numbers this aslo shoud be used -
    CONVERSION_EXIT_MATN1_INPUT
    Thanks & Regards,
    Chandralekha.

  • How to change default value in a table using ALTER TABLE

    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    Any help will be needful for me
    Thanks and Regards

    user598986 wrote:
    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    ALTER TABLE  test
    MODIFY (indicator DEFAULT 'I'); 
    Incidentally, INDICATOR is a keyword in Oracle, so you may have problems using it as a column name. If so, you'll have to enclose the column name in double-quotes, and be careful to use capital letters inside the quotes.
    Edited by: Frank Kulash on Aug 26, 2009 11:42 AM

  • Inserting data into one table using another table

    Hi i have 2 tables
    CREATE TABLE N_SET
    N_ST_ID NUMBER(38) NOT NULL, ---- PK
    N_ST_NM VARCHAR2(50 BYTE) NOT NULL,
    N_ST_DSC VARCHAR2(200 BYTE),
    DFTID NUMBER ------ FK
    CREATE TABLE RZ
    NST_ID NUMBER(38) NOT NULL, ---- FK
    RID NUMBER(38) NOT NULL, --- PK
    RNM VARCHAR2(30 BYTE) NOT NULL
    I entered the data into the N_SET table using sequence in column N_ST_ID (using procedure)
    Now i need to enter the data into RZ table where NST_ID should contain the value of N_SET.N_ST_ID
    so for this i've written another procedure
    but confused how to write the select statement to retrieve the above condition..
    Could you help me in this please...

    Hi,
    I have a table Target whose structure is
    create table employee
    id VARCHAR2(20),
    name VARCHAR2(20),
    employee_seq NUMBER not null
    -- Create sequence
    create sequence test_seq
    minvalue 1
    maxvalue 999999999999999999999999999
    start with 5
    increment by 1
    nocache
    cycle;
    create table emp
    id VARCHAR2(20)
    name VARCHAR2(20)
    INSERT INTO emp
    ( id, name )
    VaLUES ( '100','test1');
    commit;
    INSERT INTO emp
    ( id, name )
    VaLUES ( '100','test2');
    commit;
    i have to insert into the TARGET table the fsa value from
    SOURCE table along with the sequence number using sequence test_seq.nextval.
    INSERT INTO employee
    ( id, name, employee_seq )
    SELECT id, ename, ( select test_seq.nextval from dual )
    FROM emp ;

  • Very Urgent: how to define field symbols in class using se24 Points assured

    hi all
    I am new to abap oo programming. I am using se24 to build a class
    where some methods have code which involves working with field sybmols but i am not able to figure out way for how to define field symbols in the attributes section.
    I tried defining like : fld_sym type ref to  dbtab-fld
    but in the method implementation if i try to use it like assign fld to <fld_sym> there it says fld_sym is not defined as a field symbol.
    So can anyone please guide me how to define field symbols in se24.
    Also what should be the general steps while creating a class using se24.
    Points assured
    thanks

    Hi
    Global classes are like Global fun modules in which the Methods and code is already written and is mainly used for Reusability purpose.
    Goto SE24 tcode and see the std global classes like
    CL_ABAP_CHAR_UTILITIES
    see the links
    chk out the links below:
    General Tutorial for OOPS
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    Have a look at these links for OO ABAP.
    http://www.sapgenie.com/abap/OO/
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
    http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
    http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
    http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
    http://www.allsaplinks.com/
    http://www.sapgenie.com/abap/controls/index.htm
    http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
    http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
    http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
    SDN Series:
    https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/webcontent/uuid/35eaef9c-0b01-0010-dd8b-e3b0f9ed7ccb [original link is broken]
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
    Basic concepts of OOPS
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1591ec90-0201-0010-3ba8-cdcd500b17cf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
    http://www.henrikfrank.dk/abapuk.html
    http://www.erpgenie.com/abap/OO/
    Reward oints if useful,
    Aleem.

  • Inserting to a table using same table and master table

    [code]
    I have a table  test_master where I have stored the status of the individual claims  ; the status would be changed quarterly basis.
    I have another table test_detail which will store status chages on each quarter.The curr_status column will store the status from test_master; and  prev_status will be the curr_status for the previous  trans_id from test_detail table itself
    create table test_master( claim_id number,
                            status varchar2(10));
    insert into  test_main VALUES (100, 'L1');                
    insert into  test_main VALUES (101, 'L2');   ---- first quarter data.. it will be purged at the begining of second quarter
    insert into  test_main VALUES (102, 'L1');
    insert into  test_main VALUES (103, 'L3');
    insert into  test_main VALUES (100,  'L2');
    insert into  test_main VALUES (101,  'L2');    ---- second quarter data.. it will be purged at the begining of third quarter  
    insert into  test_main VALUES (102,  'L1');
    insert into  test_main VALUES (103,  'L4');
    insert into  test_main VALUES (100,  'L4');
    insert into  test_main VALUES (101,  'L5');    ---- third quarter data.. it will be purged at the begining of fourth quarter  
    insert into  test_main VALUES (102,  'L6');
    insert into  test_main VALUES (103,  'L7');
    create table test_detail( trans_id number,
                              claim_id number,
                              prev_status varchar(20),
                              curr_status varchar2(21
    prev_status =  curr_status of  the previous id for same claim_id s
    curr_status =  status from TEST_MASTER
    how to write an insert statement to insert records in TEST_DETAIL to have below expected data?
    id     claim_id       PREV_STATUS      CURR_STATUS
    1          100                               null               L1    ---prev_status will be null for the first run
    1          101                               null               L2
    1          102                               null               L1
    1          103                               null               L3
    2          100                               L1                L2
    2          101                               L2                L2
    2          102                               L1                L1
    2          103                               L3                L4
    3          100                               L2                L4
    3          101                               L2                L5
    3          102                               L1                L6
    3          103                               L4                L7
    [/code]
    Thanks
    -Ann

    Hi,
    Do you really need to store prev_status in test_detail?  You can always compute it on the fly, using the analytic LAG function, and you won't have to worry about re-computing it when test_detail is updated.
    If test_detail will never be updated, and performance is important, then you may want to store prev_status.  Here's one way to do that.
    When you're ready to archive the data from test_main, then run this INSERT statement:
    INSERT INTO test_detail (trans_id, claim_id,  prev_status,      curr_status)
               SELECT        &2,     m.claim_id,  d.curr_status,    m.status
               FROM             test_main    m
               LEFT OUTER JOIN  test_detail  d  ON   d.claim_id  = m.claim_id
                                                AND  d.trans_id  = &1
    Where &1 is the previous trans_id (the highest value already in test_detail), and &2 is the new trans_id (&1 + 1).
    The first time you run this, when test_detail is empty, it doesn't matter what value you use for &1; you can use 0.
    After you've confirmed that this worked, then you can start putting new data into test_main.
    I assume that test_master and test_main are the same table.

  • How to insert record in table using ADF Table

    Hi,
    I am developing and application in ADF .it consist 5 tables.i need to insert into 1 table that contains IDs that are reffered from other tables and on ADF Table fi i dont want to show those IDs. Can somebody provide me solution how to do that?
    like i have a SkillTable - that contains attributes Resource No(number) ,module Id(number), Track id(number), skill_type(number), skill_rating(number), experience(number).
    Track id is reffered from track table
    Module id is reffered from module table
    Resource table is reffered from resource table
    skill_type and skill_rating from lookup table
    and i need to insert into SkillTable using ADF Table. we dont want to show Track id,module id,codes for skill_type nad skill_rating on ADF Table instead we want to show trackname and module name ,code values for skill_type and Skill_rating .
    when we create ADF table for this skill table it shows me ids but what i want is that in each row it should show resource name,modulename,track name,and for skill_type and skill_rating it should show name of skill_types and Skill_rating rather than codes for each skill_type and Skill_rating.
    we tried to insert by creating view ,but didnot work.
    plz provide any solution.
    Thnakls

    Hi,
    Thanks for quick reply.but let me tell u my problem in more detail.
    To insert into skill_table I have created a VO that contains ResourceNo, track_id, module_id,skill_type,skill_rating,experience. And I drag it on ADF creation form and also have created read only LOV for resource_name from resorce_table, LOV for skill_type,skill_rating from Lookup table,
    And mapped those LOV to resource_no,skill_type,skill_rating on insert page.
    For track_id I have converted inputtextBox to SelectinputText to create databound LOV which will popup a window that contain master detail for track_table and module_table which shows all track_names in master and corresponding module_names in detail table, and on that window I have select button when we click that button selected track_id and selected module_id will get populated to insert skill page in track_id selectinputtextbox and module_Id inpiuttextbox.
    Now what I want is that instead of track_id and module_id populated on insert page coz these are of id's actually and we want to show values of these id's from other tables, I need to show selected track_name and module_name over on insert page.
    Not getting any idea how to do that???
    Plz help.

  • What is Field Symbols  & How to Use it  in Programs  ?

    I am  working  in Abap  ,for 2 yrs   now i want  work  with Field Symbols  .
    Sathya

    <link_farm_and_everything_else_removed_by_moderator>
    Edited by: Julius Bussche on Sep 3, 2008 8:59 AM

  • Field symbol for order type

    Hi all.
    i have a condition on which i need to use the field symbol in which depending on the condition,my subscreen should be displayed.
    i have SAPLMEGUI as a main standard program and MEPO_TOPLINE-BSART is a field which is attached to this std program.
    Also,if this BSARt becomes UB(order type in purchase orders) then only it should go to subscreen.i tried doing it like below,but not getting solution.
    please help.
    data: GV_OKCODE_FIELD type char35 VALUE '(SAPLMEGUI)MEPO_TOPLINE-BSART'
    FIELD-SYMBOLS <MEPO_TOPLINE-BSART> TYPE ANY.
    ASSIGN GV_OKCODE_FIELD TO <MEPO_TOPLINE-BSART>.
    IF <MEPO_TOPLINE-BSART> = 'UB'.
    endif.

    Hello,
    You can try something like this:
    FIELD-SYMBOLS: <FS> TYPE BSART.
    ASSIGN COMPONENT BSART OF STRUCTURE MEPO_TOPLINE TO <FS>.
    IF <FS> = 'UB'.
    " Your Code
    ENDIF.
    BR,
    Suhas

  • Is any one created Table with in table using adv table with VOs without EOs

    If you have created Advnace table Master-Detail (Table with in table), please let me know the Controller code. I am using below. But getting Nullpointer excveption at innerTable.setAttributeValue(VIEW_LINK_NAME,"ViewLink1VL"); Please help me.
    ===========================
    OAWebBean outerTable = (OAWebBean)webBean.findChildRecursive("region2");
    OAWebBean innerTable = (OAWebBean)webBean.findChildRecursive("region4");
    if (outerTable != null)
    outerTable.setAttributeValue(CHILD_VIEW_ATTRIBUTE_NAME,"FLEX_VALUE_X");
    outerTable.setAttributeValue(VIEW_LINK_NAME,"ViewLink1VL");
    if (innerTable != null)
    innerTable.setAttributeValue(CHILD_VIEW_ATTRIBUTE_NAME,"FLEX_VALUE_X");
    innerTable.setAttributeValue(VIEW_LINK_NAME,"ViewLink1VL");
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("initGoodsQuery");
    ============================

    My problem was solved when i used ,"ViewLink1VL1" instead of ,"ViewLink1VL" in controller code.
    thanks.
    Gopi.

Maybe you are looking for

  • After ios 8 update on ipad mini. None of my apps connect to app store for in app purchases.

    In app purchases worked before ios 8 update was installed on ipad mini. Restrictions are turned off. Can login to app store and purchase and download apps. Can't do in app purchases. Anybody else have this problem?

  • Mail Rules no longer working

    Recently (after the iCloud) my mail is full of garbage that had previously had rules applied. The rules are no longer working, even if applied manually. If anyone is having this problem or know of a solution please advise. Thank you in advance.

  • Box in main window (sapscript) problem.

    Hi, all. I meet a weird problem.... I have 2 pages form which have 2 same MAIN window and of course their source code is same one. But when I run the output form, I found that one of the page which main window's box is disappear, while the other page

  • Syncing playcount iphone to itunes

    I don't use iTunes alot when it comes to playing music but I use my iPhone alot in the iPod function. I noticed the iTunes playcount is not updated when I play music on the iPhone eventhough the iPhone itself keeps a playcount list. Can anyone tell m

  • Sharing a library at home

    What about the following scenario. A family builds up a common music library consisting of mp3 and other files on an external LAN disk accessible in read-only mode from family’s Macs and PCs. The library is maintained by a user with write access to t