Require following field from one function module

Hi,
This is a issue which I am working on.Can u help me in this issue The issue is as below.
It ia a Abaper related issue .They want the clarification from Functional side
We require your help in below mentioned Open order extractions. Basically we want to know.
Function modules for Open Sales/ Purchase order quantity and for open quantity
They also require the following field to be fetched in  the table
Extraction for Open Purchase Order
Get all Purchase Order (EBELN) , Vendor (LIFNR) , Name (NAME1), Material (MATNR), Material Description (MAKTX), Material Group (MAKTL), Open Quantity (Order Qty (MENGE) -  Received Qty(field)) > 0), Requested Date (BEDAT), Purchasing Group (EKGRP).
For Sales Organization Plant
PO No, Vendor, Vendor name, Material,Mat description, Mat group,Open qty,Requested date, Purchasing group
Thank you

Hi Sravanthi,
Maintain a table type in SE11 wich is of type your itab in the program to avoid type conflicts
you IMPORT EXPORT or SET PARA GET PARA
here you have to use the system table INDX(hk)
please go through the example provided in the KEY word documentaion
hope this will serve your purpose.
Regards
Ramchander Rao.K

Similar Messages

  • Not Able to import itab data from one function module to other FM

    Hello Abap Gurus,
                               I am writing an RFC function module in which i have some data in an internal table which is created with fields from different tables. I want to use this internal table in other rfc function module which i thought can be obtained by using IMPORT/EXPORT to memory statements. But which is not happening.
    Please help me solving this.
    Thanks,
    Sravanthi Reddy.

    Hi Sravanthi,
    Maintain a table type in SE11 wich is of type your itab in the program to avoid type conflicts
    you IMPORT EXPORT or SET PARA GET PARA
    here you have to use the system table INDX(hk)
    please go through the example provided in the KEY word documentaion
    hope this will serve your purpose.
    Regards
    Ramchander Rao.K

  • Transferring an Internal table from one Function Module to another

    Hi,
    I need to transfer an Internal Table from one FM to another. I've tried the statements IMPORT IT from Memory ID and EXPORT IT to Memory ID, but this is not working. I think the reason is different session or diff LUW, I can not use SET and GET Parametr syntax, as I will not be able to pass Internal Tables through it.
    Can any1 please give a solution on this? 
    Cheers
    Abhishek

    I'd agree with April that the easiest way to pass data directly from FM1 to FM2 is via "tables", but what is your overall code structure i.e. are you going:
    Program
      Call Function FM1
    back to Program
      Call Function FM1
    or are you going:
    Program
      Call Function FM1
        Call Function FM2 from FM1
    In either case, I would expect the export / import to be working fine, at least it seem to when I tried it using:
    export lt_data from lt_data to memory id 'Z:1234'.
    import lt_data to lt_data from memory id 'Z:1234'.
    Jonathan

  • Accessing all the fields of a function module in EWM

    Hi All,
    I have a requirement to prepare a report that pulls some fields of the Function module /SCWM/STOCK_INC_OUT_MON.
    This Fuction module is in EWM.
    I need result rows for multiple values(user inputs) of warehouse.
    Cant we access individual fields from this FM without using the structure?
    i need to pull the fields MATNR, NLPA PROC and GRDATE
    for all the user entries in Wahrehouse code
    Thanks, Arka

    Hi,
    You can use the work area to capture the output of the function module and then use the data (fields) which ever you require.
    The structure of the Work area (Data Types of the field) should be same as data types of output parameters of that Function Module.
    Hope this helps.
    Regards,
    Shweta Soragavi

  • How to give only one function module execution Auth for a User ?

    Dear Experts
    I have reviewed S_DEVELOP auth object. It is not ful filling my requirement
    Any Ideas !!
    Rgds

    Rakesh...Firstly thanks for reply.
    As i said i reviewed these and found it is not meeting my requirement.
    As we aware We can control auth to Function modules thru object type
    Filed OBJTYPE----
    FUGR --> 1st control
    and with Function Group Name
    Field OBJNAME----
    <Function Group Name>  --> 2nd control
    In my scenario - I have given the authroizations as below
    ++++++++++++++++++++++++++++++++++++++++++++++++++++
    ACTVT            Activity                                                 Display, Execute
    DEVCLAS       Package                                               *
    OBJNAME      Object name                                         ZECC_FG
    OBJTYPE       Object type                                           FUGR
    P_GROUP       Authorization group ABAP/4 pro              *
    ++++++++++++++++++++++++++++++++++++++++++++++++++++
    The above authroization is giving all Function modules authrozation under ZECC_FG Function Group.
    My Requirement
    I shoudl be able to give only one Function Module of a Function group where multiple function modules exist under the same Function Group.
    How can i acheiveit. Any Custom Control can be place to acheive this.
    I am sure S_DEVELOP will not solve my requirement (I Beleive)
    Regards

  • Passing arguments scope from one function to another

    Is it possible to pass the arguments structure from one
    function to another when it contains unnamed arguments? It doesn't
    throw an error but the values and indexes in the arguments scope
    get messed up. To see what I mean, compare the two cfdumps below.
    CODE
    <cfset myComponent = createObject("component",
    "MyComponent").init() />
    <cfset myComponent.get("TypeName", "KeyA", "ValueA",
    "KeyB", "ValueB") />
    <cfcomponent>
    <cffunction name="get" output="true">
    <cfargument name="type" type="string" required="yes"
    />
    <b>get() arguments</b><br />
    <cfdump var="#arguments#" />
    <cfset create(argumentCollection=arguments) />
    </cffunction>
    <cffunction name="create" output="true">
    <cfargument name="type" type="string" required="yes"
    />
    <b>create() arguments</b><br />
    <cfdump var="#arguments#" />
    </cffunction>
    </cfcomponent>
    CFDUMP OUTPUT
    get() arguments
    struct
    2 KeyA
    3 ValueA
    4 KeyB
    5 ValueB
    TYPE TypeName
    create() arguments
    struct
    2 [undefined struct element]
    3 TypeName
    4 KeyB
    5 ValueA
    TYPE TypeName

    rampalli_aravind wrote:
    Thanks a ton for the reply!
    Well,
    how do i pass the query Results?
    Actually i have a database in the server and i am the client.
    Client sends the id to the server. Server processes. finds the id and returns the name and other details using SQL statement:
    select * from table1 where id="abc";Server should return these details back to the client.
    IF no such id exists then server should send the client the following result:
    //print that the given id does not exist and these are the ids and names in table1
    select * from table1;How can i do it using jdbc odbc driver?
    Thank you in anticipation to your reply!
    Regardssee my reply to your other post.
    write a server side component that opens the connection to the database, loads the ResultSet into a data structure, closes the ResultSet, and returns the data structure to the client.
    the client should not be dealing directly with the database.
    %

  • Getting values from a function module called in a WDA method

    Friends,
    I am trying to execute a function module from WDA.
    I have created a service call for the function module. The function module takes values from the user, looks up the corresponding values of another field and returns the values in an internal table.
    I am using the "Method Call in Used Controller" of WD Code wizard to call the function module.
    When the event handler method containing the call to the function module is executed, nothing happens.
    I am not sure how to pass values to the function module and to get the return values from the function module.
    I am new to using function modules from WDA. Please help me out.
    Thanks and Regards.

    Rashmi,
    Is the function module intended to collect input data from the UI and process it? - Yes
    If yes, then the input (importing parameter) to the Function Module is a table of values (which should be ideally from the context mapped to the Table UI Element). - The importing parameter is a single value NOT a table and is mapped to the view context.
    Now this table UI Element is bound to the view controller context , which in turn is mapped to the component controller context. And you are indeed being able to read the value of this internal table in the component controller method where the function module is being called by means of get_static_attributes_table (Is this right? - Yes, I am able to read the table of values that is passed from the component controller view to form view context by using get_static_attributes_table.
    Or are you being able to read it in the event handler method of the view controller and not being able to read it in the component controller method) -
    The function module takes a single value as import parameter and returns a table of values as return value.
    It works fine when no importing parameter is being used and returns the table of values that is getting passed from component controller context to form view context when i am able to read it using get_static_attributes_table.
    Now the question is: how to pass the import parameter value to the function module. I assumed since the importing parameter is a context node (like the return values are), i should set the value ( captured when the user enters the value in the form) to the importing parameter context attribute using set_attribute method. Since it is mapped to the component controller context, i assumed it will get passed and the method will take it as input parameter.
    Let me know if my assumptions are correct regarding passing the import parameters and what is missing here.
    Thanks and Regards.

  • Can i use fp_job_open, fp_job close in one function module to get hex pdf

    Hello All,
    Can anyone help me here.
    I am trying to use function modules FP_JOB_OPEN, FP_JOB_CLOSE,FP_FUNCTION_MODULE_NAME and call generated function modules in one function module and try ing to get hex string of pdf.
    But hex string of pdf is not coming.Should i do any setting in any of the parameter so that the function module using all these function module gets the pdf hex string.
    Regards,
    Menaka.H.B

    Hello,
    do you want to get the PDF out of the printing program to use it elsewhere? (Portal, GOS etc.)
    You need to work with the CALL FUNCTION fm_name part where the output parameter of the generated function module is XSTRING type (if i remember well) and that´s a place to start. You can convert from xstring to binary and back using SCMS_XSTRING_TO_BINARY and BIN_2_SCMS.
    Also do not forget to set fp_outputparams-GETPDF = 'X'. to get the hex.
    Regards, Otto

  • Calling a Selection Screen from a Function Module/Method

    Hi,
      I would like to call a selection screen from a function module or method. I understand it is not possible by the definition. Are there any alternative options as I am looking for the Variants Save option on the screen. Any thoughts?
    Thanks
    Raghav

    Since i don't know your exact requirements (standard SAP selection screen? your own selection screen?) the onl;y thing i can come up with is:
    1. in your function pool create your own screen with a subscreen area
    2. create your own selection screen as a subscreen.
    3. include the selection subscreen in the first screen
    4. call the first screen in your function.

  • How to know the changes done in one function module??

    Hi All,
    Could you please let me know how can I know the changes done in one function module?
    I am not a technical expert..I can just jump into SE37 to access the function module.. but would like to know if there are any logs for the function module screen which tells us about the versions and changes done from time to time?
    Thanks,
    Ramya

    Hi Ramya,
    There are ways to look at the modification overview for a function module
    1) In se37, after selecting the function module, click on Ctrl + Shift + F2
    2) Other way is the menupath ie Edit > Modification operations > Modification overview.
    Hope this helps you.
    Please confirm
    Regards
    R. Senthil Mareeswaran.

  • Fields inclusion for Function Module Extractor

    Hi Gurus,
    I am planning to design a Function Module based extractor. This Function modules is supposed to extract data from approx 10 different tables. Most of the tables have 5 or more fields of it to be pulled in.
    However, there are also few tables, which have got just a single field or just 2 fields.
    As a design, is it a good idea to include the logic of extracting these fields in the Function module? or
    Is it recommended to have these fields included via a user exit, once the datasource is developed?
    I appreciate all the help

    Thanks Dash I have assigned the points.
    I guess you are recommending the User Exit approach as mentioned in my original post where few of my tables have got just a single field or just 2 fields.
    Let me know please.
    Other SDNers,
    Let me have your thoughts too

  • How to call a WD Application from a function module?

    Hi Folks,
    I have a requirement in my project to call my web dynpro application from a function module .
    Can someone help me out with this , some example or docs would be of great help .
    Regards
    Abhishek Sahai

    Hi,
    why you want to have a FM to call the Application. If it is called also, do you want to display the applicaiton output to user.
    Do you use this FM inside any class or WD compoent or what.
    There is a class CL_WD_UTILITIES=>CONSTRUCT_WD_URL where an Application is generated but you need to have the windoe manager to show this application.
    Can you elaborate more on your requriement.
    Regards,
    Lekha.
    Edited by: Lekha on Sep 29, 2009 4:09 PM

  • How to access the screen from one function group to other function group

    Hi Experts,
    How to access the the screen from one function group to other function group.
    Please help me on this , Bcoz it is client requirement i need to finish this urgently.
    Please
    Thanks
    Basu

    HI ,
    You can do a call transaction or submit and return
    Regards,
    Sooness.

  • How to return ResultSet from one function to another?

    Hi friends,
    Greetings.
    How do we pass the query Results from one function to another function?
    Actually i have a database in the server and i am the client.
    Client sends the id to the server as an argument. From HTML file this goes to the JSP file(which i am using as a link between HTML and EJB) and then this goes to the RemoteInterface and then to the Bean itself. The functions are written in the bean. Bean connects to the database using jdbc:odbc driver and then a query is written and executed as follows:
    In the Stateless Session Bean, there is one function with the following query.
    public ResultSet check(String id)
    //other code
    ResultSet rs = Statement.("select * from table1 where id=123");
    if(!rs.next)
    // print no such id exists. other ids are
    rs=Statement.("select * from table1");
    return rs;
    I have written it approximately only because the problem is not with the query :(
    Now, in rs there's a resultset. Now how do i display it in a tabular format in HTML? This should obviously be done using JSP. How can we do it?
    In JSP file if i write
    ResultSet rs1=Remote.check(12);
    i get NullPointerException
    Thank you in anticipation to your reply!
    Regards

    Crossposted over all places:
    [http://forums.sun.com/thread.jspa?threadID=5336533]
    [http://forums.sun.com/thread.jspa?threadID=5336534]
    [http://forums.sun.com/thread.jspa?threadID=5336532]
    [http://forums.sun.com/thread.jspa?threadID=5336519]
    [http://forums.sun.com/thread.jspa?threadID=5336510]
    Stop crossposting. It's very rude.

  • Calling java APIs from a function module

    Hi,
    Can someone tell me whether it is possible to call Java APIs from a function module in SAP system?
    Thanks in advance,
    Vineetha

    Hi,
    I guess you have changed the properties of screen only.
    I assume you have made a Ztransaction Code.
    When you define a transaction code, you need to specify a screen number for radio option program and screen and you need to specify a screen and not subscreen.( I think so!!)
    You changed only the code without changing the transaction code properties.
    Therefore, i think u r getting a dump.
    If you want to call your subscreen, call it in some screen and then call that screen using your transaction code properties.
    To include a subscreen screen in the subscreen area of the main screen and call its PBO flow logic, use the following statement in the PBO event of the main screen:
    PROCESS BEFORE OUTPUT.
      CALL SUBSCREEN <area> INCLUDING <prog> <dynp>.
    To call the PAI flow logic of the subscreen screen, use the following statement in the PAI flow logic of the main screen:
    PROCESS AFTER INPUT.
    CALL SUBSCREEN <area>.
    Refer:
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/dbabfe35c111d1829f0000e829fbfe/content.htm
    Regards,
    Tanveer.
    Please mark helpful answers.
    Message was edited by: Tanveer Shaikh
    Message was edited by: Tanveer Shaikh

Maybe you are looking for

  • Is there a way to change the CSR for install SSL Certificate for CCMADMIN

    HI there, Our customer want a solution for the https failure on CCMAdmin and CCMUser sites. For that, I have exported a csr to buy a ssl certificate from verisign. The problem is the csr includes fqdn an not just the servername But the users just hav

  • Sent mail from my iPhone not showing as sent in web mail folders?

    Hi, Shouldn't Yahoo Biz mail I send from my 3g show up in my sent folders on my Macbook via Yahoo web mail? What I do on my iPhone with email does not at all jive with what I see on web mail. ALL my settings, ports, SMTP/POP are correct according to

  • Sequence settings to avoid re-rendering

    After importing AVCHD files from my Panasonic SD1 and placing them in the timeline, a full time-consuming render is required. Plus, every cut or change I make requires re-rendering. This implies that the clip and sequence settings are incompatible. I

  • I need to learn how to use Illustrator CS6

    I have tried to access both the help topics and the video tutorials for Illustrator CS6.  Help topics always have no listing for learning how to use the program.  And the video tutorials will not run.

  • Variant Config - Changing char value on Prod Order component

    Experts, We have a situation where we need to manually add Material Variants as components on a given Production Order's component list. This is in cases where stock for the material variant is available & can be used. We use ECC 6.0 with certain fea