How to fetch all fields with RFC_READ_TABLE ?

I can use RFC_READ_TABLE to fetch specified fields with the TABLE parameter "FIELDS". If I want to fetch all fields of the table, I must specified each field name. However, I can not use "*" in FIELDS, and I can not left the table empty (Error will be generated).  Is there other method to fetch all fields ?
language: VB.NET
tblT = New TAB512Table
        tblTField = New RFC_DB_FLDTable
        tblTOption = New RFC_DB_OPTTable
        Dim stuTFieldRow As New RFC_DB_FLD
        Dim stuTOptionRow As New RFC_DB_OPT
        Sapproxy.Rfc_Read_Table("", "", strTN, 0, 0, tblT, tblTField, tblTOption)

Hi:
Do like this
CALL FUNCTION 'RFC_READ_TABLE'
EXPORTING
query_table = Table
delimiter = ''
no_data = ''
rowskips = 0
rowcount = 0
TABLES
options = i_options
fields = i_fields
data = t_data.
Regards
Shashi

Similar Messages

  • How to fetch all properties with ejb3

    I have need to fetch all properties in a Query when loading Entity EJB's in ejb3.0. This is because I'm going to detach the entities from the EntityManager, but want all the properties to be loaded. I have some entities that have simple fields that are normally fetched lazily (BLOBs and CLOBs). I also have relationships to other entities that would also normally be fetched lazily. Finally, I'm trying to do this in generic code that looks like this:
    Query q = manager.createQuery("select o from " + variableNameOfOrmClass + " o");
    List l = q.getResultList();
    So, I can't really name the relationships and do a FETCH JOIN... but rather, I just want to tell the query to "fetch all properties". I also don't want to for EAGER fetching because the majority case is that I'm not going to detach objects from the EntityManager.
    Is there a simply way to tell EJBQL (EJB3.0) to fetch all properties at the query time?

    In this forum, I asked if there is a way to fetch all properties at query time. In the other, I asked if there is a way to force a load of all unfetched properties on an entity, or better yet, a collection of entities, that I've previously queried. Similar, but not the same.

  • How to map Idoc fields with external file

    Hi All,
    How to map Idoc fields with external file.
    I want to check the settings where Idoc fields are mapped with external file.
    Thanks in advance.
    Regards,
    Govind.

    If you have configured a fileport where on trigger of IDOC you are creating the file, you can look at the message type documentation and get the offset values for each field in each segment

  • How to fetch service order with partucular system status and user status

    Hello All,
    How to fetch service orders with specific system status and user status.
    thanks

    I want tables or views from where I can fetch service orders. I have to design ALV report based on this.
    I want to fetch released service orders with status INIT and RENT.
    Here, SYSTEM Status = Released and
             USER Status     = INIT
                                        RENT
    So is there any function module available for the same.....

  • How to delete all mails with one klick?

    It's annoying to delete every single mail.
    How to delete all mails with one klick, like in the paperbasket?
    Thanks

    If the emails have been previously deleted (I.e. in the trash folder), tap Edit at the top of the list. You should see a delete all button at the bottom. If the messages are in a standard folder, they need to be handled one at a time.

  • How to make all fields mandatory in sales order T- code VA01 initial screen

    Dear all,
    how to make all fields mandatory in sales order T- code VA01 initial screen itself
    The fields are
    Sales Organization
    Distribution Channel
    Division
    Sales Office
    Sales Group
    Regards,
    Amar Reddy

    Hi,
    You can use Transaction Variant to achieve this functionality.Please go through the following link which helps you in creating the same.
    [Link|http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]
    Regards,
    Phani Prasad

  • How to create a field with  1200 chars length

    Hi,
    Will anybody let me know how to create a field with length 1200 in a table.
    Regards,
    Madhavi

    Hi Madhvi,
    Other thing what you can do is
    1. First create a Table type.
         Goto SE11-> Dataelements ->Table type
         There on the next screen select Predefine radio button & there provide data type & size.
    2. Create a structure having a field typa of Table type created before. say that field is quant.
    Now in your program refer that structure to create an internal table & work area.
    Now if u append ur text to the field quant.
    try creating line type of size more that 255 if it works then fine other wise reduce it.
    Note:: This will be a deep structure.
    so first append value to the field quant,  the at the end of first record append valu to ur internal table.
    thanks
    Satyam

  • How to fetch all the contact fields using Office365 REST API

    When I request for Contacts using webservices URL, Office365 returns only some specific fields (even though contact record has lot more fields). Is there any way so that I can fetch all the fields in contact record?

    Currently the REST APIs are limited to the fields you see now. We're constantly working to add more features though, so that might come in the future.

  • How to fetch all the records from ztable

    Hi 
    My program is outbound program.
    According to the requirement i have to fetch all the records from ztable which are not tranmitted before to the third party and once the records are extracted and written to output file they will be marked as 'X' in the "status" field of that ztable for the next days run.
    How to fetch the records.Please suggest me.
    Thanks,
    Neelima

    HI,
    Fetch all the records whose status is equal to 'X' as whatever data is sent to third party system is marked as 'X' in status field of table after sending.
    You need to first fetch the data into internal table using the select statement where status EQ space. You get the data which is not yet transmitted to third part. And later in the program after trasmitting the data to third party modify the Records in the DB table which are transmitted with Staus eq 'X'.

  • How to retrieve all fields from Entiy Bean

    Is there a simpler way to retrieve all fields from the entity bean than calling each individual get method?
    I need to retrieve the entire record not the contents of the entire table.
    Though, I may eventually need to do that also.
    I have 56 fields on this table. It does not make sense to code a get statement for every field.
    If you can direct me to sample code that would be good.
    Also, are there any good examples out there of how to create an entity bean or session bean using a local interface?
    Thanks,
    Jim

    I think you are confusing an EJB with a DAO.
    If you want to access the database why not just use JDBC?

  • Address Book Server will not sync all fields with iOS client

    Hello,
    I am getting really frustrated with my Mac Mini Server.
    Apparently, the Address Book Server DOES NOT sync all fields.
    Only standard vCard-fields seem to synced.
    I have not successfully synced user-defined fields, such as an additional date.
    Any ideas / infos on how to achieve this if this possible at all?
    Thanks for the input,
    Erasmus
    One thing: I posted the same question in the "Lion" (non-server) discussion - sorry for any confusion.
    One thing I noticed:
    All changes made on the server in the OS X Address Book are distributed to two iOS clients (iPod 4th Gen iOS4 iPhone 3GS iOS 4).
    Any help is appreciated.

    Sorry for answering myself...
    I just found out that after editing the newly distributed entry on an iOS4-Client, some fields on the server are deleted!
    Erasmus

  • How to fetch bank fields in fbl1n

    plz tell me the process how to fetch bank details of particular vendor in fbl1n.
    Moderator message: welcome to SCN, always search for available information before posting, show what you have done yourself when posting.
    Edited by: Thomas Zloch on Jan 19, 2012

    how to fetch two different field records of two different tables in a single row?
    i need to display in a single column
    I'm going to assume that you mean the second one.
    without using union query?
    Can't as far as I know.
    if i use union query i have to give equal both right and left columns
    I don't actually know what you mean by this and I'm not going to guess.
    I reckon Sarma's answer (although it does use union even tho you specified that you don't want to use it) is what you need. If it is NOT what you need, please reply with the specifics of your requirement. i.e. post create table statments and insert statements that will build a valid test case. Also post what results you expect along with what you have tried (the code not a description)

  • How to fetch a row with maximum rownum

    In my sql query, how can i fetch the row with max row count? the query has around 10 columns.
    Thank You
    KK

    Hi,
    It's not very clear what you want.
    It sounds like you want a Top=-N Query , perhaps like this:
    WITH     got_row_cnt     AS
         SELECT       job
         ,       COUNT (*)                         AS row_cnt
    --     ,       ...  -- other columns
         ,       RANK () OVER (ORDER BY  COUNT (*) DESC)     AS rnk
         FROM       scott.emp
         GROUP BY  job
    SELECT     *     -- or list all columns except rnk
    FROM     got_row_cnt
    WHERE     rnk     = 1
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Always say which version of Oracle you're using (for example, 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}

  • How to enable all fields in DTP Semantic Group....

    Hi
    In BI, for one of my Master Bearing Infoobjects DTP-> Semantic Group is enabled for all fields. But for 2nd master bearing infoobject, only its primary keys are enabled & non-primary keys r disabled in its semantic group. Even both structure have same DTP settings and both have data.
    Could u pls. let me know why is it so & how can i enable all fields in semantic group.
    Thanks...

    Hi Harpal,
    What are your target and source objects?
    Take a look to the following link.
    [http://help.sap.com/saphelp_nw70/helpdata/en/42/fa50e40f501a77e10000000a422035/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/42/fa50e40f501a77e10000000a422035/frameset.htm]
    Choose This graphic is explained in the accompanying text Semantic Groups to specify
    how you want to build the data packages that are read from the source (DataSource or
    InfoProvider). To do this, define key fields. Data records that have the same key
    are combined in a single data package.
    This setting is only relevant for DataStore objects with data fields that are
    overwritten. This setting also defines the key fields for the error stack.
    By defining the key for the error stack, you ensure that the data can
    be updated in the target in the correct order once the incorrect data
    records have been corrected.
    Regards, Federico

  • How to get two fields with same tech name in LIS Extractors?

    Hi Experts,
    I need "ERDAT" field from two structures (QMSM & QMFE) in 2LIS_18_IOTASK extractor.
    In LBWE first I moved ERDAT from QMSM. When I moved ERDAT from QMFE it gives an error:
    "Field with same technical name is already available in the Extract Structure".
    I don't want to create Append Structure as we need to write User exit.
    Can any one tell me how to get this field added in the extractor from QMSM and QMFE?
    Thanks for your help.
    Regards,
    Sree

    this is not possible as the all those fields are put in one structure. per definition you can't put the same field name twice in a structure, table in the data dictionary...
    hence, you really need to use an append and fill via user exit
    M.

Maybe you are looking for

  • Two sided printing HP Officejet 4630

    How to use the two sided printing with the HP Officejst 4630. I see how to use two sided copy.

  • ICloud DST Issues With Outlook

    When I sync my Outlook Calendar into my iCloud Calendar all recurring events that existed before DST are off by 1 hour in iCloud but correct in Outlook. Any ideas? So for example I have a recurring event for a daily meeting. This meeting was created

  • Activity Management and Outlook Integration

    Hi All, In CRM 7.0 activity management mail is sent by using SAP CRM system. Is it possible that the same mail will go to Inbox of sender and we can access that mail in Sent Items of MS Outlook by integrating using MS Outlook exchange server? Are the

  • CO11N: how to perform confirmation entry authorization per work center

    During production order confirmation entry authorization per work center is required however the standard authorization object for the confirmation Is only per plant and order type

  • Central Contract Header Message

    Hi, I created an enhancement for contract replication in PI. I generated the proxy in SRM and I could see the fields. I then implemented BADI /sapsrm/bd_soa_mapping (method  map_xi_to_backend) to map the fields. The problem is that the new fields are