How to read tables and fields from a transaction screen.

hi all,
i am having problem in reading fields and tables from a screen, could any one help me in mapping tables from a structure as well.
it will be very help full if u had any documentation.
Thanking u
kiran

Hi,
In classical debug mode from CALL STACK tab try to find out the structures holding the screen values .
Capture the values from transaction using FIELD SYMBOLS .
See the below code.
DATA : l_prog_val(50) TYPE c VALUE '(SAPLCTMS)WI[]'.
**To get the (SAPLCTMS)WI value in this program from call stack.
  FIELD-SYMBOLS: <wi> TYPE ANY.
*Assign the structure (SAPLCTMS)WI to field symbol
  ASSIGN  (l_prog_val) TO <wi>.
  IF sy-subrc NE 0.
    EXIT.
*Assign the structure (SAPLCTMS)WI to internal table
  ELSE.
    it_wi[] = <wi>.
  ENDIF.
Sastry.

Similar Messages

  • How to read tables and fields transaction,how to find table from a strucre

    hi all,
      i am having problem in reading tables and fields for developing a customised report. can anybady help me how to extract tabele and fields from a transaction code and how to map table from a structure.
    It will me much help full, if u had any documentation. u should be appreciated.
    Thanking u
    kiran
    Message was edited by:
            kiran

    Hi Kiran,
    You can make use of the tables or Views available.
    Reward If Useful.
    Regards,
    Chitra

  • How to find Tables and Fields from R3 that some InfoSource use

    Hi people,
    I already know how to get the table or fields from R3 that some InfoSource use by "Portal SAP" that our friend here answered.
    Now, I would like to know if there is some way to get this but using some transaction in the ECC6 (R3) or BW.
    I ask by that because I will be some situation that I will have to  know tables and fields that some InfoSource use and maybe there isn't in the Portal SAP.
    Obs.: I don't know ABAP, so I would like some way that doesn't use Debug (ABAP), if it is possible.
    Thank you,
    Rosana.

    Hi Rosanna
    In many cases you will be able to get documentation from help.sap.com regarding the tables and fields used by standard datasources. For example for all the Sales and Distribution datasources you can refer the below link
    http://help.sap.com/saphelp_nw70/helpdata/en/17/cd5e407aa4c44ce10000000a1550b0/frameset.htm
    Here you can click on the different datasources and see both the table and field names. If you are looking for any specific datasource let me know...may be i can help.
    Thanks.

  • How to find tables and fields in the standard program.

    Hi to all,
                  I am very new to ABAP,
                i am willing to write Report ,that is  if i enter  the vendor number i have to get item,quantity , name...with dateetc....
    My approach was :  i went to ME2L and i gave vendor number and date in that then i got some data ,then i got the program of that list ( it was there in  bottom right) i.e, SAPMSSY0 .
               Then i entered in SE38,in that i go with Display Object LIst to find out the tables and fields,but i failed to found.
    My question is : I can write the reports if i know the fields and tables location....
                              Here i want to know the ,if i enter the Vendor No, i have to get the regarding information about that NO,_for that i have to know the fields and tables_ of item and cost ....every thing ...
           if my question was not clear please ask me i will explain you again...
          Can you help me how to find...
    Thanks in Advance
    Bhanu.

    Hi Bhanu,
       Goto transaction SE84 then follow the path
    SE84-->ABAP DICTIONARY--->FIELDS---->TABLE FIELDS-->ENTER THE TABLE OR FIED NAME you want to find
        and EXECUTE the programm you will get all the information regarding that field or table.
        Hope this solves your problem.
    Thank you,
    Pavan.
    Edited by: PAVAN CHANDRASEKHAR GANTI on Sep 1, 2009 12:57 PM
    Edited by: PAVAN CHANDRASEKHAR GANTI on Sep 1, 2009 12:58 PM

  • How to read table of records from RFC

    Hi,
    My requirement is to read multiple records(800) from RFC 1  and pass the same records to RFC 2 as input(AbstractList).
    Please suggest how to achieve this ??
    Thanks,
    vijay.

    Hi,
    I'll share the code for RFC 1 & RFC 2
    Code for RFC 1
    Zbapi_event_name input= new Zbapi_event_name();
    input.setUser("name");
    wdContext.nodeZbapi_event_name().bind(input);
    // we use the normal execute statement over here
    wdContext.nodeZbapi_event_name.nodeOutput().nodeResult_Objec1(); // returns all table records
    code for RFC 2
    Zbapi_event_data data= new Zbapi_event_data();
    data.setUser("ss");
    data.addPerners(Object); // we have a method accepts argument as Object
    data.setPerners(Abstractlist); // we have a method which accepts the argument as Abstractlist
    // we are stuck at this step , how to transform the data from RFC 1 to RFC 2
    wdContext.nodeZbapi_event_data().bind(data);
    // we use the normal execute statement over here
    Please suggest.......
    Thanks
    vijay

  • "Read table" and field symbols

    Hello all,
    I have a (hopefully simple) question. Let's suppose I want to do the following:
    loop at itab1 assigning <fs1>.
      read table itab2 assigning <fs2> with table key <fs1>-field1.
      if sy-subrc eq 0.
        move <fs2>-field1 to ls_out-field1.
      endif.
      read table itab3 assigning <fs3> with table key <fs1>-field2.
      if sy-subrc eq 0.
        move <fs3>-field1 to ls_out-field2.
      endif.
    endloop.
    It's also possible to do the following instead:
    loop at itab1 assigning <fs1>.
      unassign: <fs2>,
                <fs3>.
      read table itab2 assigning <fs2> with table key <fs1>-field1.
      read table itab3 assigning <fs3> with table key <fs1>-field2.
      if <fs2> is assigned.
        move <fs2>-field1 to ls_out-field1.
      endif.
      if <fs3> is assigned.
        move <fs3>-field1 to ls_out-field2.
      endif.
    endloop.
    My question is: is it "better" to check sy-subrc after each read, and then do a move statement within that if statement, or is it better to check whether the field symbol is assigned each time I want to fill in a field and read everything at the same time?
    I'm only really concerned about the case where you don't want to drop out of the loop after the read (so if the read fails you just don't fill any data in). I'm also discounting potential human error (otherwise the sy-subrc method wins hands-down).

    Just to close this one (albeit somewhat belatedly). I asked Harry Dietz (the ABAP Performance blogging fella) what he would suggest, and he says sy-subrc all the way. Checking that an integer is zero is considerably faster than checking for the assignment, or otherwise, of a field symbol. Furthermore, whilst the field symbol method has the potential to be faster than the sy-subrc method given some compiler optimizations, unfortunately these optimizations don't exist in the ABAP compiler - they're there in the Java compiler though! Shame really. Apparently the ABAP compiler is a pretty simple beast.
    Anyway - thanks Harry for clearing this one up!

  • How to create Tables and Fields in Java DI API?

    I have the problem to get the handle for IUserTabledMD.
    userTablesMD = (IUserTablesMD) getCompany().getBusinessObject(SBOCOMConstants.BoObjectTypes_oUserTables);
    does not work as in VB (getCompany() gets the ICompany handle).
    and
    userTablesMD = SBOCOMUtil.getUserTablesMD(getCompany(),"");
    needs an additional String!?!?!?!?
    How to get the handle to create new user defined tables?
    I think Fields needs the same methods.
    Regards, Frank.

    could you send me code for creating table using java

  • How to read the "Name" field from document library in workflow?

    Hi,
    The task I'm trying to accomplish looks pertty simple: I need to read a value of the item's "Name" field inside the workflow. I try to do it using LookupSPListItem and GetDynamicValueProperties activities. I can get value of the "Title"
    field, also I created custom field and can read it too.
    But the "Name" field always comes empty.
    I guess I need to use some tricky syntax or this field has some different "internal name"?
    The workflow is designed in VS 2013.

    Thank you. Looks correct, since when I enter this path (FileLeafRef) into GetDynamicValueProperties
    and change Entity Type to list of documents it changes to Name
    automatically.
    But somehow it doesn't work too. (:
    I also tried LinkFilenameNoMenu and LinkFilename
    - same result.
    EDIT: Solved. :)
    Looks like FileLeafRef is not loaded by default by LookupSPListItem, so you have to pass this property name via
    Properties collection. The bad news is that in this case other properties won't be loaded if you didn't add them to this collection.
    Anyway, it works. :)

  • Table and field names for transaction VB13

    Dear experts,
    Which are table-fields where the field values in table control(Mat entered, Name, Material, Description, ...) for transaction VB13 stored?
    Thanks and Regards,
    Sumit Nene.

    Thanks all!!
    I found the fields as--
    mat entered--KOTD001     MATWA
    Name     MAKT     MAKTX
    Substitute Material     KONDD     SMATN
    Short text for sales order item     MAKT     MAKTX
    Substitute unit of measure     KONDD     MEINS
    Reason for material substitution     KONDD     SUGRD
    I just didnt get the tab-field for last check box for alternative materials.
    Regards,
    Sumit Nene
    Edited by: Sumit Nene on Aug 17, 2009 1:07 PM

  • Sub Contracting PO- Table and Fields for Materials sent

    Dear Friends,
    I am preparing a functional spec for the sub contracting PO.
    Can you pls provide information about the tables and fields from where the data about the materials to be sent to subcontractor are picked?
    Its picking from the structure MDPM. But pls throw some light on the same how the data is picked and printed in PO from certain tables.
    Thanks in advance
    Shashidhar

    Dear Shash,
    Here some details of table infirmation not only your related feild available in all feilds
    http://www.erpgenie.com/sap/abap/tables_fi.htm
    Hope this helps you
    Prem.

  • Table and fields for tax details

    Hi,
    I have to create one Finance module Report in which i want to display net amount without tax for one single line item which is open item for incoming customer invoice, the accounting department need to know the net value (without tax) .
    In tcode FB03 , if you see the document number then it will give all accounts(customer), posting key wise amount, but this amount is gross amount. in this amount tax amount is added as per tax code. (you can see by clicking tax details tab), and tax calculated is for whole ducoments number not for single line item.
    i want net amount without adding tax amount for particular single line item. so please guide me table and fields from where and how i can calculate. in tax tab there is field base amount but its giving calculation against all total against document.
    table i am using in my report is KNA1.KNKK, KNB1, BKPF. BSEG.
    Give me some idea. how can i prepare report.
    Have a Nice Day,
    Regards,
    Sujeet

    Dear Dzed Maroz ,
    Thanks for your reply.
    I have already checked these fields (HWSTE, FWSTE) in table BSET. this fields tax amount againt that Document Number. (which may contains more than one line items), but my requirement is to find the amount without tax for individual line item.
    reason is , i want to display in my report only open items and it will be a line item, so i am displaying net amount as well base amount (without tax) for particular line items.
    but tax details is calculated based on document number not against customer number.this is incoming invoice
    ,and in customization tax code is assigned, so its reflecting amount after including tax amount.
    is there any way to find out solution? please give me some idea.
    regards,
    sujeet

  • How to read table fields form a table  having length of 7 characters

    HI all,
    could you please tell me how to read table fields from a table having length 7 characters, i have requirement that in my ztable i have 30 fields out of which 20 fields are location fields, i want to select 20 fields which have 7 characters length.
    please could any body suggest me on this issue.
    thanks,
    sre.

    hi,
    try like this
    create a data variable of type i as
    data: len type i.
    create internal table for 20 fields as
    data:begin of itab,
               fld 1 type .......
            end of itab.
    data:itab type itab1 occurs 0 with header line.
    loop at itab2. // original internal table which all fields.
    read table itab2 with index sy-tabix.
    len = strlen (itab2-fld).
    if len eq 7.
          move itab2 itab1.
          append itab1.
    endif.
    endloop.
    if helpful reward some points.
    with regards,
    Suresh.A

  • How to read each and every word from a string.

    Hi all,
       I have a string which is having many label numbers. if the string is lv_str, its value is like, 11111111111111##22222222222222##3333333333333.
    I need to move the values alone into internal table. each value should be updated as a single row into one internal table. How to read each and every word of the string and move to an internal table.
    the internal table should be like this.
    11111111111111
    22222222222222
    3333333333333
    Can any one give me a suggestion in this regard.
    POINTS PROMISED.
    Regards,
    Buvana

    Hi,
    If you know the format and length of the data
    Use split at '#' so that you will get the individual values.
    Thean append it to internal table.
    Reward iof helpful.

  • From which table and field can I get batch split indicator?

    Dear friends,
    There is batch split indicator at VL02N screen. From which table and field can I get this indicator?
    Thanks regards..

    Hi,
    I dont think there is anythign called batch split indicator.
    You can find that there is a batch split in a delivery if LIPS-UECHA field is updated for a particular delivery. If UECHA is filled, then the number means that for the item number mentioned in UECHA, those records are the split records.
    i.e. For example say for a line item 10, there are 2 split items in a delivery. In this case, there will be two line items with LIPS-POSNR = 90001 and 90002. These line items will have LIPS-UECHA = 10. This means that the items 90001 and 90002 are the child batch items for the parent line item 10 as mentioned in UECHA field.
    btw....u can check LIPS-CHSPL if this is what you are looking for.
    I hope this answers your question. If you have any doubt, pls lemme know

  • How to link Azure database tables and fields to VS2012 C++ entry form

    We are using Visual Studio 2012 C++ and have successfully connected to the database on Azure, but do no know how to associate the database tables and fields with the C++ application data entry forms.  Can anyone help?  Thanks

    Hello Roxanne,
    You could use Entity framework to map classes to Azure tables. Please refer http://www.codeproject.com/Articles/363040/An-Introduction-to-Entity-Framework-for-Absolute-B to
    learn more. Hope this helps.
    Regards,
    Kumar Bijayanta

Maybe you are looking for