Functional Module:Need  some sample source code.

Hi All,
I have created  a customized table   u2018ZStock_Order_Dealeru2019 with the following fields:
Stock_Order_Dealer
Dealer Number
S2D order Number     
Line item Number     
Material Number     
Ordered Quantity     
Batch Number     
Received Quantity     
S2D from D2G     
Receiving Date
I need to  create a remote enabled function module in CRM system to fetch the u2018Batch Numberu2019 and u2018Received Quantityu2019 fields when the Material Number is fed to it.Please note that the input and output should be tables.
Could some one please give some sample source code for this.

I used table types and select queries to resolve this problem.

Similar Messages

  • Function Module to get ABAP source code for a specific version

    Hi all
    Is there a function module that I can use to get the source code of another function module at a specific version?
    For example, can I call a function module passing in "FM_NAME" and "FM_VERSION" and have it return the lines of code associated with that object?
    Thanks in advance.
    Stuart

    Thanks guys
    That's incredibly helpful! I have one more question that I just thought of last night...
    Is there a way to hook into the code activation process? I want to be able to take a snapshot of the ABAP source code at each point when it is activated for use in another system, but need to be able to intercept this event and get the source code at that point in time.
    Any ideas?
    Thanks!

  • Wanted: Sample source code for voice recorder

    I've been google searching for some sample source code to implement a voice recorder on my AudioVox 5600. I would like to learn how to read from the microphone and write to my SD card in a standard file format like wav, wma or mp3.
    Can anyone help me understand how to do this?
    Thanks,
    Siegfried

    Basic would be ;
    RESULT_FIELDS -xxx = <SOURCE_FIELDS> -xxx
    you have the source fields as source, and result fields for as the target. In between you can check some conditions as in other routines of transformation.
    BEGIN OF tys_SC_1, shows your source fields ( in your case DSO chars and key figures)
    BEGIN OF tys_TG_1, , shows your result fields ( in your case Cube characteristics)
    Hope this helps
    Derya

  • Need sample source code for calling stored procedure in Oracle

    Hi.
    I try to call stored procedure in oracle using JCA JDBC.
    Anybody have sample source code for that ?
    Regards, Arnold.

    Thank you very much for a very quick reply. It worked, but I have an extended problem for which I would like to have a solution. Thank you very much in advance for your help. The problem is described below.
    I have the Procedure defined as below in the SFCS1 package body
    Procedure Company_Selection(O_Cursor IN OUT T_Cursor)
    BEGIN
    Open O_Cursor FOR
    SELECT CompanyId, CompanyName
    FROM Company
    WHERE CompanyProvince IN ('AL','AK');
    END Company_Selection;
    In the Oracle Forms, I have a datablock based on the above stored procedure. When I execute the form and from the menu if I click on Execute Query the data block gets filled up with data (The datablock is configured to display 10 items as a tabular form).
    At this point in time, I want to automate the process of displaying the data, hence I created a button and from there I want to call this stored procedure. So, in the button trigger I have the following statements
    DECLARE
    A SFCS1.T_Cursor;
    BEGIN
    SFCS1.Company_Selection(A);
    go_Block ('Block36');
    The cursor goes to the corresponding block, but does not display any data. Can you tell me how to get the data displayed. In the future versions, I'm planning to put variables in the WHERE clause.

  • Need Sample source code for Forum in jsp

    Hi..
    Please tell me the website which is having the sample source code for simple forum... I have to implement it into my project... kindly help me out...
    thanx in advance
    kumar

    Hi..
    Please tell me the website which is having the sample source code for simple forum... I have to implement it into my project... kindly help me out...
    thanx in advance
    kumar

  • Where can I find some appications' source code  written by swing

    hello, everyone
    I have studied swing for one month, and I have some basic idea of the swing.
    but I want to learn more about the swing. can anybody tell me how can I improve
    myself now or show me where can I find some appications' source code written
    by swing in the internet.
    thank you very much!
    your help is very appreciated!

    Check this tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/index.html
    It explains all the Swing components with many code samples.
    HTH
    stefan

  • Need some sample alvs using merge

    I need some sample alvs using merge

    Hi!
    data w_fieldcat type slis_fieldcat_alv.
    type-pools : slis.
    tables : sflight.
    data : i_fieldcat type slis_T_fieldcat_alv.
    data v_repid like sy-repid.
    data : begin of i_sflight occurs 0,
    carrid like sflight-carrid,
    connid like sflight-connid,
    fldate like sflight-fldate,
    end of i_sflight.
    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
    exporting
    i_program_name = v_repid
    i_internal_tabname = 'I_SFLIGHT'
    i_inclname = v_repid
    changing
    ct_fieldcat = I_fieldcatalog_TYPE.
    Check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/22/a3f5fed2fe11d2b467006094192fe3/frameset.htm
    Regards
    Tamá

  • How to find out the Functional module related to a T-code

    Hi All ,
    Please tell how to find out the Functional module related to a T-code.
    i want it for the T-code RSZDELETE.

    Hi
    There is no direct way to see this.
    You need to Pick the Program(Se37/38) and tables (SE16/11)and to see where its been used
    The FM for RSZDELETE is RSZ_DB_COMP_REORG_AS_POPUP.
    Hope it helps

  • Custom Function Module for the New Process Codes

    I want to distribute the custom table data . For that i have written the program using MASTER_IDOC_DISTRIBUTE. I have created the custom message & idoc types along with their assignments.
    I got struck up at the process code. I have to assign the function module for that process code. Can anyone kindly help me in writting the code at that function module ?

    Hi Friends,
    My requirement is , i need to transfer the table records. For that i have created the Message/Idoc Types and also created the Partner profile and the Distribution model view .....all alll i have done.
    My doubt is , in the we20, at the outbound parameters , i can give the Message/Idoc types that i have created. Ok thats fine
    But at the inbound parameters, i have to give the inbound process code. So i have created the Inbound process code. As we know that for every process code a function module is attached, now i have to create the function module which posts the records in receiver side.
    so 1. Does the Function module need to be RFC Enabled ?
         2. Do we need to create Object type in SWO1 once i
                  create and release the function module ?

  • I need some sample customer data

    Hi all,
    I need some sample customer data along with order details (for any product) for a mining application. Can anyone help me in this regard....
    thanks,
    swathi.

    Hi all,
    I need some sample customer data along with order details (for any product) for a mining application. Can anyone help me in this regard....
    thanks,
    swathi.

  • Need some sample documents for DME development

    Hi,
    I need some sample documents for DME development. I expect any information covering developing DME formats and steps for downloading a DME file (this I need for checking my formats).
    please, send any relevant info you have to mail id mindaugas.kazlauskas at gmail.com
    Many thanks and reward points ahead!
    Regards,
    Mindaugas

    Hi,
    the main thing is that I need format with payment information structured in single column, like this:
    //separator//
    value1
    value2
    value3
    //separator//
    value1
    value2
    value3
    //separator//
    maybe there is any SAP format structured like this?
    Regards,
    Mindaugas

  • Hi, i was wounding if anyone would help me get information on the company regarding the acquisition of, beats by dre, could someone please help me out as i am doing a college report on this and need some good sources of information

    hi, i was wounding if anyone would help me get information on the company regarding the acquisition of, beats by dre, could someone please help me out as i am doing a college report on this and need some good sources of information

    Try a search with Google.
    Why should we do your homework for you?

  • Sample source code (fmb)

    I am new in oracle development. I need sample code for oracle 10g forms builder.
    I notice that This is the thing which is not even in the knowledge of Google.
    I am wondering that why oracle forms's source code is not available on web. while if we talk about other tools like .net or php! thousands of sample codes are available for almost all kind of the requirements to do a job.
    I shall be very thankful if someone provide me some sample codes (fmb, rdf etc)
    Thanks

    Hi
    Oh yes i do agree with cris u can also search for video samples it's available specially for beginners,but pls notice one thing that PHP is an Open Source like Java and yes .net is also very common it only needs trust & a little light of hope that u can get it :)
    Well for me i can provide u with such sites of Oracle as tutorials besides the sites that InoL & Chris had provided like
    iSelfSchooling ....
    Oracle PL/SQL – Forms samples for François Degrelle
    Forms samples for Andreas Weiden ....
    For the tutorials
    Oracle Forms Developer ....
    A Tutorial on Oracle9i Forms and Reports
    Pls have a look here for Oracle Forms 11g Release 1 (11.1.1) Documentation ... & Oracle Forms 10g(10.1.2) Documentation.
    Hope this helps...
    Regards,
    Amatu Allah.

  • Sample source code for fields mapping in expert routine

    Hi All
    Iam writing the expert routine from dso to cube for example I have two fields in dso FLD1,FLD2
    same fields in infocube also ,can any body provide me sample abap code to map source fields to target fields in expert routine,your help will be heighly appreciatble,it's an argent.
    regards
    eliaz

    Basic would be ;
    RESULT_FIELDS -xxx = <SOURCE_FIELDS> -xxx
    you have the source fields as source, and result fields for as the target. In between you can check some conditions as in other routines of transformation.
    BEGIN OF tys_SC_1, shows your source fields ( in your case DSO chars and key figures)
    BEGIN OF tys_TG_1, , shows your result fields ( in your case Cube characteristics)
    Hope this helps
    Derya

  • Sample source code for GUI

    hi
    I am fairly new to designing GUI in JAVA . My applicaiton involves a big form with alot of choice list[ around 7 choice list ] which r populated using queries from database and also when an item is selected from the choice list , a query is ran which would refresh the screen with the result of the query ., this query would be based on the items selected in the choice lists.
    I tried implementing it, i was able to populate my choice list with the things i need from the DB using the query . but when i just select anything from the choice list, it would throw me a :
    java.lang.NullPointerException
    I am suprised cause, when i select from one choice list, i wouldnt get this error. Also i have not written any event .
    please help .. really important .... or just suggest me some source code which i can study and learn !!! please ....
    Thanks in advance

    got to http://www.trash.net/~ffischer/admin
    As the GUI is done with swing you will find lots
    of examples.
    I think the DBComboBox wil lgive you some hints...
    ..all source is there as well.

Maybe you are looking for